forked from rongchao/epmet-cloud-rizhao
				
			
				 10 changed files with 286 additions and 9 deletions
			
			
		@ -0,0 +1,19 @@ | 
				
			|||
package com.epmet.dto.form; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import javax.validation.constraints.NotBlank; | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Description 居民信息,点击新增,获取当前客户下的表单 | 
				
			|||
 * @Author yinzuomei | 
				
			|||
 * @Date 2021/10/26 1:59 下午 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class CustomerFormQueryDTO implements Serializable { | 
				
			|||
    public interface AddUserInternalGroup {} | 
				
			|||
    @NotBlank(message = "formCode不能为空,居民信息默认传:resi_base_info",groups =AddUserInternalGroup.class ) | 
				
			|||
    private String formCode; | 
				
			|||
} | 
				
			|||
 | 
				
			|||
@ -0,0 +1,37 @@ | 
				
			|||
package com.epmet.dto.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.util.List; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Description 居民信息,点击新增,返回当前客户下的表单 | 
				
			|||
 * @Author yinzuomei | 
				
			|||
 * @Date 2021/10/26 2:13 下午 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class CustomerFormResultDTO implements Serializable { | 
				
			|||
    private static final long serialVersionUID = -6541805255520766366L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 表单id | 
				
			|||
     */ | 
				
			|||
    private String formId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 表单左上角的名字 | 
				
			|||
     */ | 
				
			|||
    private String formName; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 表单项 | 
				
			|||
     */ | 
				
			|||
    private List<FormItem> itemList; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 表单分组 | 
				
			|||
     */ | 
				
			|||
    private List<FormGroupDTO> groupList; | 
				
			|||
} | 
				
			|||
 | 
				
			|||
@ -0,0 +1,47 @@ | 
				
			|||
package com.epmet.dto.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.util.List; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Description 下面的的分组 | 
				
			|||
 * @Author yinzuomei | 
				
			|||
 * @Date 2021/10/26 2:16 下午 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class FormGroupDTO implements Serializable { | 
				
			|||
    private static final long serialVersionUID = -6209767832999902538L; | 
				
			|||
    /** | 
				
			|||
     * 分组id | 
				
			|||
     */ | 
				
			|||
    private String groupId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 分组的名字,例如:教育信息、家庭信息 | 
				
			|||
     */ | 
				
			|||
    private String label; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 排序 | 
				
			|||
     */ | 
				
			|||
    private Integer sort; | 
				
			|||
 | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 是否支持添加一行,1支持,默认0不支持 | 
				
			|||
     */ | 
				
			|||
    private Boolean supportAdd; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 目前这些分组,没有拆开子表,所以默认:ic_resi_user | 
				
			|||
     */ | 
				
			|||
    private String tableName; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 分组里面的组件 | 
				
			|||
     */ | 
				
			|||
    private List<FormItem> itemList; | 
				
			|||
} | 
				
			|||
 | 
				
			|||
@ -0,0 +1,114 @@ | 
				
			|||
package com.epmet.dto.result; | 
				
			|||
 | 
				
			|||
import com.fasterxml.jackson.annotation.JsonIgnore; | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
import java.util.List; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Description 表单项 | 
				
			|||
 * @Author yinzuomei | 
				
			|||
 * @Date 2021/10/26 2:15 下午 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class FormItem implements Serializable { | 
				
			|||
    private static final long serialVersionUID = 7443085469505238040L; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 父项ID | 
				
			|||
     */ | 
				
			|||
    private String itemId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 默认:ic_resi_user | 
				
			|||
     */ | 
				
			|||
    private String tableName; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 父项ID | 
				
			|||
     */ | 
				
			|||
    private String parentItemId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 项标签 | 
				
			|||
     */ | 
				
			|||
    private String label; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 控件类型,EG:INPUT;从字典获取 | 
				
			|||
     */ | 
				
			|||
    private String itemType; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 分组ID,'默认,NONE' | 
				
			|||
     */ | 
				
			|||
    private String itemGroupId; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 是否必填,1必填。0不必填 | 
				
			|||
     */ | 
				
			|||
    private Integer required; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 手机号:mobile; 身份证:id_card | 
				
			|||
     */ | 
				
			|||
    private String validType; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 默认值 | 
				
			|||
     */ | 
				
			|||
    private String defaultValue; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 选项来源,REMOTE;LOCAL;如果是动态加载的下拉框或者CHECKBOX等的情况下使用。URL:接口获取(LABEL,VALUE);JSON:直接从JSON中取 | 
				
			|||
     */ | 
				
			|||
    private String optionSourceType; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 来源地址,REMOTE才有,固定格式;如果OPTIONS_SOURCE是URL,则此处填写要调用的接口的URL相对路径,例如:/API/GOV/ORG/XXXX。此处不应设置参数,若需要参数应当完全由后端,通过TOKEN信息来获取 | 
				
			|||
     */ | 
				
			|||
    private String optionSourceValue; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 排序 | 
				
			|||
     */ | 
				
			|||
    private Integer sort; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 占位提示语 | 
				
			|||
     */ | 
				
			|||
    private String placeholder; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 是否查询显示,1展示。0不展示 | 
				
			|||
     */ | 
				
			|||
    @JsonIgnore | 
				
			|||
    private Integer searchDisplay; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 是否列表显示,1展示,0不展示 | 
				
			|||
     */ | 
				
			|||
    @JsonIgnore | 
				
			|||
    private Integer listDisplay; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 是否需要支持数据分析,1支持。0不支持 | 
				
			|||
     */ | 
				
			|||
    @JsonIgnore | 
				
			|||
    private Integer dataAnalyse; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 列名 | 
				
			|||
     */ | 
				
			|||
    private String columnName; | 
				
			|||
 | 
				
			|||
    private List<OptionDTO> options; | 
				
			|||
 | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 当前组件,要追加分组 | 
				
			|||
     */ | 
				
			|||
    private FormGroupDTO childGroup; | 
				
			|||
} | 
				
			|||
 | 
				
			|||
@ -0,0 +1,17 @@ | 
				
			|||
package com.epmet.dto.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Description 下拉框、单选框的值 | 
				
			|||
 * @Author yinzuomei | 
				
			|||
 * @Date 2021/10/26 2:32 下午 | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class OptionDTO implements Serializable { | 
				
			|||
    private String label; | 
				
			|||
    private String value; | 
				
			|||
} | 
				
			|||
 | 
				
			|||
					Loading…
					
					
				
		Reference in new issue