浏览代码

Merge branch 'v3.5' of http://git.ycjcjy.com/zhiyuxing/estateagents into v3.5

胡轶钦 5 年前
父节点
当前提交
c86da50e51

+ 1
- 1
src/main/java/com/huiju/estateagents/job/JudglActivityTimeJob.java 查看文件

43
     /**
43
     /**
44
      * 开启定时任务,每天12:30执行
44
      * 开启定时任务,每天12:30执行
45
      */
45
      */
46
-    @Scheduled(cron = "* 0/5 ** * * ?")
46
+    @Scheduled(cron = "* 0/5 * * * ?")
47
     private void configureTasks() {
47
     private void configureTasks() {
48
 
48
 
49
         //未开始活动更新为已开始
49
         //未开始活动更新为已开始

+ 2
- 2
src/main/java/com/huiju/estateagents/service/impl/TaShareRecordServiceImpl.java 查看文件

203
         TaShareRecord record = taShareRecordMapper.selectOne(queryWrapper);
203
         TaShareRecord record = taShareRecordMapper.selectOne(queryWrapper);
204
     
204
     
205
         if (record != null){
205
         if (record != null){
206
-            map.put("record",record);
206
+            map.put("taShareRecord",record);
207
             QueryWrapper<TaShareChildRecord> taShareChildRecordQueryWrapper = new QueryWrapper<>();
207
             QueryWrapper<TaShareChildRecord> taShareChildRecordQueryWrapper = new QueryWrapper<>();
208
             taShareChildRecordQueryWrapper.eq("group_activity_id",taShareRecord.getGroupActivityId());
208
             taShareChildRecordQueryWrapper.eq("group_activity_id",taShareRecord.getGroupActivityId());
209
             taShareChildRecordQueryWrapper.eq("org_id",orgId);
209
             taShareChildRecordQueryWrapper.eq("org_id",orgId);
231
         taShareRecord.setCreateTime(LocalDateTime.now());
231
         taShareRecord.setCreateTime(LocalDateTime.now());
232
         taShareRecord.setStatus(1);
232
         taShareRecord.setStatus(1);
233
         taShareRecordMapper.insert(taShareRecord);
233
         taShareRecordMapper.insert(taShareRecord);
234
-        map.put("record",taShareRecord);
234
+        map.put("taShareRecord",taShareRecord);
235
         map.put("shareChildRecordList",new ArrayList<>());
235
         map.put("shareChildRecordList",new ArrayList<>());
236
         return ResponseBean.success(map);
236
         return ResponseBean.success(map);
237
     }
237
     }

+ 2
- 6
src/main/resources/mapper/HelpActivityMapper.xml 查看文件

62
 			FROM
62
 			FROM
63
 				ta_help_activity a
63
 				ta_help_activity a
64
 				WHERE
64
 				WHERE
65
-                  org_id =#{orgId}
66
-                <if test="buildingId  == null ">
65
+                  a.org_id =#{orgId}
67
                   and  a.is_main = 1
66
                   and  a.is_main = 1
68
                   and  a.city_id = #{cityID}
67
                   and  a.city_id = #{cityID}
69
-                </if>
70
                 <if test="buildingId != null and buildingId != ''">
68
                 <if test="buildingId != null and buildingId != ''">
71
                   and a.building_id = #{buildingId}
69
                   and a.building_id = #{buildingId}
72
                 </if>
70
                 </if>
81
 				FROM
79
 				FROM
82
 					ta_share_activity s
80
 					ta_share_activity s
83
 					WHERE
81
 					WHERE
84
-                        org_id =#{orgId}
85
-                <if test="buildingId  == null ">
82
+                        s.org_id =#{orgId}
86
                     and  s.sort = 1
83
                     and  s.sort = 1
87
                     and  s.city_id = #{cityID}
84
                     and  s.city_id = #{cityID}
88
-                </if>
89
                 <if test="buildingId != null and buildingId != ''">
85
                 <if test="buildingId != null and buildingId != ''">
90
                     and s.building_id = #{buildingId}
86
                     and s.building_id = #{buildingId}
91
                 </if>
87
                 </if>

+ 1
- 1
src/main/resources/mapper/TaBuildingDynamicMapper.xml 查看文件

99
         update ta_building_dynamic t
99
         update ta_building_dynamic t
100
         set activity_status = 0
100
         set activity_status = 0
101
         where
101
         where
102
-        t.activity_status = 1 and NOW() between  t.create_date and  t.end_date
102
+        t.activity_status = 1 and NOW() between  t.start_date and  t.end_date
103
     </update>
103
     </update>
104
 
104
 
105
     <update id="updateProcessingActivity">
105
     <update id="updateProcessingActivity">