From 2f54d40d80be4635d1f22b2f02c735d383060875 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期五, 01 十二月 2023 14:49:35 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/crm/manager/entity/Cstmr.java | 39 ++++++++++++++++++++++++++++++++++++++-
1 files changed, 38 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/zy/crm/manager/entity/Cstmr.java b/src/main/java/com/zy/crm/manager/entity/Cstmr.java
index 1964642..30c1b44 100644
--- a/src/main/java/com/zy/crm/manager/entity/Cstmr.java
+++ b/src/main/java/com/zy/crm/manager/entity/Cstmr.java
@@ -7,6 +7,7 @@
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;
@@ -204,11 +205,18 @@
private String industry;
/**
- * 浜у搧绫诲埆
+ * 浜у搧绫诲埆 搴熷純
*/
@ApiModelProperty(value= "浜у搧绫诲埆")
@TableField("product_category")
private String productCategory;
+
+ /**
+ * 浜у搧绫诲瀷
+ */
+ @ApiModelProperty(value= "浜у搧绫诲瀷")
+ @TableField("order_product_type_id")
+ private Long orderProductTypeId;
/**
* 浼佷笟淇$敤浠g爜
@@ -253,6 +261,25 @@
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;
@@ -356,6 +383,16 @@
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)) {
--
Gitblit v1.9.1