|
@@ -134,18 +134,18 @@ public class ZAreaController extends BaseController {
|
|
|
@DeleteMapping("/{ids}")
|
|
|
public R remove(@NotEmpty(message = "主键不能为空") @PathVariable String[] ids) {
|
|
|
//是否需要校验
|
|
|
- int i = buildingService.getBuildingListByAreaId(Arrays.asList(ids));
|
|
|
- if (i>0){
|
|
|
- return R.fail("小区已关联楼栋不能删除!");
|
|
|
- }
|
|
|
-// int j = civilService.getCivilByAreaId(Arrays.asList(ids));
|
|
|
-// if (j>0){
|
|
|
-// return R.fail("小区已关联民用工程不能删除!");
|
|
|
+// int i = buildingService.getBuildingListByAreaId(Arrays.asList(ids));
|
|
|
+// if (i>0){
|
|
|
+// return R.fail("小区已关联楼栋不能删除!");
|
|
|
+// }
|
|
|
+//// int j = civilService.getCivilByAreaId(Arrays.asList(ids));
|
|
|
+//// if (j>0){
|
|
|
+//// return R.fail("小区已关联民用工程不能删除!");
|
|
|
+//// }
|
|
|
+// int k = materialsResetsService.getMaterialByAreaId(Arrays.asList(ids));
|
|
|
+// if (k>0){
|
|
|
+// return R.fail("小区已关联用料统计不能删除!");
|
|
|
// }
|
|
|
- int k = materialsResetsService.getMaterialByAreaId(Arrays.asList(ids));
|
|
|
- if (k>0){
|
|
|
- return R.fail("小区已关联用料统计不能删除!");
|
|
|
- }
|
|
|
return toAjax(iZAreaService.deleteWithValidByIds(Arrays.asList(ids), true));
|
|
|
}
|
|
|
|