瀏覽代碼

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

张延森 3 年之前
父節點
當前提交
aee8a30bdc

+ 0
- 4
src/main/java/com/yunzhi/marketing/common/CommConstant.java 查看文件

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

+ 2
- 2
src/main/java/com/yunzhi/marketing/controller/TaPersonController.java 查看文件

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

+ 3
- 2
src/main/java/com/yunzhi/marketing/controller/TaRecommendCustomerController.java 查看文件

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

+ 2
- 2
src/main/java/com/yunzhi/marketing/xlk/controller/ChannelCustomerController.java 查看文件

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

+ 2
- 2
src/main/java/com/yunzhi/marketing/xlk/service/impl/ChannelCustomerServiceImpl.java 查看文件

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

+ 9
- 8
src/main/resources/mapper/TaRecommendCustomerMapper.xml 查看文件

944
     </select>
944
     </select>
945
     <select id="getMarkingCustList" resultType="com.yunzhi.marketing.po.TaRecommendCustomerPO">
945
     <select id="getMarkingCustList" resultType="com.yunzhi.marketing.po.TaRecommendCustomerPO">
946
         SELECT
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
             "customer" AS type
952
             "customer" AS type
953
         FROM
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
         WHERE
956
         WHERE
956
-            building_id = #{buildingId}
957
+            t.building_id = #{buildingId}
957
         <if test="keywords != null and keywords !=''">
958
         <if test="keywords != null and keywords !=''">
958
-            and name like CONCAT('%',#{keywords}, '%')
959
+            and t.name like CONCAT('%',#{keywords}, '%')
959
         </if>
960
         </if>
960
     UNION ALL
961
     UNION ALL
961
         SELECT
962
         SELECT