Quellcode durchsuchen

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

胡轶钦 vor 5 Jahren
Ursprung
Commit
c86da50e51

+ 1
- 1
src/main/java/com/huiju/estateagents/job/JudglActivityTimeJob.java Datei anzeigen

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

+ 2
- 2
src/main/java/com/huiju/estateagents/service/impl/TaShareRecordServiceImpl.java Datei anzeigen

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

+ 2
- 6
src/main/resources/mapper/HelpActivityMapper.xml Datei anzeigen

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

+ 1
- 1
src/main/resources/mapper/TaBuildingDynamicMapper.xml Datei anzeigen

@@ -99,7 +99,7 @@
99 99
         update ta_building_dynamic t
100 100
         set activity_status = 0
101 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 103
     </update>
104 104
 
105 105
     <update id="updateProcessingActivity">