|
|
|
@ -99,8 +99,8 @@ public class MaterialTypeController { |
|
|
|
|
|
|
|
return CrudUtil.deleteHandle(integer,1); |
|
|
|
}else if (map.containsKey("ids")){ |
|
|
|
List<Integer> ids=(List<Integer>) map.get("ids"); |
|
|
|
for (Integer id : ids) { |
|
|
|
List<Object> ids=(List<Object>) map.get("ids"); |
|
|
|
for (Object id : ids) { |
|
|
|
MaterialType materialTypeById = materialTypeService.findMaterialTypeById(id); |
|
|
|
HandlesOtherFunctionalThreadPool.execute(() -> RealDeleteSonDepository(materialTypeById.getOldId().toString())); |
|
|
|
} |
|
|
|
@ -147,7 +147,7 @@ public class MaterialTypeController { |
|
|
|
@PostMapping("/materialType_del") |
|
|
|
public RestResponse deleteMaterialType(@RequestBody Map<String,Object> map){ |
|
|
|
if (map.containsKey("id")){ |
|
|
|
Integer id= ObjectFormatUtil.toInteger(map.get("id")); |
|
|
|
Object id = map.get("id"); |
|
|
|
MaterialType materialTypeById = materialTypeService.findMaterialTypeById(id); |
|
|
|
HandlesOtherFunctionalThreadPool.execute(() -> UpdateSonState(materialTypeById.getOldId().toString(),3)); |
|
|
|
|
|
|
|
@ -165,8 +165,8 @@ public class MaterialTypeController { |
|
|
|
|
|
|
|
return CrudUtil.deleteHandle(integer,1); |
|
|
|
}else if (map.containsKey("ids")){ |
|
|
|
List<Integer> ids=(List<Integer>) map.get("ids"); |
|
|
|
for (Integer id : ids) { |
|
|
|
List<Object> ids=(List<Object>) map.get("ids"); |
|
|
|
for (Object id : ids) { |
|
|
|
MaterialType materialTypeById = materialTypeService.findMaterialTypeById(id); |
|
|
|
HandlesOtherFunctionalThreadPool.execute(() -> UpdateSonState(materialTypeById.getOldId().toString(), 3)); |
|
|
|
} |
|
|
|
|