Commit 9750bd69cdc4a76d6a09c10448c4f205153decac
1 parent
a35d5fb8f5
Exists in
master
and in
6 other branches
听力诊断模块
Showing 3 changed files with 31 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientMarkHospServiceFacade.java
View file @
9750bd6
| ... | ... | @@ -371,7 +371,7 @@ |
| 371 | 371 | * 同步查询乐陵住院数据 |
| 372 | 372 | */ |
| 373 | 373 | public void synLlHisData(int offset, int page) { |
| 374 | - | |
| 374 | + System.out.println("同步查询乐陵住院数据"); | |
| 375 | 375 | PatientMarkHospitalQuery patientMarkHospQuery = new PatientMarkHospitalQuery(); |
| 376 | 376 | patientMarkHospQuery.setSort("hospit_date"); |
| 377 | 377 | patientMarkHospQuery.setNeed("y"); |
| ... | ... | @@ -381,7 +381,7 @@ |
| 381 | 381 | |
| 382 | 382 | List<PatientMarkHospital> patientMarkHospitals = patientMarkHospitalService.queryPatientMarkHospital(patientMarkHospQuery); |
| 383 | 383 | for (PatientMarkHospital ps : patientMarkHospitals) { |
| 384 | - if (ps.getHospitType() == 1) {//分娩住院跳过 | |
| 384 | + if (ps.getHospitType()!=null && ps.getHospitType() == 1) {//分娩住院跳过 | |
| 385 | 385 | continue; |
| 386 | 386 | } |
| 387 | 387 | synUpdateHisData(ps); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PatientServiceFacade.java
View file @
9750bd6
| ... | ... | @@ -143,6 +143,10 @@ |
| 143 | 143 | return baseResponse; |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | + Patients patients = patientsService.findOnePatientById(ps.getParentid()); | |
| 147 | + if(patients!=null){ | |
| 148 | + ps.setPid(patients.getPid()); | |
| 149 | + } | |
| 146 | 150 | ps.setId(UUID.randomUUID().toString().replace("-", "")); |
| 147 | 151 | ps.setHospitalId(hospitalId); |
| 148 | 152 | // ps.setCreateDate(new Date()); |
platform-operate-api/src/main/resources/spring/applicationContext-quartz.xml
View file @
9750bd6
| ... | ... | @@ -9,6 +9,29 @@ |
| 9 | 9 | http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache-3.1.xsd |
| 10 | 10 | http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd"> |
| 11 | 11 | |
| 12 | + | |
| 13 | + <bean id="patientMarkHospServiceFacade" class="com.lyms.platform.operate.web.facade.PatientMarkHospServiceFacade"></bean> | |
| 14 | + <!-- 扫描乐陵视图,更新住院状态信息 --> | |
| 15 | + <bean id="synLlHisData" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> | |
| 16 | + <!-- 要调用的bean --> | |
| 17 | + <property name="targetObject" ref="patientMarkHospServiceFacade"></property> | |
| 18 | + <!-- 要调用的Method --> | |
| 19 | + <property name="targetMethod" value="synLlHisData"></property> | |
| 20 | + <property name="arguments"> | |
| 21 | + <list> | |
| 22 | + <value>0</value> | |
| 23 | + <value>1</value> | |
| 24 | + </list> | |
| 25 | + </property> | |
| 26 | + <!-- 是否并发,false表示 如果发生错误也不影响下一次的调用 --> | |
| 27 | + <property name="concurrent" value="false"></property> | |
| 28 | + </bean> | |
| 29 | + <!-- 配置一个触发器 --> | |
| 30 | + <bean id="synLlHisDataTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"> | |
| 31 | + <property name="jobDetail" ref="synLlHisData"></property> | |
| 32 | + <property name="cronExpression" value="0 0/10 * * * ?"></property> | |
| 33 | + </bean> | |
| 34 | + | |
| 12 | 35 | <bean id="genSequenceIdService" class="com.lyms.platform.biz.service.GenSequenceIdService"></bean> |
| 13 | 36 | <!-- 扫描生成的id库 数量不够时自动生成一批数据 --> |
| 14 | 37 | <bean id="autoInsertIdTask" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> |
| ... | ... | @@ -149,6 +172,8 @@ |
| 149 | 172 | <ref bean="addSieveJobTrigger"/> |
| 150 | 173 | <ref bean="correctSieveOrderTrigger"/> |
| 151 | 174 | <ref bean="autoInsertIdTrigger"/> |
| 175 | + <!--乐陵住院系统同步--> | |
| 176 | + <ref bean="synLlHisDataTrigger"/> | |
| 152 | 177 | <!--<ref bean="qhdFmTrigger"/>--> |
| 153 | 178 | <!--<ref bean="crisisTrigger"/>--> |
| 154 | 179 | <!--<ref bean="qhdFmHistoryTrigger"/>--> |