Commit 9d67b4f8 by luoxin1

Merge branch 'master' of http://39.106.223.11/root/syzy_se

parents 8e06148f 17d0ee32
...@@ -40,6 +40,11 @@ ...@@ -40,6 +40,11 @@
</dependency> </dependency>
<!-- axis --> <!-- axis -->
<dependency> <dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.axis</groupId> <groupId>org.apache.axis</groupId>
<artifactId>axis</artifactId> <artifactId>axis</artifactId>
<version>1.4</version> <version>1.4</version>
...@@ -51,6 +56,11 @@ ...@@ -51,6 +56,11 @@
<version>1.6.2</version> <version>1.6.2</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.7</version>
</dependency>
<dependency>
<groupId>javax.xml</groupId> <groupId>javax.xml</groupId>
<artifactId>jaxrpc-api</artifactId> <artifactId>jaxrpc-api</artifactId>
<version>1.1</version> <version>1.1</version>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
package com.spk.zyse.admin.service;
import java.io.ByteArrayInputStream;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.beetl.sql.core.engine.PageQuery;
import org.beetl.sql.core.query.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import com.spk.admin.core.util.PlatformException;
import com.spk.zyse.meeting.dao.PaperMeetingDao;
import com.spk.zyse.meeting.entity.AcademicMeeting;
import com.spk.zyse.meeting.entity.PaperMeeting;
import com.spk.zyse.utils.XmlParseUtil;
import com.spk.zyse.uwf.entity.ProUwfActivitydef;
import com.spk.zyse.uwf.service.ProUwfActivityInstService;
import com.spk.zyse.uwf.service.ProUwfProcessInstService;
import com.spk.admin.core.dao.CoreOrgDao;
import com.spk.admin.core.dao.CoreUserDao;
import com.spk.admin.core.entity.CoreDict;
import com.spk.admin.core.entity.CoreOrg;
import com.spk.admin.core.entity.CoreUser;
import com.spk.admin.core.entity.CoreUserRole;
import com.spk.admin.core.service.BaseService;
import com.spk.admin.core.service.CorePlatformService;
/**
* PaperMeeting Service
*/
@Service
@Transactional
public class IndexTbService extends BaseService<PaperMeeting>{
@Autowired
private PaperMeetingDao paperMeetingDao;
@Autowired
private ProUwfActivityInstService proUwfActivityInstService;
@Autowired
private ProUwfProcessInstService proUwfProcessInstService;
@Autowired
private CorePlatformService platformService;
@Autowired
private CoreOrgDao coreOrgDao;
@Autowired
CoreUserDao coreUserDao;
public PageQuery<PaperMeeting>queryByCondition(PageQuery query){
PageQuery ret = paperMeetingDao.queryByCondition(query);
queryListAfter(ret.getList());
return ret;
}
public void batchDelPaperMeeting(List<Long> ids){
try {
paperMeetingDao.batchDelPaperMeetingByIds(ids);
} catch (Exception e) {
throw new PlatformException("批量删除失败", e);
}
}
public void submit(PaperMeeting paperMeeting) {
sqlManager.insert(PaperMeeting.class, paperMeeting);
String result = proUwfProcessInstService.saveOrUpdatePorcessInst(19L, paperMeeting.getProcessinstId());
if(!"success".equals(result)) {
Exception e=new Exception(result);
throw new PlatformException(e.getMessage(), e);
}
List<ProUwfActivitydef> def = proUwfActivityInstService.getNextActivityDef(19L, paperMeeting.getProcessinstId(), true);
String result1 = proUwfActivityInstService.gotoNextActivityDef(19L, paperMeeting.getProcessinstId(), def.get(0).getActivitydefId(), platformService.getCurrentUser().getId(), true,false);
if(!"success".equals(result1)) {
Exception e=new Exception(result1);
throw new PlatformException(e.getMessage(), e);
}
}
public void saveEntity(PaperMeeting paperMeeting) {
sqlManager.insert(PaperMeeting.class, paperMeeting);
String result = proUwfProcessInstService.saveOrUpdatePorcessInst(19L, paperMeeting.getProcessinstId());
if(!"success".equals(result)) {
Exception e=new Exception(result);
throw new PlatformException(e.getMessage(), e);
}
String result1 = proUwfActivityInstService.gotoNextActivityDef(19L, paperMeeting.getProcessinstId(), null, platformService.getCurrentUser().getId(), true,true);
if(!"success".equals(result1)) {
Exception e=new Exception(result1);
throw new PlatformException(e.getMessage(), e);
}
}
public void handleSubmit(PaperMeeting meeting) {
CoreUser coreUser = platformService.getCurrentUser();
String result = proUwfActivityInstService.updateActivityInst(meeting.getProcessinstId(), coreUser.getId(), true);
if(!"success".equals(result)) {
Exception e=new Exception(result);
throw new PlatformException(e.getMessage(), e);
}
List<ProUwfActivitydef> def = proUwfActivityInstService.getNextActivityDef(19L, meeting.getProcessinstId(), false);
String result2 = proUwfActivityInstService.gotoNextActivityDef(19L, meeting.getProcessinstId(), def.get(0).getActivitydefId(), coreUser.getId(), false, false);
if(!"success".equals(result2)) {
Exception e=new Exception(result2);
throw new PlatformException(e.getMessage(), e);
}
}
public void back(PaperMeeting meeting, String returnReason) {
CoreUser coreUser = platformService.getCurrentUser();
String result = proUwfActivityInstService.updateActivityInst(meeting.getProcessinstId(), coreUser.getId(), true);
if(!"success".equals(result)) {
Exception e=new Exception(result);
throw new PlatformException(e.getMessage(), e);
}
ProUwfActivitydef beginDef = proUwfActivityInstService.getBeginDef(19L);
String goBack = proUwfActivityInstService.goBack(19L, meeting.getProcessinstId(), beginDef.getActivitydefId(), coreUser.getId(), returnReason);
if(!"success".equals(goBack)) {
Exception e=new Exception(goBack);
throw new PlatformException(e.getMessage(), e);
}
}
public void updateAndSubmit(PaperMeeting paperMeeting) {
sqlManager.updateTemplateById(paperMeeting);
String result = proUwfProcessInstService.saveOrUpdatePorcessInst(19L, paperMeeting.getProcessinstId());
if(!"success".equals(result)) {
Exception e=new Exception(result);
throw new PlatformException(e.getMessage(), e);
}
List<ProUwfActivitydef> def = proUwfActivityInstService.getNextActivityDef(19L, paperMeeting.getProcessinstId(), true);
String result1 = proUwfActivityInstService.gotoNextActivityDef(19L, paperMeeting.getProcessinstId(), def.get(0).getActivitydefId(), platformService.getCurrentUser().getId(), true,false);
if(!"success".equals(result1)) {
Exception e=new Exception(result1);
throw new PlatformException(e.getMessage(), e);
}
}
public void updateEntity(PaperMeeting paperMeeting) {
sqlManager.updateTemplateById(paperMeeting);
String result = proUwfProcessInstService.saveOrUpdatePorcessInst(19L, paperMeeting.getProcessinstId());
if(!"success".equals(result)) {
Exception e=new Exception(result);
throw new PlatformException(e.getMessage(), e);
}
String result1 = proUwfActivityInstService.gotoNextActivityDef(19L, paperMeeting.getProcessinstId(), null, platformService.getCurrentUser().getId(), true,true);
if(!"success".equals(result1)) {
Exception e=new Exception(result1);
throw new PlatformException(e.getMessage(), e);
}
}
//同步数据-科室-删除
public String delQqOrgXmlParse(String xmlString) {
try {
String root="";
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(new ByteArrayInputStream(xmlString.getBytes("UTF-8")));
// 获取<subject1>元素
NodeList subject1Nodes = document.getElementsByTagName("subject1");
if (subject1Nodes.getLength() > 0) {
Element subject1Element = (Element) subject1Nodes.item(0);
// 遍历<subject1>的所有子节点
NodeList childNodes = subject1Element.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node childNode = childNodes.item(i);
// 检查节点是否为元素节点(跳过文本节点、注释节点等)
if (childNode.getNodeType() == Node.ELEMENT_NODE) {
Element childElement = (Element) childNode;
// 如果是<assignedEntity>元素,则进一步查找<id>
if ("assignedEntity".equals(childElement.getTagName())) {
NodeList idNodes = childElement.getElementsByTagName("id");
for (int j = 0; j < idNodes.getLength(); j++) {
Element idElement = (Element) idNodes.item(j);
// 检查id的root属性
root = idElement.getAttribute("root");
/*if ("2.16.156.10011.1.26".equals(root)) {
// 找到了具有特定root属性的<id>元素
System.out.println("Found id with root: " + root);
// 这里可以进一步处理id元素或其父元素<assignedEntity>
}*/
}
}
// 如果需要继续遍历更深的层次,可以递归调用遍历方法
// traverseElement(childElement);
}
}
}
//System.out.println("flavorId: " + flavorId);
/* CoreOrg org=new CoreOrg();
org.setCode(root);
org.setName(textContent);
org.setCreateTime(new Date());
CoreOrg orgP=coreOrgDao.queryOrgByCode(rootValue);
if(orgP!=null) {
org.setParentOrgId(orgP.getId());
}
org.setType("ORGT2");
org.setDelFlag(0);
coreOrgDao.insert(org);*/
CoreOrg orgP=coreOrgDao.queryOrgByCode(root);
if(orgP!=null) {
coreOrgDao.deleteById(orgP.getId());
}
System.out.println("root1122: " + root);
return delxyOrgxmlParse(xmlString);//delxyOrgxmlParse(xmlString);
} catch (Exception e) {
// TODO: handle exception
return delycOrgxmlParse(xmlString);
}
//return "";
}
public String delxyOrgxmlParse(String xmlString) {
return successOrgxmlParse(xmlString);
}
public String delycOrgxmlParse(String xmlString) {
return errorOrgxmlParse(xmlString);
}
//科室处理 -响应消息(成功)
public String successOrgxmlParse(String xmlString) {
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(new ByteArrayInputStream(xmlString.getBytes("UTF-8")));
StringBuffer returnStr=new StringBuffer();
returnStr.append("<MCCI_IN000002UV01 xmlns=\"urn:hl7-org:v3\"\r\n" +
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\"\r\n" +
"xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\">\r\n");
/*String[] str1=xmlString.split("<PRPM_IN401030UV01 xmlns=\"urn:hl7-org:v3\"\r\n" +
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\"\r\n" +
"xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/PRPM_IN401030UV01.xsd\">");*/
//System.out.println(str1[0].split("<creationTime")[0]);
//System.out.println(test1(xmlString));
/* returnStr.append(xmlString.split("<PRPM_IN401030UV01 xmlns=\"urn:hl7-org:v3\"\r\n" +
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\"\r\n" +
"xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/PRPM_IN401030UV01.xsd\">")[0].split("<creationTime")[0]);*/
returnStr.append(idTab(xmlString));
LocalDateTime dateTime = LocalDateTime.now(); // 假设这是你要格式化的日期时间
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
String formattedDateTime = dateTime.format(formatter);
returnStr.append("<creationTime value=\""+formattedDateTime+"\"/>\r\n");
NodeList intidnodeList = document.getElementsByTagName("interactionId");
String intidroot="";
String intidextension="";
for (int i = 0; i < intidnodeList.getLength(); i++) {
Node node = intidnodeList.item(i);
if (node.getNodeType() == Node.ELEMENT_NODE) {
Element element = (Element) node;
intidroot = element.getAttribute("root");
intidextension = element.getAttribute("extension");
System.out.println("intidroot: " + intidroot);
System.out.println("intidextension: " + intidextension);
}
}
returnStr.append("<interactionId root=\""+intidroot+"\" extension=\""+intidextension+"\"/>\r\n");
//processingCode
NodeList pcnodeList = document.getElementsByTagName("processingCode");
String pccode="";
for (int i = 0; i < pcnodeList.getLength(); i++) {
Node node = pcnodeList.item(i);
if (node.getNodeType() == Node.ELEMENT_NODE) {
Element element = (Element) node;
pccode = element.getAttribute("code");
// pcextension = element.getAttribute("extension");
System.out.println("pccode: " + pccode);
}
}
returnStr.append("<processingCode code=\""+pccode+"\"/>\r\n");
//processingModeCode
NodeList pmnodeList = document.getElementsByTagName("processingModeCode");
String pmcode="";
for (int i = 0; i < pmnodeList.getLength(); i++) {
Node node = pmnodeList.item(i);
if (node.getNodeType() == Node.ELEMENT_NODE) {
Element element = (Element) node;
pmcode = element.getAttribute("code");
// pcextension = element.getAttribute("extension");
System.out.println("pmcode: " + pmcode);
}
}
returnStr.append("<processingModeCode code=\""+pmcode+"\"/>\r\n");
//acceptAckCode
NodeList acnodeList = document.getElementsByTagName("acceptAckCode");
String accode="";
for (int i = 0; i < acnodeList.getLength(); i++) {
Node node = acnodeList.item(i);
if (node.getNodeType() == Node.ELEMENT_NODE) {
Element element = (Element) node;
accode = element.getAttribute("code");
// pcextension = element.getAttribute("extension");
System.out.println("accode: " + accode);
}
}
returnStr.append("<acceptAckCode code=\""+accode+"\"/>\r\n");
//receiver
//获取receiver值
NodeList recnodeList = document.getElementsByTagName("receiver");
String retypeCode="";
for (int k = 0; k < recnodeList.getLength(); k++) {
Node node = recnodeList.item(k);
if (node.getNodeType() == Node.ELEMENT_NODE) {
Element element = (Element) node;
retypeCode = element.getAttribute("typeCode");
System.out.println("retypeCode: " + retypeCode);
}
}
returnStr.append("<receiver typeCode=\""+retypeCode+"\">\r\n");
//device
String devclassCode="";
String devdeterminerCode="";
//id
String recidroot="";
String recextension="";
if (recnodeList != null && recnodeList.getLength() > 0) {
Element receiver = (Element) recnodeList.item(0);
// 获取device元素
NodeList devices = receiver.getElementsByTagName("device");
if (devices != null && devices.getLength() > 0) {
Element device = (Element) devices.item(0);
// 获取device元素的属性
devclassCode = device.getAttribute("classCode");
devdeterminerCode = device.getAttribute("determinerCode");
System.out.println("devclassCode: " + devclassCode);
System.out.println("devdeterminerCode: " + devdeterminerCode);
// 获取device元素下的id元素
NodeList ids = device.getElementsByTagName("id");
if (ids != null && ids.getLength() > 0) {
Element id = (Element) ids.item(0);
// 获取id元素的root属性
recidroot = id.getAttribute("root");
recextension = id.getAttribute("extension");
System.out.println("recidroot: " + recidroot);
System.out.println("recextension: " + recextension);
}
}
}
returnStr.append("<device classCode=\""+devclassCode+"\" determinerCode=\""+devdeterminerCode+"\">\r\n");
returnStr.append("<id root=\""+recidroot+"\" extension=\""+recextension+"\"/>\r\n");
returnStr.append("</device>\r\n");
returnStr.append("</receiver>\r\n");
//sender
NodeList sendnodeList = document.getElementsByTagName("sender");
String sendtypeCode="";
for (int k = 0; k < sendnodeList.getLength(); k++) {
Node node = sendnodeList.item(k);
if (node.getNodeType() == Node.ELEMENT_NODE) {
Element element = (Element) node;
sendtypeCode = element.getAttribute("typeCode");
System.out.println("sendtypeCode: " + sendtypeCode);
}
}
returnStr.append("<sender typeCode=\""+sendtypeCode+"\">\r\n");
//device
String senddevclassCode="";
String senddevdeterminerCode="";
//id
String sendrecidroot="";
String sendrecextension="";
if (sendnodeList != null && sendnodeList.getLength() > 0) {
Element sender = (Element) sendnodeList.item(0);
// 获取device元素
NodeList devices = sender.getElementsByTagName("device");
if (devices != null && devices.getLength() > 0) {
Element device = (Element) devices.item(0);
// 获取device元素的属性
senddevclassCode = device.getAttribute("classCode");
senddevdeterminerCode = device.getAttribute("determinerCode");
System.out.println("senddevclassCode: " + senddevclassCode);
System.out.println("senddevdeterminerCode: " + senddevdeterminerCode);
// 获取device元素下的id元素
NodeList ids = device.getElementsByTagName("id");
if (ids != null && ids.getLength() > 0) {
Element id = (Element) ids.item(0);
// 获取id元素的root属性
sendrecidroot = id.getAttribute("root");
sendrecextension = id.getAttribute("extension");
System.out.println("sendrecidroot: " + sendrecidroot);
System.out.println("sendrecextension: " + sendrecextension);
}
}
}
returnStr.append("<device classCode=\""+senddevclassCode+"\" determinerCode=\""+senddevdeterminerCode+"\">\r\n");
returnStr.append("<id root=\""+sendrecidroot+"\" extension=\""+sendrecextension+"\"/>\r\n");
returnStr.append("</device>\r\n");
returnStr.append("</sender>\r\n");
returnStr.append("<acknowledgement typeCode=\"AA\">\r\n");
returnStr.append("<targetMessage>\r\n");
/* String[] str=xmlString.split("<PRPM_IN401030UV01 xmlns=\"urn:hl7-org:v3\"\r\n" +
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\"\r\n" +
"xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/PRPM_IN401030UV01.xsd\">");
System.out.println(str.toString());*/
/* String idstr=xmlString.split("<PRPM_IN401030UV01 xmlns=\"urn:hl7-org:v3\"\r\n" +
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\"\r\n" +
"xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/PRPM_IN401030UV01.xsd\">")[1].split("<creationTime")[0];
returnStr.append(idstr);*/
returnStr.append(idTab(xmlString));
returnStr.append("</targetMessage>\r\n");
returnStr.append("<acknowledgementDetail>\r\n");
returnStr.append("<text>成功</text>\r\n");
returnStr.append("</acknowledgementDetail>\r\n");
returnStr.append("</acknowledgement>\r\n");
returnStr.append("</MCCI_IN000002UV01>");
System.out.println(returnStr.toString());
return returnStr.toString();
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return "解析出错!";
}
}
//科室处理 -响应消息(失败)
public String errorOrgxmlParse(String xmlString) {
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(new ByteArrayInputStream(xmlString.getBytes("UTF-8")));
StringBuffer returnStr=new StringBuffer();
returnStr.append("<MCCI_IN000002UV01 xmlns=\"urn:hl7-org:v3\"\r\n" +
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\"\r\n" +
"xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\">\r\n");
/* returnStr.append(xmlString.split("<PRPM_IN401030UV01 xmlns=\"urn:hl7-org:v3\"\r\n" +
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\"\r\n" +
"xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/PRPM_IN401030UV01.xsd\">")[1].split("<creationTime")[0]);*/
returnStr.append(idTab(xmlString));
LocalDateTime dateTime = LocalDateTime.now(); // 假设这是你要格式化的日期时间
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
String formattedDateTime = dateTime.format(formatter);
returnStr.append("<creationTime value=\""+formattedDateTime+"\"/>\r\n");
NodeList intidnodeList = document.getElementsByTagName("interactionId");
String intidroot="";
String intidextension="";
for (int i = 0; i < intidnodeList.getLength(); i++) {
Node node = intidnodeList.item(i);
if (node.getNodeType() == Node.ELEMENT_NODE) {
Element element = (Element) node;
intidroot = element.getAttribute("root");
intidextension = element.getAttribute("extension");
System.out.println("intidroot: " + intidroot);
System.out.println("intidextension: " + intidextension);
}
}
returnStr.append("<interactionId root=\""+intidroot+"\" extension=\""+intidextension+"\"/>\r\n");
//processingCode
NodeList pcnodeList = document.getElementsByTagName("processingCode");
String pccode="";
for (int i = 0; i < pcnodeList.getLength(); i++) {
Node node = pcnodeList.item(i);
if (node.getNodeType() == Node.ELEMENT_NODE) {
Element element = (Element) node;
pccode = element.getAttribute("code");
// pcextension = element.getAttribute("extension");
System.out.println("pccode: " + pccode);
}
}
returnStr.append("<processingCode code=\""+pccode+"\"/>\r\n");
//processingModeCode
NodeList pmnodeList = document.getElementsByTagName("processingModeCode");
String pmcode="";
for (int i = 0; i < pmnodeList.getLength(); i++) {
Node node = pmnodeList.item(i);
if (node.getNodeType() == Node.ELEMENT_NODE) {
Element element = (Element) node;
pmcode = element.getAttribute("code");
// pcextension = element.getAttribute("extension");
System.out.println("pmcode: " + pmcode);
}
}
returnStr.append("<processingModeCode code=\""+pmcode+"\"/>\r\n");
//acceptAckCode
NodeList acnodeList = document.getElementsByTagName("acceptAckCode");
String accode="";
for (int i = 0; i < acnodeList.getLength(); i++) {
Node node = acnodeList.item(i);
if (node.getNodeType() == Node.ELEMENT_NODE) {
Element element = (Element) node;
accode = element.getAttribute("code");
// pcextension = element.getAttribute("extension");
System.out.println("accode: " + accode);
}
}
returnStr.append("<acceptAckCode code=\""+accode+"\"/>\r\n");
//receiver
//获取receiver值
NodeList recnodeList = document.getElementsByTagName("receiver");
String retypeCode="";
for (int k = 0; k < recnodeList.getLength(); k++) {
Node node = recnodeList.item(k);
if (node.getNodeType() == Node.ELEMENT_NODE) {
Element element = (Element) node;
retypeCode = element.getAttribute("typeCode");
System.out.println("retypeCode: " + retypeCode);
}
}
returnStr.append("<receiver typeCode=\""+retypeCode+"\">\r\n");
//device
String devclassCode="";
String devdeterminerCode="";
//id
String recidroot="";
String recextension="";
if (recnodeList != null && recnodeList.getLength() > 0) {
Element receiver = (Element) recnodeList.item(0);
// 获取device元素
NodeList devices = receiver.getElementsByTagName("device");
if (devices != null && devices.getLength() > 0) {
Element device = (Element) devices.item(0);
// 获取device元素的属性
devclassCode = device.getAttribute("classCode");
devdeterminerCode = device.getAttribute("determinerCode");
System.out.println("devclassCode: " + devclassCode);
System.out.println("devdeterminerCode: " + devdeterminerCode);
// 获取device元素下的id元素
NodeList ids = device.getElementsByTagName("id");
if (ids != null && ids.getLength() > 0) {
Element id = (Element) ids.item(0);
// 获取id元素的root属性
recidroot = id.getAttribute("root");
recextension = id.getAttribute("extension");
System.out.println("recidroot: " + recidroot);
System.out.println("recextension: " + recextension);
}
}
}
returnStr.append("<device classCode=\""+devclassCode+"\" determinerCode=\""+devdeterminerCode+"\">\r\n");
returnStr.append("<id root=\""+recidroot+"\" extension=\""+recextension+"\"/>\r\n");
returnStr.append("</device>\r\n");
returnStr.append("</receiver>\r\n");
//sender
NodeList sendnodeList = document.getElementsByTagName("sender");
String sendtypeCode="";
for (int k = 0; k < sendnodeList.getLength(); k++) {
Node node = sendnodeList.item(k);
if (node.getNodeType() == Node.ELEMENT_NODE) {
Element element = (Element) node;
sendtypeCode = element.getAttribute("typeCode");
System.out.println("sendtypeCode: " + sendtypeCode);
}
}
returnStr.append("<sender typeCode=\""+sendtypeCode+"\">\r\n");
//device
String senddevclassCode="";
String senddevdeterminerCode="";
//id
String sendrecidroot="";
String sendrecextension="";
if (sendnodeList != null && sendnodeList.getLength() > 0) {
Element sender = (Element) sendnodeList.item(0);
// 获取device元素
NodeList devices = sender.getElementsByTagName("device");
if (devices != null && devices.getLength() > 0) {
Element device = (Element) devices.item(0);
// 获取device元素的属性
senddevclassCode = device.getAttribute("classCode");
senddevdeterminerCode = device.getAttribute("determinerCode");
System.out.println("senddevclassCode: " + senddevclassCode);
System.out.println("senddevdeterminerCode: " + senddevdeterminerCode);
// 获取device元素下的id元素
NodeList ids = device.getElementsByTagName("id");
if (ids != null && ids.getLength() > 0) {
Element id = (Element) ids.item(0);
// 获取id元素的root属性
sendrecidroot = id.getAttribute("root");
sendrecextension = id.getAttribute("extension");
System.out.println("sendrecidroot: " + sendrecidroot);
System.out.println("sendrecextension: " + sendrecextension);
}
}
}
returnStr.append("<device classCode=\""+senddevclassCode+"\" determinerCode=\""+senddevdeterminerCode+"\">\r\n");
returnStr.append("<id root=\""+sendrecidroot+"\" extension=\""+sendrecextension+"\"/>\r\n");
returnStr.append("</device>\r\n");
returnStr.append("</sender>\r\n");
returnStr.append("<acknowledgement typeCode=\"AE\">\r\n");
returnStr.append("<targetMessage>\r\n");
/* String idstr=xmlString.split("<PRPM_IN401030UV01 xmlns=\"urn:hl7-org:v3\"\r\n" +
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\"\r\n" +
"xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/PRPM_IN401030UV01.xsd\">")[1].split("<creationTime")[0];
returnStr.append(idstr);*/
returnStr.append(idTab(xmlString));
returnStr.append("</targetMessage>\r\n");
returnStr.append("<acknowledgementDetail>\r\n");
returnStr.append("<text>失败</text>\r\n");
returnStr.append("</acknowledgementDetail>\r\n");
returnStr.append("</acknowledgement>\r\n");
returnStr.append("</MCCI_IN000002UV01>");
System.out.println(returnStr.toString());
return returnStr.toString();
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
return "解析出错!";
}
}
public String idTab(String xml) {
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(new ByteArrayInputStream(xml.getBytes("UTF-8")));
// 获取XML文档的根元素
Element rootElement = document.getDocumentElement();
// 获取所有id标签的列表
NodeList idNodes = rootElement.getElementsByTagName("id");
// 因为我们假设只有一个id元素与creationTime在同一层级
// 所以我们只获取第一个id节点
Element idElement = (Element) idNodes.item(0);
// 获取root属性
String rootAttribute = idElement.getAttribute("root");
// 获取extension属性
String extensionAttribute = idElement.getAttribute("extension");
// 输出结果
System.out.println("root: " + rootAttribute);
System.out.println("extension: " + extensionAttribute);
return "<id root=\""+rootAttribute+"\" extension=\""+extensionAttribute+"\"/>\r\n";
} catch (Exception e) {
e.printStackTrace();
return "";
}
}
public String updateXmlParse(String xmlString) {
// TODO Auto-generated method stub
try {
String root="";
String textContent="";
String rootValue="";
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(new ByteArrayInputStream(xmlString.getBytes("UTF-8")));
// 获取<subject1>元素
NodeList subject1Nodes = document.getElementsByTagName("subject1");
if (subject1Nodes.getLength() > 0) {
Element subject1Element = (Element) subject1Nodes.item(0);
// 遍历<subject1>的所有子节点
NodeList childNodes = subject1Element.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node childNode = childNodes.item(i);
// 检查节点是否为元素节点(跳过文本节点、注释节点等)
if (childNode.getNodeType() == Node.ELEMENT_NODE) {
Element childElement = (Element) childNode;
// 如果是<assignedEntity>元素,则进一步查找<id>
if ("assignedEntity".equals(childElement.getTagName())) {
NodeList idNodes = childElement.getElementsByTagName("id");
for (int j = 0; j < idNodes.getLength(); j++) {
Element idElement = (Element) idNodes.item(j);
// 检查id的root属性
root = idElement.getAttribute("root");
/*if ("2.16.156.10011.1.26".equals(root)) {
// 找到了具有特定root属性的<id>元素
System.out.println("Found id with root: " + root);
// 这里可以进一步处理id元素或其父元素<assignedEntity>
}*/
}
//获取name值
NodeList nodeList = childElement.getElementsByTagName("name");
for (int k = 0; k < nodeList.getLength(); k++) {
Node node = nodeList.item(k);
if (node.getNodeType() == Node.ELEMENT_NODE) {
Element element = (Element) node;
String flavorId = element.getAttribute("flavorId");
if(flavorId!=null&&!"".equals(flavorId)) {
textContent = element.getTextContent();
}
//System.out.println("flavorId: " + flavorId);
//System.out.println("textContent1122: " + textContent);
}
}
}
// 如果需要继续遍历更深的层次,可以递归调用遍历方法
// traverseElement(childElement);
}
}
//获取科室父级节点
// 查找assignedEntity元素
NodeList assignedEntityList = subject1Element.getElementsByTagName("assignedEntity");
if (assignedEntityList.getLength() > 0) {
Element assignedEntityElement = (Element) assignedEntityList.item(0);
// 查找assignedPrincipalOrganization元素
NodeList assignedPrincipalOrgList = assignedEntityElement.getElementsByTagName("assignedPrincipalOrganization");
if (assignedPrincipalOrgList.getLength() > 0) {
Element assignedPrincipalOrgElement = (Element) assignedPrincipalOrgList.item(0);
// 查找asAffiliate元素
NodeList asAffiliateList = assignedPrincipalOrgElement.getElementsByTagName("asAffiliate");
if (asAffiliateList.getLength() > 0) {
Element asAffiliateElement = (Element) asAffiliateList.item(0);
// 查找affiliatedPrincipalOrganization元素
NodeList affiliatedPrincipalOrgList = asAffiliateElement.getElementsByTagName("affiliatedPrincipalOrganization");
if (affiliatedPrincipalOrgList.getLength() > 0) {
Element affiliatedPrincipalOrgElement = (Element) affiliatedPrincipalOrgList.item(0);
// 查找id元素并提取root属性的值
NodeList idList = affiliatedPrincipalOrgElement.getElementsByTagName("id");
if (idList.getLength() > 0) {
Element idElement = (Element) idList.item(0);
rootValue = idElement.getAttribute("root");
System.out.println("Root Value: " + rootValue);
}
}
}
}
}
}
//System.out.println("flavorId: " + flavorId);
/* CoreOrg org=new CoreOrg();
org.setCode(root);
org.setName(textContent);
org.setCreateTime(new Date());
CoreOrg orgP=coreOrgDao.queryOrgByCode(rootValue);
if(orgP!=null) {
org.setParentOrgId(orgP.getId());
}
org.setType("ORGT2");
org.setDelFlag(0);
coreOrgDao.insert(org);*/
CoreOrg orgC=coreOrgDao.queryOrgByCode(root);
orgC.setCode(root);
orgC.setName(textContent);
CoreOrg orgP=coreOrgDao.queryOrgByCode(rootValue);
if(orgP!=null) {
orgC.setParentOrgId(orgP.getId());
}
coreOrgDao.updateTemplateById(orgC);
System.out.println("textContent1122: " + textContent);
return successOrgxmlParse(xmlString);
} catch (Exception e) {
// TODO: handle exception
return errorOrgxmlParse(xmlString);
}
//return "";
}
/**
* 修订版---JH0601医疗卫生机构信息注册服务-T01响应
* methonCode 1代表医疗卫生机构信息注册服务,2代表医疗卫生机构信息更新服务,3代表医疗卫生机构信息服务,4代表JH0701医疗卫生人员信息注册服务
* */
public String sucessRegisterOrgT01Xy(String xmlStr,String methonCode) {
LocalDateTime dateTime = LocalDateTime.now(); // 假设这是你要格式化的日期时间
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
String formattedDateTime = dateTime.format(formatter);
StringBuffer returnStr=new StringBuffer();
if("1".equals(methonCode)) {
returnStr.append("<MCCI_IN000002UV01 xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\">\r\n");
returnStr.append("<!-- 消息ID extension请使用GUID生成 -->\r\n");
returnStr.append("<id root=\""+formattedDateTime+"\" extension=\""+UUID.randomUUID().toString()+"\"/>\r\n");
returnStr.append("<!-- 消息创建时间 -->\r\n");
returnStr.append("<creationTime value=\""+formattedDateTime+"\"/>\r\n");
returnStr.append("<!-- 服务标识,extension为唯一事件编码,区分服务事件 -->\r\n");
returnStr.append("<interactionId root=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN401030UV01/interactionId/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN401030UV01/interactionId/@extension")+"\"/>\r\n");
returnStr.append("<!-- 消息用途: P(Production); D(Debugging); T(Training) -->\r\n");
returnStr.append("<processingCode code=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN401030UV01/processingCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 消息处理模式: \"取值可以为以下列出值中任意一个,正式使用时设置为\"\"T\"\"A(Archive);I(Initial load); R(Restore from archive); T(Current processing)\" -->\r\n");
returnStr.append("<processingModeCode code=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/processingModeCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 消息应答: \"取值可以为以下列出值中任意一个,正式使用时设置为\"\"NE\"\"AL(Always); ER(Error/reject only); NE(Never)\" -->\r\n");
returnStr.append("<acceptAckCode code=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/acceptAckCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 接受者 -->\r\n");
returnStr.append("<receiver typeCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/receiver/@typeCode")+"\">\r\n");
returnStr.append("<!-- 接受设备/应用 -->\r\n");
returnStr.append("<device classCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/receiver/device/@classCode")+"\" determinerCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/receiver/device/@determinerCode")+"\">\r\n");
returnStr.append("<!-- 接收系统ID -->\r\n");
returnStr.append("<id>\r\n" +
"<item root=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/receiver/device/id/item/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN401030UV01/receiver/device/id/item/@extension")+" \"/>\r\n" +
"</id>\r\n</device>\r\n</receiver>\r\n");
returnStr.append("<!-- 发送者 -->\r\n");
returnStr.append("<sender typeCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/sender/@typeCode")+"\">\r\n");
returnStr.append("<!-- 发送设备/应用 -->\r\n" +
"<device classCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/sender/device/@classCode")+"\" determinerCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/sender/device/@determinerCode")+"\">\r\n" +
"<!-- 发送系统ID -->\r\n");
returnStr.append("<id>\r\n" +
"<item root=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/sender/device/id/item/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/sender/device/id/item/@extension")+" \"/>\r\n" +
"</id>\r\n" +
"</device>\r\n" +
"</sender>");
returnStr.append("<!-- typeCode 为处理结果,AA表示成功 AE 表示失败 -->\r\n" +
"<acknowledgement typeCode=\"AA\">\r\n" +
"<targetMessage>\r\n" +
"<!-- 请求的消息ID -->\r\n" +
"<id extension=\"\"/>\r\n" +
"</targetMessage>\r\n" +
"<acknowledgementDetail>\r\n" +
"<!-- 处理结果说明 -->\r\n" +
"<text>成功</text>\r\n" +
"</acknowledgementDetail>\r\n" +
"</acknowledgement>\r\n" +
"</MCCI_IN000002UV01>");
}else if("2".equals(methonCode)||"3".equals(methonCode)) {
returnStr.append("<MCCI_IN000002UV01 xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\">\r\n");
returnStr.append("<!-- 消息ID extension请使用GUID生成 -->\r\n");
returnStr.append("<id root=\""+formattedDateTime+"\" extension=\""+UUID.randomUUID().toString()+"\"/>\r\n");
returnStr.append("<!-- 消息创建时间 -->\r\n");
returnStr.append("<creationTime value=\""+formattedDateTime+"\"/>\r\n");
returnStr.append("<!-- 服务标识,extension为唯一事件编码,区分服务事件 -->\r\n");
returnStr.append("<interactionId root=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN403010UV01/interactionId/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN403010UV01/interactionId/@extension")+"\"/>\r\n");
returnStr.append("<!-- 消息用途: P(Production); D(Debugging); T(Training) -->\r\n");
returnStr.append("<processingCode code=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN403010UV01/processingCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 消息处理模式: \"取值可以为以下列出值中任意一个,正式使用时设置为\"\"T\"\"A(Archive);I(Initial load); R(Restore from archive); T(Current processing)\" -->\r\n");
returnStr.append("<processingModeCode code=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/processingModeCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 消息应答: \"取值可以为以下列出值中任意一个,正式使用时设置为\"\"NE\"\"AL(Always); ER(Error/reject only); NE(Never)\" -->\r\n");
returnStr.append("<acceptAckCode code=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/acceptAckCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 接受者 -->\r\n");
returnStr.append("<receiver typeCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/receiver/@typeCode")+"\">\r\n");
returnStr.append("<!-- 接受设备/应用 -->\r\n");
returnStr.append("<device classCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/receiver/device/@classCode")+"\" determinerCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/receiver/device/@determinerCode")+"\">\r\n");
returnStr.append("<!-- 接收系统ID -->\r\n");
returnStr.append("<id>\r\n" +
"<item root=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/receiver/device/id/item/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN403010UV01/receiver/device/id/item/@extension")+" \"/>\r\n" +
"</id>\r\n</device>\r\n</receiver>\r\n");
returnStr.append("<!-- 发送者 -->\r\n");
returnStr.append("<sender typeCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/sender/@typeCode")+"\">\r\n");
returnStr.append("<!-- 发送设备/应用 -->\r\n" +
"<device classCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/sender/device/@classCode")+"\" determinerCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/sender/device/@determinerCode")+"\">\r\n" +
"<!-- 发送系统ID -->\r\n");
returnStr.append("<id>\r\n" +
"<item root=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/sender/device/id/item/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/sender/device/id/item/@extension")+" \"/>\r\n" +
"</id>\r\n" +
"</device>\r\n" +
"</sender>");
returnStr.append("<!-- typeCode 为处理结果,AA表示成功 AE 表示失败 -->\r\n" +
"<acknowledgement typeCode=\"AA\">\r\n" +
"<targetMessage>\r\n" +
"<!-- 请求的消息ID -->\r\n" +
"<id extension=\"\"/>\r\n" +
"</targetMessage>\r\n" +
"<acknowledgementDetail>\r\n" +
"<!-- 处理结果说明 -->\r\n" +
"<text>成功</text>\r\n" +
"</acknowledgementDetail>\r\n" +
"</acknowledgement>\r\n" +
"</MCCI_IN000002UV01>");
}else if("4".equals(methonCode)) {
returnStr.append("<MCCI_IN000002UV01 xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\">\r\n");
returnStr.append("<!-- 消息ID extension请使用GUID生成 -->\r\n");
returnStr.append("<id root=\""+formattedDateTime+"\" extension=\""+UUID.randomUUID().toString()+"\"/>\r\n");
returnStr.append("<!-- 消息创建时间 -->\r\n");
returnStr.append("<creationTime value=\""+formattedDateTime+"\"/>\r\n");
returnStr.append("<!-- 服务标识,extension为唯一事件编码,区分服务事件 -->\r\n");
returnStr.append("<interactionId root=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN303010UV01/interactionId/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN303010UV01/interactionId/@extension")+"\"/>\r\n");
returnStr.append("<!-- 消息用途: P(Production); D(Debugging); T(Training) -->\r\n");
returnStr.append("<processingCode code=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN303010UV01/processingCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 消息处理模式: \"取值可以为以下列出值中任意一个,正式使用时设置为\"\"T\"\"A(Archive);I(Initial load); R(Restore from archive); T(Current processing)\" -->\r\n");
returnStr.append("<processingModeCode code=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/processingModeCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 消息应答: \"取值可以为以下列出值中任意一个,正式使用时设置为\"\"NE\"\"AL(Always); ER(Error/reject only); NE(Never)\" -->\r\n");
returnStr.append("<acceptAckCode code=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/acceptAckCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 接受者 -->\r\n");
returnStr.append("<receiver typeCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/receiver/@typeCode")+"\">\r\n");
returnStr.append("<!-- 接受设备/应用 -->\r\n");
returnStr.append("<device classCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/receiver/device/@classCode")+"\" determinerCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/receiver/device/@determinerCode")+"\">\r\n");
returnStr.append("<!-- 接收系统ID -->\r\n");
returnStr.append("<id>\r\n" +
"<item root=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/receiver/device/id/item/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN303010UV01/receiver/device/id/item/@extension")+" \"/>\r\n" +
"</id>\r\n</device>\r\n</receiver>\r\n");
returnStr.append("<!-- 发送者 -->\r\n");
returnStr.append("<sender typeCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/sender/@typeCode")+"\">\r\n");
returnStr.append("<!-- 发送设备/应用 -->\r\n" +
"<device classCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/sender/device/@classCode")+"\" determinerCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/sender/device/@determinerCode")+"\">\r\n" +
"<!-- 发送系统ID -->\r\n");
returnStr.append("<id>\r\n" +
"<item root=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/sender/device/id/item/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/sender/device/id/item/@extension")+" \"/>\r\n" +
"</id>\r\n" +
"</device>\r\n" +
"</sender>");
returnStr.append("<!-- typeCode 为处理结果,AA表示成功 AE 表示失败 -->\r\n" +
"<acknowledgement typeCode=\"AA\">\r\n" +
"<targetMessage>\r\n" +
"<!-- 请求的消息ID -->\r\n" +
"<id extension=\"\"/>\r\n" +
"</targetMessage>\r\n" +
"<acknowledgementDetail>\r\n" +
"<!-- 处理结果说明 -->\r\n" +
"<text>成功</text>\r\n" +
"</acknowledgementDetail>\r\n" +
"</acknowledgement>\r\n" +
"</MCCI_IN000002UV01>");
}else if("5".equals(methonCode)) {
returnStr.append("<MCCI_IN000002UV01 xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\">\r\n");
returnStr.append("<!-- 消息ID extension请使用GUID生成 -->\r\n");
returnStr.append("<id root=\""+formattedDateTime+"\" extension=\""+UUID.randomUUID().toString()+"\"/>\r\n");
returnStr.append("<!-- 消息创建时间 -->\r\n");
returnStr.append("<creationTime value=\""+formattedDateTime+"\"/>\r\n");
returnStr.append("<!-- 服务标识,extension为唯一事件编码,区分服务事件 -->\r\n");
returnStr.append("<interactionId root=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN301010UV01/interactionId/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN301010UV01/interactionId/@extension")+"\"/>\r\n");
returnStr.append("<!-- 消息用途: P(Production); D(Debugging); T(Training) -->\r\n");
returnStr.append("<processingCode code=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN301010UV01/processingCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 消息处理模式: \"取值可以为以下列出值中任意一个,正式使用时设置为\"\"T\"\"A(Archive);I(Initial load); R(Restore from archive); T(Current processing)\" -->\r\n");
returnStr.append("<processingModeCode code=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/processingModeCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 消息应答: \"取值可以为以下列出值中任意一个,正式使用时设置为\"\"NE\"\"AL(Always); ER(Error/reject only); NE(Never)\" -->\r\n");
returnStr.append("<acceptAckCode code=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/acceptAckCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 接受者 -->\r\n");
returnStr.append("<receiver typeCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/receiver/@typeCode")+"\">\r\n");
returnStr.append("<!-- 接受设备/应用 -->\r\n");
returnStr.append("<device classCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/receiver/device/@classCode")+"\" determinerCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/receiver/device/@determinerCode")+"\">\r\n");
returnStr.append("<!-- 接收系统ID -->\r\n");
returnStr.append("<id>\r\n" +
"<item root=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/receiver/device/id/item/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN301010UV01/receiver/device/id/item/@extension")+" \"/>\r\n" +
"</id>\r\n</device>\r\n</receiver>\r\n");
returnStr.append("<!-- 发送者 -->\r\n");
returnStr.append("<sender typeCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/sender/@typeCode")+"\">\r\n");
returnStr.append("<!-- 发送设备/应用 -->\r\n" +
"<device classCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/sender/device/@classCode")+"\" determinerCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/sender/device/@determinerCode")+"\">\r\n" +
"<!-- 发送系统ID -->\r\n");
returnStr.append("<id>\r\n" +
"<item root=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/sender/device/id/item/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/sender/device/id/item/@extension")+" \"/>\r\n" +
"</id>\r\n" +
"</device>\r\n" +
"</sender>");
returnStr.append("<!-- typeCode 为处理结果,AA表示成功 AE 表示失败 -->\r\n" +
"<acknowledgement typeCode=\"AA\">\r\n" +
"<targetMessage>\r\n" +
"<!-- 请求的消息ID -->\r\n" +
"<id extension=\"\"/>\r\n" +
"</targetMessage>\r\n" +
"<acknowledgementDetail>\r\n" +
"<!-- 处理结果说明 -->\r\n" +
"<text>成功</text>\r\n" +
"</acknowledgementDetail>\r\n" +
"</acknowledgement>\r\n" +
"</MCCI_IN000002UV01>");
}
return returnStr.toString();
}
//修订版---JH0601医疗卫生机构信息注册服务-F01响应
public String errorRegisterOrgT01Xy(String xmlStr,String methonCode) {
LocalDateTime dateTime = LocalDateTime.now(); // 假设这是你要格式化的日期时间
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
String formattedDateTime = dateTime.format(formatter);
StringBuffer returnStr=new StringBuffer();
if("1".equals(methonCode)) {
returnStr.append("<MCCI_IN000002UV01 xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\">\r\n");
returnStr.append("<!-- 消息ID extension请使用GUID生成 -->\r\n");
returnStr.append("<id root=\""+formattedDateTime+"\" extension=\""+UUID.randomUUID().toString()+"\"/>\r\n");
returnStr.append("<!-- 消息创建时间 -->\r\n");
returnStr.append("<creationTime value=\""+formattedDateTime+"\"/>\r\n");
returnStr.append("<!-- 服务标识,extension为唯一事件编码,区分服务事件 -->\r\n");
returnStr.append("<interactionId root=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN401030UV01/interactionId/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN401030UV01/interactionId/@extension")+"\"/>\r\n");
returnStr.append("<!-- 消息用途: P(Production); D(Debugging); T(Training) -->\r\n");
returnStr.append("<processingCode code=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN401030UV01/processingCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 消息处理模式: \"取值可以为以下列出值中任意一个,正式使用时设置为\"\"T\"\"A(Archive);I(Initial load); R(Restore from archive); T(Current processing)\" -->\r\n");
returnStr.append("<processingModeCode code=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/processingModeCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 消息应答: \"取值可以为以下列出值中任意一个,正式使用时设置为\"\"NE\"\"AL(Always); ER(Error/reject only); NE(Never)\" -->\r\n");
returnStr.append("<acceptAckCode code=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/acceptAckCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 接受者 -->\r\n");
returnStr.append("<receiver typeCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/receiver/@typeCode")+"\">\r\n");
returnStr.append("<!-- 接受设备/应用 -->\r\n");
returnStr.append("<device classCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/receiver/device/@classCode")+"\" determinerCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/receiver/device/@determinerCode")+"\">\r\n");
returnStr.append("<!-- 接收系统ID -->\r\n");
returnStr.append("<id>\r\n" +
"<item root=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/receiver/device/id/item/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN401030UV01/receiver/device/id/item/@extension")+" \"/>\r\n" +
"</id>\r\n</device>\r\n</receiver>\r\n");
returnStr.append("<!-- 发送者 -->\r\n");
returnStr.append("<sender typeCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/sender/@typeCode")+"\">\r\n");
returnStr.append("<!-- 发送设备/应用 -->\r\n" +
"<device classCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/sender/device/@classCode")+"\" determinerCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/sender/device/@determinerCode")+"\">\r\n" +
"<!-- 发送系统ID -->\r\n");
returnStr.append("<id>\r\n" +
"<item root=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/sender/device/id/item/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN401030UV01/sender/device/id/item/@extension")+" \"/>\r\n" +
"</id>\r\n" +
"</device>\r\n" +
"</sender>");
returnStr.append("<!-- typeCode 为处理结果,AA表示成功 AE 表示失败 -->\r\n" +
"<acknowledgement typeCode=\"AE\">\r\n" +
"<targetMessage>\r\n" +
"<!-- 请求的消息ID -->\r\n" +
"<id extension=\"\"/>\r\n" +
"</targetMessage>\r\n" +
"<acknowledgementDetail>\r\n" +
"<!-- 处理结果说明 -->\r\n" +
"<text>失败</text>\r\n" +
"</acknowledgementDetail>\r\n" +
"</acknowledgement>\r\n" +
"</MCCI_IN000002UV01>");
}else if("2".equals(methonCode)||"3".equals(methonCode)) {
returnStr.append("<MCCI_IN000002UV01 xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\">\r\n");
returnStr.append("<!-- 消息ID extension请使用GUID生成 -->\r\n");
returnStr.append("<id root=\""+formattedDateTime+"\" extension=\""+UUID.randomUUID().toString()+"\"/>\r\n");
returnStr.append("<!-- 消息创建时间 -->\r\n");
returnStr.append("<creationTime value=\""+formattedDateTime+"\"/>\r\n");
returnStr.append("<!-- 服务标识,extension为唯一事件编码,区分服务事件 -->\r\n");
returnStr.append("<interactionId root=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN403010UV01/interactionId/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN403010UV01/interactionId/@extension")+"\"/>\r\n");
returnStr.append("<!-- 消息用途: P(Production); D(Debugging); T(Training) -->\r\n");
returnStr.append("<processingCode code=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN403010UV01/processingCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 消息处理模式: \"取值可以为以下列出值中任意一个,正式使用时设置为\"\"T\"\"A(Archive);I(Initial load); R(Restore from archive); T(Current processing)\" -->\r\n");
returnStr.append("<processingModeCode code=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/processingModeCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 消息应答: \"取值可以为以下列出值中任意一个,正式使用时设置为\"\"NE\"\"AL(Always); ER(Error/reject only); NE(Never)\" -->\r\n");
returnStr.append("<acceptAckCode code=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/acceptAckCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 接受者 -->\r\n");
returnStr.append("<receiver typeCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/receiver/@typeCode")+"\">\r\n");
returnStr.append("<!-- 接受设备/应用 -->\r\n");
returnStr.append("<device classCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/receiver/device/@classCode")+"\" determinerCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/receiver/device/@determinerCode")+"\">\r\n");
returnStr.append("<!-- 接收系统ID -->\r\n");
returnStr.append("<id>\r\n" +
"<item root=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/receiver/device/id/item/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN403010UV01/receiver/device/id/item/@extension")+" \"/>\r\n" +
"</id>\r\n</device>\r\n</receiver>\r\n");
returnStr.append("<!-- 发送者 -->\r\n");
returnStr.append("<sender typeCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/sender/@typeCode")+"\">\r\n");
returnStr.append("<!-- 发送设备/应用 -->\r\n" +
"<device classCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/sender/device/@classCode")+"\" determinerCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/sender/device/@determinerCode")+"\">\r\n" +
"<!-- 发送系统ID -->\r\n");
returnStr.append("<id>\r\n" +
"<item root=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/sender/device/id/item/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN403010UV01/sender/device/id/item/@extension")+" \"/>\r\n" +
"</id>\r\n" +
"</device>\r\n" +
"</sender>");
returnStr.append("<!-- typeCode 为处理结果,AA表示成功 AE 表示失败 -->\r\n" +
"<acknowledgement typeCode=\"AE\">\r\n" +
"<targetMessage>\r\n" +
"<!-- 请求的消息ID -->\r\n" +
"<id extension=\"\"/>\r\n" +
"</targetMessage>\r\n" +
"<acknowledgementDetail>\r\n" +
"<!-- 处理结果说明 -->\r\n" +
"<text>失败</text>\r\n" +
"</acknowledgementDetail>\r\n" +
"</acknowledgement>\r\n" +
"</MCCI_IN000002UV01>");
}else if("4".equals(methonCode)) {
returnStr.append("<MCCI_IN000002UV01 xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\">\r\n");
returnStr.append("<!-- 消息ID extension请使用GUID生成 -->\r\n");
returnStr.append("<id root=\""+formattedDateTime+"\" extension=\""+UUID.randomUUID().toString()+"\"/>\r\n");
returnStr.append("<!-- 消息创建时间 -->\r\n");
returnStr.append("<creationTime value=\""+formattedDateTime+"\"/>\r\n");
returnStr.append("<!-- 服务标识,extension为唯一事件编码,区分服务事件 -->\r\n");
returnStr.append("<interactionId root=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN303010UV01/interactionId/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN303010UV01/interactionId/@extension")+"\"/>\r\n");
returnStr.append("<!-- 消息用途: P(Production); D(Debugging); T(Training) -->\r\n");
returnStr.append("<processingCode code=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN303010UV01/processingCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 消息处理模式: \"取值可以为以下列出值中任意一个,正式使用时设置为\"\"T\"\"A(Archive);I(Initial load); R(Restore from archive); T(Current processing)\" -->\r\n");
returnStr.append("<processingModeCode code=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/processingModeCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 消息应答: \"取值可以为以下列出值中任意一个,正式使用时设置为\"\"NE\"\"AL(Always); ER(Error/reject only); NE(Never)\" -->\r\n");
returnStr.append("<acceptAckCode code=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/acceptAckCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 接受者 -->\r\n");
returnStr.append("<receiver typeCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/receiver/@typeCode")+"\">\r\n");
returnStr.append("<!-- 接受设备/应用 -->\r\n");
returnStr.append("<device classCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/receiver/device/@classCode")+"\" determinerCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/receiver/device/@determinerCode")+"\">\r\n");
returnStr.append("<!-- 接收系统ID -->\r\n");
returnStr.append("<id>\r\n" +
"<item root=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/receiver/device/id/item/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN303010UV01/receiver/device/id/item/@extension")+" \"/>\r\n" +
"</id>\r\n</device>\r\n</receiver>\r\n");
returnStr.append("<!-- 发送者 -->\r\n");
returnStr.append("<sender typeCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/sender/@typeCode")+"\">\r\n");
returnStr.append("<!-- 发送设备/应用 -->\r\n" +
"<device classCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/sender/device/@classCode")+"\" determinerCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/sender/device/@determinerCode")+"\">\r\n" +
"<!-- 发送系统ID -->\r\n");
returnStr.append("<id>\r\n" +
"<item root=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/sender/device/id/item/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN303010UV01/sender/device/id/item/@extension")+" \"/>\r\n" +
"</id>\r\n" +
"</device>\r\n" +
"</sender>");
returnStr.append("<!-- typeCode 为处理结果,AA表示成功 AE 表示失败 -->\r\n" +
"<acknowledgement typeCode=\"AE\">\r\n" +
"<targetMessage>\r\n" +
"<!-- 请求的消息ID -->\r\n" +
"<id extension=\"\"/>\r\n" +
"</targetMessage>\r\n" +
"<acknowledgementDetail>\r\n" +
"<!-- 处理结果说明 -->\r\n" +
"<text>失败</text>\r\n" +
"</acknowledgementDetail>\r\n" +
"</acknowledgement>\r\n" +
"</MCCI_IN000002UV01>");
}else if("5".equals(methonCode)) {
returnStr.append("<MCCI_IN000002UV01 xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/MCCI_IN000002UV01.xsd\">\r\n");
returnStr.append("<!-- 消息ID extension请使用GUID生成 -->\r\n");
returnStr.append("<id root=\""+formattedDateTime+"\" extension=\""+UUID.randomUUID().toString()+"\"/>\r\n");
returnStr.append("<!-- 消息创建时间 -->\r\n");
returnStr.append("<creationTime value=\""+formattedDateTime+"\"/>\r\n");
returnStr.append("<!-- 服务标识,extension为唯一事件编码,区分服务事件 -->\r\n");
returnStr.append("<interactionId root=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN301010UV01/interactionId/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN301010UV01/interactionId/@extension")+"\"/>\r\n");
returnStr.append("<!-- 消息用途: P(Production); D(Debugging); T(Training) -->\r\n");
returnStr.append("<processingCode code=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN301010UV01/processingCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 消息处理模式: \"取值可以为以下列出值中任意一个,正式使用时设置为\"\"T\"\"A(Archive);I(Initial load); R(Restore from archive); T(Current processing)\" -->\r\n");
returnStr.append("<processingModeCode code=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/processingModeCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 消息应答: \"取值可以为以下列出值中任意一个,正式使用时设置为\"\"NE\"\"AL(Always); ER(Error/reject only); NE(Never)\" -->\r\n");
returnStr.append("<acceptAckCode code=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/acceptAckCode/@code")+"\"/>\r\n");
returnStr.append("<!-- 接受者 -->\r\n");
returnStr.append("<receiver typeCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/receiver/@typeCode")+"\">\r\n");
returnStr.append("<!-- 接受设备/应用 -->\r\n");
returnStr.append("<device classCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/receiver/device/@classCode")+"\" determinerCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/receiver/device/@determinerCode")+"\">\r\n");
returnStr.append("<!-- 接收系统ID -->\r\n");
returnStr.append("<id>\r\n" +
"<item root=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/receiver/device/id/item/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr, "/PRPM_IN301010UV01/receiver/device/id/item/@extension")+" \"/>\r\n" +
"</id>\r\n</device>\r\n</receiver>\r\n");
returnStr.append("<!-- 发送者 -->\r\n");
returnStr.append("<sender typeCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/sender/@typeCode")+"\">\r\n");
returnStr.append("<!-- 发送设备/应用 -->\r\n" +
"<device classCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/sender/device/@classCode")+"\" determinerCode=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/sender/device/@determinerCode")+"\">\r\n" +
"<!-- 发送系统ID -->\r\n");
returnStr.append("<id>\r\n" +
"<item root=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/sender/device/id/item/@root")+"\" extension=\""+XmlParseUtil.xmlParse(xmlStr,"/PRPM_IN301010UV01/sender/device/id/item/@extension")+" \"/>\r\n" +
"</id>\r\n" +
"</device>\r\n" +
"</sender>");
returnStr.append("<!-- typeCode 为处理结果,AA表示成功 AE 表示失败 -->\r\n" +
"<acknowledgement typeCode=\"AE\">\r\n" +
"<targetMessage>\r\n" +
"<!-- 请求的消息ID -->\r\n" +
"<id extension=\"\"/>\r\n" +
"</targetMessage>\r\n" +
"<acknowledgementDetail>\r\n" +
"<!-- 处理结果说明 -->\r\n" +
"<text>失败</text>\r\n" +
"</acknowledgementDetail>\r\n" +
"</acknowledgement>\r\n" +
"</MCCI_IN000002UV01>");
}
return returnStr.toString();
}
public List<CoreDict> tranDict(String type, String name) {
// TODO Auto-generated method stub
Query<CoreDict> query = sqlManager.query(CoreDict.class);
List<CoreDict> list = query.andEq("type", type)
.andLike("name", "%"+name+"%").select();
return list;
}
//删除角色
public void delCoreUserRole(String userId) {
/*Query<CoreUserRole> query = sqlManager.query(CoreUserRole.class);
List<CoreUserRole> list = query.andEq("user_Id", userId).select();*/
List<CoreUserRole> userRoleList = coreUserDao.getRoleByUser(Long.valueOf(userId));
List<Long> ids=new ArrayList<Long>();
if(userRoleList!=null&&userRoleList.size()>0) {
for(int i=0;i<userRoleList.size();i++) {
ids.add(userRoleList.get(i).getId());
}
}
if(ids!=null&&ids.size()>0) {
for (Long id : ids) {
sqlManager.deleteById(CoreUserRole.class, id);
}
}
}
}
\ No newline at end of file
package com.spk.zyse.config;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;
@Component
public class ApplicationContextProvider implements ApplicationContextAware {
private static ApplicationContext context;
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
context = applicationContext;
}
public static ApplicationContext getApplicationContext() {
return context;
}
// 获取Bean的辅助方法
@SuppressWarnings("unchecked")
public static <T> T getBean(String name) {
return (T) getApplicationContext().getBean(name);
}
public static <T> T getBean(Class<T> requiredType) {
return getApplicationContext().getBean(requiredType);
}
}
\ No newline at end of file
package com.spk.zyse.config;
import org.apache.axis.transport.http.AxisServlet;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class AxisServiceConfig {
@Bean
public ServletRegistrationBean<AxisServlet> axisServletServletRegistrationBean() {
ServletRegistrationBean<AxisServlet> axisServletServletRegistrationBean =
new ServletRegistrationBean<>(new AxisServlet(),"/services/*");
axisServletServletRegistrationBean.setName("AxisServlet");
axisServletServletRegistrationBean.setLoadOnStartup(1);
return axisServletServletRegistrationBean;
}
}
package com.spk.zyse.utils;
import java.io.StringReader;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathFactory;
public class XmlParseUtil {
public static void main(String[] args) {
String XMLString="<PRPM_IN401030UV01 xmlns=\"urn:hl7-org:v3\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ITSVersion=\"XML_1.0\" xsi:schemaLocation=\"urn:hl7-org:v3 ../multicacheschemas/PRPM_IN401030UV01.xsd\">\r\n" +
"<!-- 消息ID extension请使用GUID生成 -->\r\n" +
"<id root=\"\" extension=\"8D73520B-D489-4B70-8F4B-7B5C2D7961B5\"/>\r\n" +
"<!-- 消息创建时间 -->\r\n" +
"<creationTime value=\"20130116112855\"/>\r\n" +
"<!-- 服务标识,extension为唯一事件编码,区分服务事件 -->\r\n" +
"<interactionId root=\"2.16.840.1.113883.1.6\" extension=\"JH0601\"/>\r\n" +
"<!-- 消息用途: P(Production); D(Debugging); T(Training) -->\r\n" +
"<processingCode code=\"P\"/>\r\n" +
"<!-- 消息处理模式: A(Archive); I(Initial load); R(Restore from archive); T(Current \r\n" +
" processing) -->\r\n" +
"<processingModeCode code=\"I\"/>\r\n" +
"<!-- 消息应答: AL(Always); ER(Error/reject only); NE(Never) -->\r\n" +
"<acceptAckCode code=\"AL\"/>\r\n" +
"<!-- 接受者 -->\r\n" +
"<receiver typeCode=\"RCV\">\r\n" +
"<!-- 接受设备/应用 -->\r\n" +
"<device classCode=\"DEV\" determinerCode=\"INSTANCE\">\r\n" +
"<!-- 接收系统ID -->\r\n" +
"<id>\r\n" +
"<item root=\"2.16.156.10011.2.5.1.3\" extension=\" \"/>\r\n" +
"</id>\r\n" +
"</device>\r\n" +
"</receiver>\r\n" +
"<!-- 发送者 -->\r\n" +
"<sender typeCode=\"SND\">\r\n" +
"<!-- 发送设备/应用 -->\r\n" +
"<device classCode=\"DEV\" determinerCode=\"INSTANCE\">\r\n" +
"<!-- 发送系统ID -->\r\n" +
"<id>\r\n" +
"<item root=\"2.16.156.10011.2.5.1.3\" extension=\" \"/>\r\n" +
"</id>\r\n" +
"</device>\r\n" +
"</sender>\r\n" +
"<controlActProcess classCode=\"CACT\" moodCode=\"EVN\">\r\n" +
"<code code=\"PRPM_TE401010UV01\" codeSystem=\"2.16.840.1.113883.1.6\"/>\r\n" +
"<subject typeCode=\"SUBJ\">\r\n" +
"<registrationRequest classCode=\"REG\" moodCode=\"RQO\">\r\n" +
"<statusCode code=\"active\"/>\r\n" +
"<subject1 typeCode=\"SBJ\">\r\n" +
"<qualifiedEntity classCode=\"QUAL\">\r\n" +
"<code/>\r\n" +
"<effectiveTime/>\r\n" +
"</qualifiedEntity>\r\n" +
"<assignedEntity classCode=\"ASSIGNED \">\r\n" +
"<!-- 医疗卫生机构(科室)标识-科室为例 -->\r\n" +
"<id root=\"2.16.156.10011.1.26\" extension=\"1234567890\"/>\r\n" +
"<!-- 医疗卫生机构(科室)类别-科室为例 -->\r\n" +
"<code code=\"A03.01\" displayName=\"呼吸内科专业\" codeSystem=\"2.16.156.10011.2.3.2.62\" codeSystemName=\"医疗卫生机构业务科室分类与代码表\"/>\r\n" +
"<!-- 医疗卫生机构(科室)名称及拼音码 -->\r\n" +
"<name flavorId=\"NK\">内科</name>\r\n" +
"<!-- 工作地址 -->\r\n" +
"<addr/>\r\n" +
"<!-- 联系电话 -->\r\n" +
"<telecom/>\r\n" +
"<!-- 角色状态RoleStatus -->\r\n" +
"<statusCode code=\"active\"/>\r\n" +
"<!-- 角色有效期间 -->\r\n" +
"<effectiveTime>\r\n" +
"<low value=\"20100101\"/>\r\n" +
"<high value=\"20501231\"/>\r\n" +
"</effectiveTime>\r\n" +
"<!-- 科室负责人信息 -->\r\n" +
"<assignedPrincipalPerson>\r\n" +
"<asAffiliate>\r\n" +
"<!-- 科室负责人编号 -->\r\n" +
"<id>123</id>\r\n" +
"<!-- 科室负责人姓名 -->\r\n" +
"<name>张XX</name>\r\n" +
"</asAffiliate>\r\n" +
"</assignedPrincipalPerson>\r\n" +
"<assignedPrincipalOrganization classCode=\"ORG\" determinerCode=\"INSTANCE\">\r\n" +
"<!-- 医院编码 -->\r\n" +
"<id>\r\n" +
"<item root=\"2.16.156.10011.1.5\" extension=\"0001\"/>\r\n" +
"</id>\r\n" +
"<name>\r\n" +
"<!-- 院区名称 -->\r\n" +
"<item>\r\n" +
"<part code=\"院区名称\"/>\r\n" +
"</item>\r\n" +
"</name>\r\n" +
"<asAffiliate classCode=\"AFFL\">\r\n" +
"<code/>\r\n" +
"<effectiveTime/>\r\n" +
"<!-- 上级机构 -->\r\n" +
"<affiliatedPrincipalOrganization classCode=\"ORG\" determinerCode=\"INSTANCE\">\r\n" +
"<!-- 上级医疗卫生机构(科室)标识 -->\r\n" +
"<id root=\"2.16.156.10011.1.26\" extension=\"0234567890\"/>\r\n" +
"<name>内科</name>\r\n" +
"</affiliatedPrincipalOrganization>\r\n" +
"</asAffiliate>\r\n" +
"</assignedPrincipalOrganization>\r\n" +
"</assignedEntity>\r\n" +
"</subject1>\r\n" +
"<!-- 注册人员信息 -->\r\n" +
"<author typeCode=\"AUT\">\r\n" +
"<assignedEntity classCode=\"ASSIGNED\">\r\n" +
"<!-- 医务人员ID -->\r\n" +
"<id root=\"2.16.156.10011.1.4\" extension=\"120109197706015518\"/>\r\n" +
"<assignedPerson classCode=\"PSN\" determinerCode=\"INSTANCE\">\r\n" +
"<!-- 医务人员名称 -->\r\n" +
"<name>李人事</name>\r\n" +
"</assignedPerson>\r\n" +
"<representedOrganization classCode=\"ORG\" determinerCode=\"INSTANCE\">\r\n" +
"<!-- 科室号标识 -->\r\n" +
"<id root=\"2.16.156.10011.1.26\" extension=\"xxx12345-X\"/>\r\n" +
"<!-- 科室名称 -->\r\n" +
"<name>人事科</name>\r\n" +
"<contactParty classCode=\"CON\">\r\n" +
"<contactPerson classCode=\"PSN\" determinerCode=\"INSTANCE\">\r\n" +
"<!-- 科室联系人 -->\r\n" +
"<name>王联系</name>\r\n" +
"</contactPerson>\r\n" +
"</contactParty>\r\n" +
"</representedOrganization>\r\n" +
"</assignedEntity>\r\n" +
"</author>\r\n" +
"</registrationRequest>\r\n" +
"</subject>\r\n" +
"</controlActProcess>\r\n" +
"</PRPM_IN401030UV01>";
String expression = "/PRPM_IN401030UV01/interactionId/@root";
xmlParse(XMLString,expression);
}
public static String xmlParse(String XMLString,String expression) {
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(new InputSource(new StringReader(XMLString)));
XPathFactory xPathFactory = XPathFactory.newInstance();
XPath xpath = xPathFactory.newXPath();
// String expression = "/PRPM_IN401030UV01/controlActProcess/subject/registrationRequest/subject1/assignedEntity/id/@extension";
String extensionValue = (String) xpath.evaluate(expression, document, XPathConstants.STRING);
System.out.println("Extension value: " + extensionValue);
return extensionValue;
} catch (Exception e) {
e.printStackTrace();
return "";
}
}
}
package org.apache.axis.configuration;
import java.io.InputStream;
import javax.servlet.ServletConfig;
import org.apache.axis.AxisProperties;
import org.apache.axis.ConfigurationException;
import org.apache.axis.EngineConfiguration;
import org.apache.axis.EngineConfigurationFactory;
import org.apache.axis.components.logger.LogFactory;
import org.apache.axis.server.AxisServer;
import org.apache.axis.utils.ClassUtils;
import org.apache.axis.utils.Messages;
import org.apache.commons.logging.Log;
public class EngineConfigurationFactoryServlet extends EngineConfigurationFactoryDefault {
protected static Log log =
LogFactory.getLog(EngineConfigurationFactoryServlet.class.getName());
private ServletConfig cfg;
public static EngineConfigurationFactory newFactory(Object param) {
return (param instanceof ServletConfig)
? new EngineConfigurationFactoryServlet((ServletConfig) param)
: null;
}
protected EngineConfigurationFactoryServlet(ServletConfig conf) {
super();
this.cfg = conf;
}
@Override
public EngineConfiguration getServerEngineConfig() {
return getServerEngineConfig(cfg);
}
/**
* Get a default server engine configuration in a servlet environment.
*
* @param cfg a ServletContext
* @return a server EngineConfiguration
*/
private static EngineConfiguration getServerEngineConfig(ServletConfig cfg) {
String configFile = cfg.getInitParameter(OPTION_SERVER_CONFIG_FILE);
if (configFile == null) {
configFile = AxisProperties.getProperty(OPTION_SERVER_CONFIG_FILE);
}
if (configFile == null) {
configFile = SERVER_CONFIG_FILE;
}
String appWebInfPath = "/WEB-INF";
FileProvider config = null;
String realWebInfPath = EngineConfigurationFactoryServlet.class.getResource(appWebInfPath).getPath();
InputStream iss = ClassUtils.getResourceAsStream(EngineConfigurationFactoryServlet.class, appWebInfPath + "/" + SERVER_CONFIG_FILE);
if (iss != null) {
config = new FileProvider(iss);
}
if (config == null) {
log.error(Messages.getMessage("servletEngineWebInfError03", ""));
}
if (config == null && realWebInfPath != null) {
try {
config = new FileProvider(realWebInfPath, configFile);
} catch (ConfigurationException e) {
log.error(Messages.getMessage("servletEngineWebInfError00"), e);
}
}
/**
* Fall back to config file packaged with AxisEngine
*/
if (config == null) {
log.warn(Messages.getMessage("servletEngineWebInfWarn00"));
try {
InputStream is =
ClassUtils.getResourceAsStream(AxisServer.class,
SERVER_CONFIG_FILE);
config = new FileProvider(is);
} catch (Exception e) {
log.error(Messages.getMessage("servletEngineWebInfError02"), e);
}
}
return config;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<globalConfiguration>
<parameter name="sendMultiRefs" value="true"/>
<parameter name="disablePrettyXML" value="true"/>
<parameter name="adminPassword" value="admin"/>
<parameter name="attachments.Directory" value="D:\test2\apache-tomcat-8\webapps\zyse\WEB-INF\attachments"/>
<parameter name="dotNetSoapEncFix" value="true"/>
<parameter name="enableNamespacePrefixOptimization" value="false"/>
<parameter name="sendXMLDeclaration" value="true"/>
<parameter name="sendXsiTypes" value="true"/>
<parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl"/>
<requestFlow>
<handler type="java:org.apache.axis.handlers.JWSHandler">
<parameter name="scope" value="session"/>
</handler>
<handler type="java:org.apache.axis.handlers.JWSHandler">
<parameter name="scope" value="request"/>
<parameter name="extension" value=".jwr"/>
</handler>
</requestFlow>
</globalConfiguration>
<handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/>
<handler name="Authenticate" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
<handler name="LocalResponder" type="java:org.apache.axis.transport.local.LocalResponder"/>
<service name="AdminService" provider="java:MSG">
<parameter name="allowedMethods" value="AdminService"/>
<parameter name="enableRemoteAdmin" value="false"/>
<parameter name="className" value="org.apache.axis.utils.Admin"/>
<namespace>http://xml.apache.org/axis/wsdd/</namespace>
</service>
<service name="Version" provider="java:RPC">
<parameter name="allowedMethods" value="getVersion"/>
<parameter name="className" value="org.apache.axis.Version"/>
</service>
<service name="OrderService" provider="java:RPC">
<parameter name="allowedMethods" value="*"/>
<parameter name="className" value="com.spk.zyse.admin.IndexController"/>
<namespace>http://com.iambest.study.axis.service/OrderServiceHttpSoap11Endpoint</namespace>
</service>
<transport name="http">
<requestFlow>
<handler type="URLMapper"/>
<handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
</requestFlow>
<parameter name="qs:list" value="org.apache.axis.transport.http.QSListHandler"/>
<parameter name="qs:wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
<parameter name="qs.list" value="org.apache.axis.transport.http.QSListHandler"/>
<parameter name="qs.method" value="org.apache.axis.transport.http.QSMethodHandler"/>
<parameter name="qs:method" value="org.apache.axis.transport.http.QSMethodHandler"/>
<parameter name="qs.wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
</transport>
<transport name="local">
<responseFlow>
<handler type="LocalResponder"/>
</responseFlow>
</transport>
</deployment>
...@@ -62,7 +62,7 @@ server.session.cookie.http-only=false ...@@ -62,7 +62,7 @@ server.session.cookie.http-only=false
#是否开启session超时检测 #是否开启session超时检测
session.checkLoginEnable=true session.checkLoginEnable=true
#session拦截器会忽略这些地址 #session拦截器会忽略这些地址
session.ExcludePathPatterns=/,/login.do,/logout.do,/getRandom.do,/zy/loginAjax.do,/reLogin.do,/remind,/checkUserOnline,/loginRegister.do,/loginPassword.do,/loginPasswords.do,/register.json,/zy/singLogin.json,/zy/singloginAjax.do,/error.html,/repeat.html session.ExcludePathPatterns=/,/login.do,/logout.do,/getRandom.do,/zy/loginAjax.do,/reLogin.do,/remind,/checkUserOnline,/loginRegister.do,/loginPassword.do,/loginPasswords.do,/register.json,/zy/singLogin.json,/zy/singloginAjax.do,/error.html,/repeat.html,/zy/registerOrg.json,/zy/delOrgJh.json,/zy/updateOrgJh.json,/zy/registerUserJh.json,/zy/updateUserJh.json,/zy/deUserJh.json,/zy/jcData.json,/services/OrderService
#session拦截器只检测这些请求后缀 #session拦截器只检测这些请求后缀
session.PathPatterns=.json,.do,.html session.PathPatterns=.json,.do,.html
......
<!--#layout("/common/layout.html"){ -->
<!--#
var objectMapper = type.new("com.fasterxml.jackson.databind.ObjectMapper");
var menusJson = @objectMapper.writeValueAsString(menus);
-->
<form class="layui-form layui-form-pane">
<div class="layui-header" style="height: 70px;">
<!-- 椤堕儴banner -->
<!-- <p><font size="50px" color="green">鍚勪綅鑰佸笀濂�:鏈郴缁熷皢鍦�19:00鍒嗘洿鏂扮淮鎶�,灞婃椂灏嗕笉鑳借闂郴缁�,</font></p> -->
<div class="index-top layui-clear">
<div class="index-logo">
<a href=""><img height="70px" src="${ctxPath}/images/logo.jpg"/></a>
</div>
<div class="tabTopMenu" id="tabTopMenu">
<div class="btnleft"><button class="layui-btn layui-btn-lg layui-btn-normal" type="button"><i class="layui-icon layui-icon-prev"></i></button></div>
<div class="btnright"><button class="layui-btn layui-btn-lg layui-btn-normal" type="button"><i class="layui-icon layui-icon-next"></i></button></div>
<div class="tabTopCenter">
<div class="tabScroll" id="tabScroll">
<!-- <div class="tabTopMenuLi" style="display: none">
<div class="tabTopMenuLi" style="display: none;">
<a href="javascript:;">棣栭〉</a>
</div> -->
</div>
<!--#for(node in menus.children[0].children ){ -->
<!--#if(node.data.name!="鎴愭灉杞寲" && node.data.name!="閫氱煡淇℃伅"){ -->
<div class="tabTopMenuLi">
<a href="javascript:;" lay-id="${node.data.id}">${node.data.name}</a>
</div>
<!--#} -->
<!--#} -->
</div>
</div>
</div>
<div class="index-ex">
<ul class="layui-nav layui-layout-right">
<input type="hidden" id="userId" value="${session["core:user"].id}"/>
<input type="hidden" id="userPasswordMd5" value="${session["core:user"].password}"/>
<li class="layui-nav-item layui-hide-xs"><a id="userSetup" herf="javascript:;" style="font-size:26px;" class="layui-icon layui-icon-friends"></a>
<dl class="layui-nav-child" style="left: -40px;">
<dd><a id="changeCompanyButton" href="javascript:;">瑙掕壊鍒囨崲</a></dd>
<dd><a class="user-modify-password" style="cursor: pointer;">淇敼瀵嗙爜</a></dd>
<dd><a href="${ctxPath}/logout.do">閫�鍑�</a></dd>
</dl>
</li>
</ul>
</div>
</div>
</div>
</form>
<!--#
var allRol = session["core:role"];
var roleId;
for(role in allRol){
if(role.currentrole=="1"){
roleId=role.id;
}
} -->
<div class="cen">
<div class="menu-left">
<!-- <div class="menu-left-top">淇℃伅绠$悊</div> -->
<div class="menu-content">
<ul class="menu-left-left">
<!--#if(roleId==1){ -->
<li id="publish"><a href="JavaScript:;" lay-href="/notifi/notification/index.do?flag=1">鍙戝竷淇℃伅</a></li>
<!--#} -->
<li id="view"><a href="JavaScript:;">鏌ョ湅淇℃伅</a></li>
</ul>
</div>
</div>
<div class="main">
<div class="layui-tab-item layui-show">
<div class="layui-card" style="background-color: transparent;">
<div class="layui-card-header"><img src="${ctxPath}/images/index1_11.jpg"/>&nbsp;&nbsp;<span>淇℃伅绠$悊</span></div>
<div class="layui-card-body">
<table class="layui-table" id='datatabel' lay-filter="datatabel" lay-even lay-skin="nob">
<colgroup>
<col width="150">
<col width="200">
<col>
</colgroup>
</table>
</div>
</div>
</div>
<div class="layui-tab-item layui-hide">
<iframe boderiframe="0" class="iframes"></iframe>
</div>
</div>
</div>
<script type="text/html" id="selectCompany" title="瑙掕壊鍒囨崲">
<form class="layui-form" lay-filter="userInfoSelect" style="margin:10px;text-align:center;">
<!--# var user=session["core:user"]; -->
<input type="hidden" id="userId" value="${user.id}">
<div class="layui-form-item">
<div id="companyList">
<!--#
var allRole = session["core:role"];
for(role in allRole){
-->
<div class="layui-row"><input type="radio" name="userName" title="${role.name}" value="${role.id}" ${role.currentRole=='1'?'checked':''} /></div>
<!--#} -->
</div>
</div>
</form>
</script>
<script type="text/html" id="bar">
<a class="layui-btn layui-btn-xs" lay-event="view">鏌ョ湅</a>
</script>
<script type="text/javascript">
var listnum = 0;
layui.use(['table','layer','form','element'],function(){
var table = layui.table,form = layui.form ,element = layui.element;
var menus = ${menusJson};
var listmenu = menus.children[0].children;
var roleId = "${roleId!}";
var navtop = navScroll = 0 ;
$(".btnleft , .btnright").click(function(){
navScroll = $(".tabTopCenter").width() - $(".tabScroll").width();
if($(this).hasClass("btnleft")){
navtop += 200;
if(navtop>=200)navtop=200;
$(".tabScroll").animate({
"left": navtop + 'px'
},500, function(){
if(navtop >= 0 ){
navtop = 0;
$(this).animate({
"left": navtop + 'px'
})
}
})
}else{
navtop -= 200;
$(".tabScroll").animate({
"left": navtop + 'px'
},500)
if(navtop < navScroll){
navtop = navScroll;
$(".tabScroll").animate({
"left": navtop + 'px'
})
}
}
});
$('.tabTopMenuLi').click(function(){
$(this).addClass('active').siblings('.active').removeClass('active');
if($(this).index() == 0){
if(roleId==1){
$('.menu-left-left').html( $(['<li><a href="JavaScript:;" lay-href="/notifi/notification/index.do?flag=1">鍙戝竷淇℃伅</a></li>',
'<li id="view"><a href="JavaScript:;">鏌ョ湅淇℃伅</a></li>'].join('')));
}else{
$('.menu-left-left').html( $(['<li id="view"><a href="JavaScript:;">鏌ョ湅淇℃伅</a></li>'].join('')));
}
$('.main').children('.layui-tab-item').eq(1).removeClass('layui-show').addClass('layui-hide');
$('.main').children('.layui-tab-item').eq(0).removeClass('layui-hide').addClass('layui-show');
}else{
var Id = $(this).find('a').attr('lay-id');
$('.menu-left-left').html('');
listmenu.filter(function(v){
if( Id == v.id ){
return v.children;
}
}).forEach(function(item){
item.children.forEach(function(node){
$('.menu-left-left').append('<li><a href="JavaScript:;" lay-href="'+node.data.accessUrl+'">'+node.name+'</a></li>');
})
});
}
return false;
});
function getDate(){
var time = new Date;//鑾峰彇涓浗鏍囧噯鏃堕棿 var Year = time.getFullYear();//鑾峰彇褰撳墠骞翠唤
var Year = time.getFullYear();
var Month = time.getMonth() + 1;//鑾峰彇褰撳墠鏈堜唤(锛�1鏄洜涓簀s涓湀浠芥槸浠�0寮�濮嬬殑)
var Day = time.getDate();//鑾峰彇褰撳墠鍑犲彿
var W = time.getDay();//鑾峰彇褰撳墠鏄熸湡鍑�
var week = ['鏃�', "涓�", "浜�", "涓�", "鍥�", "浜�", "鍏�", "鏃�"];//涓�鑸槦鏈熷嚑閮芥槸鐢ㄦ眽瀛楀啓鐨�,杩欓噷杞崲涓�涓嬫眽瀛�
var hour = time.getHours(); //鑾峰彇绯荤粺鏃�
var minute = time.getMinutes(); //鑾峰彇绯荤粺鍒�
var second = time.getSeconds(); //鑾峰彇绯荤粺绉�
//瀛楃涓叉嫾鎺�,鎷兼帴鍒颁竴璧�
$(".getDateZTimg").text('浠婂ぉ鏄�' + "\xa0\xa0" + Year + '骞�' + ten(Month) + '鏈�' + ten(Day) + '鏃�' + "\xa0\xa0" + '鏄熸湡' + week[W] + "\xa0\xa0" + ten(hour) + ':' +ten( minute));
}
function ten(num){
return num <= 9 ?'0'+num : num;
}
getDate();
setInterval(getDate,1000);
$('.menu-left-left').on('click','li',function(){
if($(this).attr("id")=='view'){
window.location.href=Common.ctxPath+'/index.do';
}
var src = $(this).children('a').attr('lay-href');
$(this).addClass("lay-active").siblings(".lay-active").removeClass("lay-active");
$('.main').children('.layui-tab-item').eq(0).removeClass('layui-show').addClass('layui-hide');
$('.main').children('.layui-tab-item').eq(1).removeClass('layui-hide').addClass('layui-show');
$('.main').find('.iframes').attr('src','${ctxPath}' + src)
})
//瑙掕壊鍒囨崲
$("#changeCompanyButton").click(function(){
var layIndex = layer.open({
type: 1
,title: "璇烽�夋嫨瑙掕壊" //涓嶆樉绀烘爣棰樻爮
,closeBtn: false
,area:["40%" , "50%"]
,id: 'LAY_layuipro' //璁惧畾涓�涓猧d锛岄槻姝㈤噸澶嶅脊鍑�
,resize: false
,btn: ['纭畾', '鍙栨秷']
,btnAlign: 'c'
,shadeClose:true //鏄惁鐐瑰嚮閬僵灞傚叧闂�
,moveType: 1 //鎷栨嫿妯″紡锛�0鎴栬��1
,content: $("#selectCompany").html()
,yes: function(index,layero){
var userId = $("#userId").val();
var roleId = $("#companyList").find('input[name="userName"]:checked').val();
window.location.href = Common.ctxPath+"/changeRole.do?roleId="+roleId+"&userId="+userId;
},
success:function(){
form.render()
}
});
});
//鎵ц涓�涓猯aypage瀹炰緥
table.render({
elem: '#datatabel',
height: "full-160",
skin : 'nob',
even : true,
method : 'post',
size: 'lg',
url: '${ctxPath}/notifi/notification/list.json?flag=0', //鏁版嵁鎺ュ彛
page: true, //寮�鍚垎椤�
cols : [ [ // 琛ㄥご
{
field : 'notificationName',
title : '閫氱煡鍚嶇О',
width:'579'
},
{
field : 'publishTime',
title : '鍙戝竷鏃堕棿',
width:'200'
},
{
field : 'startTime',
title : '寮�濮嬫椂闂�',
templet:function(d){
if(d.startTime!=null && d.startTime!=""){
return d.startTime.substring(0,10);
}else{
return "";
}
},
width:'200'
},
{
field : 'endTime',
title : '缁撴潫鏃堕棿',
templet:function(d){
if(d.endTime!=null && d.endTime!=""){
return d.endTime.substring(0,10);
}else{
return "";
}
},
width:'200'
},
{
field : 'userName',
title : '鍙戝竷浜�',
width:'200'
},
{
field : 'deptName',
title : '鍙戝竷浜烘墍鍦ㄧ瀹�',
width:'200'
},
{
title : '鎿嶄綔',
toolbar:'#bar',
width:'50'
}
] ]
});
table.on('tool(datatabel)', function(obj){
var data = obj.data;
if(obj.event=== 'view'){
var url = "/notifi/notification/view.do?id="+data.id;
Common.openDlg(url,"閫氱煡淇℃伅>鏌ョ湅");
}
})
/* -remind-寮曞叆鍚庢闈㈠氨涓嶄細娣诲姞鍒涘缓鎵ц,鎵句笉鍒拌繖涓猨s鎶ラ敊*/
//鍒濆鍖栨秷鎭彁閱�
var remind = layui.remind;
remind.init({
type:"remind",
callback:function(d){
var data = JSON.parse(d);
if(!data.remind){
return;
}
//鏇存柊鏈鏉℃暟
var numLen = data.unReadCount>99?'99+':data.unReadCount;
$("#message").attr('title', numLen+ "鏉℃柊娑堟伅").children(".badge").html(numLen);
//initMessagePlugin(data);
//鍙充笅瑙掓彁绀�
layer.open({
type:1,
title:'<i class="layui-icon layui-icon-notice"></i> <b>娑堟伅鎻愰啋</b>',
offset:'rb',
area:['400px','250px'],
shade:0,
resize:false,
time:1000*10,
anim:2,
content: '<div class="layui-card" style="margin:10px 20px;"> <div class="layui-card-header"><h3 class="layui-elip" style="font-size:18px;">'+data.remind.title+'</h3></div>'+
'<div class="layui-card-body"><p class="ellipsis">'+ (function(){return data.remind.content.length > 120?data.remind.content.substring(120,1)+"......":data.remind.content+"."})()+'</p><a id="'+data.remind.id
+'" href="javascript:;" class="looklist layui-btn layui-btn-sm layui-bg-red">鏌ョ湅璇︽儏</a></div></div>'
});
}
});
$(document).on('click','.looklist',function(){
var url = "/core/remind/view.do?id="+this.id;
layer.open({
type: 2,
content: Common.ctxPath+url,
title: "鏌ョ湅璇︽儏",
maxmin: true,
area: ['630px', '450px'],
shade: 0.3,
btn: ['鍏抽棴'],
btn1:function(index){
//window.dataReload();
layer.close(index);
}
});
})
//var id = {session["core:user"].id}; //Common.userInfo.userId
//var numbe = 0;//Common.userInfo.numberlist
$.ajax({
url:'${ctxPath}/core/remind/unReadCount.json?userId='+Common.userInfo.userId,
async:true,
type:'post',
success:function(data){
if(data.msg == "鎴愬姛"){
listnum = data.data > 99?'99+':data.data;
}
},
complete:function(){
if(listnum === 0)return;
MessagePlugin.init({
elem: "#message",
msgUnReadData: listnum,
msgClick: function(obj) {
var infoId = $(obj).find('p').attr('name');
var url = "/core/remind/view.do?id="+infoId;
layer.open({
type: 2,
content: Common.ctxPath+url,
title: "鏌ョ湅璇︽儏",
maxmin: true,
area: ['630px', '450px'],
shade: 0.3,
btn: ['鍏抽棴'],
btn1:function(index){
//window.dataReload();
layer.close(index);
}
});
$('.animated')&&$('.animated').remove();
},
allRead: function(obj,t) {
// 鎵撻枊娑堟伅鎻愰啋鏌ョ湅鍏ㄩ儴tab,
var url = "${ctxPath}"+"/core/remind/index.do";
var offId = $(".layui-tab-title").find("#listall").length;
if(!offId){
$(".layui-tab-title").append('<li class="layui-this" id="listall" lay-id="listall">鍏ㄩ儴娑堟伅<i class="layui-icon layui-unselect layui-tab-close">醼�</i></li>');
$(".layui-tab-content").append('<div id="listAll" class="layui-tab-item layui-show"><iframe src="'+url+'"></iframe></div>');
$(".layui-tab-title").children('[lay-id="listall"]').siblings('li').removeClass('layui-this');
$(".layui-tab-content").children('#listAll').siblings('.layui-tab-item').removeClass("layui-show");
}
//animated
$('.animated')&&$('.animated').remove();
},
getNodeHtml: function(obj, node) {
obj.readStatus == 1? node.isRead = true: node.isRead = false;
var html = "<p name='"+obj.id+"'>"+ obj.title +"</p> <small>"+obj.receiveTime+"</small> ";
node.html = html;
return node;
}
});
}
});
$(".user-modify-password").on("click",function(){
layer.open({
id:"user-modify-password",
title:"<b>淇敼瀵嗙爜</b>",
type:2,
shadeClose : false,
btnAlign: 'c',
closeBtn:0,
area: ['500px', '300px'],
content:Common.ctxPath + "/ProResearcher/proResearcher/changePassword.do?id="+$("#userId").val(),
});
});
if($("#userPasswordMd5").val()=="e10adc3949ba59abbe56e057f20f883e"){
layer.open({
id:"user-modify-password",
title:"<b>鎮ㄧ殑瀵嗙爜涓哄垵濮嬪瘑鐮�,璇峰厛淇敼瀵嗙爜,鍚﹀垯鏃犳硶姝e父浣跨敤.</b>",
type:2,
shadeClose : false,
btnAlign: 'c',
closeBtn:0,
area: ['500px', '300px'],
content:Common.ctxPath + "/ProResearcher/proResearcher/changePassword.do?id="+$("#userId").val()+"&must="+true,
end:function(){
window.location.href=Common.ctxPath+"/logout.do"
}
});
}
});
</script>
<script type="text/javascript" src="${ctxPath}/js/common/json2.js"></script>
<script type="text/javascript" src="${ctxPath}/plugins/messages/js/message.js"></script>
<script type="text/javascript" src="${ctxPath}/js/core/remind/remind.js"></script>
<!--#} -->
...@@ -245,7 +245,11 @@ ...@@ -245,7 +245,11 @@
//回调ca GetCertEntity方法,并回调getuser方法 //回调ca GetCertEntity方法,并回调getuser方法
GetCertEntity(strServerCert,getUser); GetCertEntity(strServerCert,getUser);
} }
<<<<<<< HEAD
function severLogin(forceLogin){//alert(forceLogin);
=======
function severLogin(forceLogin){ function severLogin(forceLogin){
>>>>>>> 250313bb7ba1ed1d5a94b7230af4715b491743c4
if(check()){ if(check()){
var loginname = $("#loginname").val(); var loginname = $("#loginname").val();
......
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<!-- name: 服务名随便写。 -->
<service name="OrderService" provider="java:RPC">
<parameter name="className" value="com.spk.zyse.admin.IndexController" />
<!-- value表示哪些方法需要发布,*表示全部的public方法。 -->
<!-- 如果想指定方法名,方法名与方法名用逗号隔开 -->
<parameter name="allowedMethods" value="*" />
<!-- 指定命名空间 -->
<namespace>http://com.iambest.study.axis.service/OrderServiceHttpSoap11Endpoint</namespace>
</service>
</deployment>
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<globalConfiguration>
<parameter name="sendMultiRefs" value="true"/>
<parameter name="disablePrettyXML" value="true"/>
<parameter name="adminPassword" value="admin"/>
<parameter name="attachments.Directory" value="D:\test2\apache-tomcat-8\webapps\zyse\WEB-INF\attachments"/>
<parameter name="dotNetSoapEncFix" value="true"/>
<parameter name="enableNamespacePrefixOptimization" value="false"/>
<parameter name="sendXMLDeclaration" value="true"/>
<parameter name="sendXsiTypes" value="true"/>
<parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl"/>
<requestFlow>
<handler type="java:org.apache.axis.handlers.JWSHandler">
<parameter name="scope" value="session"/>
</handler>
<handler type="java:org.apache.axis.handlers.JWSHandler">
<parameter name="scope" value="request"/>
<parameter name="extension" value=".jwr"/>
</handler>
</requestFlow>
</globalConfiguration>
<handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/>
<handler name="Authenticate" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
<handler name="LocalResponder" type="java:org.apache.axis.transport.local.LocalResponder"/>
<service name="AdminService" provider="java:MSG">
<parameter name="allowedMethods" value="AdminService"/>
<parameter name="enableRemoteAdmin" value="false"/>
<parameter name="className" value="org.apache.axis.utils.Admin"/>
<namespace>http://xml.apache.org/axis/wsdd/</namespace>
</service>
<service name="Version" provider="java:RPC">
<parameter name="allowedMethods" value="getVersion"/>
<parameter name="className" value="org.apache.axis.Version"/>
</service>
<service name="OrderService" provider="java:RPC">
<parameter name="allowedMethods" value="*"/>
<parameter name="className" value="com.spk.zyse.admin.IndexController"/>
<namespace>http://com.iambest.study.axis.service/OrderServiceHttpSoap11Endpoint</namespace>
</service>
<transport name="http">
<requestFlow>
<handler type="URLMapper"/>
<handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
</requestFlow>
<parameter name="qs:list" value="org.apache.axis.transport.http.QSListHandler"/>
<parameter name="qs:wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
<parameter name="qs.list" value="org.apache.axis.transport.http.QSListHandler"/>
<parameter name="qs.method" value="org.apache.axis.transport.http.QSMethodHandler"/>
<parameter name="qs:method" value="org.apache.axis.transport.http.QSMethodHandler"/>
<parameter name="qs.wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
</transport>
<transport name="local">
<responseFlow>
<handler type="LocalResponder"/>
</responseFlow>
</transport>
</deployment>
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="web" name="Web">
<configuration>
<webroots>
<root url="file://$MODULE_DIR$/src/main/webapp" relative="/" />
</webroots>
</configuration>
</facet>
<facet type="Spring" name="Spring">
<configuration />
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="spk-platform-core" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.3" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.3" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.3" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:8.5.29" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:8.5.29" level="project" />
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:8.5.29" level="project" />
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.0.9.Final" level="project" />
<orderEntry type="library" name="Maven: javax.validation:validation-api:2.0.1.Final" level="project" />
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.3.2.Final" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-web:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-tx:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-aop:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.8.13" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-cache:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-redis:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-redis:2.0.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-keyvalue:2.0.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.0.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-oxm:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: io.lettuce:lettuce-core:5.0.3.RELEASE" level="project" />
<orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.1.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.2" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-common:4.1.23.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.23.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.23.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.23.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.23.Final" level="project" />
<orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.23.Final" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-websocket:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-messaging:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-websocket:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.session:spring-session-data-redis:2.0.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.session:spring-session-core:2.0.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.session:spring-session-jdbc:2.0.2.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-actuator:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-actuator-autoconfigure:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-actuator:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: io.micrometer:micrometer-core:1.0.3" level="project" />
<orderEntry type="library" name="Maven: org.hdrhistogram:HdrHistogram:2.1.10" level="project" />
<orderEntry type="library" name="Maven: org.latencyutils:LatencyUtils:2.0.3" level="project" />
<orderEntry type="library" name="Maven: com.ibeetl:beetl-framework-starter:1.1.55.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.ibeetl:beetlsql:2.10.29" level="project" />
<orderEntry type="library" name="Maven: com.ibeetl:beetl:2.8.5" level="project" />
<orderEntry type="library" name="Maven: org.antlr:antlr4-runtime:4.2" level="project" />
<orderEntry type="library" name="Maven: org.abego.treelayout:org.abego.treelayout.core:1.0.1" level="project" />
<orderEntry type="library" name="Maven: org.antlr:antlr4-annotations:4.2" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger2:2.9.2" level="project" />
<orderEntry type="library" name="Maven: io.swagger:swagger-annotations:1.5.20" level="project" />
<orderEntry type="library" name="Maven: io.swagger:swagger-models:1.5.20" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-spi:2.9.2" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-core:2.9.2" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-schema:2.9.2" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger-common:2.9.2" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-spring-web:2.9.2" level="project" />
<orderEntry type="library" name="Maven: com.google.guava:guava:18.0" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.3.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-metadata:1.2.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.mapstruct:mapstruct:1.2.0.Final" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger-ui:2.9.2" level="project" />
<orderEntry type="library" name="Maven: com.zaxxer:HikariCP:2.7.8" level="project" />
<orderEntry type="library" name="Maven: org.jxls:jxls-reader:2.0.6" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-digester3:with-deps:3.2" level="project" />
<orderEntry type="library" name="Maven: cglib:cglib:2.2.2" level="project" />
<orderEntry type="library" name="Maven: asm:asm:3.3.1" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:jcl-over-slf4j:1.7.25" level="project" />
<orderEntry type="library" name="Maven: org.jxls:jxls:2.4.5" level="project" />
<orderEntry type="library" name="Maven: commons-beanutils:commons-beanutils:1.9.2" level="project" />
<orderEntry type="library" name="Maven: commons-collections:commons-collections:3.2.1" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
<orderEntry type="library" name="Maven: org.jxls:jxls-poi:1.0.16" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.3.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-jexl:2.1.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi:4.0.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-collections4:4.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml:4.0.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-compress:1.18" level="project" />
<orderEntry type="library" name="Maven: com.github.virtuald:curvesapi:1.04" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml-schemas:4.0.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.xmlbeans:xmlbeans:3.0.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.poi:ooxml-schemas:1.1" level="project" />
<orderEntry type="library" name="Maven: com.hope.SVSClient:SVSClient:1.0" level="project" />
<orderEntry type="library" name="Maven: com.hope.BJCA_LOG:BJCA_LOG:1.0" level="project" />
<orderEntry type="library" name="Maven: commons-io:commons-io:2.4" level="project" />
<orderEntry type="library" name="Maven: org.json:json:20140107" level="project" />
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.11" level="project" />
<orderEntry type="library" name="Maven: commons-fileupload:commons-fileupload:1.3.1" level="project" />
<orderEntry type="library" name="Maven: eu.bitwalker:UserAgentUtils:1.21" level="project" />
<orderEntry type="library" name="Maven: ws.schild:jave-all-deps:2.5.1" level="project" />
<orderEntry type="library" name="Maven: ws.schild:jave-core:2.5.1" level="project" />
<orderEntry type="library" name="Maven: commons-logging:commons-logging-api:1.1" level="project" />
<orderEntry type="library" name="Maven: ws.schild:jave-nativebin-win32:2.5.1" level="project" />
<orderEntry type="library" name="Maven: ws.schild:jave-nativebin-win64:2.5.1" level="project" />
<orderEntry type="library" name="Maven: ws.schild:jave-nativebin-linux32:2.5.1" level="project" />
<orderEntry type="library" name="Maven: ws.schild:jave-nativebin-linux64:2.5.1" level="project" />
<orderEntry type="library" name="Maven: ws.schild:jave-nativebin-osx64:2.5.1" level="project" />
<orderEntry type="library" name="Maven: org.mongodb:mongo-java-driver:3.6.3" level="project" />
<orderEntry type="library" name="Maven: com.itextpdf:itextpdf:5.4.3" level="project" />
<orderEntry type="library" name="Maven: com.itextpdf:itext-asian:5.2.0" level="project" />
<orderEntry type="module" module-name="spk-platform-console" />
<orderEntry type="module" module-name="spk-platform-workflow" />
<orderEntry type="library" name="Maven: de.codecentric:spring-boot-admin-starter-client:2.0.1" level="project" />
<orderEntry type="library" name="Maven: de.codecentric:spring-boot-admin-client:2.0.1" level="project" />
<orderEntry type="library" name="Maven: org.jolokia:jolokia-core:1.5.0" level="project" />
<orderEntry type="library" name="Maven: com.googlecode.json-simple:json-simple:1.1.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-mail:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.10.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.10.0" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.25" level="project" />
<orderEntry type="library" name="Maven: javax.annotation:javax.annotation-api:1.3.2" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.yaml:snakeyaml:1.19" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-context-support:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.sun.mail:javax.mail:1.6.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:2.0.0.M8" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter:2.0.0.M9" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-context:2.0.0.M9" level="project" />
<orderEntry type="library" name="Maven: org.springframework.security:spring-security-crypto:5.0.4.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-commons:2.0.0.M9" level="project" />
<orderEntry type="library" name="Maven: org.springframework.security:spring-security-rsa:1.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcpkix-jdk15on:1.56" level="project" />
<orderEntry type="library" name="Maven: org.bouncycastle:bcprov-jdk15on:1.56" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-netflix-core:2.0.0.M8" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-netflix-eureka-client:2.0.0.M8" level="project" />
<orderEntry type="library" name="Maven: com.netflix.eureka:eureka-client:1.8.7" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.codehaus.jettison:jettison:1.3.7" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: stax:stax-api:1.0.1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.netflix.netflix-commons:netflix-eventbus:0.3.0" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.netflix.netflix-commons:netflix-infix:0.3.0" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: commons-jxpath:commons-jxpath:1.3" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: joda-time:joda-time:2.9.9" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.google.code.gson:gson:2.8.2" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.apache.commons:commons-math:2.2" level="project" />
<orderEntry type="library" name="Maven: com.netflix.archaius:archaius-core:0.7.5" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: javax.ws.rs:jsr311-api:1.1.1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.netflix.servo:servo-core:0.10.1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.netflix.servo:servo-internal:0.10.1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.sun.jersey:jersey-core:1.19.1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.sun.jersey:jersey-client:1.19.1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.sun.jersey.contribs:jersey-apache-client4:1.19.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.5" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.9" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.google.inject:guice:4.1.0" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: javax.inject:javax.inject:1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: aopalliance:aopalliance:1.0" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.github.vlsi.compactmap:compactmap:1.2.1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.github.andrewoma.dexx:dexx-collections:0.2" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.9.0" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.3" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.3" level="project" />
<orderEntry type="library" name="Maven: com.netflix.eureka:eureka-core:1.8.7" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.codehaus.woodstox:woodstox-core-asl:4.4.1" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: javax.xml.stream:stax-api:1.0-2" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.codehaus.woodstox:stax2-api:3.1.4" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-netflix-archaius:2.0.0.M8" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-netflix-ribbon:2.0.0.M8" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-netflix-archaius:2.0.0.M8" level="project" />
<orderEntry type="library" name="Maven: commons-configuration:commons-configuration:1.8" level="project" />
<orderEntry type="library" name="Maven: commons-lang:commons-lang:2.6" level="project" />
<orderEntry type="library" name="Maven: org.springframework.cloud:spring-cloud-starter-netflix-ribbon:2.0.0.M8" level="project" />
<orderEntry type="library" name="Maven: com.netflix.ribbon:ribbon:2.2.5" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.netflix.ribbon:ribbon-transport:2.2.5" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.reactivex:rxnetty-contexts:0.4.9" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.reactivex:rxnetty-servo:0.4.9" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.netflix.hystrix:hystrix-core:1.5.12" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.reactivex:rxnetty:0.4.9" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.netty:netty-codec-http:4.1.23.Final" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.netty:netty-transport-native-epoll:4.1.23.Final" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: io.netty:netty-transport-native-unix-common:4.1.23.Final" level="project" />
<orderEntry type="library" name="Maven: com.netflix.ribbon:ribbon-core:2.2.5" level="project" />
<orderEntry type="library" name="Maven: com.netflix.ribbon:ribbon-httpclient:2.2.5" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.netflix.netflix-commons:netflix-commons-util:0.1.1" level="project" />
<orderEntry type="library" name="Maven: com.netflix.ribbon:ribbon-loadbalancer:2.2.5" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: com.netflix.netflix-commons:netflix-statistics:0.1.1" level="project" />
<orderEntry type="library" name="Maven: io.reactivex:rxjava:1.3.8" level="project" />
<orderEntry type="library" name="Maven: com.netflix.ribbon:ribbon-eureka:2.2.5" level="project" />
<orderEntry type="library" name="Maven: com.thoughtworks.xstream:xstream:1.4.10" level="project" />
<orderEntry type="library" name="Maven: xmlpull:xmlpull:1.1.3.1" level="project" />
<orderEntry type="library" name="Maven: xpp3:xpp3_min:1.1.4c" level="project" />
<orderEntry type="library" name="Maven: javax.servlet:javax.servlet-api:4.0.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.axis:axis:1.4" level="project" />
<orderEntry type="library" name="Maven: wsdl4j:wsdl4j:1.6.2" level="project" />
<orderEntry type="library" name="Maven: javax.mail:mail:1.4.7" level="project" />
<orderEntry type="library" name="Maven: javax.activation:activation:1.1" level="project" />
<orderEntry type="library" name="Maven: javax.xml:jaxrpc-api:1.1" level="project" />
<orderEntry type="library" name="Maven: commons-discovery:commons-discovery:0.2" level="project" />
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.2" level="project" />
<orderEntry type="library" name="Maven: mysql:mysql-connector-java:6.0.5" level="project" />
<orderEntry type="library" name="Maven: com.deepoove:poi-tl:1.7.3" level="project" />
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.25" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-expression:4.3.6.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.spk:expression:1.0.0" level="project" />
<orderEntry type="library" name="Maven: net.lingala.zip4j:zip4j:1.3.2" level="project" />
<orderEntry type="library" name="Maven: org.jsoup:jsoup:1.11.3" level="project" />
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.83" level="project" />
<orderEntry type="library" name="Maven: org.docx4j:docx4j-ImportXHTML:6.0.1" level="project" />
<orderEntry type="library" name="Maven: org.docx4j:xhtmlrenderer:3.0.0" level="project" />
<orderEntry type="library" name="Maven: com.lowagie:itext:2.1.7" level="project" />
<orderEntry type="library" name="Maven: org.docx4j:docx4j:6.0.1" level="project" />
<orderEntry type="library" name="Maven: org.plutext:jaxb-svg11:1.0.2" level="project" />
<orderEntry type="library" name="Maven: net.engio:mbassador:1.2.4.2" level="project" />
<orderEntry type="library" name="Maven: log4j:log4j:1.2.17" level="project" />
<orderEntry type="library" name="Maven: org.apache.xmlgraphics:xmlgraphics-commons:2.3" level="project" />
<orderEntry type="library" name="Maven: org.apache.avalon.framework:avalon-framework-api:4.3.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.avalon.framework:avalon-framework-impl:4.3.1" level="project" />
<orderEntry type="library" name="Maven: xalan:xalan:2.7.2" level="project" />
<orderEntry type="library" name="Maven: xalan:serializer:2.7.2" level="project" />
<orderEntry type="library" name="Maven: net.arnx:wmf2svg:0.9.8" level="project" />
<orderEntry type="library" name="Maven: org.antlr:antlr-runtime:3.5.2" level="project" />
<orderEntry type="library" name="Maven: org.antlr:stringtemplate:3.2.1" level="project" />
<orderEntry type="library" name="Maven: antlr:antlr:2.7.7" level="project" />
<orderEntry type="library" name="Maven: com.thedeanda:lorem:2.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-devtools:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-test:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-test:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-test-autoconfigure:2.0.1.RELEASE" level="project" />
<orderEntry type="library" name="Maven: com.jayway.jsonpath:json-path:2.4.0" level="project" />
<orderEntry type="library" name="Maven: net.minidev:json-smart:2.3" level="project" />
<orderEntry type="library" name="Maven: net.minidev:accessors-smart:1.2" level="project" />
<orderEntry type="library" name="Maven: org.ow2.asm:asm:5.0.4" level="project" />
<orderEntry type="library" name="Maven: junit:junit:4.12" level="project" />
<orderEntry type="library" name="Maven: org.assertj:assertj-core:3.9.1" level="project" />
<orderEntry type="library" name="Maven: org.mockito:mockito-core:2.15.0" level="project" />
<orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy:1.7.11" level="project" />
<orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy-agent:1.7.11" level="project" />
<orderEntry type="library" name="Maven: org.objenesis:objenesis:2.6" level="project" />
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
<orderEntry type="library" name="Maven: org.hamcrest:hamcrest-library:1.3" level="project" />
<orderEntry type="library" name="Maven: org.skyscreamer:jsonassert:1.5.0" level="project" />
<orderEntry type="library" name="Maven: com.vaadin.external.google:android-json:0.0.20131108.vaadin1" level="project" />
<orderEntry type="library" name="Maven: org.springframework:spring-test:5.0.5.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.xmlunit:xmlunit-core:2.5.1" level="project" />
</component>
</module>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment