6 changed files with 212 additions and 29 deletions
@ -0,0 +1,35 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.basicdata.dto; |
||||
|
||||
import com.logpm.basicdata.entity.BasicdataCategoryEntity; |
||||
import com.logpm.basicdata.entity.BasicdataWarehouseEntity; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* 品类 数据传输对象实体类 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-06-02 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class BasicdataWarehouseDTO extends BasicdataWarehouseEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
@ -0,0 +1,53 @@
|
||||
/* |
||||
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
||||
* |
||||
* Redistribution and use in source and binary forms, with or without |
||||
* modification, are permitted provided that the following conditions are met: |
||||
* |
||||
* Redistributions of source code must retain the above copyright notice, |
||||
* this list of conditions and the following disclaimer. |
||||
* Redistributions in binary form must reproduce the above copyright |
||||
* notice, this list of conditions and the following disclaimer in the |
||||
* documentation and/or other materials provided with the distribution. |
||||
* Neither the name of the dreamlu.net developer nor the names of its |
||||
* contributors may be used to endorse or promote products derived from |
||||
* this software without specific prior written permission. |
||||
* Author: Chill 庄骞 (smallchill@163.com) |
||||
*/ |
||||
package com.logpm.basicdata.wrapper; |
||||
|
||||
import com.logpm.basicdata.entity.BasicdataBrandEntity; |
||||
import com.logpm.basicdata.entity.BasicdataWarehouseEntity; |
||||
import com.logpm.basicdata.vo.BasicdataBrandVO; |
||||
import com.logpm.basicdata.vo.BasicdataWarehouseVO; |
||||
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||
import org.springblade.core.tool.utils.BeanUtil; |
||||
|
||||
import java.util.Objects; |
||||
|
||||
/** |
||||
* 基础品牌表 包装类,返回视图层所需的字段 |
||||
* |
||||
* @author cyz |
||||
* @since 2023-05-16 |
||||
*/ |
||||
public class BasicdataWarehouseWrapper extends BaseEntityWrapper<BasicdataWarehouseEntity, BasicdataWarehouseVO> { |
||||
|
||||
public static BasicdataWarehouseWrapper build() { |
||||
return new BasicdataWarehouseWrapper(); |
||||
} |
||||
|
||||
@Override |
||||
public BasicdataWarehouseVO entityVO(BasicdataWarehouseEntity warehouseEntity) { |
||||
BasicdataWarehouseVO basicdataWarehouseVO = Objects.requireNonNull(BeanUtil.copy(warehouseEntity, BasicdataWarehouseVO.class)); |
||||
|
||||
//User createUser = UserCache.getUser(basicdataBrand.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(basicdataBrand.getUpdateUser());
|
||||
//basicdataBrandVO.setCreateUserName(createUser.getName());
|
||||
//basicdataBrandVO.setUpdateUserName(updateUser.getName());
|
||||
|
||||
return basicdataWarehouseVO; |
||||
} |
||||
|
||||
|
||||
} |
Loading…
Reference in new issue