Przeglądaj źródła

Merge branch 'develop' of http://git.ycjcjy.com/marketing/services into develop

张延森 3 lat temu
rodzic
commit
aee8a30bdc

+ 0
- 4
src/main/java/com/yunzhi/marketing/common/CommConstant.java Wyświetl plik

@@ -269,10 +269,6 @@ public class CommConstant {
269 269
      * */
270 270
     public static final String ENTRY_VERIFY = "verify";
271 271
 
272
-    /**
273
-     * 渠道报备
274
-     */
275
-    public static final String ENTRY_CHANNEL_VERIFY = "channel_verify";
276 272
     //=================  客户入口类型 end =======================
277 273
 
278 274
     /**

+ 2
- 2
src/main/java/com/yunzhi/marketing/controller/TaPersonController.java Wyświetl plik

@@ -46,7 +46,7 @@ import java.util.Map;
46 46
  */
47 47
 @RestController
48 48
 @RequestMapping("/api")
49
-@Api(value = "微信用户表", tags = "xlk-微信用户表")
49
+@Api(value = "森哥看这里-微信用户表", tags = "森哥看这里-xlk-微信用户表")
50 50
 public class TaPersonController extends BaseController {
51 51
     @Autowired
52 52
     ITaPersonService taPersonService;
@@ -385,7 +385,7 @@ public class TaPersonController extends BaseController {
385 385
      * 成为驻场顾问
386 386
      *
387 387
      */
388
-    @ApiOperation(value = "wx-成为驻场顾问", notes = "admin-成为驻场顾问")
388
+    @ApiOperation(value = "森哥看这里-wx-成为驻场顾问", notes = "森哥看这里-wx-成为驻场顾问")
389 389
     @PostMapping("/wx/marketing")
390 390
     public ResponseBean marketing(@RequestBody PersonMarketingDTO marketingDTO, HttpServletRequest request) {
391 391
         // 当前人员

+ 3
- 2
src/main/java/com/yunzhi/marketing/controller/TaRecommendCustomerController.java Wyświetl plik

@@ -52,7 +52,7 @@ import java.util.List;
52 52
  */
53 53
 @RestController
54 54
 @RequestMapping("/api")
55
-@Api(value = "xlk - 项目类型", tags = "xlk - 项目类型")
55
+@Api(value = "森哥看这里-xlk - 项目类型", tags = "森哥看这里-xlk - 项目类型")
56 56
 public class TaRecommendCustomerController extends BaseController {
57 57
 
58 58
     @Autowired
@@ -92,7 +92,7 @@ public class TaRecommendCustomerController extends BaseController {
92 92
      * @return
93 93
      */
94 94
     @GetMapping("/wx/marking/customers")
95
-    @ApiOperation(value = "wx-查询驻场的客户列表", notes = "wx-查询驻场的客户列表")
95
+    @ApiOperation(value = "森哥看这里-wx-查询驻场的客户列表", notes = "森哥看这里-wx-查询驻场的客户列表")
96 96
     @ApiImplicitParams({
97 97
             @ApiImplicitParam(dataTypeClass = Integer.class, name = "pageNumber", paramType = "query", value = "第几页"),
98 98
             @ApiImplicitParam(dataTypeClass = Integer.class, name = "pageSize", paramType = "query", value = "一页多少行"),
@@ -227,6 +227,7 @@ public class TaRecommendCustomerController extends BaseController {
227 227
      * @return
228 228
      */
229 229
     @PostMapping("/wx/channel/report")
230
+    @ApiOperation(value = "森哥看这里-wx-渠道顾问报备客户", notes = "森哥看这里-wx-渠道顾问报备客户")
230 231
     public ResponseBean channelReportCust(@RequestBody ChannelReportDTO channelReportDTO, HttpServletRequest request) throws Exception {
231 232
         String openid = getOpenId(request);
232 233
         Integer orgId = getOrgId(request);

+ 2
- 2
src/main/java/com/yunzhi/marketing/xlk/controller/ChannelCustomerController.java Wyświetl plik

@@ -27,7 +27,7 @@ import org.springframework.web.bind.annotation.*;
27 27
  */
28 28
 @RestController
29 29
 @RequestMapping("/api")
30
-@Api(value = "渠道报备客户表", tags = "xlk-渠道报备客户表")
30
+@Api(value = "森哥看这里-渠道报备客户表", tags = "森哥看这里-xlk-渠道报备客户表")
31 31
 public class ChannelCustomerController extends BaseController {
32 32
 
33 33
     private final Logger logger = LoggerFactory.getLogger(ChannelCustomerController.class);
@@ -84,7 +84,7 @@ public class ChannelCustomerController extends BaseController {
84 84
      * @param
85 85
      * @return
86 86
      */
87
-    @ApiOperation(value = "wx-驻场确认到访", notes = "wx-驻场确认到访")
87
+    @ApiOperation(value = "森哥看这里-wx-驻场确认到访", notes = "森哥看这里-wx-驻场确认到访")
88 88
     @RequestMapping(value="/wx/marking/channelCustomer",method= RequestMethod.PUT)
89 89
     public ResponseBean channelCustomerUpdate(@RequestBody MarkingChannelCustomerDTO params){
90 90
         return iChannelCustomerService.markingChannelCustomer(params);

+ 2
- 2
src/main/java/com/yunzhi/marketing/xlk/service/impl/ChannelCustomerServiceImpl.java Wyświetl plik

@@ -74,7 +74,7 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
74 74
             taRecommendCustomer.setReportDate(LocalDateTime.now());
75 75
             taRecommendCustomer.setOrgId(customer.getOrgId());
76 76
             taRecommendCustomer.setPersonId(customer.getPersonId());
77
-            taRecommendCustomer.setEntryType(CommConstant.ENTRY_CHANNEL_VERIFY);
77
+            taRecommendCustomer.setEntryType(CommConstant.ENTRY_VERIFY);
78 78
             taRecommendCustomer.setStatus(CommConstant.CUSTOMER_REPORT);
79 79
             taRecommendCustomerMapper.insert(taRecommendCustomer);
80 80
             return ResponseBean.success("审核成功");
@@ -126,7 +126,7 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
126 126
                 taRecommendCustomer.setReportDate(LocalDateTime.now());
127 127
                 taRecommendCustomer.setOrgId(customer.getOrgId());
128 128
                 taRecommendCustomer.setPersonId(customer.getPersonId());
129
-                taRecommendCustomer.setEntryType(CommConstant.ENTRY_CHANNEL_VERIFY);
129
+                taRecommendCustomer.setEntryType(CommConstant.ENTRY_VERIFY);
130 130
                 taRecommendCustomer.setStatus(CommConstant.CUSTOMER_VISITE);
131 131
                 taRecommendCustomerMapper.insert(taRecommendCustomer);
132 132
                 return ResponseBean.success("审核成功");

+ 9
- 8
src/main/resources/mapper/TaRecommendCustomerMapper.xml Wyświetl plik

@@ -944,18 +944,19 @@ FROM
944 944
     </select>
945 945
     <select id="getMarkingCustList" resultType="com.yunzhi.marketing.po.TaRecommendCustomerPO">
946 946
         SELECT
947
-            customer_id AS id,
948
-            name,
949
-            phone,
950
-            picture,
951
-            sex,
947
+            t.customer_id AS id,
948
+            t.NAME,
949
+            t.phone,
950
+            t.picture,
951
+            t.sex,
952 952
             "customer" AS type
953 953
         FROM
954
-            ta_recommend_customer
954
+            ta_recommend_customer t
955
+        INNER JOIN ta_person p ON t.recommend_person = p.person_id
955 956
         WHERE
956
-            building_id = #{buildingId}
957
+            t.building_id = #{buildingId}
957 958
         <if test="keywords != null and keywords !=''">
958
-            and name like CONCAT('%',#{keywords}, '%')
959
+            and t.name like CONCAT('%',#{keywords}, '%')
959 960
         </if>
960 961
     UNION ALL
961 962
         SELECT