| | |
| | | package com.ycl.platform.domain.form; |
| | | |
| | | import com.ycl.platform.domain.vo.RuleItemVO; |
| | | import com.ycl.system.domain.group.Update; |
| | | import com.ycl.system.domain.group.Add; |
| | | import com.ycl.platform.base.AbsForm; |
| | |
| | | |
| | | @NotEmpty(message = "考核规则不能为空") |
| | | @ApiModelProperty("考核规则") |
| | | private List<RuleItem> ruleList; |
| | | private List<RuleItemVO> ruleFormList; |
| | | |
| | | public static CheckTemplate getEntityByForm(@NonNull CheckTemplateForm form, CheckTemplate entity) { |
| | | if(entity == null) { |
| | |
| | | } |
| | | BeanUtils.copyProperties(form, entity); |
| | | return entity; |
| | | } |
| | | |
| | | public class RuleItem { |
| | | |
| | | /** |
| | | * 规则 |
| | | */ |
| | | private Integer ruleId; |
| | | |
| | | /** |
| | | * 权重 |
| | | */ |
| | | private BigDecimal weight; |
| | | |
| | | public Integer getRuleId() { |
| | | return ruleId; |
| | | } |
| | | |
| | | public void setRuleId(Integer ruleId) { |
| | | this.ruleId = ruleId; |
| | | } |
| | | |
| | | public BigDecimal getWeight() { |
| | | return weight; |
| | | } |
| | | |
| | | public void setWeight(BigDecimal weight) { |
| | | this.weight = weight; |
| | | } |
| | | } |
| | | |
| | | } |