This commit is contained in:
zds
2022-11-18 19:39:18 +08:00
parent f80cbedd79
commit 1918282cf5
6 changed files with 15 additions and 12 deletions

View File

@@ -99,7 +99,7 @@ public class GenCodeServiceImpl implements GenCodeService {
//如果flag=1就执行更新数据库的操作
String flag = (String) form.get("flag");
WQLObject wo = WQLObject.getWQLObject("sys_code_rule_detail");
JSONArray ja = wo.query("code_rule_id = '" + id + "' FOR UPDATE").getResultJSONArray(0);
JSONArray ja = wo.query("code_rule_id = '" + id + "'", " sort_num,type FOR UPDATE").getResultJSONArray(0);
String demo = "";
boolean is_same = true;
for (int i = 0; i < ja.size(); i++) {
@@ -174,7 +174,7 @@ public class GenCodeServiceImpl implements GenCodeService {
//如果flag=1就执行更新数据库的操作
String flag = (String) form.get("flag");
WQLObject wo = WQLObject.getWQLObject("sys_code_rule_detail");
JSONArray ja = wo.query("code_rule_id = '" + id + "' FOR UPDATE").getResultJSONArray(0);
JSONArray ja = wo.query("code_rule_id = '" + id + "'", " sort_num,type FOR UPDATE").getResultJSONArray(0);
String demo = "";
boolean is_same = true;
for (int i = 0; i < ja.size(); i++) {

View File

@@ -547,9 +547,6 @@ public class InspectionsheetmstServiceImpl implements InspectionsheetmstService
if (jsonIvt.getDoubleValue("canuse_qty") != jsonIvt.getDoubleValue("ivt_qty")) {
throw new BadRequestException("此批次物料有未完成的单据");
}
if (jsonDtl.getString("result").equals(jsonIvt.getString("quality_scode"))) {
continue;
}
JSONObject prarm = new JSONObject();
String change_type_scode = "";
prarm.put("struct_id", jsonIvt.getString("struct_id"));

View File

@@ -986,8 +986,8 @@ public class PhysicalMstServiceImpl implements PhysicalMstService {
for (int i = 0; i < dataArr.size(); i++) {
JSONObject json = dataArr.getJSONObject(i);
JSONObject jsonPhyMst = phyMstTab.query("inspection_id = '"+json.getString("inspection_id")+"'").uniqueResult(0);
if (StrUtil.equals(jsonPhyMst.getString("bill_status"), "99") && StrUtil.equals(jsonPhyMst.getString("is_effective"), "`99`")) {
throw new BadRequestException("此理化报告:" + jsonPhyMst.getString("inspection_code") + "已完成且有效");
if (StrUtil.equals(jsonPhyMst.getString("bill_status"), "99")) {
throw new BadRequestException("此理化报告:" + jsonPhyMst.getString("inspection_code") + "已完成");
}
// 1.将wms物料id转换成本erp物料id

View File

@@ -77,7 +77,7 @@
OPTION 输入.pcsn <> ""
pcsn = 输入.pcsn
ENDOPTION
order by confirm_time desc
order by BIZ_DATE desc
ENDSELECT
ENDQUERY
ENDIF