Commit 4fccaa370602fb375f3f7edf95d1df2ac5ad1c0f

Authored by jiangjiazhi
1 parent a9fede39b0

增加soureceid

Showing 4 changed files with 26 additions and 19 deletions

platform-data-api/src/main/resources/log4j_config.xml View file @ 4fccaa3
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
3   -<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
  3 +<log4j:configuration>
4 4  
5 5 <!-- Appenders -->
6 6  
platform-job-index/src/main/java/com/lyms/platform/job/index/TestSolr.java View file @ 4fccaa3
1 1 package com.lyms.platform.job.index;
2 2  
  3 +import com.lyms.platform.common.enums.YnEnums;
3 4 import com.lyms.platform.job.index.model.DoctorUserPatentsMaps;
4 5 import com.lyms.platform.job.index.repository.DoctorUserPatientsMapsRepository;
5 6 import com.lyms.platform.job.index.service.DoctorPatientsService;
  7 +import com.lyms.platform.query.AntExChuQuery;
  8 +import com.lyms.platform.query.PatientsQuery;
  9 +import com.lymsh.mommybaby.basecommon.util.DateUtil;
6 10 import org.apache.solr.client.solrj.response.QueryResponse;
7 11 import org.springframework.context.ApplicationContext;
8 12 import org.springframework.context.support.ClassPathXmlApplicationContext;
9 13  
10 14  
... ... @@ -15,26 +19,14 @@
15 19 */
16 20 public class TestSolr {
17 21 public static void main(String[] args)throws Exception{
18   - ApplicationContext applicationContext=new ClassPathXmlApplicationContext("classpath:spring/applicationContext.xml");
19   - /* DoctorUserPatientsMapsRepository doctorUserPatientsMapsRepository = (DoctorUserPatientsMapsRepository)applicationContext.getBean("doctorRepository");
20   - *//* *//* DoctorUserPatentsMaps doctorUserPatentsMaps=new DoctorUserPatentsMaps();
21   - */
22   -// doctorUserPatientsMapsRepository.delete("1460622586762");
23   - DoctorPatientsService doctorPatientsService = applicationContext.getBean(DoctorPatientsService.class);
24   - long time = System.currentTimeMillis();
25   - for(int i=0;i<800;i++){
26   - DoctorUserPatentsMaps doctorUserPatentsMaps=new DoctorUserPatentsMaps();
27   - doctorUserPatentsMaps.setDoctorUserId("aaaaaaaa");
28   - doctorUserPatentsMaps.setYn(1);
29   - doctorUserPatentsMaps.setId("" + System.currentTimeMillis() + " "+ i);
30   - doctorUserPatentsMaps.setCreated(new Date());
31   - doctorUserPatentsMaps.setDeptId("aaaaaaaaaaaaaaa");
32   - doctorUserPatentsMaps.setHospitalId("" + i);
33   - doctorUserPatentsMaps.setPatientId("bbbbbbbbbbbbbbbbbbbbbbbbb");
34   - doctorPatientsService.add(doctorUserPatentsMaps);
  22 + String heartRate="1121";
  23 + String heartRateVal="";
  24 + for(int i=1;i<5;i++){
  25 + heartRateVal+=(i+"次/分"+",");
35 26 }
36   - System.out.print(System.currentTimeMillis()-time);
37 27  
  28 + System.currentTimeMillis();
  29 + System.out.print(System.currentTimeMillis());
38 30 }
39 31 }
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java View file @ 4fccaa3
... ... @@ -861,6 +861,7 @@
861 861 result.setId(pat.getId());
862 862 result.setType(pat.getType());
863 863 result.setDueStatus(pat.getDueStatus());
  864 + result.setPid(result.getPid());
864 865 results.add(result);
865 866 }
866 867 }
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/BookbuildingRecordResult.java View file @ 4fccaa3
... ... @@ -6,6 +6,20 @@
6 6 public class BookbuildingRecordResult {
7 7 //建档ID
8 8 private String id;
  9 +
  10 + private String pid;
  11 +
  12 +
  13 + public String getPid()
  14 + {
  15 + return pid;
  16 + }
  17 +
  18 + public void setPid(String pid)
  19 + {
  20 + this.pid = pid;
  21 + }
  22 +
9 23 //建档时间
10 24 private String bookbuildDate;
11 25 //分娩时间