rev:更新
This commit is contained in:
@@ -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<>();
|
||||
|
||||
@@ -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+"组盘信息不存在");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user