Commit 2d93e739 authored by 廖旭伟's avatar 廖旭伟

用户填单记录删除接口

parent f545d249
Pipeline #2992 failed with stages
...@@ -177,12 +177,14 @@ public class TerminalController extends BaseJsonBodyController { ...@@ -177,12 +177,14 @@ public class TerminalController extends BaseJsonBodyController {
} }
List<UserFillHistoryEntity> listAll = userFillHistoryService.find(query); List<UserFillHistoryEntity> listAll = userFillHistoryService.find(query);
List<Long> materialId = new ArrayList<>(); List<Long> materialId = new ArrayList<>();
List<Long> idList = new ArrayList<>();
for(UserFillHistoryEntity entity:listAll){ for(UserFillHistoryEntity entity:listAll){
if(!materialId.contains(entity.getMaterialId())){ if(!materialId.contains(entity.getMaterialId())){
materialId.add(entity.getMaterialId()); materialId.add(entity.getMaterialId());
idList.add(entity.getId());
} }
} }
query.setMaterialIdList(materialId); query.setIdList(idList);
Result<UserFillHistoryEntity> result = userFillHistoryService.find(query, pageInfo, this.getContext()); Result<UserFillHistoryEntity> result = userFillHistoryService.find(query, pageInfo, this.getContext());
model.put("data", result.getList()); model.put("data", result.getList());
model.put("pageInfo", result.getPageInfo()); model.put("pageInfo", result.getPageInfo());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment