diff --git a/platform-biz-service/src/main/resources/mainOrm/master/PatientService.xml b/platform-biz-service/src/main/resources/mainOrm/master/PatientService.xml
index 81a7770..0eb97ea 100644
--- a/platform-biz-service/src/main/resources/mainOrm/master/PatientService.xml
+++ b/platform-biz-service/src/main/resources/mainOrm/master/PatientService.xml
@@ -232,13 +232,7 @@
and ser_type = #{serType,jdbcType=INTEGER}
-
- and ser_type in (
-
- #{serType}
-
- )
-
+
and ser_doct = #{serDoct,jdbcType=VARCHAR}
@@ -278,6 +272,13 @@
and hospital_id = #{hospitalId,jdbcType=VARCHAR}
+
+ and ser_type in (
+
+ #{serType}
+
+ )
+
and ser_code = #{serCode,jdbcType=VARCHAR}
@@ -662,7 +663,7 @@ FROM
`hospital_service_content` hso
INNER JOIN hospital_doct_service hds
on hso.id=hds.hosp_service_id
-where hso.hospital_id=#{hospitalId} and hso.ser_type in (3,4,6)
+where hso.hospital_id=#{hospitalId} and hso.ser_type in (1,3,4,6)
\ No newline at end of file
diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientServiceFacade.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientServiceFacade.java
index ee545fc..14d60be 100644
--- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientServiceFacade.java
+++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientServiceFacade.java
@@ -29,6 +29,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
+import javax.annotation.Resource;
import java.util.*;
/**
@@ -223,16 +224,14 @@ public class PatientServiceFacade {
}
-
-
map.put("towns", towns);
// 居住类别
List liveType = basicConfigFacade.getBaseicConfigByParentId(SystemConfig.LIVE_TYPE_ID);
//秦皇岛需求-增加有居住证,客服配置(其他地区不需要这个选项)
- if(StringUtils.isNotEmpty(hospitalId) && !"216".equals(hospitalId)){
+ if (StringUtils.isNotEmpty(hospitalId) && !"216".equals(hospitalId)) {
for (BasicConfigResult basicConfigResult : liveType) {
- if("有居住证".equals(basicConfigResult.getName())){
+ if ("有居住证".equals(basicConfigResult.getName())) {
liveType.remove(basicConfigResult);
break;
}
@@ -300,107 +299,114 @@ public class PatientServiceFacade {
/**
* 威县开通服务同步任务
- * 只同步 6围产小助理/3血糖管理服务/4血压管理服务
+ * 只同步 6围产小助理/3血糖管理服务/4血压管理服务/1精准医疗服务
*/
- public void patientServiceSync(){
+ public void patientServiceSync() {
logger.info("patientServiceSync start");
- String hospitalId="2100002421";
- List