|
|
|
@ -198,8 +198,7 @@ public class ToolInventoryRecordController extends DafController { |
|
|
|
|
public R approve(Integer status, String ids) { |
|
|
|
|
List<ToolInventoryRecord> list = new ArrayList<>(); |
|
|
|
|
for (String id : ids.split(",")) { |
|
|
|
|
ToolInventoryRecord toolInventoryRecord = new ToolInventoryRecord(); |
|
|
|
|
toolInventoryRecord.setId(Long.parseLong(id)); |
|
|
|
|
ToolInventoryRecord toolInventoryRecord = toolInventoryRecordService.getById(Long.parseLong(id)); |
|
|
|
|
toolInventoryRecord.setCheckStatus(status); |
|
|
|
|
list.add(toolInventoryRecord); |
|
|
|
|
} |
|
|
|
|