|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
package com.weaver.seconddev.interfaces.workflow.controller;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.weaver.common.base.entity.result.WeaResult;
|
|
|
|
|
import com.weaver.seconddev.interfaces.workflow.action.ZOA_FI_VENDOR_MAINTAIN;
|
|
|
|
|
import com.weaver.verupgrade.conn.CONN_TYPE;
|
|
|
|
@ -132,94 +134,52 @@ public class ZOA_FI_VENDOR_MAINTAIN_CONTROLLER {
|
|
|
|
|
estatus = fhz[0][0];
|
|
|
|
|
}
|
|
|
|
|
emessage = fhz[0][1];
|
|
|
|
|
Document document = DocumentHelper.createDocument();
|
|
|
|
|
Element xml = document.addElement("xml");
|
|
|
|
|
Element status = xml.addElement("estatus");
|
|
|
|
|
status.setText(estatus);
|
|
|
|
|
Element message = xml.addElement("emessage");
|
|
|
|
|
message.setText(emessage);
|
|
|
|
|
Element lifnr_ = xml.addElement("lifnr");
|
|
|
|
|
lifnr_.setText(null2String(fhz[1][0]));
|
|
|
|
|
Element bukrs_ = xml.addElement("bukrs");
|
|
|
|
|
bukrs_.setText(null2String(fhz[1][1]));
|
|
|
|
|
Element ktokk_ = xml.addElement("ktokk");
|
|
|
|
|
ktokk_.setText(null2String(fhz[1][2]));
|
|
|
|
|
JSONObject xmlData = new JSONObject();
|
|
|
|
|
xmlData.put("estatus", estatus);
|
|
|
|
|
xmlData.put("emessage", emessage);
|
|
|
|
|
xmlData.put("lifnr", null2String(fhz[1][0]));
|
|
|
|
|
xmlData.put("bukrs", null2String(fhz[1][1]));
|
|
|
|
|
xmlData.put("ktokk", null2String(fhz[1][2]));
|
|
|
|
|
|
|
|
|
|
Element txt30_ = xml.addElement("txt30");
|
|
|
|
|
txt30_.setText("<![CDATA["+fhz[1][3]+"]]>");
|
|
|
|
|
Element anred_ = xml.addElement("anred");
|
|
|
|
|
anred_.setText("<![CDATA["+fhz[1][4]+"]]>");
|
|
|
|
|
Element name1_ = xml.addElement("name1");
|
|
|
|
|
name1_.setText("<![CDATA["+fhz[1][5]+"]]>");
|
|
|
|
|
Element sortl_ = xml.addElement("sortl");
|
|
|
|
|
sortl_.setText("<![CDATA["+fhz[1][6]+"]]>");
|
|
|
|
|
Element telf1_ = xml.addElement("telf1");
|
|
|
|
|
telf1_.setText("<![CDATA["+fhz[1][7]+"]]>");
|
|
|
|
|
Element smtp_addr_ = xml.addElement("smtp_addr");
|
|
|
|
|
smtp_addr_.setText("<![CDATA["+fhz[1][8]+"]]>");
|
|
|
|
|
Element telf2_ = xml.addElement("telf2");
|
|
|
|
|
telf2_.setText("<![CDATA["+fhz[1][9]+"]]>");
|
|
|
|
|
Element telfx_ = xml.addElement("telfx");
|
|
|
|
|
telfx_.setText("<![CDATA["+fhz[1][10]+"]]>");
|
|
|
|
|
Element land1_ = xml.addElement("land1");
|
|
|
|
|
land1_.setText("<![CDATA["+fhz[1][11]+"]]>");
|
|
|
|
|
Element landx50_ = xml.addElement("landx50");
|
|
|
|
|
landx50_.setText("<![CDATA["+fhz[1][12]+"]]>");
|
|
|
|
|
Element bland_ = xml.addElement("bland");
|
|
|
|
|
bland_.setText("<![CDATA["+fhz[1][13]+"]]>");
|
|
|
|
|
Element bezei_ = xml.addElement("bezei");
|
|
|
|
|
bezei_.setText("<![CDATA["+fhz[1][14]+"]]>");
|
|
|
|
|
Element spras_ = xml.addElement("spras");
|
|
|
|
|
spras_.setText("<![CDATA["+fhz[1][15]+"]]>");
|
|
|
|
|
Element sptxt_ = xml.addElement("sptxt");
|
|
|
|
|
sptxt_.setText("<![CDATA["+fhz[1][16]+"]]>");
|
|
|
|
|
Element ort01_ = xml.addElement("ort01");
|
|
|
|
|
ort01_.setText("<![CDATA["+fhz[1][17]+"]]>");
|
|
|
|
|
Element stras_ = xml.addElement("stras");
|
|
|
|
|
stras_.setText("<![CDATA["+fhz[1][18]+"]]>");
|
|
|
|
|
Element pstlz_ = xml.addElement("pstlz");
|
|
|
|
|
pstlz_.setText("<![CDATA["+fhz[1][19]+"]]>");
|
|
|
|
|
Element bankl_ = xml.addElement("bankl");
|
|
|
|
|
bankl_.setText("<![CDATA["+fhz[1][20]+"]]>");
|
|
|
|
|
Element banka_ = xml.addElement("banka");
|
|
|
|
|
banka_.setText("<![CDATA["+fhz[1][21]+"]]>");
|
|
|
|
|
Element banks_ = xml.addElement("banks");
|
|
|
|
|
banks_.setText("<![CDATA["+fhz[1][22]+"]]>");
|
|
|
|
|
Element landx_ = xml.addElement("landx");
|
|
|
|
|
landx_.setText("<![CDATA["+fhz[1][23]+"]]>");
|
|
|
|
|
Element koinh_ = xml.addElement("koinh");
|
|
|
|
|
koinh_.setText("<![CDATA["+fhz[1][24]+"]]>");
|
|
|
|
|
Element stcd5_ = xml.addElement("stcd5");
|
|
|
|
|
stcd5_.setText("<![CDATA["+fhz[1][25]+"]]>");
|
|
|
|
|
Element akont_ = xml.addElement("akont");
|
|
|
|
|
akont_.setText("<![CDATA["+fhz[1][26]+"]]>");
|
|
|
|
|
Element txt20_ = xml.addElement("txt20");
|
|
|
|
|
txt20_.setText("<![CDATA["+fhz[1][27]+"]]>");
|
|
|
|
|
Element zterm_ = xml.addElement("zterm");
|
|
|
|
|
zterm_.setText("<![CDATA["+fhz[1][28]+"]]>");
|
|
|
|
|
Element text1_ = xml.addElement("text1");
|
|
|
|
|
text1_.setText("<![CDATA["+fhz[1][29]+"]]>");
|
|
|
|
|
Element zuawa_ = xml.addElement("zuawa");
|
|
|
|
|
zuawa_.setText("<![CDATA["+fhz[1][30]+"]]>");
|
|
|
|
|
Element ttext_ = xml.addElement("ttext");
|
|
|
|
|
ttext_.setText("<![CDATA["+fhz[1][31]+"]]>");
|
|
|
|
|
Element zwels_ = xml.addElement("zwels");
|
|
|
|
|
zwels_.setText("<![CDATA["+fhz[1][32]+"]]>");
|
|
|
|
|
Element text2_ = xml.addElement("text2");
|
|
|
|
|
text2_.setText("<![CDATA["+fhz[1][33]+"]]>");
|
|
|
|
|
Element frgrp_ = xml.addElement("frgrp");
|
|
|
|
|
frgrp_.setText("<![CDATA["+fhz[1][34]+"]]>");
|
|
|
|
|
Element frgrt_ = xml.addElement("frgrt");
|
|
|
|
|
frgrt_.setText("<![CDATA["+fhz[1][35]+"]]>");
|
|
|
|
|
Element zahls_ = xml.addElement("zahls");
|
|
|
|
|
zahls_.setText("<![CDATA["+fhz[1][36]+"]]>");
|
|
|
|
|
Element reprf_ = xml.addElement("reprf");
|
|
|
|
|
reprf_.setText("<![CDATA["+fhz[1][37]+"]]>");
|
|
|
|
|
Element name2_ = xml.addElement("name2");
|
|
|
|
|
name2_.setText("<![CDATA["+fhz[1][38]+"]]>");
|
|
|
|
|
Element name3_ = xml.addElement("name3");
|
|
|
|
|
name3_.setText("<![CDATA["+fhz[1][39]+"]]>");
|
|
|
|
|
return WeaResult.success(document.asXML());
|
|
|
|
|
// 处理 CDATA 部分,直接使用字符串值
|
|
|
|
|
xmlData.put("txt30", null2String(fhz[1][3]));
|
|
|
|
|
xmlData.put("anred", null2String(fhz[1][4]));
|
|
|
|
|
xmlData.put("name1", null2String(fhz[1][5]));
|
|
|
|
|
xmlData.put("sortl", null2String(fhz[1][6]));
|
|
|
|
|
xmlData.put("telf1", null2String(fhz[1][7]));
|
|
|
|
|
xmlData.put("smtp_addr", null2String(fhz[1][8]));
|
|
|
|
|
xmlData.put("telf2", null2String(fhz[1][9]));
|
|
|
|
|
xmlData.put("telfx", null2String(fhz[1][10]));
|
|
|
|
|
xmlData.put("land1", null2String(fhz[1][11]));
|
|
|
|
|
xmlData.put("landx50", null2String(fhz[1][12]));
|
|
|
|
|
xmlData.put("bland", null2String(fhz[1][13]));
|
|
|
|
|
xmlData.put("bezei", null2String(fhz[1][14]));
|
|
|
|
|
xmlData.put("spras", null2String(fhz[1][15]));
|
|
|
|
|
xmlData.put("sptxt", null2String(fhz[1][16]));
|
|
|
|
|
xmlData.put("ort01", null2String(fhz[1][17]));
|
|
|
|
|
xmlData.put("stras", null2String(fhz[1][18]));
|
|
|
|
|
xmlData.put("pstlz", null2String(fhz[1][19]));
|
|
|
|
|
xmlData.put("bankl", null2String(fhz[1][20]));
|
|
|
|
|
xmlData.put("banka", null2String(fhz[1][21]));
|
|
|
|
|
xmlData.put("banks", null2String(fhz[1][22]));
|
|
|
|
|
xmlData.put("landx", null2String(fhz[1][23]));
|
|
|
|
|
xmlData.put("koinh", null2String(fhz[1][24]));
|
|
|
|
|
xmlData.put("stcd5", null2String(fhz[1][25]));
|
|
|
|
|
xmlData.put("akont", null2String(fhz[1][26]));
|
|
|
|
|
xmlData.put("txt20", null2String(fhz[1][27]));
|
|
|
|
|
xmlData.put("zterm", null2String(fhz[1][28]));
|
|
|
|
|
xmlData.put("text1", null2String(fhz[1][29]));
|
|
|
|
|
xmlData.put("zuawa", null2String(fhz[1][30]));
|
|
|
|
|
xmlData.put("ttext", null2String(fhz[1][31]));
|
|
|
|
|
xmlData.put("zwels", null2String(fhz[1][32]));
|
|
|
|
|
xmlData.put("text2", null2String(fhz[1][33]));
|
|
|
|
|
xmlData.put("frgrp", null2String(fhz[1][34]));
|
|
|
|
|
xmlData.put("frgrt", null2String(fhz[1][35]));
|
|
|
|
|
xmlData.put("zahls", null2String(fhz[1][36]));
|
|
|
|
|
xmlData.put("reprf", null2String(fhz[1][37]));
|
|
|
|
|
xmlData.put("name2", null2String(fhz[1][38]));
|
|
|
|
|
xmlData.put("name3", null2String(fhz[1][39]));
|
|
|
|
|
return WeaResult.success(JSONObject.toJSONString(xmlData));
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
log.error("ZOA_FI_VENDOR_MAINTAIN_CONTROLLER error--" , e);
|
|
|
|
|
return WeaResult.fail(500, "执行异常", e.getMessage());
|
|
|
|
|