|
@@ -150,11 +150,11 @@ public class HelpActivityController extends BaseController {
|
150
|
150
|
Integer cityId = iTaBuildingService.getCityById(helpActivity.getBuildingId());
|
151
|
151
|
QueryWrapper<HelpActivity> helpActivityQueryWrapper = new QueryWrapper<>();
|
152
|
152
|
helpActivityQueryWrapper.eq("heavy", helpActivity.getHeavy());
|
153
|
|
- Integer heavyCount = taHelpActivityService.count(helpActivityQueryWrapper);
|
154
|
|
- if (heavyCount != 0){
|
155
|
|
- responseBean.addError("权重已存在,请重新编辑");
|
156
|
|
- return responseBean;
|
157
|
|
- }
|
|
153
|
+// Integer heavyCount = taHelpActivityService.count(helpActivityQueryWrapper);
|
|
154
|
+// if (heavyCount != 0){
|
|
155
|
+// responseBean.addError("权重已存在,请重新编辑");
|
|
156
|
+// return responseBean;
|
|
157
|
+// }
|
158
|
158
|
helpActivity.setCityId(cityId);
|
159
|
159
|
// 活动暂且定位为未开始
|
160
|
160
|
helpActivity.setActivityStatus(1);
|
|
@@ -201,11 +201,11 @@ public class HelpActivityController extends BaseController {
|
201
|
201
|
QueryWrapper<HelpActivity> helpActivityQueryWrapper = new QueryWrapper<>();
|
202
|
202
|
helpActivityQueryWrapper.eq("heavy", helpActivity.getHeavy());
|
203
|
203
|
helpActivityQueryWrapper.ne("help_activity_id", helpActivity.getHelpActivityId());
|
204
|
|
- Integer heavyCount = taHelpActivityService.count(helpActivityQueryWrapper);
|
205
|
|
- if (heavyCount != 0){
|
206
|
|
- responseBean.addError("权重已存在,请重新编辑");
|
207
|
|
- return responseBean;
|
208
|
|
- }
|
|
204
|
+// Integer heavyCount = taHelpActivityService.count(helpActivityQueryWrapper);
|
|
205
|
+// if (heavyCount != 0){
|
|
206
|
+// responseBean.addError("权重已存在,请重新编辑");
|
|
207
|
+// return responseBean;
|
|
208
|
+// }
|
209
|
209
|
Integer cityId = iTaBuildingService.getCityById( helpActivity.getBuildingId());
|
210
|
210
|
helpActivity.setCityId(cityId);
|
211
|
211
|
helpActivity.setHelpActivityId(helpActivity.getHelpActivityId());
|