|
|
@@ -28,7 +28,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsPatientBaseInfoList" parameterType="FsPatientBaseInfo" resultMap="FsPatientBaseInfoResult">
|
|
|
- <include refid="selectFsPatientBaseInfoVo"/>
|
|
|
+ select i.*, d.doctor_name, u.nick_name company_user_name from fs_patient_base_info i
|
|
|
+ LEFT JOIN fs_doctor d ON i.doctor_id = d.doctor_id
|
|
|
+ LEFT JOIN company_user u ON i.company_user_id = u.user_id
|
|
|
<where>
|
|
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
<if test="sex != null "> and sex = #{sex}</if>
|