产线入库调试修改
This commit is contained in:
@@ -22,4 +22,6 @@ public class WmsJobRequest {
|
||||
private String positionCode1;
|
||||
//终点
|
||||
private String positionCode2;
|
||||
//任务id
|
||||
private String jobId;
|
||||
}
|
||||
|
||||
@@ -264,6 +264,7 @@ public class ToWmsServiceImpl implements IToWmsService {
|
||||
result.put("cargoSpaceId", mydoJob.getCargoSpaceId());
|
||||
result.put("roadwayId", mydoJob.getRoadwayId());
|
||||
result.put("entranceId", mydoJob.getEntranceId());
|
||||
result.put("inOrOut", mydoJob.getInOrOut());
|
||||
return AjaxResult.success(result);
|
||||
}
|
||||
|
||||
@@ -287,7 +288,7 @@ public class ToWmsServiceImpl implements IToWmsService {
|
||||
String width = basProduct.getSpare37();
|
||||
String height = basProduct.getSpare38();
|
||||
String volume = basProduct.getSpare39();
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -334,18 +335,19 @@ public class ToWmsServiceImpl implements IToWmsService {
|
||||
MydoJob mydoJobParam = new MydoJob();
|
||||
switch (wmsJobRequest.getWmsType()) {
|
||||
case "1":
|
||||
if (StrUtil.isEmpty(wmsJobRequest.getTrayCode())) {
|
||||
return AjaxResult.error(MessageUtils.message("error.message1"));
|
||||
}
|
||||
|
||||
if (StrUtil.isEmpty(wmsJobRequest.getTaskNo())) {
|
||||
return AjaxResult.error(MessageUtils.message("error.message2"));
|
||||
return AjaxResult.error("任务号不能为空");
|
||||
}
|
||||
if (StrUtil.isEmpty(wmsJobRequest.getJobId())) {
|
||||
return AjaxResult.error("任务Id不能为空");
|
||||
}
|
||||
//入库
|
||||
mydoJobParam.setTaskNo(wmsJobRequest.getTaskNo());
|
||||
mydoJobParam.setTrayCode(wmsJobRequest.getTrayCode());
|
||||
mydoJobParam.setJobId(wmsJobRequest.getJobId());
|
||||
List<MydoJob> inMydoJobs = mydoJobService.selectMydoJobListApi(mydoJobParam);
|
||||
if (inMydoJobs.isEmpty()) {
|
||||
return AjaxResult.error(MessageUtils.message("warn.message"));
|
||||
return AjaxResult.error("任务不存在");
|
||||
}
|
||||
MydoJob inMydoJob = inMydoJobs.get(0);
|
||||
mydoJobService.manualCompleted(inMydoJob, 1);
|
||||
|
||||
Reference in New Issue
Block a user