代码更新
This commit is contained in:
@@ -9,6 +9,7 @@ import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import org.nl.exception.BadRequestException;
|
||||
import org.nl.ext.lk.service.WmsToLkService;
|
||||
import org.nl.wms.lk.service.LibraryqueryService;
|
||||
import org.nl.wql.WQL;
|
||||
@@ -72,6 +73,9 @@ public class LibraryqueryServiceImpl implements LibraryqueryService {
|
||||
JSONArray resultJSONArray = WQL.getWO("QLK01").addParam("flag", "2").addParam("pallet_code",pallet_code).setDbname("dataSource2").process().getResultJSONArray(0);
|
||||
for (int i = 0; i < resultJSONArray.size(); i++) {
|
||||
JSONObject jsonResultDtl = resultJSONArray.getJSONObject(i);
|
||||
if (ObjectUtil.isEmpty(jsonResultDtl.getString("barrelcode"))) {
|
||||
throw new BadRequestException("该托盘存在没有桶码情况,请在立库系统进行出库操作,出库后重新打印标签粘贴!");
|
||||
}
|
||||
JSONObject jsonData = new JSONObject();
|
||||
jsonData.put("material_uuid", jsonResultDtl.getString("material_uuid"));
|
||||
JSONObject jsonMater = WQLObject.getWQLObject("md_me_materialbase").query("ext_id = '" + jsonResultDtl.getString("material_uuid") + "'").uniqueResult(0);
|
||||
|
||||
Reference in New Issue
Block a user