代码更新:

1. 站台数量修正代码
This commit is contained in:
梁州 2024-12-03 08:41:42 +08:00
parent baa94e47ea
commit ca6b2fd716
2 changed files with 5 additions and 2 deletions

View File

@ -1889,6 +1889,7 @@ public class TaskController {
String lockMessage; String lockMessage;
if (standService.update(new LambdaUpdateWrapper<Stand>() if (standService.update(new LambdaUpdateWrapper<Stand>()
.set(Stand::getStandStatus, 1) .set(Stand::getStandStatus, 1)
.set(Stand::getPickVehicleCount, 0)
.eq(Stand::getStandId, standId))) { .eq(Stand::getStandId, standId))) {
lockMessage = "锁定站台成功,整理完大盒子请点击整理结束按钮解锁。"; lockMessage = "锁定站台成功,整理完大盒子请点击整理结束按钮解锁。";
} else { } else {

View File

@ -192,6 +192,7 @@ public class WmsTaskServiceImplements implements IWmsTaskService {
} }
return ""; return "";
} }
/** /**
* 生成物料出库任务 * 生成物料出库任务
* *
@ -601,7 +602,8 @@ public class WmsTaskServiceImplements implements IWmsTaskService {
pickTaskService.saveOrUpdateBatch(pickTaskMap.values()); pickTaskService.saveOrUpdateBatch(pickTaskMap.values());
// 更新站台的拣选数量 // 更新站台的拣选数量
standService.update(new LambdaUpdateWrapper<Stand>() standService.update(new LambdaUpdateWrapper<Stand>()
.setSql("pick_vehicle_count = pick_vehicle_count + " + addNum) .setIncrBy(Stand::getPickVehicleCount, addNum)
// .setSql("pick_vehicle_count = pick_vehicle_count + " + addNum)
.eq(Stand::getStandId, workStation)); .eq(Stand::getStandId, workStation));
} }
} }