Browse Source

修复流调sql问题。

lighter 4 years ago
parent
commit
6ca4386a33
2 changed files with 3 additions and 6 deletions
  1. 1 1
      pom.xml
  2. 2 5
      src/main/java/thyyxxk/webserver/dao_his/covid/CovidDao.java

+ 1 - 1
pom.xml

@@ -10,7 +10,7 @@
     </parent>
     <groupId>thyyxxk</groupId>
     <artifactId>web-server</artifactId>
-    <version>3.2</version>
+    <version>3.3</version>
     <name>web-server</name>
     <description>server for yibao-web</description>
 

+ 2 - 5
src/main/java/thyyxxk/webserver/dao_his/covid/CovidDao.java

@@ -12,7 +12,7 @@ import java.util.List;
 
 @Mapper
 public interface CovidDao {
-    @Select("select id, name, convert(varchar(10), date, 21) date from " +
+    @Select("select id, name, date from " +
             "t_covid19_assessment where patient_id=#{patientId} order by id")
     List<CovidIndexPojo> getList(@Param("patientId") String patientId);
 
@@ -21,7 +21,7 @@ public interface CovidDao {
             "addrCity=(select name from t_region where code=addr_city), " +
             "addrDistrict=(select name from t_region where code=addr_district), " +
             "addr_additional addrAdditional, temperature, fever_number feverNumber, " +
-            "convert(varchar(10), date, 21) date, item1, item2, item3, item4, item5, " +
+            "date, item1, item2, item3, item4, item5, " +
             "symptoms symptomsSelect from t_covid19_assessment where id=#{id}")
     CovidDetailPojo getDetail(@Param("id") Integer id);
 
@@ -29,9 +29,6 @@ public interface CovidDao {
             "from mz_patient_mi where patient_id=#{patientId}")
     CovidDetailPojo getPatientInfo(@Param("patientId") String patientId);
 
-    @Select("select top 1 rtrim(patient_id) from mz_patient_mi where social_no=#{idcard} order by lv_date desc")
-    String getPatientId(@Param("idcard") String idcard);
-
     @Select("select code, name from t_region where level=1 and del_flag=0 order by code")
     List<RegionPojo> getRegionProvince();