10 changed files with 371 additions and 8 deletions
@ -0,0 +1,31 @@ |
|||
package com.epmet.dto; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/11/3 10:24 上午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class FinancialSituationDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -3984106138099267996L; |
|||
|
|||
/** |
|||
* 月收入 |
|||
*/ |
|||
private String monthlyIncome; |
|||
|
|||
/** |
|||
* 退休金额 |
|||
*/ |
|||
private String retirementAmount; |
|||
|
|||
public FinancialSituationDTO() { |
|||
this.monthlyIncome = ""; |
|||
this.retirementAmount = ""; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/11/2 5:16 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class PersonDataFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 3238490888792654922L; |
|||
|
|||
public interface PersonDataForm{} |
|||
|
|||
@NotBlank(message = "userId不能为空",groups = PersonDataForm.class) |
|||
private String userId; |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/11/3 1:34 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class SearchByNameFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -5017695783909884799L; |
|||
|
|||
public interface SearchByNameForm{} |
|||
|
|||
@NotBlank(message = "name不能为空",groups = SearchByNameForm.class) |
|||
private String name; |
|||
|
|||
@NotNull(message = "pageSize不能为空",groups = SearchByNameForm.class) |
|||
private Integer pageSize; |
|||
|
|||
@NotNull(message = "pageNo不能为空",groups = SearchByNameForm.class) |
|||
private Integer pageNo; |
|||
|
|||
} |
@ -0,0 +1,72 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.epmet.dto.FinancialSituationDTO; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/11/2 5:34 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class PersonDataResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 5210308218052783909L; |
|||
|
|||
/** |
|||
* 工作单位 |
|||
*/ |
|||
private String workUnit; |
|||
|
|||
/** |
|||
* 人员类别 |
|||
*/ |
|||
private String personCategory; |
|||
|
|||
/** |
|||
* 网格名 |
|||
*/ |
|||
private String gridName; |
|||
|
|||
/** |
|||
* 姓名 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 经济状况:包括 月收入:monthlyIncome 和 退休金额:retirementAmount |
|||
*/ |
|||
private FinancialSituationDTO financialSituation; |
|||
|
|||
/** |
|||
* 房屋信息 |
|||
*/ |
|||
private List<String> houseInfo; |
|||
|
|||
/** |
|||
* 志愿者类别 |
|||
*/ |
|||
private String volunteerCategory; |
|||
|
|||
public PersonDataResultDTO() { |
|||
this.workUnit = ""; |
|||
this.personCategory = ""; |
|||
this.gridName = ""; |
|||
this.name = ""; |
|||
this.financialSituation = new FinancialSituationDTO(); |
|||
this.houseInfo = new ArrayList<>(); |
|||
this.volunteerCategory = ""; |
|||
} |
|||
|
|||
/** |
|||
* 身份证 |
|||
*/ |
|||
@JsonIgnore |
|||
private String idCard; |
|||
} |
@ -0,0 +1,66 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/11/3 1:36 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class SearchByNameResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 8783929181468322960L; |
|||
|
|||
/** |
|||
* 排序 |
|||
*/ |
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 姓名 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 网格名 |
|||
*/ |
|||
private String gridName; |
|||
|
|||
@JsonIgnore |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 小区名 |
|||
*/ |
|||
private String neighborHoodName; |
|||
|
|||
@JsonIgnore |
|||
private String neighborHoodId; |
|||
|
|||
/** |
|||
* 楼号 |
|||
*/ |
|||
private String buildNum; |
|||
|
|||
@JsonIgnore |
|||
private String buildId; |
|||
|
|||
/** |
|||
* 用户ID |
|||
*/ |
|||
private String userId; |
|||
|
|||
public SearchByNameResultDTO() { |
|||
this.sort = NumConstant.ZERO; |
|||
this.name = ""; |
|||
this.gridName = ""; |
|||
this.neighborHoodName = ""; |
|||
this.buildNum = ""; |
|||
this.userId = ""; |
|||
} |
|||
} |
Loading…
Reference in new issue