@@ -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 {
-@Api(tags = "科室申请管理")
+@Api(tags = "小程序科室申请管理")
@RequestMapping("/app/obr")
public class Api_ObrController {
@@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
import java.util.List;
-@Api(tags = "检测项目管理")
+@Api(tags = "小程序检测项目管理")
@RequestMapping("/app/obx")
public class Api_ObxController {
@@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.*;
-@Api(tags = "住院信息管理")
+@Api(tags = "小程序住院信息管理")
@RequestMapping("/app/pv1")
public class Api_Pv1Controller {
@@ -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);
}
@@ -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>