Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -977,7 +977,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
|||||||
jo.put("point_code2", fhd_jo.getString("point_code"));
|
jo.put("point_code2", fhd_jo.getString("point_code"));
|
||||||
jo.put("product_area", product_area);
|
jo.put("product_area", product_area);
|
||||||
jo.put("vehicle_code", "qzz");
|
jo.put("vehicle_code", "qzz");
|
||||||
jo.put("truss_type", "1");
|
jo.put("truss_type", "8");
|
||||||
JSONObject request_param = new JSONObject();
|
JSONObject request_param = new JSONObject();
|
||||||
request_param.put("have_size", cbz_size);
|
request_param.put("have_size", cbz_size);
|
||||||
request_param.put("have_generation", cbz_generation);
|
request_param.put("have_generation", cbz_generation);
|
||||||
@@ -1220,6 +1220,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
|||||||
JSONObject request_param = new JSONObject();
|
JSONObject request_param = new JSONObject();
|
||||||
request_param.put("container_name1", hchj_jo.getString("container_name1"));
|
request_param.put("container_name1", hchj_jo.getString("container_name1"));
|
||||||
request_param.put("container_name2", hchj_jo.getString("container_name2"));
|
request_param.put("container_name2", hchj_jo.getString("container_name2"));
|
||||||
|
jo.put("request_param", request_param);
|
||||||
jo.put("vehicle_code", hchj_jo.getString("container_name1"));
|
jo.put("vehicle_code", hchj_jo.getString("container_name1"));
|
||||||
jo.put("product_area", product_area);
|
jo.put("product_area", product_area);
|
||||||
paperTrussTask.createTask(jo);
|
paperTrussTask.createTask(jo);
|
||||||
|
|||||||
@@ -620,6 +620,7 @@ public class MesToLmsServiceImpl implements MesToLmsService {
|
|||||||
if (StrUtil.equals("1", Attribute2)) {
|
if (StrUtil.equals("1", Attribute2)) {
|
||||||
//更新该子卷号对应的分切计划为已呼叫
|
//更新该子卷号对应的分切计划为已呼叫
|
||||||
plan_jo.put("is_call", "1");
|
plan_jo.put("is_call", "1");
|
||||||
|
plan_jo.put("call_time", DateUtil.now());
|
||||||
WQLObject.getWQLObject("PDM_BI_SlittingProductionPlan").update(plan_jo);
|
WQLObject.getWQLObject("PDM_BI_SlittingProductionPlan").update(plan_jo);
|
||||||
}
|
}
|
||||||
if (StrUtil.equals(is_mesTolms, "1")) {
|
if (StrUtil.equals(is_mesTolms, "1")) {
|
||||||
|
|||||||
@@ -10,12 +10,16 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
import org.nl.modules.common.exception.BadRequestException;
|
import org.nl.modules.common.exception.BadRequestException;
|
||||||
import org.nl.modules.wql.WQL;
|
import org.nl.modules.wql.WQL;
|
||||||
import org.nl.modules.wql.core.bean.WQLObject;
|
import org.nl.modules.wql.core.bean.WQLObject;
|
||||||
|
import org.nl.modules.wql.util.SpringContextHolder;
|
||||||
import org.nl.wms.ext.acs.service.WmsToAcsService;
|
import org.nl.wms.ext.acs.service.WmsToAcsService;
|
||||||
|
import org.nl.wms.pda.mps.service.CasingService;
|
||||||
import org.nl.wms.sch.tasks.CutConveyorTask;
|
import org.nl.wms.sch.tasks.CutConveyorTask;
|
||||||
import org.nl.wms.sch.tasks.PaperTubeTask;
|
import org.nl.wms.sch.tasks.PaperTubeTask;
|
||||||
import org.nl.wms.sch.tasks.URLEnum;
|
import org.nl.wms.sch.tasks.URLEnum;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Component
|
@Component
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@@ -31,6 +35,9 @@ public class AutoCallEmptyVehicle {
|
|||||||
for (URLEnum url : URLEnum.values()) {
|
for (URLEnum url : URLEnum.values()) {
|
||||||
String product_area = url.getProduct_area();
|
String product_area = url.getProduct_area();
|
||||||
JSONObject nbj_jo = WQLObject.getWQLObject("st_ivt_shaftivt").query("product_area = '" + product_area + "' AND point_type = '9'").uniqueResult(0);
|
JSONObject nbj_jo = WQLObject.getWQLObject("st_ivt_shaftivt").query("product_area = '" + product_area + "' AND point_type = '9'").uniqueResult(0);
|
||||||
|
if (ObjectUtil.isEmpty(nbj_jo)){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (nbj_jo.getString("is_used").equals("1")) {
|
if (nbj_jo.getString("is_used").equals("1")) {
|
||||||
//上半部分
|
//上半部分
|
||||||
this.callEmptyVehicle(product_area, "0");
|
this.callEmptyVehicle(product_area, "0");
|
||||||
@@ -228,8 +235,9 @@ public class AutoCallEmptyVehicle {
|
|||||||
}
|
}
|
||||||
for (int i = 0; i < rows.size(); i++) {
|
for (int i = 0; i < rows.size(); i++) {
|
||||||
JSONObject row = rows.getJSONObject(i);
|
JSONObject row = rows.getJSONObject(i);
|
||||||
row.put("is_paper_ok", "1");
|
HashMap map = new HashMap();
|
||||||
WQLObject.getWQLObject("pdm_bi_slittingproductionplan").update(row);
|
map.put("is_paper_ok", "1");
|
||||||
|
WQLObject.getWQLObject("pdm_bi_slittingproductionplan").update(map,"workorder_id = '"+row.getString("workorder_id")+"'");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -363,12 +371,22 @@ public class AutoCallEmptyVehicle {
|
|||||||
JSONObject request_param = new JSONObject();
|
JSONObject request_param = new JSONObject();
|
||||||
request_param.put("need_size", need_size);
|
request_param.put("need_size", need_size);
|
||||||
request_param.put("need_generation", need_generation);
|
request_param.put("need_generation", need_generation);
|
||||||
|
JSONArray cut_rows = new JSONArray();
|
||||||
|
String qzzno = "";
|
||||||
if (same_flag) {
|
if (same_flag) {
|
||||||
request_param.put("container_name1", rows.getJSONObject(0).getString("pcsn"));
|
request_param.put("container_name1", rows.getJSONObject(0).getString("pcsn"));
|
||||||
|
qzzno = "qzz-" + rows.getJSONObject(0).getString("pcsn");
|
||||||
|
JSONObject container_jo1 = WQLObject.getWQLObject("pdm_bi_slittingproductionplan").query("container_name = '" + rows.getJSONObject(0).getString("pcsn") + "'").uniqueResult(0);
|
||||||
|
cut_rows.add(container_jo1);
|
||||||
request_param.put("container_name2", rows.getJSONObject(0).getString("pcsn2"));
|
request_param.put("container_name2", rows.getJSONObject(0).getString("pcsn2"));
|
||||||
|
JSONObject container_jo2 = WQLObject.getWQLObject("pdm_bi_slittingproductionplan").query("container_name = '" + rows.getJSONObject(0).getString("pcsn2") + "'").uniqueResult(0);
|
||||||
|
cut_rows.add(container_jo2);
|
||||||
} else {
|
} else {
|
||||||
for (int i = 0; i < rows.size(); i++) {
|
for (int i = 0; i < rows.size(); i++) {
|
||||||
|
qzzno = "qzz-" + rows.getJSONObject(i).getString("pcsn");
|
||||||
request_param.put("container_name" + (i + 1), rows.getJSONObject(i).getString("pcsn"));
|
request_param.put("container_name" + (i + 1), rows.getJSONObject(i).getString("pcsn"));
|
||||||
|
JSONObject container_jo = WQLObject.getWQLObject("pdm_bi_slittingproductionplan").query("container_name = '" + rows.getJSONObject(i).getString("pcsn") + "'").uniqueResult(0);
|
||||||
|
cut_rows.add(container_jo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
request_param.put("need_location", cut_jo.getString("point_location"));
|
request_param.put("need_location", cut_jo.getString("point_location"));
|
||||||
@@ -376,5 +394,12 @@ public class AutoCallEmptyVehicle {
|
|||||||
jo.put("material_code", rows.getJSONObject(0).getString("pcsn"));
|
jo.put("material_code", rows.getJSONObject(0).getString("pcsn"));
|
||||||
jo.put("product_area", product_area);
|
jo.put("product_area", product_area);
|
||||||
paperTubeTask.createTask(jo);
|
paperTubeTask.createTask(jo);
|
||||||
|
|
||||||
|
//更新对应气胀轴为套轴完成
|
||||||
|
CasingService casingService = SpringContextHolder.getBean(CasingService.class);
|
||||||
|
JSONObject conrimd_jo = new JSONObject();
|
||||||
|
conrimd_jo.put("qzzno", qzzno);
|
||||||
|
conrimd_jo.put("cut_rows", cut_rows);
|
||||||
|
casingService.confirm(conrimd_jo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user