fix:修复bug
This commit is contained in:
@@ -5,6 +5,7 @@ import cn.dev33.satoken.annotation.SaIgnore;
|
|||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.nl.b_lms.pda.service.ProductOutTwoService;
|
import org.nl.b_lms.pda.service.ProductOutTwoService;
|
||||||
|
import org.nl.common.TableDataInfo;
|
||||||
import org.nl.modules.logging.annotation.Log;
|
import org.nl.modules.logging.annotation.Log;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
@@ -79,7 +80,7 @@ public class ProductOutTwoController {
|
|||||||
@Log("avg取货点放行")
|
@Log("avg取货点放行")
|
||||||
@SaIgnore
|
@SaIgnore
|
||||||
public ResponseEntity<Object> woodenBoxPoint(@RequestBody JSONObject whereJson) {
|
public ResponseEntity<Object> woodenBoxPoint(@RequestBody JSONObject whereJson) {
|
||||||
return new ResponseEntity<>(productOutTwoService.woodenBoxPoint(whereJson), HttpStatus.OK);
|
return new ResponseEntity<>(TableDataInfo.build(productOutTwoService.woodenBoxPoint(whereJson)), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -181,9 +181,9 @@ public class PdmBiSubpackagerelationServiceImpl extends ServiceImpl<PdmBiSubpack
|
|||||||
if (ObjectUtils.isEmpty(ivtList)) {
|
if (ObjectUtils.isEmpty(ivtList)) {
|
||||||
throw new BadRequestException("该子卷未质检或品质不符合要求,请扫码质检!");
|
throw new BadRequestException("该子卷未质检或品质不符合要求,请扫码质检!");
|
||||||
}
|
}
|
||||||
if (ivtList.stream().noneMatch(r -> r.getPoint_status().equals(PackageInfoIvtEnum.POINT_STATUS.code("待检区")))) {
|
// if (ivtList.stream().noneMatch(r -> r.getPoint_status().equals(PackageInfoIvtEnum.POINT_STATUS.code("待检区")))) {
|
||||||
throw new BadRequestException("该子卷不在待检区,请检查!");
|
// throw new BadRequestException("该子卷不在待检区,请检查!");
|
||||||
}
|
// }
|
||||||
pdmBiSubpackagerelationList = pdmBiSubpackagerelationMapper.queryContainerNameBySaleOrder(null, whereJson.get("container_name").toString());
|
pdmBiSubpackagerelationList = pdmBiSubpackagerelationMapper.queryContainerNameBySaleOrder(null, whereJson.get("container_name").toString());
|
||||||
}
|
}
|
||||||
Map<String, Long> countByGroup = pdmBiSubpackagerelationList.stream()
|
Map<String, Long> countByGroup = pdmBiSubpackagerelationList.stream()
|
||||||
@@ -345,6 +345,9 @@ public class PdmBiSubpackagerelationServiceImpl extends ServiceImpl<PdmBiSubpack
|
|||||||
throw new BadRequestException("当前木箱"+subList.get(0).getQuanlity_in_box()+"要装箱的子卷"+split.length+"未装完");
|
throw new BadRequestException("当前木箱"+subList.get(0).getQuanlity_in_box()+"要装箱的子卷"+split.length+"未装完");
|
||||||
}
|
}
|
||||||
String boxSn = subList.get(0).getPackage_box_sn();
|
String boxSn = subList.get(0).getPackage_box_sn();
|
||||||
|
//子卷到装箱区
|
||||||
|
agvTransfer(containers, deviceCode, boxSn);
|
||||||
|
|
||||||
// 查询木箱对应的托盘号
|
// 查询木箱对应的托盘号
|
||||||
JSONObject jsonVeExt = WQLObject.getWQLObject("md_pb_storagevehicleext").query("pcsn = '" + boxSn + "'")
|
JSONObject jsonVeExt = WQLObject.getWQLObject("md_pb_storagevehicleext").query("pcsn = '" + boxSn + "'")
|
||||||
.uniqueResult(0);
|
.uniqueResult(0);
|
||||||
@@ -396,8 +399,7 @@ public class PdmBiSubpackagerelationServiceImpl extends ServiceImpl<PdmBiSubpack
|
|||||||
jsonTaskParam.put("request_param", request_param.toString());
|
jsonTaskParam.put("request_param", request_param.toString());
|
||||||
TwoOutBoxTask taskBean = new TwoOutBoxTask();
|
TwoOutBoxTask taskBean = new TwoOutBoxTask();
|
||||||
taskBean.createTask(jsonTaskParam);
|
taskBean.createTask(jsonTaskParam);
|
||||||
//子卷到装箱区
|
|
||||||
agvTransfer(containers, deviceCode, boxSn);
|
|
||||||
taskBean.immediateNotifyAcs(null);
|
taskBean.immediateNotifyAcs(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -666,6 +668,7 @@ public class PdmBiSubpackagerelationServiceImpl extends ServiceImpl<PdmBiSubpack
|
|||||||
List<BstIvtPackageinfoivt> djqPoints = djqPointList.stream()
|
List<BstIvtPackageinfoivt> djqPoints = djqPointList.stream()
|
||||||
.filter(r -> containerNameList.contains(r.getContainer_name()))
|
.filter(r -> containerNameList.contains(r.getContainer_name()))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
//任务组id
|
//任务组id
|
||||||
String groupId = deviceCode.substring(deviceCode.indexOf("_") + 1, deviceCode.indexOf("_", deviceCode.indexOf("_") + 1));
|
String groupId = deviceCode.substring(deviceCode.indexOf("_") + 1, deviceCode.indexOf("_", deviceCode.indexOf("_") + 1));
|
||||||
String now = DateUtil.now();
|
String now = DateUtil.now();
|
||||||
|
|||||||
@@ -268,9 +268,6 @@ public class InBoxManageServiceImpl implements InBoxManageService {
|
|||||||
apply_jo.put("container_type", vehicle_type);
|
apply_jo.put("container_type", vehicle_type);
|
||||||
acsToWmsService.applyTwo(apply_jo);
|
acsToWmsService.applyTwo(apply_jo);
|
||||||
} else {
|
} else {
|
||||||
if (split.length>data.getIntValue("qty")){
|
|
||||||
throw new BadRequestException("当前拆叠盘托盘不足"+split.length+"个");
|
|
||||||
}
|
|
||||||
if (!data.getString("container_type").equals(vehicle_type)) {
|
if (!data.getString("container_type").equals(vehicle_type)) {
|
||||||
if (data.getString("container_type").equals("0")) {
|
if (data.getString("container_type").equals("0")) {
|
||||||
throw new BadRequestException("当前电气反馈的托盘类型为0,请检查!");
|
throw new BadRequestException("当前电气反馈的托盘类型为0,请检查!");
|
||||||
|
|||||||
Reference in New Issue
Block a user