1
0
فهرست منبع

fix:将就医记录查询从dg表改为pv1表

Ciallo 9 ماه پیش
والد
کامیت
fc981778fb

+ 1 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/work/api/Api_DgController.java

@@ -8,7 +8,7 @@ import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 
-@Api(tags = "就诊信息管理")
+@Api(tags = "小程序就诊信息管理")
 @RestController
 @RequestMapping("/app/dg")
 public class Api_DgController {

+ 1 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/work/api/Api_ObrController.java

@@ -8,7 +8,7 @@ import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 
-@Api(tags = "科室申请管理")
+@Api(tags = "小程序科室申请管理")
 @RestController
 @RequestMapping("/app/obr")
 public class Api_ObrController {

+ 1 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/work/api/Api_ObxController.java

@@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
 
 import java.util.List;
 
-@Api(tags = "检测项目管理")
+@Api(tags = "小程序检测项目管理")
 @RestController
 @RequestMapping("/app/obx")
 public class Api_ObxController {

+ 1 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/work/api/Api_Pv1Controller.java

@@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.*;
 
 import java.util.List;
 
-@Api(tags = "住院信息管理")
+@Api(tags = "小程序住院信息管理")
 @RestController
 @RequestMapping("/app/pv1")
 public class Api_Pv1Controller {

+ 1 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/work/mapper/Pv1Mapper.java

@@ -20,5 +20,5 @@ public interface Pv1Mapper extends BaseMapper<Pv1> {
 
     List<PatientCardDto> getAllDepartment();
 
-    List<Pv1MedicalRecord> getMedicalRecord(String beginTime, String endTime, Long patientId);
+    List<Pv1MedicalRecord> getMedicalRecord(@Param("beginTime") String beginTime,@Param("endTime")  String endTime,@Param("patientId")  Long patientId);
 }

+ 3 - 5
ruoyi-admin/src/main/resources/mapper/work/Pv1Mapper.xml

@@ -67,11 +67,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         SELECT tb_pv1.department,tb_pv1.admission_time,tb_pv1.discharge_time,tb_pv1.card_id
         FROM tb_pv1
         where tb_pv1.patient_id=#{patientId}
-        <where>
-            <if test="beginTime !=null and beginTime!='' and endTime!=null and endTime!=''">
-                and  diagnosis_time BETWEEN #{beginTime} and #{endTime};
-            </if>
-        </where>
+        <if test="beginTime !=null and beginTime!='' and endTime!=null and endTime!=''">
+                and  tb_pv1.admission_time BETWEEN #{beginTime} and #{endTime};
+        </if>
     </select>