增加功能
This commit is contained in:
parent
048188674a
commit
bf4317db35
@ -309,6 +309,11 @@ public class CommonImpl implements HISInterfaceService {
|
|||||||
xmFee.setZjf(pinyin);
|
xmFee.setZjf(pinyin);
|
||||||
xmFee.setXmlb("HIS");
|
xmFee.setXmlb("HIS");
|
||||||
xmFee.setBz(xmFee.getSfxmmc());
|
xmFee.setBz(xmFee.getSfxmmc());
|
||||||
|
String sfxmmc = xmFee.getSfxmmc();
|
||||||
|
if(sfxmmc.length() >= 20){
|
||||||
|
sfxmmc = sfxmmc.substring(0,20);
|
||||||
|
}
|
||||||
|
xmFee.setSfxmmc(sfxmmc);
|
||||||
commonUtil.insertXmFee(xmFee);
|
commonUtil.insertXmFee(xmFee);
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -56,11 +56,12 @@ public class Lisinterface_jldermyy extends CommonImpl {
|
|||||||
@Override
|
@Override
|
||||||
public Result invokeHttp(String param) {
|
public Result invokeHttp(String param) {
|
||||||
Result result = super.invokeHttp(param);
|
Result result = super.invokeHttp(param);
|
||||||
if(!result.equals("1")) return result;
|
if(!result.getResultCode().equals("1")) return result;
|
||||||
JSONObject jsonObject = JSONUtil.parseObj(param);
|
JSONObject jsonObject = JSONUtil.parseObj(param);
|
||||||
String method = jsonObject.getStr("method");
|
String method = jsonObject.getStr("method");
|
||||||
switch (method){
|
switch (method){
|
||||||
|
case "getDictDPM":
|
||||||
|
return getDictDPM("");
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Result("-1","没有找到接口方法!");
|
return new Result("-1","没有找到接口方法!");
|
||||||
@ -257,9 +258,9 @@ public class Lisinterface_jldermyy extends CommonImpl {
|
|||||||
Result result = toXml("00008", "QueryCondition", queryConditionMap);
|
Result result = toXml("00008", "QueryCondition", queryConditionMap);
|
||||||
if(!result.getResultCode().equals("0")) return result;
|
if(!result.getResultCode().equals("0")) return result;
|
||||||
Document document = XmlUtil.parseXml(result.getData().toString());
|
Document document = XmlUtil.parseXml(result.getData().toString());
|
||||||
NodeList nodeListByXPath = XmlUtil.getNodeListByXPath("//Res/DeptList", document);
|
NodeList nodeListByXPath = XmlUtil.getNodeListByXPath("//Res/DeptList/Row", document);
|
||||||
List<DeptList> deptListList = new ArrayList<>();
|
List<DeptList> deptListList = new ArrayList<>();
|
||||||
for (int i = 1; i <= nodeListByXPath.getLength(); i++) {
|
for (int i = 0; i < nodeListByXPath.getLength(); i++) {
|
||||||
DeptList deptList = XmlUtil.xmlToBean(nodeListByXPath.item(i), DeptList.class);
|
DeptList deptList = XmlUtil.xmlToBean(nodeListByXPath.item(i), DeptList.class);
|
||||||
deptListList.add(deptList);
|
deptListList.add(deptList);
|
||||||
}
|
}
|
||||||
@ -273,6 +274,7 @@ public class Lisinterface_jldermyy extends CommonImpl {
|
|||||||
comDict.setYljg("1");
|
comDict.setYljg("1");
|
||||||
comDictList.add(comDict);
|
comDictList.add(comDict);
|
||||||
}
|
}
|
||||||
|
log.info("comDictList:"+comDictList);
|
||||||
return new Result("0","",comDictList);
|
return new Result("0","",comDictList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -287,9 +289,9 @@ public class Lisinterface_jldermyy extends CommonImpl {
|
|||||||
Result result = toXml("00014", "ItemInfo", itemInfoMap);
|
Result result = toXml("00014", "ItemInfo", itemInfoMap);
|
||||||
if(!result.getResultCode().equals("0")) return result;
|
if(!result.getResultCode().equals("0")) return result;
|
||||||
Document document = XmlUtil.parseXml(result.getData().toString());
|
Document document = XmlUtil.parseXml(result.getData().toString());
|
||||||
NodeList nodeListByXPath = XmlUtil.getNodeListByXPath("//Res/ItemList", document);
|
NodeList nodeListByXPath = XmlUtil.getNodeListByXPath("//Res/ItemList/Row", document);
|
||||||
List<ItemList> itemListList = new ArrayList<>();
|
List<ItemList> itemListList = new ArrayList<>();
|
||||||
for (int i = 1; i <= nodeListByXPath.getLength(); i++) {
|
for (int i = 0; i < nodeListByXPath.getLength(); i++) {
|
||||||
ItemList itemList = XmlUtil.xmlToBean(nodeListByXPath.item(i), ItemList.class);
|
ItemList itemList = XmlUtil.xmlToBean(nodeListByXPath.item(i), ItemList.class);
|
||||||
itemListList.add(itemList);
|
itemListList.add(itemList);
|
||||||
}
|
}
|
||||||
@ -297,7 +299,7 @@ public class Lisinterface_jldermyy extends CommonImpl {
|
|||||||
for (ItemList itemList : itemListList) {
|
for (ItemList itemList : itemListList) {
|
||||||
XmFee xmFee = new XmFee();
|
XmFee xmFee = new XmFee();
|
||||||
xmFee.setYljg("1");
|
xmFee.setYljg("1");
|
||||||
xmFee.setSfxmdh(itemList.getItemCode());
|
xmFee.setSfxmdh(StrUtil.replace(LisUtil.isBank(itemList.getItemCode()),"041-",""));
|
||||||
xmFee.setSfxmmc(itemList.getItemName());
|
xmFee.setSfxmmc(itemList.getItemName());
|
||||||
xmFee.setDj(new BigDecimal(itemList.getItemPrice()));
|
xmFee.setDj(new BigDecimal(itemList.getItemPrice()));
|
||||||
xmFee.setSpec(itemList.getItemSpec());
|
xmFee.setSpec(itemList.getItemSpec());
|
||||||
@ -316,9 +318,9 @@ public class Lisinterface_jldermyy extends CommonImpl {
|
|||||||
Result result = toXml("00005", "QueryCondition", queryConditionMap);
|
Result result = toXml("00005", "QueryCondition", queryConditionMap);
|
||||||
if(!result.getResultCode().equals("0")) return result;
|
if(!result.getResultCode().equals("0")) return result;
|
||||||
Document document = XmlUtil.parseXml(result.getData().toString());
|
Document document = XmlUtil.parseXml(result.getData().toString());
|
||||||
NodeList nodeListByXPath = XmlUtil.getNodeListByXPath("//Res/UserList", document);
|
NodeList nodeListByXPath = XmlUtil.getNodeListByXPath("//Res/UserList/Row", document);
|
||||||
List<UserList> userListList = new ArrayList<>();
|
List<UserList> userListList = new ArrayList<>();
|
||||||
for (int i = 1; i <= nodeListByXPath.getLength(); i++) {
|
for (int i = 0; i < nodeListByXPath.getLength(); i++) {
|
||||||
UserList userList = XmlUtil.xmlToBean(nodeListByXPath.item(i), UserList.class);
|
UserList userList = XmlUtil.xmlToBean(nodeListByXPath.item(i), UserList.class);
|
||||||
userListList.add(userList);
|
userListList.add(userList);
|
||||||
}
|
}
|
||||||
@ -350,9 +352,9 @@ public class Lisinterface_jldermyy extends CommonImpl {
|
|||||||
Result result = toXml("00012", "WardInfo", wardInfoMap);
|
Result result = toXml("00012", "WardInfo", wardInfoMap);
|
||||||
if(!result.getResultCode().equals("0")) return result;
|
if(!result.getResultCode().equals("0")) return result;
|
||||||
Document document = XmlUtil.parseXml(result.getData().toString());
|
Document document = XmlUtil.parseXml(result.getData().toString());
|
||||||
NodeList nodeListByXPath = XmlUtil.getNodeListByXPath("//Res/WardList", document);
|
NodeList nodeListByXPath = XmlUtil.getNodeListByXPath("//Res/WardList/Row", document);
|
||||||
List<WardList> wardListList = new ArrayList<>();
|
List<WardList> wardListList = new ArrayList<>();
|
||||||
for (int i = 1; i <= nodeListByXPath.getLength(); i++) {
|
for (int i = 0; i < nodeListByXPath.getLength(); i++) {
|
||||||
WardList wardList = XmlUtil.xmlToBean(nodeListByXPath.item(i), WardList.class);
|
WardList wardList = XmlUtil.xmlToBean(nodeListByXPath.item(i), WardList.class);
|
||||||
wardListList.add(wardList);
|
wardListList.add(wardList);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user