qijirenjian 3 months ago
parent 271c642c0e
commit 7b5c7dbeee

@ -236,6 +236,16 @@ public class ConfigProp {
private String htsysjcmt_po_password; private String htsysjcmt_po_password;
@Value("${gy103gsid}") @Value("${gy103gsid}")
private String gy103gsid; private String gy103gsid;
@Value("${saprfcclient}")
private String saprfcclient;
@Value("${saprfcuserid}")
private String saprfcuserid;
@Value("${saprfcpassword}")
private String saprfcpassword;
@Value("${saprfchostname}")
private String saprfchostname;
@Value("${saprfcsystemnumber}")
private String saprfcsystemnumber;
//htsrmoasync //htsrmoasync
@Value("${htshop}") @Value("${htshop}")

@ -50,7 +50,9 @@ public class ZSRM_PUR_INFO_CheckAction extends BaseBean implements Action, EsbSe
for (int j = 0; j < aproperty.length; j++) { for (int j = 0; j < aproperty.length; j++) {
String name = aproperty[j].getName().toUpperCase(); String name = aproperty[j].getName().toUpperCase();
String value = Util.null2String(aproperty[j].getValue()); String value = Util.null2String(aproperty[j].getValue());
if ("xxjllx".equals(name)) { logger_9ad0d62b.error(String.valueOf("name-" + name));
logger_9ad0d62b.error(String.valueOf("value-" + value));
if ("XXJLLX".equals(name)) {
xxjllx = value; xxjllx = value;
} }
} }
@ -93,8 +95,8 @@ public class ZSRM_PUR_INFO_CheckAction extends BaseBean implements Action, EsbSe
} }
} }
DetailTable[] detailtable = requestinfo.getDetailTableInfo().getDetailTable(); DetailTable[] detailtable = requestinfo.getDetailTableInfo().getDetailTable();
DetailTable dtq = detailtable[0]; logger_9ad0d62b.error("dtq -----"+ Arrays.deepToString(detailtable));
logger_9ad0d62b.error("dtq -----"+ dtq.toString()); DetailTable dtq = detailtable[1];
Row[] sq = dtq.getRow(); Row[] sq = dtq.getRow();
if (sq.length > 0) { if (sq.length > 0) {
String[][] str = new String[sq.length][21]; String[][] str = new String[sq.length][21];
@ -108,6 +110,7 @@ public class ZSRM_PUR_INFO_CheckAction extends BaseBean implements Action, EsbSe
String valueq = Util.null2String(cq1.getValue()); String valueq = Util.null2String(cq1.getValue());
map.put(nameq, valueq); map.put(nameq, valueq);
} }
logger_9ad0d62b.error("map -----"+ map);
str[j][0] = requestid + "_" + j; str[j][0] = requestid + "_" + j;
str[j][1] = map.get("MXCGZZ"); str[j][1] = map.get("MXCGZZ");
str[j][2] = map.get("CGZ"); str[j][2] = map.get("CGZ");
@ -141,7 +144,9 @@ public class ZSRM_PUR_INFO_CheckAction extends BaseBean implements Action, EsbSe
} }
} }
} catch (Exception e) { } catch (Exception e) {
logger_9ad0d62b.error(String.valueOf("ZSRM_PUR_INFO_CheckAction-error-" + requestid + "-[" + e.toString() + "]")); logger_9ad0d62b.error(String.valueOf("ZSRM_PUR_INFO_CheckAction-error-" + requestid + "-[" + e.toString() + "]"));
logger_9ad0d62b.error( "ZSRM_PUR_INFO_CheckAction-error -" ,e);
requestinfo.getRequestManager().setMessageid("ERROR"); requestinfo.getRequestManager().setMessageid("ERROR");
requestinfo.getRequestManager().setMessagecontent("调用SAP接口校验数据出错" + e.toString()); requestinfo.getRequestManager().setMessagecontent("调用SAP接口校验数据出错" + e.toString());
return WeaResult.fail(500, "调用SAP接口校验数据出错" + e, getResultMapForAction(weaverResultMap, "result", "", requestinfo.getRequestManager())); return WeaResult.fail(500, "调用SAP接口校验数据出错" + e, getResultMapForAction(weaverResultMap, "result", "", requestinfo.getRequestManager()));

@ -55,7 +55,8 @@ public class ZSRM_PUR_INFO_GY132_CheckAction extends BaseBean implements Action,
logger_69d789ca.error("sync -----" + sync); logger_69d789ca.error("sync -----" + sync);
if ("0".equals(sync)) { if ("0".equals(sync)) {
DetailTable[] detailtable = requestinfo.getDetailTableInfo().getDetailTable(); DetailTable[] detailtable = requestinfo.getDetailTableInfo().getDetailTable();
DetailTable dtq = detailtable[2];
DetailTable dtq = detailtable[0];
Row[] sq = dtq.getRow(); Row[] sq = dtq.getRow();
if (sq.length > 0) { if (sq.length > 0) {
String[][] str = new String[sq.length][21]; String[][] str = new String[sq.length][21];

Loading…
Cancel
Save