出入库限制优化

This commit is contained in:
lsymicc
2026-06-11 10:52:10 +08:00
parent 08ceae0454
commit c9db39571c
4 changed files with 35 additions and 8 deletions

View File

@@ -545,9 +545,9 @@ public class ApiServiceImpl implements IApiService {
// 3.是否已经有正在执行的入库任务
job = new MydoJob().builder().inOrOut(STOCKIN).build();
tasks = mydoJobService.selectMydoJobList(job);
if (tasks.size() != 0) {
log.info("【警告】wms下发出库任务失败,已经存在正在执行的入库任务,请稍后重试");
return AjaxResult.error("【警告】wms下发出库任务失败,已经存在正在执行的入库任务,请稍后重试");
if (tasks.size() > 0) {
log.info("【警告】wms下发出库任务失败,已经有正在执行的入库任务,请稍后重试");
return AjaxResult.error("【警告】wms下发出库任务失败,已经有正在执行的入库任务,请稍后重试");
}
//生成出库作业