领料配件上传图片由员工上传改仓库上传
This commit is contained in:
parent
0f9fb58281
commit
6c86a132be
@ -498,31 +498,10 @@ public class DlTicketWaresServiceImpl extends ServiceImpl<DlTicketWaresMapper, D
|
|||||||
// 更新库存
|
// 更新库存
|
||||||
repairWaresService.updateBatchById(newWares);
|
repairWaresService.updateBatchById(newWares);
|
||||||
}
|
}
|
||||||
// /*
|
|
||||||
// 同理,通知领料的数量可能与实际需要的数量不一致,需要重新计算状态
|
|
||||||
// */
|
|
||||||
// // 先查老数据,领料才需要更新
|
|
||||||
// if (type.equals("02")) {
|
|
||||||
// List<DlTwItem> oldData = twItemService.list(new LambdaQueryWrapper<DlTwItem>().in(DlTwItem::getId, respVO.getItems().stream().map(DlTwItem::getId).collect(Collectors.toList())));
|
|
||||||
// // 构造新数据
|
|
||||||
// List<DlTwItem> newData = oldData.stream().map(item -> {
|
|
||||||
// DlTwItem dlTwItem = new DlTwItem();
|
|
||||||
// dlTwItem.setId(item.getId());
|
|
||||||
// respVO.getRepairSois().stream()
|
|
||||||
// .filter(i -> i.getGoodsId().equals(item.getWaresId()))
|
|
||||||
// .findFirst()
|
|
||||||
// .ifPresent(repairSoi -> {
|
|
||||||
// dlTwItem.setWaresCouldCount(repairSoi.getGoodsCount());
|
|
||||||
// dlTwItem.setWaresStatus(repairSoi.getGoodsCount().equals(item.getWaresCount()) ? "04" : item.getWaresStatus());
|
|
||||||
// });
|
|
||||||
// return dlTwItem;
|
|
||||||
// }).collect(Collectors.toList());
|
|
||||||
// twItemService.updateBatchById(newData);
|
|
||||||
// }
|
|
||||||
//插入记录
|
//插入记录
|
||||||
//最后记录操作日志--创建工单
|
//最后记录操作日志--创建工单
|
||||||
repairRecordsService.saveRepairRecord(respVO.getTicketId(), null, "02".equals(type) ? RecordTypeEnum.TZLL.getCode() : RecordTypeEnum.TZTL.getCode(),
|
repairRecordsService.saveRepairRecord(respVO.getTicketId(), null, "02".equals(type) ? RecordTypeEnum.TZLL.getCode() : RecordTypeEnum.TZTL.getCode(),
|
||||||
("02".equals(type) ? "通知领料" : "通知退料") + ",配件明细:" + remarkStr, null);
|
("02".equals(type) ? "通知领料" : "通知退料") + ",配件明细:" + remarkStr, respVO.getImages());
|
||||||
// 通知维修工
|
// 通知维修工
|
||||||
// 查维修工的userId
|
// 查维修工的userId
|
||||||
repairWorkerService.sentMessage(respVO.getRepairId(), type.equals("02") ? "您有新的领料单需要确认" : "您有新的退料单需要确认");
|
repairWorkerService.sentMessage(respVO.getRepairId(), type.equals("02") ? "您有新的领料单需要确认" : "您有新的退料单需要确认");
|
||||||
|
@ -33,4 +33,7 @@ public class DlTicketWaresRespVO extends DlTicketWares {
|
|||||||
|
|
||||||
/** 更新配件库子表价格 */
|
/** 更新配件库子表价格 */
|
||||||
private List<RepairWares> repairWaresList;
|
private List<RepairWares> repairWaresList;
|
||||||
|
|
||||||
|
/** 通知领料时上传的图片 */
|
||||||
|
private String images;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user