Explorar el Código

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

# Conflicts:
#	src/main/java/com/yunzhi/marketing/xlk/entity/SearchHouse.java
傅行帆 hace 3 años
padre
commit
09d9ae2055

+ 4
- 4
src/main/java/com/yunzhi/marketing/controller/TaBuildingDynamicController.java Ver fichero

@@ -397,16 +397,16 @@ public class TaBuildingDynamicController extends BaseController {
397 397
         }
398 398
         TaBuildingDynamic buildingDynamic = iBuildingDynamicService.getById(taActivityDynamicEnlist.getDynamicId());
399 399
         // TODO 看代码里面是 is_enlist = 1 才是允许报名
400
-        if (buildingDynamic.getIsEnlist().intValue() != 1) {
400
+        if (buildingDynamic.getIsEnlist() != 1) {
401 401
             return ResponseBean.error("活动不允许报名", ResponseBean.ERROR_UNAVAILABLE);
402 402
         }
403 403
 
404 404
         // 携带的报名人数(是已经包括自己了),不能超过活动总人数
405 405
 
406 406
         // 检验 个人最大报名人数
407
-        if (taActivityDynamicEnlist.getAttendNum() > buildingDynamic.getMaxEnlistByPerson().intValue()) {
408
-            return ResponseBean.error("报名失败,超过活动报名的个人最大报名人数!", ResponseBean.ERROR_UNAVAILABLE);
409
-        }
407
+//        if (taActivityDynamicEnlist.getAttendNum() > buildingDynamic.getMaxEnlistByPerson().intValue()) {
408
+//            return ResponseBean.error("报名失败,超过活动报名的个人最大报名人数!", ResponseBean.ERROR_UNAVAILABLE);
409
+//        }
410 410
 
411 411
         // 当前活动已报名的总人数
412 412
         Integer enlistCount = taActivityDynamicEnlistMapper.selectEnlistCount(taActivityDynamicEnlist.getDynamicId(), orgId);

+ 24
- 24
src/main/java/com/yunzhi/marketing/job/JudglActivityTimeJob.java Ver fichero

@@ -54,7 +54,7 @@ public class JudglActivityTimeJob extends BaseController {
54 54
     /**
55 55
      * 开启定时任务,每天12:30执行
56 56
      */
57
-//    @Scheduled(cron = "* 0/5 * * * ?")
57
+    @Scheduled(cron = "* 0/1 * * * ?")
58 58
     private void configureTasks() {
59 59
         String time = DateUtils.cutSecond(LocalDateTime.now());
60 60
 
@@ -65,29 +65,29 @@ public class JudglActivityTimeJob extends BaseController {
65 65
         //进行中活动更新为已结束
66 66
         iTaBuildingDynamicService.updateProcessingActivity();
67 67
 
68
-        //判断拼团活动是否开始
69
-        iTaShareActivityService.updateActivityToUnStart();
70
-        //未开始拼团活动更新为已开始
71
-        iTaShareActivityService.updateUnStartGroupActivity();
72
-        //进行中拼团活动更新为已结束
73
-        iTaShareActivityService.updateProcessingGroupActivity();
74
-
75
-        //更新拼团者和参团者数据为已结束
76
-        iTaShareRecordService.updateActivityProcessToEnd();
77
-        iTaShareChildRecordService.updateActivityProcessToEnd();
78
-
79
-        //判断助力活动是否开始
80
-        iHelpActivityService.updateActivityToUnStart();
81
-        //未开始助力活动更新为已开始
82
-        iHelpActivityService.updateUnStartHelpActivity();
83
-        //进行中助力活动更新为已结束
84
-        iHelpActivityService.updateProcessingHelpActivity();
85
-
86
-        //更新助力者和发起者数据为已结束
87
-        iHelpInitiateRecordService.updateHelpActivityProcessToEnd();
88
-
89
-        //更新H5活动状态为已结束
90
-        iTaDrainageService.updateDrainageToEnd();
68
+//        //判断拼团活动是否开始
69
+//        iTaShareActivityService.updateActivityToUnStart();
70
+//        //未开始拼团活动更新为已开始
71
+//        iTaShareActivityService.updateUnStartGroupActivity();
72
+//        //进行中拼团活动更新为已结束
73
+//        iTaShareActivityService.updateProcessingGroupActivity();
74
+//
75
+//        //更新拼团者和参团者数据为已结束
76
+//        iTaShareRecordService.updateActivityProcessToEnd();
77
+//        iTaShareChildRecordService.updateActivityProcessToEnd();
78
+//
79
+//        //判断助力活动是否开始
80
+//        iHelpActivityService.updateActivityToUnStart();
81
+//        //未开始助力活动更新为已开始
82
+//        iHelpActivityService.updateUnStartHelpActivity();
83
+//        //进行中助力活动更新为已结束
84
+//        iHelpActivityService.updateProcessingHelpActivity();
85
+//
86
+//        //更新助力者和发起者数据为已结束
87
+//        iHelpInitiateRecordService.updateHelpActivityProcessToEnd();
88
+//
89
+//        //更新H5活动状态为已结束
90
+//        iTaDrainageService.updateDrainageToEnd();
91 91
     }
92 92
 
93 93
 }

+ 7
- 1
src/main/java/com/yunzhi/marketing/xlk/controller/SearchHouseController.java Ver fichero

@@ -70,12 +70,18 @@ public class SearchHouseController extends BaseController {
70 70
     public ResponseBean searchHouseList(@RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
71 71
                                         @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
72 72
                                         @RequestParam(value ="type") Integer type,
73
+                                        @RequestParam(value ="name", required = false) String name,
74
+                                        @RequestParam(value ="phone", required = false) String phone,
75
+                                        @RequestParam(value ="status", required = false) String status,
73 76
                                         @RequestHeader("authorization") String token, HttpServletRequest request){
74 77
         ResponseBean responseBean = new ResponseBean();
75 78
         try {
76
-            SearchHouse searchHouse = new SearchHouse();
79
+            SearchHouseVO searchHouse = new SearchHouseVO();
77 80
             searchHouse.setOrgId(getOrgId(request));
78 81
             searchHouse.setType(type);
82
+            searchHouse.setNickname(name);
83
+            searchHouse.setPhone(phone);
84
+            searchHouse.setStatus(status);
79 85
             //使用分页插件
80 86
             IPage<SearchHouseVO> pg = new Page<>(pageNum, pageSize);
81 87
             responseBean = iSearchHouseService.selectSearchHouseList(pg,searchHouse);

+ 0
- 4
src/main/java/com/yunzhi/marketing/xlk/entity/SearchHouse.java Ver fichero

@@ -98,8 +98,4 @@ public class SearchHouse implements Serializable {
98 98
      */
99 99
     private String remark;
100 100
 
101
-    /**
102
-     * 问卷json字符串
103
-     */
104
-    private String questionnaire;
105 101
 }

+ 1
- 1
src/main/java/com/yunzhi/marketing/xlk/mapper/SearchHouseMapper.java Ver fichero

@@ -18,7 +18,7 @@ import org.apache.ibatis.annotations.Param;
18 18
 @Mapper
19 19
 public interface SearchHouseMapper extends BaseMapper<SearchHouse> {
20 20
 
21
-    IPage<SearchHouseVO> selectSearchHouseList(IPage<SearchHouseVO> pg,@Param("params") SearchHouse searchHouse);
21
+    IPage<SearchHouseVO> selectSearchHouseList(IPage<SearchHouseVO> pg,@Param("params") SearchHouseVO searchHouse);
22 22
 
23 23
     SearchHouseVO selectSearchHouseDetail(String id);
24 24
 }

+ 1
- 1
src/main/java/com/yunzhi/marketing/xlk/service/ISearchHouseService.java Ver fichero

@@ -23,7 +23,7 @@ public interface ISearchHouseService extends IService<SearchHouse> {
23 23
      * @param searchHouse
24 24
      * @return
25 25
      */
26
-    ResponseBean selectSearchHouseList(IPage<SearchHouseVO> pg, SearchHouse searchHouse);
26
+    ResponseBean selectSearchHouseList(IPage<SearchHouseVO> pg, SearchHouseVO searchHouse);
27 27
 
28 28
     SearchHouseVO selectSearchHouseDetail(String id);
29 29
 }

+ 1
- 1
src/main/java/com/yunzhi/marketing/xlk/service/impl/SearchHouseServiceImpl.java Ver fichero

@@ -34,7 +34,7 @@ public class SearchHouseServiceImpl extends ServiceImpl<SearchHouseMapper, Searc
34 34
      * @return
35 35
      */
36 36
     @Override
37
-    public ResponseBean selectSearchHouseList(IPage<SearchHouseVO> pg, SearchHouse searchHouse) {
37
+    public ResponseBean selectSearchHouseList(IPage<SearchHouseVO> pg, SearchHouseVO searchHouse) {
38 38
         IPage<SearchHouseVO> result = searchHouseMapper.selectSearchHouseList(pg,searchHouse);
39 39
         return ResponseBean.success(result);
40 40
     }

+ 9
- 0
src/main/resources/mapper/xlk/SearchHouseMapper.xml Ver fichero

@@ -14,6 +14,15 @@
14 14
             LEFT JOIN ta_person p ON t.person_id = p.person_id
15 15
             WHERE t.ORG_ID = #{params.orgId}
16 16
                 and t.type = #{params.type}
17
+        <if test="params.nickname != null and params.nickname != ''">
18
+            and p.nickname like concat('%', #{params.nickname}, '%')
19
+        </if>
20
+        <if test="params.phone != null and params.phone != ''">
21
+            and p.phone like concat('%', #{phone}, '%')
22
+        </if>
23
+        <if test="params.status != null and params.status != ''">
24
+            and t.status = #{params.status}
25
+        </if>
17 26
     </select>
18 27
     <select id="selectSearchHouseDetail" resultType="com.yunzhi.marketing.xlk.vo.SearchHouseVO">
19 28
         SELECT