傅行帆 5 gadus atpakaļ
vecāks
revīzija
b55296cc13

+ 2
- 2
src/main/java/com/huiju/estateagents/service/impl/TaShareRecordServiceImpl.java Parādīt failu

@@ -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 Parādīt failu

@@ -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>