Compare commits
11 Commits
nanfang_br
...
master
Author | SHA1 | Date |
---|---|---|
|
34bd6fa523 | 3 years ago |
|
82a3478353 | 3 years ago |
|
dccf9de0b1 | 3 years ago |
|
b1a7209ea3 | 3 years ago |
|
be418592a4 | 3 years ago |
|
09187b466d | 3 years ago |
|
220d887718 | 3 years ago |
|
fbd10cf089 | 4 years ago |
|
7a93a0c267 | 4 years ago |
|
31ec6747d0 | 4 years ago |
|
912e84596b | 4 years ago |
@ -1,35 +1,3 @@
|
|||||||
# Compiled class file
|
/target/
|
||||||
*.class
|
/.idea/
|
||||||
|
|
||||||
# Log file
|
|
||||||
*.log
|
|
||||||
|
|
||||||
# BlueJ files
|
|
||||||
*.ctxt
|
|
||||||
|
|
||||||
# Mobile Tools for Java (J2ME)
|
|
||||||
.mtj.tmp/
|
|
||||||
|
|
||||||
# Package Files #
|
|
||||||
*.jar
|
|
||||||
*.war
|
|
||||||
*.nar
|
|
||||||
*.ear
|
|
||||||
*.zip
|
|
||||||
*.tar.gz
|
|
||||||
*.rar
|
|
||||||
*.iml
|
*.iml
|
||||||
# 直接在这里添加即可,注意加上备注,好知道是忽略什么文件 #
|
|
||||||
|
|
||||||
##############################
|
|
||||||
## Folders ##
|
|
||||||
##############################
|
|
||||||
target
|
|
||||||
out
|
|
||||||
log
|
|
||||||
configLog
|
|
||||||
.idea
|
|
||||||
.project
|
|
||||||
**/.mvn
|
|
||||||
**/mvnw
|
|
||||||
**/mvnw.cmd
|
|
@ -1,8 +0,0 @@
|
|||||||
# Default ignored files
|
|
||||||
/shelf/
|
|
||||||
/workspace.xml
|
|
||||||
# Editor-based HTTP Client requests
|
|
||||||
/httpRequests/
|
|
||||||
# Datasource local storage ignored files
|
|
||||||
/dataSources/
|
|
||||||
/dataSources.local.xml
|
|
@ -1,19 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="CompilerConfiguration">
|
|
||||||
<annotationProcessing>
|
|
||||||
<profile name="Maven default annotation processors profile" enabled="true">
|
|
||||||
<sourceOutputDir name="target/generated-sources/annotations" />
|
|
||||||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
|
||||||
<outputRelativeToContentRoot value="true" />
|
|
||||||
<module name="power-service" />
|
|
||||||
<module name="power-admin" />
|
|
||||||
<module name="power-dao" />
|
|
||||||
<module name="power-foundaton" />
|
|
||||||
</profile>
|
|
||||||
</annotationProcessing>
|
|
||||||
<bytecodeTargetLevel>
|
|
||||||
<module name="emr_record" target="1.8" />
|
|
||||||
</bytecodeTargetLevel>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -1,14 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="Encoding">
|
|
||||||
<file url="file://$PROJECT_DIR$/power-admin/src/main/java" charset="UTF-8" />
|
|
||||||
<file url="file://$PROJECT_DIR$/power-admin/src/main/resources" charset="UTF-8" />
|
|
||||||
<file url="file://$PROJECT_DIR$/power-admin/src/main/webapp/权限系统版本说明.txt" charset="GBK" />
|
|
||||||
<file url="file://$PROJECT_DIR$/power-dao/src/main/java" charset="UTF-8" />
|
|
||||||
<file url="file://$PROJECT_DIR$/power-dao/src/main/resources" charset="UTF-8" />
|
|
||||||
<file url="file://$PROJECT_DIR$/power-foundaton/src/main/java" charset="UTF-8" />
|
|
||||||
<file url="file://$PROJECT_DIR$/power-service/src/main/java" charset="UTF-8" />
|
|
||||||
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
|
|
||||||
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -1,25 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="RemoteRepositoriesConfiguration">
|
|
||||||
<remote-repository>
|
|
||||||
<option name="id" value="central" />
|
|
||||||
<option name="name" value="Central Repository" />
|
|
||||||
<option name="url" value="https://repo.maven.apache.org/maven2" />
|
|
||||||
</remote-repository>
|
|
||||||
<remote-repository>
|
|
||||||
<option name="id" value="central" />
|
|
||||||
<option name="name" value="Central Repository" />
|
|
||||||
<option name="url" value="http://maven.aliyun.com/nexus/content/groups/public/" />
|
|
||||||
</remote-repository>
|
|
||||||
<remote-repository>
|
|
||||||
<option name="id" value="central" />
|
|
||||||
<option name="name" value="Maven Central repository" />
|
|
||||||
<option name="url" value="https://repo1.maven.org/maven2" />
|
|
||||||
</remote-repository>
|
|
||||||
<remote-repository>
|
|
||||||
<option name="id" value="jboss.community" />
|
|
||||||
<option name="name" value="JBoss Community repository" />
|
|
||||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
|
||||||
</remote-repository>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -1,16 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
|
||||||
<component name="FrameworkDetectionExcludesConfiguration">
|
|
||||||
<file type="web" url="file://$PROJECT_DIR$/../../fs_hospital/EMR_Record_gm" />
|
|
||||||
<file type="web" url="file://$PROJECT_DIR$/power-admin" />
|
|
||||||
</component>
|
|
||||||
<component name="MavenProjectsManager">
|
|
||||||
<option name="originalFiles">
|
|
||||||
<list>
|
|
||||||
<option value="$PROJECT_DIR$/pom.xml" />
|
|
||||||
</list>
|
|
||||||
</option>
|
|
||||||
</component>
|
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
|
|
||||||
</project>
|
|
@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="RunConfigurationProducerService">
|
|
||||||
<option name="ignoredProducers">
|
|
||||||
<set>
|
|
||||||
<option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
|
|
||||||
</set>
|
|
||||||
</option>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -1,124 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="Palette2">
|
|
||||||
<group name="Swing">
|
|
||||||
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
|
||||||
</item>
|
|
||||||
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
|
||||||
<initial-values>
|
|
||||||
<property name="text" value="Button" />
|
|
||||||
</initial-values>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
|
||||||
<initial-values>
|
|
||||||
<property name="text" value="RadioButton" />
|
|
||||||
</initial-values>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
|
||||||
<initial-values>
|
|
||||||
<property name="text" value="CheckBox" />
|
|
||||||
</initial-values>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
|
||||||
<initial-values>
|
|
||||||
<property name="text" value="Label" />
|
|
||||||
</initial-values>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
|
||||||
<preferred-size width="150" height="-1" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
|
||||||
<preferred-size width="150" height="-1" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
|
||||||
<preferred-size width="150" height="-1" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
|
||||||
<preferred-size width="150" height="50" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
|
||||||
<preferred-size width="150" height="50" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
|
||||||
<preferred-size width="150" height="50" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
|
||||||
<preferred-size width="150" height="50" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
|
||||||
<preferred-size width="150" height="50" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
|
||||||
<preferred-size width="150" height="50" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
|
||||||
<preferred-size width="200" height="200" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
|
||||||
<preferred-size width="200" height="200" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
|
||||||
<preferred-size width="-1" height="20" />
|
|
||||||
</default-constraints>
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
|
||||||
</item>
|
|
||||||
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
|
||||||
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
|
||||||
</item>
|
|
||||||
</group>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="VcsDirectoryMappings">
|
|
||||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
|
||||||
<mapping directory="$PROJECT_DIR$/../../fs_hospital/EMR_Record_gm" vcs="Git" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
@ -0,0 +1,34 @@
|
|||||||
|
package com.manage.config;
|
||||||
|
|
||||||
|
import com.manage.interfaces.webservice.PowerWebService;
|
||||||
|
import com.manage.interfaces.webservice.impl.PowerWebServiceImpl;
|
||||||
|
import org.apache.cxf.Bus;
|
||||||
|
import org.apache.cxf.bus.spring.SpringBus;
|
||||||
|
import org.apache.cxf.jaxws.EndpointImpl;
|
||||||
|
import org.springframework.context.annotation.Bean;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
import javax.xml.ws.Endpoint;
|
||||||
|
|
||||||
|
|
||||||
|
@Configuration
|
||||||
|
public class WebServiceConfig {
|
||||||
|
|
||||||
|
@Bean(name = Bus.DEFAULT_BUS_ID)
|
||||||
|
public SpringBus springBus() {
|
||||||
|
return new SpringBus();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Bean
|
||||||
|
public PowerWebService powerWebService() {
|
||||||
|
return new PowerWebServiceImpl();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Bean
|
||||||
|
public Endpoint endpoint(){
|
||||||
|
EndpointImpl endpoint = new EndpointImpl(springBus(),powerWebService());
|
||||||
|
endpoint.publish("PowerWebService");
|
||||||
|
return endpoint;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,53 +0,0 @@
|
|||||||
package com.manage.controller;
|
|
||||||
|
|
||||||
import org.apache.cxf.Bus;
|
|
||||||
import org.apache.cxf.bus.CXFBusFactory;
|
|
||||||
import org.apache.cxf.endpoint.EndpointImplFactory;
|
|
||||||
import org.apache.cxf.endpoint.dynamic.DynamicClientFactory;
|
|
||||||
import org.apache.cxf.jaxws.support.JaxWsEndpointImplFactory;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @ProjectName:
|
|
||||||
* @Description:
|
|
||||||
* @Param 传输参数
|
|
||||||
* @Return
|
|
||||||
* @Author: 曾文和
|
|
||||||
* @CreateDate: 2019/9/11 16:15
|
|
||||||
* @UpdateUser: 曾文和
|
|
||||||
* @UpdateDate: 2019/9/11 16:15
|
|
||||||
* @UpdateRemark: 更新说明
|
|
||||||
* @Version: 1.0
|
|
||||||
*/
|
|
||||||
public class JAXDynamicClientFactory extends DynamicClientFactory {
|
|
||||||
protected JAXDynamicClientFactory(Bus bus) {
|
|
||||||
super(bus);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected EndpointImplFactory getEndpointImplFactory() {
|
|
||||||
return JaxWsEndpointImplFactory.getSingleton();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected boolean allowWrapperOps() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public static JAXDynamicClientFactory newInstance() {
|
|
||||||
Bus bus = CXFBusFactory.getThreadDefaultBus();
|
|
||||||
return new JAXDynamicClientFactory(bus);
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public boolean compileJavaSrc(String classPath, List srcList, String dest) {
|
|
||||||
org.apache.cxf.common.util.Compiler javaCompiler
|
|
||||||
= new org.apache.cxf.common.util.Compiler();
|
|
||||||
javaCompiler.setEncoding("UTF-8");
|
|
||||||
javaCompiler.setClassPath(classPath);
|
|
||||||
javaCompiler.setOutputDir(dest);
|
|
||||||
javaCompiler.setTarget("1.8");
|
|
||||||
return javaCompiler.compileFiles(srcList);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,73 +0,0 @@
|
|||||||
package com.manage.utils;
|
|
||||||
import org.dom4j.Document;
|
|
||||||
import org.dom4j.DocumentHelper;
|
|
||||||
import org.dom4j.Element;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 返回结果工具类
|
|
||||||
*/
|
|
||||||
public class ResultUtils {
|
|
||||||
/**
|
|
||||||
* 通过document对象返回节点对象
|
|
||||||
* @param response
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static Element getElement(Document response){
|
|
||||||
Element element = response.getRootElement();
|
|
||||||
return element;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 成功返回
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static Document success(){
|
|
||||||
// 1、创建document对象
|
|
||||||
Document document= DocumentHelper.createDocument();
|
|
||||||
//2.创建根节点
|
|
||||||
Element response=document.addElement("Response");
|
|
||||||
// 3、生成子节点及子节点内容
|
|
||||||
response.addElement("ResultCode").setText("0");
|
|
||||||
response.addElement("ResultCount").setText("成功");
|
|
||||||
return document;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 失败返回
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public static String fail(){
|
|
||||||
// 1、创建document对象
|
|
||||||
Document document= DocumentHelper.createDocument();
|
|
||||||
//2.创建根节点
|
|
||||||
Element response=document.addElement("Response");
|
|
||||||
// 3、生成子节点及子节点内容
|
|
||||||
response.addElement("ResultCode").setText("1");
|
|
||||||
response.addElement("ResultCount").setText("失败");
|
|
||||||
// //赋值
|
|
||||||
// resCode.setText(String.valueOf(Codes.ERROR.getCode()));
|
|
||||||
// retCon.setText(Codes.ERROR.getMessage());
|
|
||||||
return document.asXML();
|
|
||||||
}
|
|
||||||
|
|
||||||
// /**
|
|
||||||
// * 失败返回
|
|
||||||
// * @return
|
|
||||||
// */
|
|
||||||
// public static String fail(String message){
|
|
||||||
// // 1、创建document对象
|
|
||||||
// Document document= DocumentHelper.createDocument();
|
|
||||||
// //2.创建根节点
|
|
||||||
// Element response=document.addElement(Codes.RESPONSE.getMessage());
|
|
||||||
// // 3、生成子节点及子节点内容
|
|
||||||
// Element RetInfo = response.addElement(Codes.RET_INFO.getMessage());
|
|
||||||
// //4.生成代码和描述节点
|
|
||||||
// Element resCode = RetInfo.addElement(Codes.RET_CODE.getMessage());
|
|
||||||
// Element retCon = RetInfo.addElement(Codes.RET_CON.getMessage());
|
|
||||||
// //赋值
|
|
||||||
// resCode.setText(String.valueOf(Codes.ERROR.getCode()));
|
|
||||||
// retCon.setText(StringUtils.isNotBlank(message)?message: Codes.ERROR.getMessage());
|
|
||||||
// return document.asXML();
|
|
||||||
// }
|
|
||||||
|
|
||||||
}
|
|
@ -1,134 +0,0 @@
|
|||||||
package com.manage.utils;
|
|
||||||
|
|
||||||
import org.dom4j.Document;
|
|
||||||
import org.dom4j.DocumentException;
|
|
||||||
import org.dom4j.Element;
|
|
||||||
import org.dom4j.io.SAXReader;
|
|
||||||
import java.io.InputStream;
|
|
||||||
|
|
||||||
public class XmlUtils {
|
|
||||||
//定义解析器和文档对象
|
|
||||||
private SAXReader saxReader;
|
|
||||||
private Document document;
|
|
||||||
|
|
||||||
public XmlUtils(String path) {
|
|
||||||
//获取解析器
|
|
||||||
saxReader = new SAXReader();
|
|
||||||
try {
|
|
||||||
//获取文档对象
|
|
||||||
document = saxReader.read(path);
|
|
||||||
} catch (DocumentException e) {
|
|
||||||
// TODO Auto-generated catch block
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public XmlUtils(InputStream path) {
|
|
||||||
//获取解析器
|
|
||||||
saxReader = new SAXReader();
|
|
||||||
try {
|
|
||||||
//获取文档对象
|
|
||||||
document = saxReader.read(path);
|
|
||||||
} catch (DocumentException e) {
|
|
||||||
// TODO Auto-generated catch block
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 动态获取节点内容
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public String getElement(String name) {
|
|
||||||
//获取根节点
|
|
||||||
Element root = document.getRootElement();
|
|
||||||
// Object directory = FileUtils.getJsonByName(Codes.DIRECTORY.getMessage());
|
|
||||||
// Element current = root;
|
|
||||||
// if (directory == null) {
|
|
||||||
// throw new RuntimeException("没有定义目录结构");
|
|
||||||
// }
|
|
||||||
// List<String> directoryArr = (List<String>) directory;
|
|
||||||
// for (String dire : directoryArr) {
|
|
||||||
// current = current.element(dire);
|
|
||||||
// }
|
|
||||||
return root.element(name) == null ? "" : root.element(name).getText();
|
|
||||||
}
|
|
||||||
|
|
||||||
// /**
|
|
||||||
// * 根据路径动态获取节点
|
|
||||||
// *
|
|
||||||
// * @return
|
|
||||||
// */
|
|
||||||
// public Element getElement(List<String> directory) {
|
|
||||||
// //获取根节点
|
|
||||||
// Element root = document.getRootElement();
|
|
||||||
//
|
|
||||||
// Element current = root;
|
|
||||||
// List<String> directoryArr = directory;
|
|
||||||
// for (String dire : directoryArr) {
|
|
||||||
// current = current.element(dire);
|
|
||||||
// }
|
|
||||||
// if (current == null) {
|
|
||||||
// throw new RuntimeException("未找到对应节点");
|
|
||||||
// }
|
|
||||||
// return current;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// /**
|
|
||||||
// * 返回存在的根节点
|
|
||||||
// */
|
|
||||||
// public List<Element> getJsonByName() {
|
|
||||||
// //获取目录结构
|
|
||||||
// String path = FileUtils.currentPath();
|
|
||||||
// //解析json映射文件
|
|
||||||
// String json = com.docus.bgts.utils.JsonUtils.readJsonFile(path + Codes.JSON_ADDRESS.getMessage());
|
|
||||||
// Map jsonMap = JSON.parseObject(json, Map.class);
|
|
||||||
// //判断是否多条
|
|
||||||
// List<String> basicArr = (List<String>) jsonMap.get("doubleBasic");
|
|
||||||
// List<String> directory = (List<String>) jsonMap.get("basicDirectory");
|
|
||||||
// List<Element> elements = null;
|
|
||||||
// Element root = this.getElement(directory);
|
|
||||||
// for (String basic : basicArr) {
|
|
||||||
// elements = root.elements(basic);
|
|
||||||
// if (elements != null && elements.size() > 0) {
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// if (elements == null || elements.size() == 0) {
|
|
||||||
// //只有一条
|
|
||||||
// List<String> rootDirectory = (List<String>) jsonMap.get("directory");
|
|
||||||
// root = this.getElement(rootDirectory);
|
|
||||||
// elements = new ArrayList<>();
|
|
||||||
// elements.add(root);
|
|
||||||
// }
|
|
||||||
// return elements;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// /**
|
|
||||||
// * 根据节点名称获取内容
|
|
||||||
// *
|
|
||||||
// * @param name 节点名称
|
|
||||||
// * @return 节点内容
|
|
||||||
// */
|
|
||||||
// public String getElementText(String name) {
|
|
||||||
// //定位根节点
|
|
||||||
// Element root = document.getRootElement();
|
|
||||||
// //根据名称定位节点
|
|
||||||
// Element msg = root.element(Codes.MSG.getMessage());
|
|
||||||
// if (msg == null) {
|
|
||||||
// throw new RuntimeException("没有" + Codes.MSG.getMessage() + "节点");
|
|
||||||
// }
|
|
||||||
//// Element patInfo = msg.element(Codes.PAT_INFO.getMessage());
|
|
||||||
//// if(patInfo==null){
|
|
||||||
//// throw new RuntimeException("没有"+Codes.PAT_INFO.getMessage()+"节点");
|
|
||||||
//// }
|
|
||||||
// Element element = msg.element(name);
|
|
||||||
// if (element == null) {
|
|
||||||
// return null;
|
|
||||||
// }
|
|
||||||
// //返回节点内容
|
|
||||||
// return element.getText();
|
|
||||||
// }
|
|
||||||
|
|
||||||
}
|
|
@ -0,0 +1 @@
|
|||||||
|
#2.0.1版本
|
@ -0,0 +1,8 @@
|
|||||||
|
//--------广州南方医院接收webService部分------------
|
||||||
|
newUserName=Body.CT_CareProvList.CT_CareProv.CTCP_JobNumber
|
||||||
|
name=Body.CT_CareProvList.CT_CareProv.CTCP_Name
|
||||||
|
deptCode=Body.CT_CareProvList.CT_CareProv.CTCP_DeptCode
|
||||||
|
|
||||||
|
|
||||||
|
deptCTDCode=Body.CT_DeptList.CT_Dept.CTD_Code
|
||||||
|
deptCTDDesc=Body.CT_DeptList.CT_Dept.CTD_Desc
|
@ -1,18 +0,0 @@
|
|||||||
log4j.logger.myLog=debug,myLog
|
|
||||||
log4j.appender.myLog=org.apache.log4j.DailyRollingFileAppender
|
|
||||||
log4j.appender.myLog.File=D:\\logs\\power\\info\\info_log
|
|
||||||
log4j.appender.myLog.DatePattern=-yyyy-MM-dd'.log'
|
|
||||||
log4j.appender.myLog.Append = true
|
|
||||||
log4j.appender.myLog.Threshold = INFO
|
|
||||||
log4j.appender.myLog.layout=org.apache.log4j.PatternLayout
|
|
||||||
log4j.appender.myLog.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss}:%m%n
|
|
||||||
|
|
||||||
log4j.logger.errorMsg=error,errorMsg
|
|
||||||
log4j.appender.errorMsg=org.apache.log4j.DailyRollingFileAppender
|
|
||||||
log4j.appender.errorMsg.File=D:\\logs\\power\\error\\error_log
|
|
||||||
log4j.appender.errorMsg.DatePattern=-yyyy-MM-dd'.log'
|
|
||||||
log4j.appender.errorMsg.Append = true
|
|
||||||
log4j.appender.errorMsg.Threshold = error
|
|
||||||
log4j.appender.errorMsg.layout=org.apache.log4j.PatternLayout
|
|
||||||
log4j.appender.errorMsg.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss}:%m%n
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
Binary file not shown.
After Width: | Height: | Size: 347 KiB |
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
@ -0,0 +1,256 @@
|
|||||||
|
/*
|
||||||
|
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
|
||||||
|
* Digest Algorithm, as defined in RFC 1321.
|
||||||
|
* Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.
|
||||||
|
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
|
||||||
|
* Distributed under the BSD License
|
||||||
|
* See http://pajhome.org.uk/crypt/md5 for more info.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Configurable variables. You may need to tweak these to be compatible with
|
||||||
|
* the server-side, but the defaults work in most cases.
|
||||||
|
*/
|
||||||
|
var hexcase = 0; /* hex output format. 0 - lowercase; 1 - uppercase */
|
||||||
|
var b64pad = ""; /* base-64 pad character. "=" for strict RFC compliance */
|
||||||
|
var chrsz = 8; /* bits per input character. 8 - ASCII; 16 - Unicode */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* These are the functions you'll usually want to call
|
||||||
|
* They take string arguments and return either hex or base-64 encoded strings
|
||||||
|
*/
|
||||||
|
function hex_md5(s){ return binl2hex(core_md5(str2binl(s), s.length * chrsz));}
|
||||||
|
function b64_md5(s){ return binl2b64(core_md5(str2binl(s), s.length * chrsz));}
|
||||||
|
function str_md5(s){ return binl2str(core_md5(str2binl(s), s.length * chrsz));}
|
||||||
|
function hex_hmac_md5(key, data) { return binl2hex(core_hmac_md5(key, data)); }
|
||||||
|
function b64_hmac_md5(key, data) { return binl2b64(core_hmac_md5(key, data)); }
|
||||||
|
function str_hmac_md5(key, data) { return binl2str(core_hmac_md5(key, data)); }
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Perform a simple self-test to see if the VM is working
|
||||||
|
*/
|
||||||
|
function md5_vm_test()
|
||||||
|
{
|
||||||
|
return hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72";
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Calculate the MD5 of an array of little-endian words, and a bit length
|
||||||
|
*/
|
||||||
|
function core_md5(x, len)
|
||||||
|
{
|
||||||
|
/* append padding */
|
||||||
|
x[len >> 5] |= 0x80 << ((len) % 32);
|
||||||
|
x[(((len + 64) >>> 9) << 4) + 14] = len;
|
||||||
|
|
||||||
|
var a = 1732584193;
|
||||||
|
var b = -271733879;
|
||||||
|
var c = -1732584194;
|
||||||
|
var d = 271733878;
|
||||||
|
|
||||||
|
for(var i = 0; i < x.length; i += 16)
|
||||||
|
{
|
||||||
|
var olda = a;
|
||||||
|
var oldb = b;
|
||||||
|
var oldc = c;
|
||||||
|
var oldd = d;
|
||||||
|
|
||||||
|
a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936);
|
||||||
|
d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586);
|
||||||
|
c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819);
|
||||||
|
b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330);
|
||||||
|
a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897);
|
||||||
|
d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426);
|
||||||
|
c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341);
|
||||||
|
b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983);
|
||||||
|
a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416);
|
||||||
|
d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417);
|
||||||
|
c = md5_ff(c, d, a, b, x[i+10], 17, -42063);
|
||||||
|
b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162);
|
||||||
|
a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682);
|
||||||
|
d = md5_ff(d, a, b, c, x[i+13], 12, -40341101);
|
||||||
|
c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290);
|
||||||
|
b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329);
|
||||||
|
|
||||||
|
a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510);
|
||||||
|
d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632);
|
||||||
|
c = md5_gg(c, d, a, b, x[i+11], 14, 643717713);
|
||||||
|
b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302);
|
||||||
|
a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691);
|
||||||
|
d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083);
|
||||||
|
c = md5_gg(c, d, a, b, x[i+15], 14, -660478335);
|
||||||
|
b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848);
|
||||||
|
a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438);
|
||||||
|
d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690);
|
||||||
|
c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961);
|
||||||
|
b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501);
|
||||||
|
a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467);
|
||||||
|
d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784);
|
||||||
|
c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473);
|
||||||
|
b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734);
|
||||||
|
|
||||||
|
a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558);
|
||||||
|
d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463);
|
||||||
|
c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562);
|
||||||
|
b = md5_hh(b, c, d, a, x[i+14], 23, -35309556);
|
||||||
|
a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060);
|
||||||
|
d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353);
|
||||||
|
c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632);
|
||||||
|
b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640);
|
||||||
|
a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174);
|
||||||
|
d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222);
|
||||||
|
c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979);
|
||||||
|
b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189);
|
||||||
|
a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487);
|
||||||
|
d = md5_hh(d, a, b, c, x[i+12], 11, -421815835);
|
||||||
|
c = md5_hh(c, d, a, b, x[i+15], 16, 530742520);
|
||||||
|
b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651);
|
||||||
|
|
||||||
|
a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844);
|
||||||
|
d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415);
|
||||||
|
c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905);
|
||||||
|
b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055);
|
||||||
|
a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571);
|
||||||
|
d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606);
|
||||||
|
c = md5_ii(c, d, a, b, x[i+10], 15, -1051523);
|
||||||
|
b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799);
|
||||||
|
a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359);
|
||||||
|
d = md5_ii(d, a, b, c, x[i+15], 10, -30611744);
|
||||||
|
c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380);
|
||||||
|
b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649);
|
||||||
|
a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070);
|
||||||
|
d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379);
|
||||||
|
c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259);
|
||||||
|
b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551);
|
||||||
|
|
||||||
|
a = safe_add(a, olda);
|
||||||
|
b = safe_add(b, oldb);
|
||||||
|
c = safe_add(c, oldc);
|
||||||
|
d = safe_add(d, oldd);
|
||||||
|
}
|
||||||
|
return Array(a, b, c, d);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* These functions implement the four basic operations the algorithm uses.
|
||||||
|
*/
|
||||||
|
function md5_cmn(q, a, b, x, s, t)
|
||||||
|
{
|
||||||
|
return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b);
|
||||||
|
}
|
||||||
|
function md5_ff(a, b, c, d, x, s, t)
|
||||||
|
{
|
||||||
|
return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t);
|
||||||
|
}
|
||||||
|
function md5_gg(a, b, c, d, x, s, t)
|
||||||
|
{
|
||||||
|
return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t);
|
||||||
|
}
|
||||||
|
function md5_hh(a, b, c, d, x, s, t)
|
||||||
|
{
|
||||||
|
return md5_cmn(b ^ c ^ d, a, b, x, s, t);
|
||||||
|
}
|
||||||
|
function md5_ii(a, b, c, d, x, s, t)
|
||||||
|
{
|
||||||
|
return md5_cmn(c ^ (b | (~d)), a, b, x, s, t);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Calculate the HMAC-MD5, of a key and some data
|
||||||
|
*/
|
||||||
|
function core_hmac_md5(key, data)
|
||||||
|
{
|
||||||
|
var bkey = str2binl(key);
|
||||||
|
if(bkey.length > 16) bkey = core_md5(bkey, key.length * chrsz);
|
||||||
|
|
||||||
|
var ipad = Array(16), opad = Array(16);
|
||||||
|
for(var i = 0; i < 16; i++)
|
||||||
|
{
|
||||||
|
ipad[i] = bkey[i] ^ 0x36363636;
|
||||||
|
opad[i] = bkey[i] ^ 0x5C5C5C5C;
|
||||||
|
}
|
||||||
|
|
||||||
|
var hash = core_md5(ipad.concat(str2binl(data)), 512 + data.length * chrsz);
|
||||||
|
return core_md5(opad.concat(hash), 512 + 128);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
|
||||||
|
* to work around bugs in some JS interpreters.
|
||||||
|
*/
|
||||||
|
function safe_add(x, y)
|
||||||
|
{
|
||||||
|
var lsw = (x & 0xFFFF) + (y & 0xFFFF);
|
||||||
|
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
||||||
|
return (msw << 16) | (lsw & 0xFFFF);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Bitwise rotate a 32-bit number to the left.
|
||||||
|
*/
|
||||||
|
function bit_rol(num, cnt)
|
||||||
|
{
|
||||||
|
return (num << cnt) | (num >>> (32 - cnt));
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Convert a string to an array of little-endian words
|
||||||
|
* If chrsz is ASCII, characters >255 have their hi-byte silently ignored.
|
||||||
|
*/
|
||||||
|
function str2binl(str)
|
||||||
|
{
|
||||||
|
var bin = Array();
|
||||||
|
var mask = (1 << chrsz) - 1;
|
||||||
|
for(var i = 0; i < str.length * chrsz; i += chrsz)
|
||||||
|
bin[i>>5] |= (str.charCodeAt(i / chrsz) & mask) << (i%32);
|
||||||
|
return bin;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Convert an array of little-endian words to a string
|
||||||
|
*/
|
||||||
|
function binl2str(bin)
|
||||||
|
{
|
||||||
|
var str = "";
|
||||||
|
var mask = (1 << chrsz) - 1;
|
||||||
|
for(var i = 0; i < bin.length * 32; i += chrsz)
|
||||||
|
str += String.fromCharCode((bin[i>>5] >>> (i % 32)) & mask);
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Convert an array of little-endian words to a hex string.
|
||||||
|
*/
|
||||||
|
function binl2hex(binarray)
|
||||||
|
{
|
||||||
|
var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef";
|
||||||
|
var str = "";
|
||||||
|
for(var i = 0; i < binarray.length * 4; i++)
|
||||||
|
{
|
||||||
|
str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) +
|
||||||
|
hex_tab.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF);
|
||||||
|
}
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Convert an array of little-endian words to a base-64 string
|
||||||
|
*/
|
||||||
|
function binl2b64(binarray)
|
||||||
|
{
|
||||||
|
var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||||
|
var str = "";
|
||||||
|
for(var i = 0; i < binarray.length * 4; i += 3)
|
||||||
|
{
|
||||||
|
var triplet = (((binarray[i >> 2] >> 8 * ( i %4)) & 0xFF) << 16)
|
||||||
|
| (((binarray[i+1 >> 2] >> 8 * ((i+1)%4)) & 0xFF) << 8 )
|
||||||
|
| ((binarray[i+2 >> 2] >> 8 * ((i+2)%4)) & 0xFF);
|
||||||
|
for(var j = 0; j < 4; j++)
|
||||||
|
{
|
||||||
|
if(i * 8 + j * 6 > binarray.length * 32) str += b64pad;
|
||||||
|
else str += tab.charAt((triplet >> 6*(3-j)) & 0x3F);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return str;
|
||||||
|
}
|
@ -1,32 +0,0 @@
|
|||||||
package com.manage.dao;
|
|
||||||
|
|
||||||
public class InvokeParam {
|
|
||||||
private String url;
|
|
||||||
private String method;
|
|
||||||
private String xml;
|
|
||||||
|
|
||||||
public String getUrl() {
|
|
||||||
return url;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUrl(String url) {
|
|
||||||
this.url = url;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMethod() {
|
|
||||||
return method;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMethod(String method) {
|
|
||||||
this.method = method;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getXml() {
|
|
||||||
return xml;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setXml(String xml) {
|
|
||||||
this.xml = xml;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,185 @@
|
|||||||
|
package com.manage.entity;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public class PowerUser {
|
||||||
|
private Integer userId;
|
||||||
|
|
||||||
|
private String userName;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String userPwd;
|
||||||
|
|
||||||
|
private Integer userSex;
|
||||||
|
|
||||||
|
private Integer userAge;
|
||||||
|
|
||||||
|
private String userTel;
|
||||||
|
|
||||||
|
private String userEmail;
|
||||||
|
|
||||||
|
private String userPosition;
|
||||||
|
|
||||||
|
private Integer roleId;
|
||||||
|
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
|
private Integer effective;
|
||||||
|
|
||||||
|
private String createDate;
|
||||||
|
|
||||||
|
private String creater;
|
||||||
|
|
||||||
|
private String updateDate;
|
||||||
|
|
||||||
|
private String updater;
|
||||||
|
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
private String deptCode;
|
||||||
|
|
||||||
|
public String getDeptCode() {
|
||||||
|
return deptCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeptCode(String deptCode) {
|
||||||
|
this.deptCode = deptCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUserId() {
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserId(Integer userId) {
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUserName() {
|
||||||
|
return userName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserName(String userName) {
|
||||||
|
this.userName = userName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUserPwd() {
|
||||||
|
return userPwd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserPwd(String userPwd) {
|
||||||
|
this.userPwd = userPwd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUserSex() {
|
||||||
|
return userSex;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserSex(Integer userSex) {
|
||||||
|
this.userSex = userSex;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUserAge() {
|
||||||
|
return userAge;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserAge(Integer userAge) {
|
||||||
|
this.userAge = userAge;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUserTel() {
|
||||||
|
return userTel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserTel(String userTel) {
|
||||||
|
this.userTel = userTel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUserEmail() {
|
||||||
|
return userEmail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserEmail(String userEmail) {
|
||||||
|
this.userEmail = userEmail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUserPosition() {
|
||||||
|
return userPosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserPosition(String userPosition) {
|
||||||
|
this.userPosition = userPosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getRoleId() {
|
||||||
|
return roleId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRoleId(Integer roleId) {
|
||||||
|
this.roleId = roleId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeptId() {
|
||||||
|
return deptId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeptId(String deptId) {
|
||||||
|
this.deptId = deptId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEffective() {
|
||||||
|
return effective;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEffective(Integer effective) {
|
||||||
|
this.effective = effective;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateDate() {
|
||||||
|
return createDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateDate(String createDate) {
|
||||||
|
this.createDate = createDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreater() {
|
||||||
|
return creater;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreater(String creater) {
|
||||||
|
this.creater = creater;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdateDate() {
|
||||||
|
return updateDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateDate(String updateDate) {
|
||||||
|
this.updateDate = updateDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdater() {
|
||||||
|
return updater;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdater(String updater) {
|
||||||
|
this.updater = updater;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark() {
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark) {
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
|
}
|
@ -1,58 +0,0 @@
|
|||||||
package com.manage.vo;
|
|
||||||
|
|
||||||
import org.simpleframework.xml.Element;
|
|
||||||
import org.simpleframework.xml.Root;
|
|
||||||
|
|
||||||
@Root(name = "Request")
|
|
||||||
public class AuthUserVO {
|
|
||||||
private String SourceSystem;
|
|
||||||
|
|
||||||
@Element(required = false)
|
|
||||||
private String TargetSystem;
|
|
||||||
|
|
||||||
private String username;
|
|
||||||
|
|
||||||
private String password;
|
|
||||||
|
|
||||||
public String getSourceSystem() {
|
|
||||||
return SourceSystem;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSourceSystem(String sourceSystem) {
|
|
||||||
SourceSystem = sourceSystem;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTargetSystem() {
|
|
||||||
return TargetSystem;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTargetSystem(String targetSystem) {
|
|
||||||
TargetSystem = targetSystem;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getUsername() {
|
|
||||||
return username;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUsername(String username) {
|
|
||||||
this.username = username;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPassword() {
|
|
||||||
return password;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPassword(String password) {
|
|
||||||
this.password = password;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return "AuthUserVO{" +
|
|
||||||
"SourceSystem='" + SourceSystem + '\'' +
|
|
||||||
", TargetSystem='" + TargetSystem + '\'' +
|
|
||||||
", username='" + username + '\'' +
|
|
||||||
", password='" + password + '\'' +
|
|
||||||
'}';
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,48 +0,0 @@
|
|||||||
package com.manage.vo;
|
|
||||||
|
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
import java.io.Serializable;
|
|
||||||
|
|
||||||
@XmlRootElement(name = "Request")
|
|
||||||
public class token implements Serializable {
|
|
||||||
private String username;
|
|
||||||
private String password;
|
|
||||||
|
|
||||||
public token() {
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
public token(String username, String password) {
|
|
||||||
super();
|
|
||||||
this.username = username;
|
|
||||||
this.password = password;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getUsername() {
|
|
||||||
return username;
|
|
||||||
}
|
|
||||||
|
|
||||||
@XmlElement
|
|
||||||
public void setUsername(String username) {
|
|
||||||
this.username = username;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPassword() {
|
|
||||||
return password;
|
|
||||||
}
|
|
||||||
|
|
||||||
@XmlElement
|
|
||||||
public void setPassword(String password) {
|
|
||||||
this.password = password;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return "token{" +
|
|
||||||
"username='" + username + '\'' +
|
|
||||||
", password='" + password + '\'' +
|
|
||||||
'}';
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
//--------广州南方医院接收webService部分------------
|
||||||
|
"userName": "Body.CT_CareProvList.CT_CareProv.CTCP_JobNumber",
|
||||||
|
"name": "Body.CT_CareProvList.CT_CareProv.CTCP_Name",
|
||||||
|
"deptCode": "Body.CT_CareProvList.CT_CareProv.CTCP_DeptCode"
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
package com.manage.util;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public class FileUtils {
|
||||||
|
/**
|
||||||
|
* 获取jar包所在位置
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static String currentPath() {
|
||||||
|
File dir = new File(".");
|
||||||
|
String currentpath = "";
|
||||||
|
try {
|
||||||
|
currentpath = dir.getCanonicalPath();
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return currentpath;
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * 获取静态文件中的内容
|
||||||
|
// * @param name
|
||||||
|
// * @return
|
||||||
|
// */
|
||||||
|
// public static Object getJsonByName(String name){
|
||||||
|
// //获取目录结构
|
||||||
|
// String path = FileUtils.currentPath();
|
||||||
|
// //解析json映射文件
|
||||||
|
// String json = JsonUtils.readJsonFile(path + "\\config\\json.properties");
|
||||||
|
// Map jsonMap = JSON.parseObject(json, Map.class);
|
||||||
|
// return jsonMap.get(name);
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
package com.docus.bgts.utils;
|
package com.manage.util;
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
|
|
@ -1,27 +0,0 @@
|
|||||||
package com.manage.util;
|
|
||||||
|
|
||||||
|
|
||||||
import org.simpleframework.xml.Serializer;
|
|
||||||
import org.simpleframework.xml.core.Persister;
|
|
||||||
|
|
||||||
import javax.xml.bind.JAXBException;
|
|
||||||
|
|
||||||
public class XmlUtil {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 字符串转xml
|
|
||||||
*/
|
|
||||||
public static <T> T xmlToEntity(Class<T> clazz, String str) {
|
|
||||||
try {
|
|
||||||
Serializer serializer = new Persister();
|
|
||||||
T entity = serializer.read(clazz, str);
|
|
||||||
return entity;
|
|
||||||
} catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,194 @@
|
|||||||
|
package com.manage.util;
|
||||||
|
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import org.dom4j.Document;
|
||||||
|
import org.dom4j.DocumentException;
|
||||||
|
import org.dom4j.Element;
|
||||||
|
import org.dom4j.io.SAXReader;
|
||||||
|
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.io.StringReader;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Iterator;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
public class XmlUtils {
|
||||||
|
//定义解析器和文档对象
|
||||||
|
private SAXReader saxReader;
|
||||||
|
private Document document;
|
||||||
|
|
||||||
|
public Document getDocument() {
|
||||||
|
return document;
|
||||||
|
}
|
||||||
|
|
||||||
|
public XmlUtils(String path) {
|
||||||
|
//获取解析器
|
||||||
|
saxReader = new SAXReader();
|
||||||
|
try {
|
||||||
|
//获取文档对象
|
||||||
|
document = saxReader.read(path);
|
||||||
|
} catch (DocumentException e) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public XmlUtils(InputStream path) throws Exception{
|
||||||
|
//获取解析器
|
||||||
|
saxReader = new SAXReader();
|
||||||
|
//获取文档对象
|
||||||
|
document = saxReader.read(path);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * 动态获取节点内容
|
||||||
|
// *
|
||||||
|
// * @return
|
||||||
|
// */
|
||||||
|
// public String getElement(String name) {
|
||||||
|
// //获取根节点
|
||||||
|
// Element root = document.getRootElement();
|
||||||
|
// Object directory = FileUtils.getJsonByName("directory");
|
||||||
|
// Element current = root;
|
||||||
|
// if (directory == null) {
|
||||||
|
// throw new RuntimeException("没有定义目录结构");
|
||||||
|
// }
|
||||||
|
// List<String> directoryArr = (List<String>) directory;
|
||||||
|
// for (String dire : directoryArr) {
|
||||||
|
// current = current.element(dire);
|
||||||
|
// }
|
||||||
|
// return current.element(name) == null ? "" : current.element(name).getText();
|
||||||
|
// }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据路径动态获取节点
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Element getElement(List<String> directory) {
|
||||||
|
//获取根节点
|
||||||
|
Element root = document.getRootElement();
|
||||||
|
|
||||||
|
Element current = root;
|
||||||
|
List<String> directoryArr = directory;
|
||||||
|
for (String dire : directoryArr) {
|
||||||
|
current = current.element(dire);
|
||||||
|
}
|
||||||
|
if (current == null) {
|
||||||
|
throw new RuntimeException("未找到对应节点");
|
||||||
|
}
|
||||||
|
return current;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 返回存在的根节点
|
||||||
|
*/
|
||||||
|
public List<Element> getJsonByName(Element root) {
|
||||||
|
//获取目录结构
|
||||||
|
String path = FileUtils.currentPath();
|
||||||
|
//解析json映射文件
|
||||||
|
String json = JsonUtils.readJsonFile(path + "\\dataConfig\\homeQualitySet.json");
|
||||||
|
Map jsonMap = JSON.parseObject(json, Map.class);
|
||||||
|
//判断是否多条
|
||||||
|
List<String> basicArr = (List<String>) jsonMap.get("doubleBasic");
|
||||||
|
// List<String> directory = (List<String>) jsonMap.get("basicDirectory");
|
||||||
|
List<Element> elements = null;
|
||||||
|
// Element root = this.getElement(directory);
|
||||||
|
for (String basic : basicArr) {
|
||||||
|
elements = root.elements(basic);
|
||||||
|
if (elements != null && elements.size() > 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (elements == null || elements.size() == 0) {
|
||||||
|
//只有一条
|
||||||
|
// List<String> rootDirectory = (List<String>) jsonMap.get("directory");
|
||||||
|
// root = this.getElement(rootDirectory);
|
||||||
|
elements = new ArrayList<>();
|
||||||
|
elements.add(root);
|
||||||
|
}
|
||||||
|
|
||||||
|
return elements;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 返回数据存在的父节点
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Element getMsgElement() {
|
||||||
|
//获取目录结构
|
||||||
|
String path = FileUtils.currentPath();
|
||||||
|
//解析json映射文件
|
||||||
|
String json = JsonUtils.readJsonFile(path + "\\dataConfig\\homeQualitySet.json");
|
||||||
|
Map jsonMap = JSON.parseObject(json, Map.class);
|
||||||
|
List<String> directory = (List<String>) jsonMap.get("directory");
|
||||||
|
Element root = this.getElement(directory);
|
||||||
|
return root;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据节点名称获取内容
|
||||||
|
*
|
||||||
|
* @param name 节点名称
|
||||||
|
* @return 节点内容
|
||||||
|
*/
|
||||||
|
public String getElementText(String name) {
|
||||||
|
//定位根节点
|
||||||
|
Element root = document.getRootElement();
|
||||||
|
//根据名称定位节点
|
||||||
|
Element msg = root.element("Msg");
|
||||||
|
if (msg == null) {
|
||||||
|
throw new RuntimeException("没有" + "Msg" + "节点");
|
||||||
|
}
|
||||||
|
// Element patInfo = msg.element(Codes.PAT_INFO.getMessage());
|
||||||
|
// if(patInfo==null){
|
||||||
|
// throw new RuntimeException("没有"+Codes.PAT_INFO.getMessage()+"节点");
|
||||||
|
// }
|
||||||
|
Element element = msg.element(name);
|
||||||
|
if (element == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
//返回节点内容
|
||||||
|
return element.getText();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* xml转map
|
||||||
|
* @param xml
|
||||||
|
* @param map
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static Map<String, String> parseXml2Map(String xml, Map<String, String> map) {
|
||||||
|
try {
|
||||||
|
SAXReader reader = new SAXReader();
|
||||||
|
Document doc = reader.read(new StringReader(xml));
|
||||||
|
Element root = doc.getRootElement();
|
||||||
|
String path = "";
|
||||||
|
if (map.containsKey(root.getName().trim())) {
|
||||||
|
path = map.get(root.getName().trim());
|
||||||
|
map.remove(root.getName().trim());
|
||||||
|
}
|
||||||
|
for (Iterator i = root.elementIterator(); i.hasNext();) {
|
||||||
|
Element element = (Element) i.next();
|
||||||
|
if (element.isTextOnly()) {
|
||||||
|
if (path.length() > 0) {
|
||||||
|
map.put(path + element.getName().trim(), element.getTextTrim());
|
||||||
|
} else {
|
||||||
|
map.put(element.getName().trim(), element.getTextTrim());
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
map.put(element.getName().trim(), path+ element.getName().trim() + ".");
|
||||||
|
parseXml2Map(element.asXML(), map);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,13 +0,0 @@
|
|||||||
package com.manage.service;
|
|
||||||
|
|
||||||
import javax.jws.WebMethod;
|
|
||||||
import javax.jws.WebService;
|
|
||||||
|
|
||||||
@WebService
|
|
||||||
public interface WeatherServiceInter {
|
|
||||||
|
|
||||||
@WebMethod
|
|
||||||
public String getWeatherByCityname(String name);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
package com.manage.service.ipml;
|
|
||||||
|
|
||||||
import com.manage.service.WeatherServiceInter;
|
|
||||||
|
|
||||||
public class WeatherServiceInterImpl implements WeatherServiceInter {
|
|
||||||
@Override
|
|
||||||
public String getWeatherByCityname(String name) {
|
|
||||||
System.out.println(name+"");
|
|
||||||
return name+"";
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue