Ver código fonte

理疗--症型开关(医生端)

wjj 5 dias atrás
pai
commit
ff9dd5d046

+ 5 - 0
fs-service/src/main/java/com/fs/his/vo/FsPatientBaseInfoListDVO.java

@@ -65,4 +65,9 @@ public class FsPatientBaseInfoListDVO {
      */
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private Date checkTime;
+
+    /**
+     * 证型调理开关 1-开 0-关
+     */
+    private Integer treatmentTargetTag;
 }

+ 9 - 7
fs-service/src/main/resources/mapper/patient/FsPatientBaseInfoMapper.xml

@@ -140,14 +140,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </delete>
 
     <select id="selectFsPatientBaseInfoListDVO" parameterType="com.fs.his.param.FsPatientBaseInfoListDParam" resultType="com.fs.his.vo.FsPatientBaseInfoListDVO">
-        <include refid="selectFsPatientBaseInfoVo"/>
+        select i.*,p.treatment_target_tag
+        from fs_patient_base_info i
+        LEFT JOIN fs_project p ON p.id = i.project_id
         <where>
-            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
-            <if test="doctorId != null "> and doctor_id = #{doctorId}</if>
-            <if test="projectId != null "> and project_id = #{projectId}</if>
-            <if test="doctorStatus != null "> and doctor_status = #{doctorStatus}</if>
-            <if test="checkStatus != null "> and check_status = #{checkStatus}</if>
+            <if test="name != null  and name != ''"> and i.name like concat('%', #{name}, '%')</if>
+            <if test="doctorId != null "> and i.doctor_id = #{doctorId}</if>
+            <if test="projectId != null "> and i.project_id = #{projectId}</if>
+            <if test="doctorStatus != null "> and i.doctor_status = #{doctorStatus}</if>
+            <if test="checkStatus != null "> and i.check_status = #{checkStatus}</if>
         </where>
-        ORDER BY doctor_status ASC
+        ORDER BY i.doctor_status ASC
     </select>
 </mapper>