修改
This commit is contained in:
Binary file not shown.
@@ -175,6 +175,12 @@ public class RawAssistIStorServiceImpl implements RawAssistIStorService {
|
||||
total_qty += Double.parseDouble(net_weight);
|
||||
row.put("box_no", row.get("package_box_sn"));
|
||||
|
||||
//判断该木箱是否已经存在库内
|
||||
JSONObject str_jo = WQLObject.getWQLObject("st_ivt_structattr").query("storagevehicle_code = '"+row.get("package_box_sn")+"'").uniqueResult(0);
|
||||
if (ObjectUtil.isNotEmpty(str_jo)){
|
||||
throw new BadRequestException("木箱:"+row.get("package_box_sn")+"已存在库内,请对数据进行核实!");
|
||||
}
|
||||
|
||||
/*//如果是退货入库,查询对应的包装关系维护交货单号和交货单行号
|
||||
if (whereJson.get("bill_type").equals("0002")) {
|
||||
JSONObject sub_jo = WQLObject.getWQLObject("pdm_bi_subpackagerelation").query("container_name = '" + row.get("container_name") + "'").uniqueResult(0);
|
||||
|
||||
Reference in New Issue
Block a user