haungxing
1 year ago
9 changed files with 168 additions and 4 deletions
@ -0,0 +1,28 @@ |
|||||||
|
package com.hnac.hzinfo.inspect.obj.vo; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import com.hnac.hzinfo.inspect.obj.dto.ProjectDTO; |
||||||
|
import com.hnac.hzinfo.inspect.obj.entity.ProjectEntity; |
||||||
|
import io.swagger.annotations.ApiModel; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.EqualsAndHashCode; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* @ClassName ProjectVO |
||||||
|
* @description: |
||||||
|
* @author: hx |
||||||
|
* @create: 2023-07-07 09:28 |
||||||
|
* @Version 4.0 |
||||||
|
**/ |
||||||
|
@ApiModel("项目VO对象") |
||||||
|
@Data |
||||||
|
@EqualsAndHashCode |
||||||
|
public class ProjectVO extends ProjectEntity { |
||||||
|
|
||||||
|
@ApiModelProperty("巡检内容列表") |
||||||
|
private IPage<ContentVO> contentList; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,26 @@ |
|||||||
|
package com.hnac.hzinfo.inspect.obj.wrapper; |
||||||
|
|
||||||
|
import com.hnac.hzinfo.inspect.obj.entity.ProjectEntity; |
||||||
|
import com.hnac.hzinfo.inspect.obj.vo.ProjectVO; |
||||||
|
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||||
|
import org.springblade.core.tool.utils.BeanUtil; |
||||||
|
|
||||||
|
/** |
||||||
|
* @ClassName ProjectWrapper |
||||||
|
* @description: |
||||||
|
* @author: hx |
||||||
|
* @create: 2023-07-07 11:03 |
||||||
|
* @Version 4.0 |
||||||
|
**/ |
||||||
|
public class ProjectWrapper extends BaseEntityWrapper<ProjectEntity, ProjectVO> { |
||||||
|
|
||||||
|
public static ProjectWrapper build() { |
||||||
|
return new ProjectWrapper(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public ProjectVO entityVO(ProjectEntity entity) { |
||||||
|
ProjectVO projectVO = BeanUtil.copy(entity, ProjectVO.class); |
||||||
|
return projectVO; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue