add:语音出库拆箱载具通知人工处理
This commit is contained in:
@@ -294,6 +294,17 @@ public class VoiceCallbackService {
|
||||
.append(dis.getPlan_qty().stripTrailingZeros().toPlainString()).append(dis.getQty_unit_name())
|
||||
.append(dis.getMaterial_name()).append("任务下发成功;");
|
||||
}
|
||||
//查询拆箱出库的载具记录
|
||||
List<String> vehicleCodes = disList.stream().map(IOStorInvDisDto::getStoragevehicle_code).collect(Collectors.toList());
|
||||
List<GroupPlate> groupPlates = iMdPbGroupplateService.list(new LambdaQueryWrapper<GroupPlate>()
|
||||
.in(GroupPlate::getStoragevehicle_code, vehicleCodes)
|
||||
.eq(GroupPlate::getMaterial_id, meMaterialbase.getMaterial_id())
|
||||
.eq(GroupPlate::getStatus, GROUP_PLATE_STATUS.code("入库")));
|
||||
String needManualIVehicleCodes = groupPlates.stream()
|
||||
.filter(groupPlate -> groupPlate.getFrozen_qty().compareTo(groupPlate.getQty()) < 0)
|
||||
.map(GroupPlate::getStoragevehicle_code)
|
||||
.collect(Collectors.joining(","));
|
||||
result.append("请人工处理以下拆箱出库载具:").append(needManualIVehicleCodes).append(";");
|
||||
JSONObject resultJson = new JSONObject();
|
||||
resultJson.put("result", result.toString());
|
||||
return resultJson;
|
||||
|
||||
Reference in New Issue
Block a user