package com.moral.api.pojo.form.organization;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.moral.api.entity.Organization;
|
import com.moral.api.pojo.dto.organization.OrganizationDTO;
|
import com.moral.constant.ResponseCodeEnum;
|
import com.moral.util.RegexUtils;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.util.ObjectUtils;
|
|
import java.util.Date;
|
|
|
/**
|
* @ClassName OrganizationQueryForm
|
* @Description TODO
|
* @Author 陈凯裕
|
* @Date 2021/3/25 15:52
|
* @Version TODO
|
**/
|
@Data
|
public class OrganizationQueryForm {
|
|
private Integer page;
|
|
private Integer size;
|
|
private Integer parentId;
|
|
private String name;
|
|
private Integer provinceCode;
|
|
private Integer cityCode;
|
|
private Integer areaCode;
|
|
private String phone;
|
|
private String email;
|
|
private String wechat;
|
|
private String isDelete;
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
|
private Date createStartTime;
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
|
private Date createEndTime;
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
|
private Date expireStartTime;
|
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
|
private Date expireEndTime;
|
|
private String order;
|
|
private String orderType;
|
|
public boolean valid() {
|
if (
|
ObjectUtils.isEmpty(page) ||
|
ObjectUtils.isEmpty(size)
|
)
|
return false;
|
return true;
|
}
|
|
|
}
|