| | |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.crm.manager.service.CstmrTypeService; |
| | | import com.zy.crm.system.entity.Dept; |
| | | import com.zy.crm.system.entity.Dic; |
| | | import com.zy.crm.system.entity.Host; |
| | | import com.zy.crm.system.entity.User; |
| | | import com.zy.crm.system.service.DeptService; |
| | | import com.zy.crm.system.service.DicService; |
| | | import com.zy.crm.system.service.HostService; |
| | | import com.zy.crm.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | @ApiModelProperty(value= "注释") |
| | | private String memo; |
| | | |
| | | /** |
| | | * 客户行业 |
| | | */ |
| | | @ApiModelProperty(value= "客户行业") |
| | | @TableField("industry") |
| | | private String industry; |
| | | |
| | | /** |
| | | * 产品类别 |
| | | */ |
| | | @ApiModelProperty(value= "产品类别") |
| | | @TableField("product_category") |
| | | private String productCategory; |
| | | |
| | | /** |
| | | * 企业信用代码 |
| | | */ |
| | | @ApiModelProperty(value= "企业信用代码") |
| | | @TableField("credit_code") |
| | | private String creditCode; |
| | | |
| | | /** |
| | | * 企业创建时间 |
| | | */ |
| | | @ApiModelProperty(value= "企业创建时间") |
| | | @TableField("issue_time") |
| | | private String issueTime; |
| | | |
| | | /** |
| | | * 企业类型 |
| | | */ |
| | | @ApiModelProperty(value= "企业类型") |
| | | @TableField("company_type") |
| | | private String companyType; |
| | | |
| | | /** |
| | | * 企业法人 |
| | | */ |
| | | @ApiModelProperty(value= "企业法人") |
| | | @TableField("company_person") |
| | | private String companyPerson; |
| | | |
| | | /** |
| | | * 企业状态 |
| | | */ |
| | | @ApiModelProperty(value= "企业状态") |
| | | @TableField("company_status") |
| | | private String companyStatus; |
| | | |
| | | /** |
| | | * 注册资金 |
| | | */ |
| | | @ApiModelProperty(value= "注册资金") |
| | | @TableField("reg_money") |
| | | private String regMoney; |
| | | |
| | | public Cstmr() {} |
| | | |
| | | public Cstmr(Cstmr cstmr) { |
| | | this.hostId = cstmr.getHostId(); |
| | | this.deptId = cstmr.getDeptId(); |
| | | this.userId = cstmr.getUserId(); |
| | | this.cstmrType = cstmr.getCstmrType(); |
| | | this.director = cstmr.getDirector(); |
| | | this.province = cstmr.getProvince(); |
| | | this.city = cstmr.getCity(); |
| | | this.district = cstmr.getDistrict(); |
| | | this.town = cstmr.getTown(); |
| | | this.addr = cstmr.getAddr(); |
| | | this.type = cstmr.getType(); |
| | | this.status = cstmr.getStatus(); |
| | | this.createBy = cstmr.getCreateBy(); |
| | | this.createTime = cstmr.getCreateTime(); |
| | | this.updateBy = cstmr.getUpdateBy(); |
| | | this.updateTime = cstmr.getUpdateTime(); |
| | | } |
| | | |
| | | public Cstmr(Long hostId,Long deptId,Long userId,Long cstmrType,String uuid,String name,String simple,String rela,String tel,String contacts,String remarks,Long director,String province,String city,String district,String town,String addr,Integer type,String files,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { |
| | | this.hostId = hostId; |
| | |
| | | } |
| | | |
| | | public String getDirector$(){ |
| | | if (Cools.isEmpty(this.director)) return null; |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.director); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getNickname()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public void setType0(String type0){ |
| | | if (Cools.isEmpty(type0)) { |
| | | return; |
| | | } |
| | | switch (type0){ |
| | | case "内销": |
| | | this.type = 1; |
| | | break; |
| | | case "外销": |
| | | this.type = 2; |
| | | break; |
| | | default: |
| | | this.type = 1; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | public String getType$(){ |
| | |
| | | return s; |
| | | } |
| | | |
| | | public String getPcd$() { |
| | | StringBuilder sb = new StringBuilder(); |
| | | DicService service = SpringUtils.getBean(DicService.class); |
| | | if (!Cools.isEmpty(province)) { |
| | | Dic provinceDic = service.selectById(province); |
| | | if (!Cools.isEmpty(provinceDic)) { |
| | | sb.append(provinceDic.getName()).append(","); |
| | | } |
| | | } |
| | | if (!Cools.isEmpty(city)) { |
| | | Dic cityDic = service.selectById(city); |
| | | if (!Cools.isEmpty(cityDic)) { |
| | | sb.append(cityDic.getName()).append(","); |
| | | } |
| | | } |
| | | if (!Cools.isEmpty(district)) { |
| | | Dic districtDic = service.selectById(district); |
| | | if (!Cools.isEmpty(districtDic)) { |
| | | sb.append(districtDic.getName()).append(","); |
| | | } |
| | | } |
| | | String s = sb.toString(); |
| | | if (s.endsWith(",")) { |
| | | s = s.substring(0, s.length() - 1); |
| | | } |
| | | return s; |
| | | } |
| | | |
| | | public void setPcd(String pcd) { |
| | | this.pcd = pcd; |
| | | if (!Cools.isEmpty(pcd)) { |