更改
This commit is contained in:
@@ -96,11 +96,11 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
if (serviceName.equals("/insertRkd")) {
|
if (serviceName.equals("/insertRkd")) {
|
||||||
String sqlInsertRkd = DB.prepareInsertStmt("cprkd", "ysdh,ysrq,lx,yhm,djbh,ckbh,sflz,scsj,txm");
|
String sqlInsertRkd = DB.prepareInsertStmt("cprkd", "ysdh,ysrq,lx,yhm,djbh,ckbh,sflz,scsj,txm");
|
||||||
String sqlInsertRkdMx = DB.prepareInsertStmt("cprkdmx",
|
String sqlInsertRkdMx = DB.prepareInsertStmt("cprkdmx",
|
||||||
"mxbh,ysdh,cpbh,cpmc,lpxx,ddbh,zlzt,txm,ly,rksl,yapsl,cpgg1,cpgg2,cpgg3,jldw,scrq,bz,scdw");
|
"mxbh,ysdh,cpbh,cpmc,lpxx,ddbh,zlzt,txm,ly,rksl,yapsl,cpgg1,cpgg2,cpgg3,jldw,scrq,bz,scdw,bhgcl");
|
||||||
String sqlInsertRkZl = DB.prepareInsertStmt("cprkzl",
|
String sqlInsertRkZl = DB.prepareInsertStmt("cprkzl",
|
||||||
"jlh,mxbh,ckmc,sl,zt,scsj,tpbh,pzbh,czr,lpxx,piz,maoz,gydw,zlzt,txm,cpbh,scrq,zlbh,tpcrk,modulecode,assetcode,producetime");
|
"jlh,mxbh,ckmc,sl,zt,scsj,tpbh,pzbh,czr,lpxx,piz,maoz,gydw,zlzt,txm,cpbh,scrq,zlbh,tpcrk,modulecode,assetcode,producetime,bhgcl");
|
||||||
String materialsqlInsertRkZl = DB.prepareInsertStmt("cprkzl",
|
String materialsqlInsertRkZl = DB.prepareInsertStmt("cprkzl",
|
||||||
"jlh,mxbh,ckmc,sl,zt,scsj,BoxNo,pzbh,czr,lpxx,piz,maoz,gydw,zlzt,txm,cpbh,scrq,zlbh,tpcrk,modulecode,assetcode,producetime");
|
"jlh,mxbh,ckmc,sl,zt,scsj,BoxNo,pzbh,czr,lpxx,piz,maoz,gydw,zlzt,txm,cpbh,scrq,zlbh,tpcrk,modulecode,assetcode,producetime,bhgcl");
|
||||||
List sqls = new ArrayList();
|
List sqls = new ArrayList();
|
||||||
List values = new ArrayList();
|
List values = new ArrayList();
|
||||||
JSONObject responseMes = new JSONObject();
|
JSONObject responseMes = new JSONObject();
|
||||||
@@ -112,8 +112,8 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
String yhm = jo.getString("UserName");
|
String yhm = jo.getString("UserName");
|
||||||
String djlx = jo.getString("MesType");
|
String djlx = jo.getString("MesType");
|
||||||
String txm = jo.getString("ConsignNum");
|
String txm = jo.getString("ConsignNum");
|
||||||
|
|
||||||
|
|
||||||
if (!"1001".equals(djlx) && !"1002".equals(djlx) && !"1003".equals(djlx) && !"1005".equals(djlx)) {
|
if (!"1001".equals(djlx) && !"1002".equals(djlx) && !"1003".equals(djlx) && !"1005".equals(djlx)) {
|
||||||
pw.write(getOut("insertRkd", 1, "<EFBFBD><EFBFBD>Ч<EFBFBD>ĵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", djbh, args));
|
pw.write(getOut("insertRkd", 1, "<EFBFBD><EFBFBD>Ч<EFBFBD>ĵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", djbh, args));
|
||||||
return;
|
return;
|
||||||
@@ -138,7 +138,7 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
for (int i = 0; i < items.size(); i++) {
|
for (int i = 0; i < items.size(); i++) {
|
||||||
JSONObject ja = (JSONObject) items.get(i);
|
JSONObject ja = (JSONObject) items.get(i);
|
||||||
String cpbh = ja.getString("Code");
|
String cpbh = ja.getString("Code");
|
||||||
|
|
||||||
//ConsignNum <20><><EFBFBD>۵<EFBFBD><DBB5><EFBFBD>
|
//ConsignNum <20><><EFBFBD>۵<EFBFBD><DBB5><EFBFBD>
|
||||||
if(ServerUtil.isNull(txm) && cpbh.startsWith("2")){
|
if(ServerUtil.isNull(txm) && cpbh.startsWith("2")){
|
||||||
txm = ja.getString("ModuleCode");
|
txm = ja.getString("ModuleCode");
|
||||||
@@ -147,7 +147,7 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
sqls.add(sqlInsertRkd);
|
sqls.add(sqlInsertRkd);
|
||||||
values.add(new Object[] { ysdh, getTime(), djlx, yhm, djbh, "LTCK", 1, getDate(), txm });
|
values.add(new Object[] { ysdh, getTime(), djlx, yhm, djbh, "LTCK", 1, getDate(), txm });
|
||||||
}
|
}
|
||||||
|
|
||||||
Map map = db.getSingleRow("select cpmc,cpgg1,jldw from cpxx where cpbh=?", new Object[] { cpbh });
|
Map map = db.getSingleRow("select cpmc,cpgg1,jldw from cpxx where cpbh=?", new Object[] { cpbh });
|
||||||
String cpmc = (String) map.get("cpmc");
|
String cpmc = (String) map.get("cpmc");
|
||||||
String jldw = (String) map.get("jldw");
|
String jldw = (String) map.get("jldw");
|
||||||
@@ -176,15 +176,16 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
String ProductionTime = ja.getString("ProductionTime");
|
String ProductionTime = ja.getString("ProductionTime");
|
||||||
String gydw = ja.getString("PackType");
|
String gydw = ja.getString("PackType");
|
||||||
String zlzt = ja.getString("CodeState");
|
String zlzt = ja.getString("CodeState");
|
||||||
|
String bhgcl = ja.getString("Bhgcl");
|
||||||
if ("1".equals(db.getSingleField("select dqz from sys_config where id_pzx='if.MESZLZT' ", null))) {
|
if ("1".equals(db.getSingleField("select dqz from sys_config where id_pzx='if.MESZLZT' ", null))) {
|
||||||
zlzt = "0";
|
zlzt = "0";
|
||||||
}
|
}
|
||||||
|
|
||||||
Integer qty = ja.getInteger("Qty");
|
Integer qty = ja.getInteger("Qty");
|
||||||
Object mxbh = SerialNumber.getSerialNumber("cprkmxbh");
|
Object mxbh = SerialNumber.getSerialNumber("cprkmxbh");
|
||||||
sqls.add(sqlInsertRkdMx);
|
sqls.add(sqlInsertRkdMx);
|
||||||
values.add(new Object[] { mxbh, ysdh, cpbh, cpmc, lpxx, newlpxx, zlzt, txm, 0, qty, 0, null, null,
|
values.add(new Object[] { mxbh, ysdh, cpbh, cpmc, lpxx, newlpxx, zlzt, txm, 0, qty, 0, null, null,
|
||||||
null, jldw, getDate(), null, null });
|
null, jldw, getDate(), null, null,bhgcl});
|
||||||
|
|
||||||
Integer jlh = ServerUtil.nextInstNo(db, 1);
|
Integer jlh = ServerUtil.nextInstNo(db, 1);
|
||||||
|
|
||||||
@@ -192,13 +193,13 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
sqls.add(materialsqlInsertRkZl);
|
sqls.add(materialsqlInsertRkZl);
|
||||||
values.add(new Object[] { jlh, mxbh, "LTCK", qty, 0, getTime(), tpbh, ysdh, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", lpxx,
|
values.add(new Object[] { jlh, mxbh, "LTCK", qty, 0, getTime(), tpbh, ysdh, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", lpxx,
|
||||||
newlpxx, boxno, gydw, zlzt, null, cpbh, getDate(), zlbh, null, ModuleCode, AssetCode,
|
newlpxx, boxno, gydw, zlzt, null, cpbh, getDate(), zlbh, null, ModuleCode, AssetCode,
|
||||||
ProductionTime });
|
ProductionTime,bhgcl});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
sqls.add(sqlInsertRkZl);
|
sqls.add(sqlInsertRkZl);
|
||||||
values.add(new Object[] { jlh, mxbh, "LTCK", qty, 0, getTime(), tpbh, ysdh, yhm, lpxx, newlpxx,
|
values.add(new Object[] { jlh, mxbh, "LTCK", qty, 0, getTime(), tpbh, ysdh, yhm, lpxx, newlpxx,
|
||||||
boxno, gydw, zlzt, txm, cpbh, getDate(), zlbh, address, ModuleCode, AssetCode,
|
boxno, gydw, zlzt, txm, cpbh, getDate(), zlbh, address, ModuleCode, AssetCode,
|
||||||
ProductionTime });
|
ProductionTime,bhgcl});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -221,7 +222,7 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
|
|
||||||
String sqlInsertCkd = DB.prepareInsertStmt("ckd", "ckdh,shrq,zt,cklx,yhm,djbh,ckbh,sflz,shsj,<2C><EFBFBD><DEB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
String sqlInsertCkd = DB.prepareInsertStmt("ckd", "ckdh,shrq,zt,cklx,yhm,djbh,ckbh,sflz,shsj,<2C><EFBFBD><DEB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
||||||
String sqlInsertCkdMx = DB.prepareInsertStmt("ckdmx",
|
String sqlInsertCkdMx = DB.prepareInsertStmt("ckdmx",
|
||||||
"mxbh,ckdh,cpbh,lpxx,gydw,zlzt,txm,shsl,yapsl,cpmc,cpgg1,cpgg2,cpgg3,jldw,scdw,modulecode,assetcode,producetime");
|
"mxbh,ckdh,cpbh,lpxx,gydw,zlzt,txm,shsl,yapsl,cpmc,cpgg1,cpgg2,cpgg3,jldw,scdw,modulecode,assetcode,producetime,bhgcl");
|
||||||
ArrayList oprObjArrayszs = new ArrayList();
|
ArrayList oprObjArrayszs = new ArrayList();
|
||||||
List sqls = new ArrayList();
|
List sqls = new ArrayList();
|
||||||
List values = new ArrayList();
|
List values = new ArrayList();
|
||||||
@@ -283,6 +284,7 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
|
|
||||||
String gydw = ja.getString("PackType");
|
String gydw = ja.getString("PackType");
|
||||||
String zlzt = ja.getString("CodeState");
|
String zlzt = ja.getString("CodeState");
|
||||||
|
String bhgcl= ja.getString("Bhgcl");
|
||||||
String qty = ja.getInteger("Qty").toString();
|
String qty = ja.getInteger("Qty").toString();
|
||||||
if (!"0".equals(qty)) {
|
if (!"0".equals(qty)) {
|
||||||
String kczs = (String) db.getSingleField(
|
String kczs = (String) db.getSingleField(
|
||||||
@@ -325,6 +327,7 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
lpxx = onecpxx.get("lpxx");
|
lpxx = onecpxx.get("lpxx");
|
||||||
gydw = onecpxx.get("gydw");
|
gydw = onecpxx.get("gydw");
|
||||||
zlzt = onecpxx.get("zlzt");
|
zlzt = onecpxx.get("zlzt");
|
||||||
|
bhgcl = onecpxx.get("bhgcl");
|
||||||
txm = onecpxx.get("txm");
|
txm = onecpxx.get("txm");
|
||||||
cpmc = onecpxx.get("cpmc");
|
cpmc = onecpxx.get("cpmc");
|
||||||
jldw = onecpxx.get("jldw");
|
jldw = onecpxx.get("jldw");
|
||||||
@@ -332,7 +335,7 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
sqls.add(sqlInsertCkdMx);
|
sqls.add(sqlInsertCkdMx);
|
||||||
Object mxbh = SerialNumber.getSerialNumber("cpckmxbh");
|
Object mxbh = SerialNumber.getSerialNumber("cpckmxbh");
|
||||||
values.add(new Object[] { mxbh, ckdh, cpbh, lpxx, gydw, zlzt, txm, qty, 0, cpmc, null,
|
values.add(new Object[] { mxbh, ckdh, cpbh, lpxx, gydw, zlzt, txm, qty, 0, cpmc, null,
|
||||||
null, null, jldw, null, ModuleCode, AssetCode, ProductionTime });
|
null, null, jldw, null, ModuleCode, AssetCode, ProductionTime,bhgcl});
|
||||||
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD>ĵ<EFBFBD><C4B5><EFBFBD><EFBFBD><EFBFBD>ϸ
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD>ĵ<EFBFBD><C4B5><EFBFBD><EFBFBD><EFBFBD>ϸ
|
||||||
oprObjArrayszs.add(new Object[] { ckdh, mxbh, kcjlh, "zd" });
|
oprObjArrayszs.add(new Object[] { ckdh, mxbh, kcjlh, "zd" });
|
||||||
}
|
}
|
||||||
@@ -343,7 +346,7 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
|
|
||||||
sqls.add(sqlInsertCkdMx);
|
sqls.add(sqlInsertCkdMx);
|
||||||
values.add(new Object[] { mxbh, ckdh, cpbh, lpxx, gydw, zlzt, txm, qty, 0, cpmc, null, null,
|
values.add(new Object[] { mxbh, ckdh, cpbh, lpxx, gydw, zlzt, txm, qty, 0, cpmc, null, null,
|
||||||
null, jldw, null, ModuleCode, AssetCode, ProductionTime });
|
null, jldw, null, ModuleCode, AssetCode, ProductionTime,bhgcl});
|
||||||
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD>ĵ<EFBFBD><C4B5><EFBFBD><EFBFBD><EFBFBD>ϸ
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD>ĵ<EFBFBD><C4B5><EFBFBD><EFBFBD><EFBFBD>ϸ
|
||||||
oprObjArrayszs.add(new Object[] { ckdh, mxbh, null, "zd" });
|
oprObjArrayszs.add(new Object[] { ckdh, mxbh, null, "zd" });
|
||||||
}
|
}
|
||||||
@@ -529,8 +532,8 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
meslw.debug(String.format("updateCksl <20><><EFBFBD><EFBFBD>MES<45><53>%s", returnjo));
|
meslw.debug(String.format("updateCksl <20><><EFBFBD><EFBFBD>MES<45><53>%s", returnjo));
|
||||||
|
|
||||||
} else if (serviceName.equals("/updateQCStatus")) {
|
} else if (serviceName.equals("/updateQCStatus")) {
|
||||||
String sqlUpdateCpkcxx1 = "update cpkcxx set zlzt=? where cpbh =? and txm is null or txm=? ";
|
String sqlUpdateCpkcxx1 = "update cpkcxx set zlzt=?,bhgcl=? where cpbh =? and txm is null or txm=? ";
|
||||||
String sqlUpdateCpkcxx2 = "update cpkcxx set zlzt=? where cpbh =? and lpxx =? and txm is null or txm=?";
|
String sqlUpdateCpkcxx2 = "update cpkcxx set zlzt=?,bhgcl=? where cpbh =? and lpxx =? and txm is null or txm=?";
|
||||||
String sqlUpdateKwjbxx = "update kwjbxx set zlzt=? where kwbh =? ";
|
String sqlUpdateKwjbxx = "update kwjbxx set zlzt=? where kwbh =? ";
|
||||||
List sqls = new ArrayList();
|
List sqls = new ArrayList();
|
||||||
List values = new ArrayList();
|
List values = new ArrayList();
|
||||||
@@ -545,6 +548,7 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
String cpbh = ja.getString("Code");
|
String cpbh = ja.getString("Code");
|
||||||
String lpxx = ja.getString("Lpxx");
|
String lpxx = ja.getString("Lpxx");
|
||||||
String zlzt = ja.getString("CodeState");
|
String zlzt = ja.getString("CodeState");
|
||||||
|
String bhgcl = ja.getString("Bhgcl");
|
||||||
if (!db.hasAnyData("select 2 from cpxx where cpbh=? ", new Object[] { cpbh })) {
|
if (!db.hasAnyData("select 2 from cpxx where cpbh=? ", new Object[] { cpbh })) {
|
||||||
pw.write(getOut("updateQCStatus", 1, "WMSϵͳ<EFBFBD>˲<EFBFBD>Ʒ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:" + cpbh, djbh, args));
|
pw.write(getOut("updateQCStatus", 1, "WMSϵͳ<EFBFBD>˲<EFBFBD>Ʒ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:" + cpbh, djbh, args));
|
||||||
return;
|
return;
|
||||||
@@ -559,18 +563,18 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
if (list_mx != null && list_mx.size() > 0) {
|
if (list_mx != null && list_mx.size() > 0) {
|
||||||
for (int k = 0; k < list_mx.size(); k++) {
|
for (int k = 0; k < list_mx.size(); k++) {
|
||||||
Map map = list_mx.get(k);
|
Map map = list_mx.get(k);
|
||||||
db.preparedUpdate("update cprkdmx set zlzt=? where mxbh=?",
|
db.preparedUpdate("update cprkdmx set zlzt=?,bhgcl=? where mxbh=?",
|
||||||
new Object[] { zlzt, map.get("mxbh") }, true);
|
new Object[] { zlzt,bhgcl, map.get("mxbh") }, true);
|
||||||
if (db.hasAnyData("select 2 from cprkzl where mxbh=?", map.get("mxbh"))) {
|
if (db.hasAnyData("select 2 from cprkzl where mxbh=?", map.get("mxbh"))) {
|
||||||
db.preparedUpdate("update cprkzl set zlzt=? where mxbh=?",
|
db.preparedUpdate("update cprkzl set zlzt=?,bhgcl=? where mxbh=?",
|
||||||
new Object[] { zlzt, map.get("mxbh") }, true);
|
new Object[] { zlzt,bhgcl,map.get("mxbh") }, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (db.hasAnyData("select 2 from cpkcxx where cpbh =? and lpxx =? ",
|
if (db.hasAnyData("select 2 from cpkcxx where cpbh =? and lpxx =? ",
|
||||||
new Object[] { cpbh, lpxx })) {
|
new Object[] { cpbh, lpxx })) {
|
||||||
sqls.add("update cpkcxx set zlzt=? where cpbh =? and lpxx=? ");
|
sqls.add("update cpkcxx set zlzt=?,bhgcl=? where cpbh =? and lpxx=? ");
|
||||||
values.add(new Object[] { zlzt, cpbh, lpxx });
|
values.add(new Object[] { zlzt,bhgcl,cpbh, lpxx });
|
||||||
List<Map> list = db.getMappedRowsData("select kwbh from cpkcxx where cpbh=? and lpxx=? ",
|
List<Map> list = db.getMappedRowsData("select kwbh from cpkcxx where cpbh=? and lpxx=? ",
|
||||||
new Object[] { cpbh, lpxx });
|
new Object[] { cpbh, lpxx });
|
||||||
for (int j = 0; i < list.size(); i++) {
|
for (int j = 0; i < list.size(); i++) {
|
||||||
@@ -589,18 +593,18 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
if (list_mx != null && list_mx.size() > 0) {
|
if (list_mx != null && list_mx.size() > 0) {
|
||||||
for (int k = 0; k < list_mx.size(); k++) {
|
for (int k = 0; k < list_mx.size(); k++) {
|
||||||
Map map = list_mx.get(k);
|
Map map = list_mx.get(k);
|
||||||
db.preparedUpdate("update cprkdmx set zlzt=? where mxbh=?",
|
db.preparedUpdate("update cprkdmx set zlzt=?,bhgcl=? where mxbh=?",
|
||||||
new Object[] { zlzt, map.get("mxbh") }, true);
|
new Object[] { zlzt,bhgcl,map.get("mxbh") }, true);
|
||||||
if (db.hasAnyData("select 2 from cprkzl where mxbh=?", map.get("mxbh"))) {
|
if (db.hasAnyData("select 2 from cprkzl where mxbh=?", map.get("mxbh"))) {
|
||||||
db.preparedUpdate("update cprkzl set zlzt=? where mxbh=?",
|
db.preparedUpdate("update cprkzl set zlzt=?,bhgcl=? where mxbh=?",
|
||||||
new Object[] { zlzt, map.get("mxbh") }, true);
|
new Object[] { zlzt,bhgcl,map.get("mxbh") }, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (db.hasAnyData("select 2 from cpkcxx where cpbh =? and lpxx =? and txm =? ",
|
if (db.hasAnyData("select 2 from cpkcxx where cpbh =? and lpxx =? and txm =? ",
|
||||||
new Object[] { cpbh, lpxx, txm })) {
|
new Object[] { cpbh, lpxx, txm })) {
|
||||||
sqls.add("update cpkcxx set zlzt=? where cpbh =? and lpxx =? and txm=?");
|
sqls.add("update cpkcxx set zlzt=?,bhgcl=? where cpbh =? and lpxx =? and txm=?");
|
||||||
values.add(new Object[] { zlzt, cpbh, lpxx, txm });
|
values.add(new Object[] { zlzt,bhgcl,cpbh, lpxx, txm });
|
||||||
List<Map> list = db.getMappedRowsData("select kwbh from cpkcxx where cpbh=? and lpxx=? ",
|
List<Map> list = db.getMappedRowsData("select kwbh from cpkcxx where cpbh=? and lpxx=? ",
|
||||||
new Object[] { cpbh, lpxx });
|
new Object[] { cpbh, lpxx });
|
||||||
for (int j = 0; i < list.size(); i++) {
|
for (int j = 0; i < list.size(); i++) {
|
||||||
@@ -651,7 +655,7 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
String kwbh = (String) db.getSingleField("select top 1 kwbh from cpkcxx where kwbh in"
|
String kwbh = (String) db.getSingleField("select top 1 kwbh from cpkcxx where kwbh in"
|
||||||
+ " ('L21-09-1','L21-10-1','L21-11-1','L21-20-1','L21-21-1','L21-21-1') " + "and cpbh = ?",
|
+ " ('L21-09-1','L21-10-1','L21-11-1','L21-20-1','L21-21-1','L21-21-1') " + "and cpbh = ?",
|
||||||
new Object[] { cpbh });
|
new Object[] { cpbh });
|
||||||
|
|
||||||
if (kwbh.length() > 0) {
|
if (kwbh.length() > 0) {
|
||||||
@@ -662,7 +666,7 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
if (arg == 1) {
|
if (arg == 1) {
|
||||||
if (db.hasAnyData("select 2 from wxzd_sbztxx where sbzt = 2 and sbid= '2235' ", null)
|
if (db.hasAnyData("select 2 from wxzd_sbztxx where sbzt = 2 and sbid= '2235' ", null)
|
||||||
&& db.hasAnyData("select 2 from wxzd_sbztxx where sbzt = 2 and sbid= 'JXS1' ",
|
&& db.hasAnyData("select 2 from wxzd_sbztxx where sbzt = 2 and sbid= 'JXS1' ",
|
||||||
null)) {
|
null)) {
|
||||||
EndPoint = "2235";
|
EndPoint = "2235";
|
||||||
} else {
|
} else {
|
||||||
arg = arg + 1;
|
arg = arg + 1;
|
||||||
@@ -670,7 +674,7 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
} else if (arg == 2) {
|
} else if (arg == 2) {
|
||||||
if (db.hasAnyData("select 2 from wxzd_sbztxx where sbzt = 2 and sbid= '2236' ", null)
|
if (db.hasAnyData("select 2 from wxzd_sbztxx where sbzt = 2 and sbid= '2236' ", null)
|
||||||
&& db.hasAnyData("select 2 from wxzd_sbztxx where sbzt = 2 and sbid= 'JXS1' ",
|
&& db.hasAnyData("select 2 from wxzd_sbztxx where sbzt = 2 and sbid= 'JXS1' ",
|
||||||
null)) {
|
null)) {
|
||||||
EndPoint = "2236";
|
EndPoint = "2236";
|
||||||
} else {
|
} else {
|
||||||
arg = arg + 1;
|
arg = arg + 1;
|
||||||
@@ -678,7 +682,7 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
} else if (arg == 3) {
|
} else if (arg == 3) {
|
||||||
if (db.hasAnyData("select 2 from wxzd_sbztxx where sbzt = 2 and sbid= '2270' ", null)
|
if (db.hasAnyData("select 2 from wxzd_sbztxx where sbzt = 2 and sbid= '2270' ", null)
|
||||||
&& db.hasAnyData("select 2 from wxzd_sbztxx where sbzt = 2 and sbid= 'JXS2' ",
|
&& db.hasAnyData("select 2 from wxzd_sbztxx where sbzt = 2 and sbid= 'JXS2' ",
|
||||||
null)) {
|
null)) {
|
||||||
EndPoint = "2270";
|
EndPoint = "2270";
|
||||||
} else {
|
} else {
|
||||||
arg = arg + 1;
|
arg = arg + 1;
|
||||||
@@ -686,7 +690,7 @@ public class MesServiceManager extends AbstractServiceManager {
|
|||||||
} else if (arg == 4) {
|
} else if (arg == 4) {
|
||||||
if (db.hasAnyData("select 2 from wxzd_sbztxx where sbzt = 2 and sbid= '2271' ", null)
|
if (db.hasAnyData("select 2 from wxzd_sbztxx where sbzt = 2 and sbid= '2271' ", null)
|
||||||
&& db.hasAnyData("select 2 from wxzd_sbztxx where sbzt = 2 and sbid= 'JXS2' ",
|
&& db.hasAnyData("select 2 from wxzd_sbztxx where sbzt = 2 and sbid= 'JXS2' ",
|
||||||
null)) {
|
null)) {
|
||||||
EndPoint = "2270";
|
EndPoint = "2270";
|
||||||
} else {
|
} else {
|
||||||
arg = arg + 1;
|
arg = arg + 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user