联调fix
This commit is contained in:
@@ -95,7 +95,7 @@ public class MesController {
|
||||
List<QPMES098ResponseBody> qpmes098ResponseBodyArrayList=new ArrayList<>();
|
||||
PdmBdWorkorder entity = new PdmBdWorkorder();
|
||||
if("1".equals(qpmes098Request.getBODY().get(0).getZSTAT())) {
|
||||
entity.setExt_data(qpmes098Request.toString());
|
||||
entity.setExt_data(JSONObject.toJSONString(qpmes098Request));
|
||||
entity.setWorkorder_code(qpmes098Request.getBODY().get(0).getAUFNR());
|
||||
entity.setPlan_qty(new BigDecimal((qpmes098Request.getBODY().get(0).getGAMNG())));
|
||||
entity.setMaterial_id(qpmes098Request.getBODY().get(0).getPLNBEZ());
|
||||
|
||||
@@ -109,7 +109,7 @@ public class KJRKTask extends AbstractTask {
|
||||
*/
|
||||
private SchBasePoint findNextPoint() {
|
||||
String regionCode = "YL";
|
||||
List<SchBasePoint> schBasePointList = pointMapper.findPointByRegion(regionCode, "2");
|
||||
List<SchBasePoint> schBasePointList = pointMapper.findPointByRegion(regionCode, "0");
|
||||
for (SchBasePoint schBasePoint : schBasePointList) {
|
||||
if ("2".equals(schBasePoint.getPoint_status())
|
||||
&& schBasePoint.getVehicle_qty() ==0) {
|
||||
|
||||
@@ -109,10 +109,9 @@ public class SSXBKJTask extends AbstractTask {
|
||||
*/
|
||||
private SchBasePoint findNextPoint() {
|
||||
String regionCode = "YL";
|
||||
List<SchBasePoint> schBasePointList = pointMapper.findPointByRegion(regionCode, "2");
|
||||
List<SchBasePoint> schBasePointList = pointMapper.findPointByRegion(regionCode, "0");
|
||||
for (SchBasePoint schBasePoint : schBasePointList) {
|
||||
if ("2".equals(schBasePoint.getPoint_status())
|
||||
&& schBasePoint.getVehicle_qty() ==0) {
|
||||
if (schBasePoint.getVehicle_qty() ==1) {
|
||||
log.info("原材料入库找到当前符合条件的点位{}", schBasePoint.getPoint_code());
|
||||
return schBasePoint;
|
||||
}
|
||||
|
||||
@@ -157,6 +157,10 @@ public class YCLCKTask extends AbstractTask {
|
||||
if (taskObj.getTask_status().equals(TaskStatus.CANCELED.getCode())) {
|
||||
throw new BadRequestException("该任务已取消!");
|
||||
}
|
||||
// 获取参数
|
||||
JSONObject extGroupData = ObjectUtil.isNotEmpty(taskObj.getExt_group_data())
|
||||
? JSONObject.parseObject(taskObj.getExt_group_data())
|
||||
: null;
|
||||
String startPoint = taskObj.getPoint_code1(); // 获取起点
|
||||
String endPoint = taskObj.getPoint_code2(); // 获取终点
|
||||
SchBasePoint startPointObj = pointService.getById(startPoint);
|
||||
@@ -228,8 +232,6 @@ public class YCLCKTask extends AbstractTask {
|
||||
.eq(Material::getPalletSN, taskObj.getVehicle_code2())
|
||||
.eq(Material::getGroup_bind_material_status, GroupBindMaterialStatusEnum.BOUND.getValue()));
|
||||
if (ObjectUtil.isNotEmpty(materialList)) {
|
||||
PdmBdWorkorder pdmBdWorkorder=workorderService.getOne(new LambdaQueryWrapper<PdmBdWorkorder>()
|
||||
.eq(PdmBdWorkorder::getMaterial_id, materialList.get(0).getProductName()));
|
||||
String url = "http://192.168.9.5/sitAppWebApi/PDSToWMS/Api/QPMES065";
|
||||
QPMES065Request qpmes065Request = new QPMES065Request();
|
||||
List<QPMES065RequestBody> qpmes065RequestBodyList=new ArrayList<>();
|
||||
@@ -241,11 +243,11 @@ public class YCLCKTask extends AbstractTask {
|
||||
qpmes065Request.setHEAD(head);
|
||||
for(Material material:materialList) {
|
||||
QPMES065RequestBody qpmes065RequestBody=new QPMES065RequestBody();
|
||||
qpmes065RequestBody.setMoname(pdmBdWorkorder!=null?pdmBdWorkorder.getWorkorder_code():null);
|
||||
qpmes065RequestBody.setMoname(extGroupData.getString("workorder_code"));
|
||||
qpmes065RequestBody.setLotSN(material.getPalletSN());
|
||||
qpmes065RequestBody.setQty(String.valueOf(one.getMaterial_qty()));
|
||||
qpmes065RequestBody.setSiteName(material.getLocationCode());
|
||||
qpmes065RequestBody.setZXXV01(pdmBdWorkorder!=null?"1":"0");
|
||||
qpmes065RequestBody.setZXXV01(extGroupData.getString("workorder_code")!=null?"1":"0");
|
||||
qpmes065RequestBodyList.add(qpmes065RequestBody);
|
||||
}
|
||||
qpmes065Request.setBODY(qpmes065RequestBodyList);
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
<el-input v-model="form.material_name" style="width: 240px;" @focus="getMaterial" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物料编码">
|
||||
<el-input v-model="form.material_code" style="width: 240px;" disabled />
|
||||
<el-input v-model="form.material_id" style="width: 240px;" disabled />
|
||||
</el-form-item>
|
||||
<el-form-item label="物料规格">
|
||||
<el-input v-model="form.material_spec" style="width: 240px;" disabled />
|
||||
|
||||
Reference in New Issue
Block a user