傅行帆 hace 3 años
padre
commit
de58964f19

+ 2
- 0
src/main/java/com/yunzhi/marketing/service/impl/TaPersonServiceImpl.java Ver fichero

@@ -322,6 +322,7 @@ public class TaPersonServiceImpl extends ServiceImpl<TaPersonMapper, TaPerson> i
322 322
         result.put("personType",person.getPersonType());
323 323
         result.put("name", user.getUserName());
324 324
         result.put("company", user.getOrgName());
325
+        result.put("description", user.getDescription());
325 326
         result.put("department", user.getDepartment());
326 327
         result.put("picture", user.getPhoto());
327 328
         result.put("hotNum", person.getHotNum());
@@ -336,6 +337,7 @@ public class TaPersonServiceImpl extends ServiceImpl<TaPersonMapper, TaPerson> i
336 337
         result.put("projects", buildings);
337 338
         result.put("address", taBuilding.getAddress());
338 339
         result.put("buildingName", taBuilding.getBuildingName());
340
+        result.put("buildingId", taBuilding.getBuildingId());
339 341
         result.put("coordinate", taBuilding.getCoordinate());
340 342
         result.put("personTags",person.getPersonTags());
341 343
         result.put("posters",taPosterService.getPostersForTarget(user.getUserId().toString(),CommConstant.POSTER_CONTENT_TYPE_PERSON));

+ 1
- 1
src/main/java/com/yunzhi/marketing/statistic/controller/TaCustomerFollowUpRecordController.java Ver fichero

@@ -215,7 +215,7 @@ public class TaCustomerFollowUpRecordController extends BaseController {
215 215
             queryWrapper.eq("follower_id",person.getPersonId());
216 216
             queryWrapper.eq("org_id",orgId);
217 217
             queryWrapper.eq("customer_id",customerId);
218
-            queryWrapper.like(!StringUtils.isEmpty(recordType), "record_type","%"+recordType+"%");
218
+            queryWrapper.like(!StringUtils.isEmpty(recordType), "record_type",recordType);
219 219
             queryWrapper.orderByDesc("create_date");
220 220
             
221 221
             IPage<TaCustomerFollowUpRecord> result = iTaCustomerFollowUpRecordService.page(pg, queryWrapper);

+ 7
- 8
src/main/java/com/yunzhi/marketing/xlk/controller/CustomerInfoController.java Ver fichero

@@ -228,17 +228,16 @@ public class CustomerInfoController extends BaseController {
228 228
             lambdaQueryWrapper.eq(CustomerInfo::getCustomerId,customerId);
229 229
 
230 230
             CustomerInfo customerInfo = iCustomerInfoService.getOne(lambdaQueryWrapper);
231
+            TaRecommendCustomer customer = iTaRecommendCustomerService.getById(customerId);
232
+            if (null == customer) {
233
+                return ResponseBean.error("请求客户不存在", ResponseBean.ERROR_UNAVAILABLE);
234
+            }
231 235
             if (null == customerInfo) {
232 236
                 customerInfo = new CustomerInfo();
233
-                TaRecommendCustomer customer = iTaRecommendCustomerService.getById(customerId);
234
-                if (null == customer) {
235
-                    return ResponseBean.error("请求客户不存在", ResponseBean.ERROR_UNAVAILABLE);
236
-                }
237
-
238
-                customerInfo.setName(customer.getName());
239
-                customerInfo.setSex(customer.getSex());
240
-                customerInfo.setPhone(customer.getPhone());
241 237
             }
238
+            customerInfo.setName(customer.getName());
239
+            customerInfo.setSex(customer.getSex());
240
+            customerInfo.setPhone(customer.getPhone());
242 241
 
243 242
             responseBean.addSuccess(customerInfo);
244 243
         }catch (Exception e){

+ 5
- 0
src/main/java/com/yunzhi/marketing/xlk/entity/CustomerInfo.java Ver fichero

@@ -1,6 +1,7 @@
1 1
 package com.yunzhi.marketing.xlk.entity;
2 2
 
3 3
 import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableField;
4 5
 import com.baomidou.mybatisplus.annotation.TableId;
5 6
 import com.baomidou.mybatisplus.annotation.TableName;
6 7
 import lombok.Data;
@@ -50,21 +51,25 @@ public class CustomerInfo implements Serializable {
50 51
     /**
51 52
      * 性别
52 53
      */
54
+    @TableField(exist = false)
53 55
     private Integer sex;
54 56
 
55 57
     /**
56 58
      * 姓名
57 59
      */
60
+    @TableField(exist = false)
58 61
     private String name;
59 62
 
60 63
     /**
61 64
      * 昵称
62 65
      */
66
+    @TableField(exist = false)
63 67
     private String nickname;
64 68
 
65 69
     /**
66 70
      * 手机号码
67 71
      */
72
+    @TableField(exist = false)
68 73
     private String phone;
69 74
 
70 75
     /**

+ 4
- 2
src/main/resources/mapper/TaRecommendCustomerMapper.xml Ver fichero

@@ -1006,7 +1006,8 @@ FROM
1006 1006
             t.verify_status as channelStatus,
1007 1007
             t.recommend_person,
1008 1008
             null as channel_id,
1009
-            p.name as channelName
1009
+            p.name as channelName,
1010
+            t.create_date
1010 1011
         FROM
1011 1012
             ta_recommend_customer t
1012 1013
          left JOIN ta_person p ON t.realty_consultant = p.person_id
@@ -1030,7 +1031,8 @@ FROM
1030 1031
         t.status as channelStatus,
1031 1032
         t.recommend_person,
1032 1033
         t.channel_id,
1033
-        c.channel_name as channelName
1034
+        c.channel_name as channelName,
1035
+        t.create_date
1034 1036
         FROM
1035 1037
             xlk_channel_customer t
1036 1038
         Left join ta_channel c on t.channel_id = c.channel_id