|
|
@@ -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>
|