init
This commit is contained in:
@@ -0,0 +1,113 @@
|
||||
package com.newyetai.recruit.company.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.newyetai.common.dto.PageQueryDTO;
|
||||
import com.newyetai.common.exception.BusinessException;
|
||||
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 人力资源公司dto
|
||||
*
|
||||
* @author Carlye
|
||||
* @date 2021/01/08
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel("招聘系统客户信息DTO")
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class HrCompanyPageQueryDTO extends PageQueryDTO<HrCompanyDTO> {
|
||||
private static final long serialVersionUID = -2216352275325005059L;
|
||||
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty("机构ID")
|
||||
private Long orgId;
|
||||
|
||||
@ApiModelProperty("统一社会信用代码")
|
||||
private String creditCode;
|
||||
|
||||
|
||||
@ApiModelProperty("企业LOGO FileRecord")
|
||||
private String companyLogo;
|
||||
|
||||
|
||||
@ApiModelProperty("公司名称")
|
||||
private String companyName;
|
||||
|
||||
@ApiModelProperty("联系人")
|
||||
private String contactPerson;
|
||||
|
||||
@ApiModelProperty("联系方式")
|
||||
private String contactWay;
|
||||
|
||||
|
||||
@ApiModelProperty("公司简介")
|
||||
private String companyProfile;
|
||||
|
||||
|
||||
@ApiModelProperty("公司描述")
|
||||
private String companyDescription;
|
||||
|
||||
|
||||
@ApiModelProperty("行业 (数据字典)")
|
||||
private String companyIndustry;
|
||||
|
||||
|
||||
@ApiModelProperty("规模 (数据字典)")
|
||||
private String companySize;
|
||||
|
||||
|
||||
@ApiModelProperty("公司注册地址")
|
||||
private String companyRegisterAddress;
|
||||
|
||||
|
||||
@ApiModelProperty("省份 (数据字典)")
|
||||
private Integer province;
|
||||
|
||||
|
||||
@ApiModelProperty("市 (数据字典)")
|
||||
private Integer city;
|
||||
|
||||
|
||||
@ApiModelProperty("区 (数据字典)")
|
||||
private Integer district;
|
||||
|
||||
/**
|
||||
* 类型(数据字典 1.客户 2.供应商)
|
||||
*/
|
||||
private String companyType;
|
||||
|
||||
|
||||
private List<String> companyTypes;
|
||||
|
||||
|
||||
@ApiModelProperty("创建时间起,格式 (yyyy-MM-dd HH:mm:ss)")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTimeStart;
|
||||
|
||||
@ApiModelProperty("创建时间止,格式 (yyyy-MM-dd HH:mm:ss)")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTimeEnd;
|
||||
|
||||
public void check(){
|
||||
if (StringUtils.isBlank(companyType) && CollectionUtils.isEmpty(companyTypes)) {
|
||||
throw new BusinessException("请选择类型");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user