forked from luyan/epmet-cloud-lingshan
8 changed files with 416 additions and 10 deletions
@ -0,0 +1,99 @@ |
|||||
|
package com.epmet.dto.form.policy; |
||||
|
|
||||
|
import com.epmet.commons.tools.dto.form.FileCommonDTO; |
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import com.epmet.dto.IcPolicyCategoryDTO; |
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
|
||||
|
import javax.validation.Valid; |
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import javax.validation.constraints.NotEmpty; |
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Description |
||||
|
* @Author yzm |
||||
|
* @Date 2022/7/19 13:09 |
||||
|
*/ |
||||
|
|
||||
|
@Data |
||||
|
public class IcPolicyFormDTO implements Serializable { |
||||
|
public interface AddUserInternalGroup { |
||||
|
} |
||||
|
|
||||
|
public interface AddUserShowGroup extends CustomerClientShowGroup { |
||||
|
} |
||||
|
|
||||
|
public interface UpdateUserInternalGroup { |
||||
|
} |
||||
|
@NotBlank(message = "政策id不能为空",groups = UpdateUserInternalGroup.class) |
||||
|
private String policyId; |
||||
|
/** |
||||
|
* 政策创建人,所属组织id |
||||
|
*/ |
||||
|
@NotBlank(message = "orgId不能为空",groups = UpdateUserInternalGroup.class) |
||||
|
private String orgId; |
||||
|
|
||||
|
/** |
||||
|
* AGENCY_ID的全路径,含agency_id |
||||
|
*/ |
||||
|
@NotBlank(message = "orgIdPath不能为空",groups = UpdateUserInternalGroup.class) |
||||
|
private String orgIdPath; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
@NotBlank(message = "客户id不能为空", groups = AddUserInternalGroup.class) |
||||
|
private String customerId; |
||||
|
private String staffId; |
||||
|
|
||||
|
/** |
||||
|
* 政策级别,0市级;1区级;2街道级 |
||||
|
*/ |
||||
|
@NotBlank(message = "政策级别不能为空", groups = AddUserShowGroup.class) |
||||
|
private String policyLevel; |
||||
|
|
||||
|
/** |
||||
|
* 生效起止日期 |
||||
|
*/ |
||||
|
@JsonFormat(pattern="yyyy-MM-dd") |
||||
|
@NotNull(message = "政策开始日期不能为空", groups = AddUserShowGroup.class) |
||||
|
private Date startDate; |
||||
|
|
||||
|
/** |
||||
|
* 截止日期 |
||||
|
*/ |
||||
|
@JsonFormat(pattern="yyyy-MM-dd") |
||||
|
@NotNull(message = "政策截止日期不能为空", groups = AddUserShowGroup.class) |
||||
|
private Date endDate; |
||||
|
|
||||
|
/** |
||||
|
* 政策标题 |
||||
|
*/ |
||||
|
@NotBlank(message = "政策标题不能为空", groups = AddUserShowGroup.class) |
||||
|
@Length(max = 100, groups = AddUserShowGroup.class, message = "政策标题最多输入100字") |
||||
|
private String title; |
||||
|
|
||||
|
/** |
||||
|
* 政策内容 |
||||
|
*/ |
||||
|
@NotBlank(message = "政策内容不能为空", groups = AddUserShowGroup.class) |
||||
|
@Length(max = 2000, groups = AddUserShowGroup.class, message = "政策内容最多输入2000字") |
||||
|
private String content; |
||||
|
|
||||
|
private List<IcPolicyCategoryDTO> categoryList; |
||||
|
|
||||
|
// @Valid
|
||||
|
private List<FileCommonDTO> attachmentList; |
||||
|
|
||||
|
@Valid |
||||
|
@NotEmpty(message = "政策细则不能为空",groups =AddUserShowGroup.class ) |
||||
|
private List<IcPolicyRuleFormDTO> ruleList; |
||||
|
} |
||||
|
|
@ -0,0 +1,60 @@ |
|||||
|
package com.epmet.dto.form.policy; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* @Description |
||||
|
* @Author yzm |
||||
|
* @Date 2022/7/19 13:32 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IcPolicyRuleDetailDTO { |
||||
|
public interface AddUserShowGroup extends CustomerClientShowGroup { |
||||
|
} |
||||
|
/** |
||||
|
* 规则描述文字,例如:基础信息性别等于女 |
||||
|
*/ |
||||
|
private String ruleDesc; |
||||
|
|
||||
|
/** |
||||
|
* 与上一条的关系;and、or |
||||
|
*/ |
||||
|
private String lastLogicalRel; |
||||
|
|
||||
|
/** |
||||
|
* 分组id;人员信息有值; |
||||
|
*/ |
||||
|
private String itemGroupId; |
||||
|
|
||||
|
/** |
||||
|
* 表名;人员信息有值;房屋信息也有值 |
||||
|
*/ |
||||
|
private String itemId; |
||||
|
|
||||
|
/** |
||||
|
* 查询类型:等于、不等于....;来源于字典表sql_query_type |
||||
|
*/ |
||||
|
@NotBlank(message = "查询类型不能为空", groups = AddUserShowGroup.class) |
||||
|
private String queryType; |
||||
|
|
||||
|
/** |
||||
|
* 表名;人员信息有值; |
||||
|
*/ |
||||
|
private String colTable; |
||||
|
|
||||
|
/** |
||||
|
* 人员信息存储组件对应的列名;房屋信息存储ic_house表的列名;统计信息应该是定义到字典表,这里存储字典key就行吧 |
||||
|
*/ |
||||
|
@NotBlank(message = "条件不能为空", groups = AddUserShowGroup.class) |
||||
|
private String colKey; |
||||
|
|
||||
|
/** |
||||
|
* 参数值 |
||||
|
*/ |
||||
|
@NotBlank(message = "参数值不能为空", groups = AddUserShowGroup.class) |
||||
|
private String colVal; |
||||
|
} |
||||
|
|
@ -0,0 +1,37 @@ |
|||||
|
package com.epmet.dto.form.policy; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Description |
||||
|
* @Author yzm |
||||
|
* @Date 2022/7/19 13:31 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IcPolicyRuleFormDTO implements Serializable { |
||||
|
|
||||
|
/** |
||||
|
* 细则名称 |
||||
|
*/ |
||||
|
@NotBlank(message = "细则名称不能为空", groups = IcPolicyFormDTO.AddUserShowGroup.class) |
||||
|
private String ruleName; |
||||
|
/** |
||||
|
* 人员信息 |
||||
|
*/ |
||||
|
// @Valid
|
||||
|
// @NotEmpty
|
||||
|
private List<IcPolicyRuleDetailDTO> resiRuleList; |
||||
|
/** |
||||
|
* 房屋信息 |
||||
|
*/ |
||||
|
private List<IcPolicyRuleDetailDTO> houseRuleList; |
||||
|
/** |
||||
|
* 统计信息 |
||||
|
*/ |
||||
|
private List<IcPolicyRuleDetailDTO> statRuleList; |
||||
|
} |
||||
|
|
Loading…
Reference in new issue