New file |
| | |
| | | package com.ycl.platform.domain.vo; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ycl.platform.base.AbsVo; |
| | | import com.ycl.platform.domain.entity.CheckTemplate; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.time.LocalDateTime; |
| | | |
| | | import com.ycl.platform.domain.form.CheckTemplateForm; |
| | | import org.springframework.lang.NonNull; |
| | | import org.springframework.beans.BeanUtils; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * 考核模板展示 |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-06 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | public class CheckTemplateVO extends AbsVo { |
| | | |
| | | /** 模板名称 */ |
| | | private String templateName; |
| | | |
| | | /** 调整系数 */ |
| | | private BigDecimal adjustCoefficient; |
| | | |
| | | /** 调整系数的方式:乘除 */ |
| | | private String adjustWay; |
| | | |
| | | /** 状态 */ |
| | | private String status; |
| | | |
| | | /** 规则列表 */ |
| | | private List<RuleItemVO> ruleFormList; |
| | | /** 单位名 */ |
| | | private String unitName; |
| | | private Integer unitId; |
| | | /** 考核类型 */ |
| | | private String examineCategory; |
| | | |
| | | public static CheckTemplateVO getVoByEntity(@NonNull CheckTemplate entity, CheckTemplateVO vo) { |
| | | if(vo == null) { |
| | | vo = new CheckTemplateVO(); |
| | | } |
| | | BeanUtils.copyProperties(entity, vo); |
| | | return vo; |
| | | } |
| | | |
| | | } |