|
|
@ -127,11 +127,8 @@ public class EquipmentLedgerController extends DafController { |
|
|
|
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
|
|
|
@ApiOperation(value = "逻辑删除", notes = "传入ids") |
|
|
|
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
|
|
|
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
|
|
|
for (String id : ids.split(",")) { |
|
|
|
for (String id : ids.split(",")) { |
|
|
|
EquipmentLedger equipmentLedger = new EquipmentLedger(); |
|
|
|
inventoryDocumentService.delInventoryDocument(Integer.parseInt(id)); |
|
|
|
equipmentLedger.setId(Integer.parseInt(id)); |
|
|
|
techParametersService.delTechParameters(Integer.parseInt(id)); |
|
|
|
EquipmentLedger detail = equipmentLedgerService.getOne(Condition.getQueryWrapper(equipmentLedger)); |
|
|
|
|
|
|
|
inventoryDocumentService.delInventoryDocument(detail.getEqLedgerCode()); |
|
|
|
|
|
|
|
techParametersService.delTechParameters(detail.getEqLedgerCode()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return R.status(equipmentLedgerService.deleteLogic(Func.toLongList(ids))); |
|
|
|
return R.status(equipmentLedgerService.deleteLogic(Func.toLongList(ids))); |
|
|
|
} |
|
|
|
} |
|
|
|