rev:更新

This commit is contained in:
2024-07-05 09:48:10 +08:00
parent d1628efd15
commit 9a16d8be85
4 changed files with 6 additions and 8 deletions

View File

@@ -59,7 +59,7 @@ public class FIFORuleHandler extends Decisioner<StructattrVechielDto, JSONObject
, "order_by", "ABS(qty-#{plan_qty}) asc,update_time asc")
);
int finalPlan_qty = plan_qty;
vechielDtos.sort(Comparator.comparingInt(o -> (o.getQty().intValue() - finalPlan_qty)));
// vechielDtos.sort(Comparator.comparingInt(o -> (o.getQty().intValue() - finalPlan_qty)));
List<String> need = list.stream().map(StructattrVechielDto::getVehicle_code).collect(Collectors.toList());
List<StructattrVechielDto> disList = new ArrayList<>();

View File

@@ -65,7 +65,7 @@ public class GroupDickInStorageTask extends AbstractTask {
if (StringUtils.isEmpty(point_code1)){
throw new BadRequestException("申请任务失败:请求参数数据异常");
}
MdGruopDick mst = iMdGruopDickService.getOne(new QueryWrapper<MdGruopDick>().eq("vehicle_code", vehicle_code).lt("status", StatusEnum.FORM_STATUS.code("完成")));
MdGruopDick mst = iMdGruopDickService.getOne(new QueryWrapper<MdGruopDick>().eq("vehicle_code", vehicle_code).le("status", StatusEnum.FORM_STATUS.code("完成")));
if (mst == null){
throw new BadRequestException("申请任务失败:载具"+vehicle_code+"组盘信息不存在");
}