diff --git a/platform-data-api/src/main/java/com/lyms/platform/data/web/result/DefaultResult.java b/platform-data-api/src/main/java/com/lyms/platform/data/web/result/DefaultResult.java new file mode 100644 index 0000000..202f9a3 --- /dev/null +++ b/platform-data-api/src/main/java/com/lyms/platform/data/web/result/DefaultResult.java @@ -0,0 +1,44 @@ +package com.lyms.platform.data.web.result; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import java.io.Serializable; + +/** + * Created by riecard on 16/3/21. + */ +@XmlRootElement(name = "defaultResult") +@XmlAccessorType(XmlAccessType.FIELD) +public class DefaultResult implements Serializable { + + public DefaultResult(){} + + public DefaultResult(String errorcode, String errormsg) { + this.errorcode = errorcode; + this.errormsg = errormsg; + } + + @XmlElement(name = "errorcode", required = true) + private String errorcode; + + @XmlElement(name = "errormsg", required = true) + private String errormsg; + + public String getErrorcode() { + return errorcode; + } + + public void setErrorcode(String errorcode) { + this.errorcode = errorcode; + } + + public String getErrormsg() { + return errormsg; + } + + public void setErrormsg(String errormsg) { + this.errormsg = errormsg; + } +} diff --git a/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsBaseBean.java b/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsBaseBean.java new file mode 100644 index 0000000..0274ab4 --- /dev/null +++ b/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsBaseBean.java @@ -0,0 +1,10 @@ +package com.lyms.platform.data.web.webparam; + +import java.io.Serializable; + +/** + * Created by riecard on 16/3/20. + */ +public class WsBaseBean implements Serializable { + +} diff --git a/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsDoctor.java b/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsDoctor.java new file mode 100644 index 0000000..876eb28 --- /dev/null +++ b/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsDoctor.java @@ -0,0 +1,85 @@ +package com.lyms.platform.data.web.webparam; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; + +/** + * Created by riecard on 16/3/21. + */ +@XmlRootElement +@XmlAccessorType(XmlAccessType.FIELD) +public class WsDoctor extends WsBaseBean { + + @XmlElement(name = "id", required = true) + private String id; + @XmlElement(name = "employeeId", required = true) + private String employeeId; + @XmlElement(name = "hospitalId", required = true) + private String hospitalId; + @XmlElement(name = "account", required = true) + private String account; + @XmlElement(name = "pwd", required = true) + private String pwd; + @XmlElement(name = "username", required = true) + private String username; + @XmlElement(name = "phone", required = true) + private String phone; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getEmployeeId() { + return employeeId; + } + + public void setEmployeeId(String employeeId) { + this.employeeId = employeeId; + } + + public String getHospitalId() { + return hospitalId; + } + + public void setHospitalId(String hospitalId) { + this.hospitalId = hospitalId; + } + + public String getAccount() { + return account; + } + + public void setAccount(String account) { + this.account = account; + } + + public String getPwd() { + return pwd; + } + + public void setPwd(String pwd) { + this.pwd = pwd; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } +} diff --git a/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsEmergence.java b/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsEmergence.java new file mode 100644 index 0000000..4d740f9 --- /dev/null +++ b/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsEmergence.java @@ -0,0 +1,115 @@ +package com.lyms.platform.data.web.webparam; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; + +/** + * Created by riecard on 16/3/21. + */ +@XmlRootElement +@XmlAccessorType(XmlAccessType.FIELD) +public class WsEmergence extends WsBaseBean { + + @XmlElement(name = "patientId", required = true) + private String patientId; + @XmlElement(name = "emergenceId", required = true) + private String emergenceId; + @XmlElement(name = "title", required = true) + private String title; + @XmlElement(name = "value", required = true) + private String value; + @XmlElement(name = "reference", required = true) + private String reference; + @XmlElement(name = "docNum", required = true) + private String docNum; + @XmlElement(name = "doctorName", required = true) + private String doctorName; + @XmlElement(name = "risk", required = true) + private String risk; + @XmlElement(name = "created", required = true) + private String created; + @XmlElement(name = "template", required = true) + private String template; + + public String getPatientId() { + return patientId; + } + + public void setPatientId(String patientId) { + this.patientId = patientId; + } + + public String getEmergenceId() { + return emergenceId; + } + + public void setEmergenceId(String emergenceId) { + this.emergenceId = emergenceId; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getReference() { + return reference; + } + + public void setReference(String reference) { + this.reference = reference; + } + + public String getDocNum() { + return docNum; + } + + public void setDocNum(String docNum) { + this.docNum = docNum; + } + + public String getDoctorName() { + return doctorName; + } + + public void setDoctorName(String doctorName) { + this.doctorName = doctorName; + } + + public String getRisk() { + return risk; + } + + public void setRisk(String risk) { + this.risk = risk; + } + + public String getCreated() { + return created; + } + + public void setCreated(String created) { + this.created = created; + } + + public String getTemplate() { + return template; + } + + public void setTemplate(String template) { + this.template = template; + } +} diff --git a/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsHospitals.java b/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsHospitals.java new file mode 100644 index 0000000..7912b51 --- /dev/null +++ b/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsHospitals.java @@ -0,0 +1,64 @@ +package com.lyms.platform.data.web.webparam; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; + +/** + * Created by riecard on 16/3/20. + */ +@XmlRootElement +@XmlAccessorType(XmlAccessType.FIELD) +public class WsHospitals extends WsBaseBean { + + @XmlElement(name = "id", required = true) + private String id; + @XmlElement(name = "title", required = true) + private String title; + @XmlElement(name = "code", required = true) + private String code; + @XmlElement(name = "status", required = true) + private Integer status; + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + @Override + public String toString() { + return "WsHospitals{" + + "id='" + id + '\'' + + ", title='" + title + '\'' + + ", code='" + code + '\'' + + '}'; + } +} diff --git a/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsPatient.java b/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsPatient.java new file mode 100644 index 0000000..b0f5317 --- /dev/null +++ b/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsPatient.java @@ -0,0 +1,164 @@ +package com.lyms.platform.data.web.webparam; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; + +/** + * Created by riecard on 16/3/21. + */ +@XmlRootElement +@XmlAccessorType(XmlAccessType.FIELD) +public class WsPatient extends WsBaseBean { + @XmlElement(name = "id", required = true) + private String id; + @XmlElement(name = "idNum", required = true) + private String idNum; + @XmlElement(name = "subId", required = true) + private String subId; + @XmlElement(name = "colors", required = true) + private String colors; + @XmlElement(name = "lastMenses", required = true) + private String lastMenses; + @XmlElement(name = "age", required = true) + private Integer age; + @XmlElement(name = "phone", required = true) + private String phone; + @XmlElement(name = "gender", required = true) + private Integer gender; + @XmlElement(name = "birth", required = true) + private String birth; + @XmlElement(name = "type", required = true) + private Integer type; + @XmlElement(name = "level", required = true) + private Integer level; + @XmlElement(name = "levelTitle", required = true) + private String levelTitle; + @XmlElement(name = "status", required = true) + private Integer status; + @XmlElement(name = "doctorId", required = true) + private String doctorId; + @XmlElement(name = "hospitalId", required = true) + private String hospitalId; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getIdNum() { + return idNum; + } + + public void setIdNum(String idNum) { + this.idNum = idNum; + } + + public String getSubId() { + return subId; + } + + public void setSubId(String subId) { + this.subId = subId; + } + + public String getColors() { + return colors; + } + + public void setColors(String colors) { + this.colors = colors; + } + + public String getLastMenses() { + return lastMenses; + } + + public void setLastMenses(String lastMenses) { + this.lastMenses = lastMenses; + } + + public Integer getAge() { + return age; + } + + public void setAge(Integer age) { + this.age = age; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public Integer getGender() { + return gender; + } + + public void setGender(Integer gender) { + this.gender = gender; + } + + public String getBirth() { + return birth; + } + + public void setBirth(String birth) { + this.birth = birth; + } + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public Integer getLevel() { + return level; + } + + public void setLevel(Integer level) { + this.level = level; + } + + public String getLevelTitle() { + return levelTitle; + } + + public void setLevelTitle(String levelTitle) { + this.levelTitle = levelTitle; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public String getDoctorId() { + return doctorId; + } + + public void setDoctorId(String doctorId) { + this.doctorId = doctorId; + } + + public String getHospitalId() { + return hospitalId; + } + + public void setHospitalId(String hospitalId) { + this.hospitalId = hospitalId; + } +} diff --git a/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsReport.java b/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsReport.java new file mode 100644 index 0000000..ede95e2 --- /dev/null +++ b/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsReport.java @@ -0,0 +1,134 @@ +package com.lyms.platform.data.web.webparam; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; + +/** + * Created by riecard on 16/3/21. + */ +@XmlRootElement +@XmlAccessorType(XmlAccessType.FIELD) +public class WsReport extends WsBaseBean { + @XmlElement(name = "id", required = true) + private String id; + @XmlElement(name = "patientId", required = true) + private String patientId; + @XmlElement(name = "employeeId", required = true) + private String employeeId; + @XmlElement(name = "doctorName", required = true) + private String doctorName; + @XmlElement(name = "type", required = true) + private Integer type; + @XmlElement(name = "hospitalTitle", required = true) + private String hospitalTitle; + @XmlElement(name = "patientName", required = true) + private String patientName; + @XmlElement(name = "physicalTime", required = true) + private String physicalTime; + @XmlElement(name = "age", required = false) + private Integer age; + @XmlElement(name = "weeks", required = false) + private Integer weeks; + @XmlElement(name = "imgs", required = true) + private String imgs; + @XmlElement(name = "result", required = true) + private String result; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getPatientId() { + return patientId; + } + + public void setPatientId(String patientId) { + this.patientId = patientId; + } + + public String getEmployeeId() { + return employeeId; + } + + public void setEmployeeId(String employeeId) { + this.employeeId = employeeId; + } + + public String getDoctorName() { + return doctorName; + } + + public void setDoctorName(String doctorName) { + this.doctorName = doctorName; + } + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public String getHospitalTitle() { + return hospitalTitle; + } + + public void setHospitalTitle(String hospitalTitle) { + this.hospitalTitle = hospitalTitle; + } + + public String getPatientName() { + return patientName; + } + + public void setPatientName(String patientName) { + this.patientName = patientName; + } + + public String getPhysicalTime() { + return physicalTime; + } + + public void setPhysicalTime(String physicalTime) { + this.physicalTime = physicalTime; + } + + public Integer getAge() { + return age; + } + + public void setAge(Integer age) { + this.age = age; + } + + public Integer getWeeks() { + return weeks; + } + + public void setWeeks(Integer weeks) { + this.weeks = weeks; + } + + public String getImgs() { + return imgs; + } + + public void setImgs(String imgs) { + this.imgs = imgs; + } + + public String getResult() { + return result; + } + + public void setResult(String result) { + this.result = result; + } +} diff --git a/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsRisk.java b/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsRisk.java new file mode 100644 index 0000000..1b46081 --- /dev/null +++ b/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsRisk.java @@ -0,0 +1,55 @@ +package com.lyms.platform.data.web.webparam; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; + +/** + * Created by riecard on 16/3/21. + */ +@XmlRootElement +@XmlAccessorType(XmlAccessType.FIELD) +public class WsRisk extends WsBaseBean { + + @XmlElement(name = "patientId", required = true) + private String patientId; + @XmlElement(name = "content", required = true) + private String content; + @XmlElement(name = "diagnosis", required = true) + private String diagnosis; + @XmlElement(name = "guide", required = true) + private String guide; + + public String getPatientId() { + return patientId; + } + + public void setPatientId(String patientId) { + this.patientId = patientId; + } + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + + public String getDiagnosis() { + return diagnosis; + } + + public void setDiagnosis(String diagnosis) { + this.diagnosis = diagnosis; + } + + public String getGuide() { + return guide; + } + + public void setGuide(String guide) { + this.guide = guide; + } +} diff --git a/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsSickbedInfo.java b/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsSickbedInfo.java new file mode 100644 index 0000000..cb403b9 --- /dev/null +++ b/platform-data-api/src/main/java/com/lyms/platform/data/web/webparam/WsSickbedInfo.java @@ -0,0 +1,95 @@ +package com.lyms.platform.data.web.webparam; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; + +/** + * Created by riecard on 16/3/21. + */ +@XmlRootElement +@XmlAccessorType(XmlAccessType.FIELD) +public class WsSickbedInfo extends WsBaseBean { + + @XmlElement(name = "hospitalId", required = true) + private String hospitalId; + @XmlElement(name = "wardCode", required = true) + private String wardCode; + @XmlElement(name = "wardName", required = true) + private String wardName; + @XmlElement(name = "deptCode", required = true) + private String deptCode; + @XmlElement(name = "deptName", required = true) + private String deptName; + @XmlElement(name = "roomNum", required = true) + private String roomNum; + @XmlElement(name = "bedNum", required = true) + private String bedNum; + @XmlElement(name = "status", required = true) + private Integer status; + + public String getHospitalId() { + return hospitalId; + } + + public void setHospitalId(String hospitalId) { + this.hospitalId = hospitalId; + } + + public String getWardCode() { + return wardCode; + } + + public void setWardCode(String wardCode) { + this.wardCode = wardCode; + } + + public String getWardName() { + return wardName; + } + + public void setWardName(String wardName) { + this.wardName = wardName; + } + + public String getDeptCode() { + return deptCode; + } + + public void setDeptCode(String deptCode) { + this.deptCode = deptCode; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName; + } + + public String getRoomNum() { + return roomNum; + } + + public void setRoomNum(String roomNum) { + this.roomNum = roomNum; + } + + public String getBedNum() { + return bedNum; + } + + public void setBedNum(String bedNum) { + this.bedNum = bedNum; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } +} diff --git a/platform-data-api/src/main/java/com/lyms/platform/data/web/ws/EmergenceServiceWsImpl.java b/platform-data-api/src/main/java/com/lyms/platform/data/web/ws/EmergenceServiceWsImpl.java index 109651d..e52c880 100644 --- a/platform-data-api/src/main/java/com/lyms/platform/data/web/ws/EmergenceServiceWsImpl.java +++ b/platform-data-api/src/main/java/com/lyms/platform/data/web/ws/EmergenceServiceWsImpl.java @@ -1,15 +1,15 @@ package com.lyms.platform.data.web.ws; -import java.util.ArrayList; -import java.util.List; - -import javax.jws.WebService; - +import com.lyms.platform.common.constants.WsConstants; import com.lyms.platform.data.web.result.EmergenceResult; import com.lyms.platform.data.web.result.Emergences; import com.lyms.platform.data.web.ws.intf.IEmergenceServiceWs; -@WebService(endpointInterface = "com.lyms.platform.data.web.ws.intf.IEmergenceServiceWs") +import javax.jws.WebService; +import java.util.ArrayList; +import java.util.List; + +@WebService(endpointInterface = "com.lyms.platform.data.web.ws.intf.IEmergenceServiceWs",targetNamespace= WsConstants.NS) public class EmergenceServiceWsImpl implements IEmergenceServiceWs { @Override @@ -27,4 +27,20 @@ public class EmergenceServiceWsImpl implements IEmergenceServiceWs { emergenceResult.setData(list); return emergenceResult; } + + @Override + public EmergenceResult addEmergences(Emergences emergences) { + EmergenceResult emergenceResult = new EmergenceResult(); + emergenceResult.setErrorcode("0000000"); + emergenceResult.setErrormsg("成功"); + List list = new ArrayList(); + Emergences e1 = new Emergences(); + e1.setContent("测试医生"); + e1.setDocName("xiaoqi"); + e1.setRisk("蛋白低"); + list.add(e1); + list.add(emergences); + emergenceResult.setData(list); + return emergenceResult; + } } \ No newline at end of file diff --git a/platform-data-api/src/main/java/com/lyms/platform/data/web/ws/EmergenceTest.java b/platform-data-api/src/main/java/com/lyms/platform/data/web/ws/EmergenceTest.java new file mode 100644 index 0000000..8f107de --- /dev/null +++ b/platform-data-api/src/main/java/com/lyms/platform/data/web/ws/EmergenceTest.java @@ -0,0 +1,25 @@ +package com.lyms.platform.data.web.ws; + +import com.lyms.platform.data.web.webparam.WsHospitals; +import com.lyms.platform.data.web.ws.intf.SoapV1Service; +import org.apache.cxf.interceptor.LoggingInInterceptor; +import org.apache.cxf.interceptor.LoggingOutInterceptor; +import org.apache.cxf.jaxws.JaxWsProxyFactoryBean; + +/** + * Created by riecard on 16/3/20. + */ +public class EmergenceTest { + + public static void main(String[] args) { + JaxWsProxyFactoryBean factoryBean=new JaxWsProxyFactoryBean(); + factoryBean.getInInterceptors().add(new LoggingInInterceptor()); + factoryBean.getOutInterceptors().add(new LoggingOutInterceptor()); + factoryBean.setServiceClass(SoapV1Service.class); + factoryBean.setAddress("http://localhost:8080/services/v1"); + SoapV1Service impl=(SoapV1Service) factoryBean.create(); + System.out.println(impl.addHospital(new WsHospitals()).getErrormsg()); + + } + +} diff --git a/platform-data-api/src/main/java/com/lyms/platform/data/web/ws/SoapV1ServiceImpl.java b/platform-data-api/src/main/java/com/lyms/platform/data/web/ws/SoapV1ServiceImpl.java new file mode 100644 index 0000000..e6cdb6e --- /dev/null +++ b/platform-data-api/src/main/java/com/lyms/platform/data/web/ws/SoapV1ServiceImpl.java @@ -0,0 +1,117 @@ +package com.lyms.platform.data.web.ws; + +import com.lyms.platform.common.constants.WsConstants; +import com.lyms.platform.data.web.result.DefaultResult; +import com.lyms.platform.data.web.webparam.*; +import com.lyms.platform.data.web.ws.intf.SoapV1Service; + +import javax.jws.WebService; + +/** + * Created by riecard on 16/3/20. + */ +@WebService(endpointInterface = "com.lyms.platform.data.web.ws.intf.SoapV1Service",targetNamespace= WsConstants.NS) +public class SoapV1ServiceImpl implements SoapV1Service { + + @Override + public DefaultResult addHospital(WsHospitals hospitals) { + System.out.println(hospitals); + return new DefaultResult("0", "success"); + } + + @Override + public DefaultResult updateHospital(WsHospitals hospitals) { + System.out.println(hospitals); + return new DefaultResult("0", "success"); + } + + @Override + public DefaultResult delHospital(String id) { + return new DefaultResult("0", "success"); + } + + @Override + public DefaultResult addDoctor(WsDoctor doctor) { + return null; + } + + @Override + public DefaultResult updateDoctor(WsDoctor doctor) { + return null; + } + + @Override + public DefaultResult delDoctor(String id) { + return null; + } + + @Override + public DefaultResult addPatient(WsPatient patient) { + return null; + } + + @Override + public DefaultResult updatePatient(WsPatient patient) { + return null; + } + + @Override + public DefaultResult delPatient(String subId) { + return null; + } + + @Override + public DefaultResult addReport(WsReport report) { + return null; + } + + @Override + public DefaultResult updateReport(WsReport report) { + return null; + } + + @Override + public DefaultResult delReport(String id) { + return null; + } + + @Override + public DefaultResult addRisk(WsRisk risk) { + return null; + } + + @Override + public DefaultResult updateRisk(WsRisk risk) { + return null; + } + + @Override + public DefaultResult delRisk(String patientId) { + return null; + } + + @Override + public DefaultResult addEmergence(WsEmergence emergence) { + return null; + } + + @Override + public DefaultResult updateEmergence(String emergenceId, Integer status, String statusName) { + return null; + } + + @Override + public DefaultResult delEmergence(String emergenceId) { + return null; + } + + @Override + public DefaultResult addSickbedInfo(WsSickbedInfo sickbedInfo) { + return null; + } + + @Override + public DefaultResult updateSickbedOrder(String orderId, Integer status) { + return null; + } +} diff --git a/platform-data-api/src/main/java/com/lyms/platform/data/web/ws/intf/IEmergenceServiceWs.java b/platform-data-api/src/main/java/com/lyms/platform/data/web/ws/intf/IEmergenceServiceWs.java index 625bd45..ed75e8b 100644 --- a/platform-data-api/src/main/java/com/lyms/platform/data/web/ws/intf/IEmergenceServiceWs.java +++ b/platform-data-api/src/main/java/com/lyms/platform/data/web/ws/intf/IEmergenceServiceWs.java @@ -1,13 +1,17 @@ package com.lyms.platform.data.web.ws.intf; -import javax.jws.WebParam; -import javax.jws.WebService; - import com.lyms.platform.common.constants.WsConstants; import com.lyms.platform.data.web.result.EmergenceResult; +import com.lyms.platform.data.web.result.Emergences; + +import javax.jws.WebParam; +import javax.jws.WebService; @WebService(targetNamespace=WsConstants.NS) public interface IEmergenceServiceWs { EmergenceResult queryEmergences(@WebParam Integer page); + + EmergenceResult addEmergences(@WebParam Emergences emergences); + } diff --git a/platform-data-api/src/main/java/com/lyms/platform/data/web/ws/intf/SoapV1Service.java b/platform-data-api/src/main/java/com/lyms/platform/data/web/ws/intf/SoapV1Service.java new file mode 100644 index 0000000..65fa4af --- /dev/null +++ b/platform-data-api/src/main/java/com/lyms/platform/data/web/ws/intf/SoapV1Service.java @@ -0,0 +1,44 @@ +package com.lyms.platform.data.web.ws.intf; + +import com.lyms.platform.common.constants.WsConstants; +import com.lyms.platform.data.web.result.DefaultResult; +import com.lyms.platform.data.web.webparam.*; + +import javax.jws.WebParam; +import javax.jws.WebService; + +/** + * Created by riecard on 16/3/20. + */ +@WebService(targetNamespace= WsConstants.NS) +public interface SoapV1Service { + + DefaultResult addHospital(@WebParam WsHospitals hospitals); + DefaultResult updateHospital(@WebParam WsHospitals hospitals); + DefaultResult delHospital(@WebParam String id); + + DefaultResult addDoctor(@WebParam WsDoctor doctor); + DefaultResult updateDoctor(@WebParam WsDoctor doctor); + DefaultResult delDoctor(@WebParam String id); + + DefaultResult addPatient(@WebParam WsPatient patient); + DefaultResult updatePatient(@WebParam WsPatient patient); + DefaultResult delPatient(@WebParam String subId); + + DefaultResult addReport(@WebParam WsReport report); + DefaultResult updateReport(@WebParam WsReport report); + DefaultResult delReport(@WebParam String id); + + DefaultResult addRisk(@WebParam WsRisk risk); + DefaultResult updateRisk(@WebParam WsRisk risk); + DefaultResult delRisk(@WebParam String patientId); + + DefaultResult addEmergence(@WebParam WsEmergence emergence); + DefaultResult updateEmergence(@WebParam String emergenceId, @WebParam Integer status, @WebParam String statusName); + DefaultResult delEmergence(@WebParam String emergenceId); + + DefaultResult addSickbedInfo(@WebParam WsSickbedInfo sickbedInfo); + + DefaultResult updateSickbedOrder(@WebParam String orderId, @WebParam Integer status); + +} diff --git a/platform-data-api/src/main/resources/spring/applicationContext-cxf.xml b/platform-data-api/src/main/resources/spring/applicationContext-cxf.xml index 8413bed..97f6763 100644 --- a/platform-data-api/src/main/resources/spring/applicationContext-cxf.xml +++ b/platform-data-api/src/main/resources/spring/applicationContext-cxf.xml @@ -11,15 +11,20 @@ language governing permissions and limitations under the License. --> - - - - + + + + + + + - +