| | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.crm.manager.service.CstmrGradeService; |
| | | import com.zy.crm.manager.service.CstmrTypeService; |
| | | import com.zy.crm.manager.service.OrderProductTypeService; |
| | | import com.zy.crm.system.entity.Dept; |
| | |
| | | @ApiModelProperty(value= "客户类别") |
| | | @TableField("cstmr_type") |
| | | private Long cstmrType; |
| | | |
| | | /** |
| | | * 客户类别 |
| | | */ |
| | | @ApiModelProperty(value= "客户类别") |
| | | @TableField("cstmr_grade") |
| | | private Long cstmrGrade; |
| | | |
| | | /** |
| | | * 客户代号 |
| | |
| | | @ApiModelProperty(value= "产品类别") |
| | | @TableField("product_category") |
| | | private String productCategory; |
| | | |
| | | /** |
| | | * 产品类型 |
| | | */ |
| | | @ApiModelProperty(value= "产品类型") |
| | | @TableField("order_product_type_id") |
| | | private Long orderProductTypeId; |
| | | |
| | | /** |
| | | * 企业信用代码 |
| | |
| | | return null; |
| | | } |
| | | |
| | | public String getCstmrGrade$(){ |
| | | CstmrGradeService service = SpringUtils.getBean(CstmrGradeService.class); |
| | | CstmrGrade cstmrGrade = service.selectById(this.cstmrGrade); |
| | | if (!Cools.isEmpty(cstmrGrade)){ |
| | | return String.valueOf(cstmrGrade.getName()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getDirector$(){ |
| | | if (Cools.isEmpty(this.director)) return null; |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | |
| | | } |
| | | 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)) { |