package com.ycl.platform.domain.vo;
|
|
import com.ycl.platform.base.AbsVo;
|
import com.ycl.platform.domain.entity.CalculateMoneyRule;
|
import java.util.List;
|
import java.time.LocalDateTime;
|
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-04-26
|
*/
|
@Data
|
@Accessors(chain = true)
|
public class CalculateMoneyRuleVO extends AbsVo {
|
|
/** 合同ID */
|
private Integer contractId;
|
|
/** 分数条件 */
|
private String scoreCondition;
|
|
/** 规则描述 */
|
private String description;
|
|
public static CalculateMoneyRuleVO getVoByEntity(@NonNull CalculateMoneyRule entity, CalculateMoneyRuleVO vo) {
|
if(vo == null) {
|
vo = new CalculateMoneyRuleVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|