| | |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.crm.manager.service.CstmrTypeService; |
| | | import com.zy.crm.manager.service.OrderProductTypeService; |
| | | import com.zy.crm.system.entity.Dept; |
| | | import com.zy.crm.system.entity.Dic; |
| | | import com.zy.crm.system.entity.Host; |
| | |
| | | private String industry; |
| | | |
| | | /** |
| | | * 产品类别 |
| | | * 产品类别 废弃 |
| | | */ |
| | | @ApiModelProperty(value= "产品类别") |
| | | @TableField("product_category") |
| | | private String productCategory; |
| | | |
| | | /** |
| | | * 产品类型 |
| | | */ |
| | | @ApiModelProperty(value= "产品类型") |
| | | @TableField("order_product_type_id") |
| | | private Long orderProductTypeId; |
| | | |
| | | /** |
| | | * 企业信用代码 |
| | |
| | | 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 null; |
| | | } |
| | | |
| | | public String getOrderProductTypeId$(){ |
| | | if (this.orderProductTypeId==null) return null; |
| | | OrderProductTypeService orderProductTypeService = SpringUtils.getBean(OrderProductTypeService.class); |
| | | OrderProductType orderProductType = orderProductTypeService.selectById(this.orderProductTypeId); |
| | | if (!Cools.isEmpty(orderProductType)){ |
| | | return String.valueOf(orderProductType.getName()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public void setType0(String type0){ |
| | | if (Cools.isEmpty(type0)) { |