opt:只显示存在点位的子卷信息
This commit is contained in:
@@ -1905,7 +1905,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
|||||||
// 6-退货入库
|
// 6-退货入库
|
||||||
whereJson.put("bill_type", IOSEnum.IN_TYPE.code("退货入库"));
|
whereJson.put("bill_type", IOSEnum.IN_TYPE.code("退货入库"));
|
||||||
whereJson.put("box_no", whereJson.getString("material_barcode"));
|
whereJson.put("box_no", whereJson.getString("material_barcode"));
|
||||||
JSONArray resultJSONArray = WQLObject.getWQLObject("pdm_bi_subpackagerelation").query("package_box_sn = '" + whereJson.getString("material_barcode") + "' AND status in ('0','1')").getResultJSONArray(0);
|
JSONArray resultJSONArray = WQLObject.getWQLObject("pdm_bi_subpackagerelation").query("package_box_sn = '" + whereJson.getString("material_barcode") + "' AND status in ('0','1','99')").getResultJSONArray(0);
|
||||||
if (ObjectUtil.isEmpty(resultJSONArray)) {
|
if (ObjectUtil.isEmpty(resultJSONArray)) {
|
||||||
throw new BadRequestException("未查询到子卷包装信息!");
|
throw new BadRequestException("未查询到子卷包装信息!");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ public class AcsUtil {
|
|||||||
throw new BadRequestException("未查询到区域对应的acs地址!");
|
throw new BadRequestException("未查询到区域对应的acs地址!");
|
||||||
}
|
}
|
||||||
String url =acs_url + api;
|
String url =acs_url + api;
|
||||||
|
//String url ="10.1.3.96:8011/"+ api;
|
||||||
|
//String url ="10.21.1.196:8011/"+ api;
|
||||||
try {
|
try {
|
||||||
JSONArray rows = new JSONArray();
|
JSONArray rows = new JSONArray();
|
||||||
rows.add(jo);
|
rows.add(jo);
|
||||||
@@ -117,7 +119,9 @@ public class AcsUtil {
|
|||||||
throw new BadRequestException("未查询到区域对应的acs地址!");
|
throw new BadRequestException("未查询到区域对应的acs地址!");
|
||||||
}
|
}
|
||||||
|
|
||||||
String url = acs_url + api;
|
//String url = acs_url + api;
|
||||||
|
//String url ="10.1.3.96:8011/"+ api;
|
||||||
|
String url ="10.21.1.196:8011/"+ api;
|
||||||
try {
|
try {
|
||||||
String resultMsg = HttpRequest.post(url)
|
String resultMsg = HttpRequest.post(url)
|
||||||
.body(String.valueOf(list))
|
.body(String.valueOf(list))
|
||||||
|
|||||||
@@ -108,12 +108,13 @@ public abstract class AbstractAcsTask {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public JSONObject immediateNotifyAcs(String task_id) {
|
public JSONObject immediateNotifyAcs(String task_id) {
|
||||||
List<AcsTaskDto> taskList = this.schedule();
|
List<AcsTaskDto> taskList = this.schedule();
|
||||||
if (ObjectUtil.isNotEmpty(taskList)) {
|
if (ObjectUtil.isNotEmpty(taskList)) {
|
||||||
JSONArray arr = JSONArray.parseArray(JSON.toJSONString(taskList));
|
JSONArray arr = JSONArray.parseArray(JSON.toJSONString(taskList));
|
||||||
return AcsUtil.notifyAcs("api/wms/task", arr);
|
return AcsUtil.notifyAcs("api/wms/task", arr);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user