| | |
| | | and d.orgid = #{orgid} |
| | | <if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if> |
| | | <if test="idcardno != null and idcardno != ''">and a.idcardno = #{idcardno}</if> |
| | | <if test="pid != null and pid != ''">and a.id = #{id}</if> |
| | | <!-- 原为 `and a.id = #{id}`:PatArchiveReq 上没有 id(只有 pid), |
| | | 条件判的是 pid 却取 id —— 这条查询(按住院记录查档案)一执行就抛 |
| | | ReflectionException: no getter for 'id'。占位符按 pid 取。 --> |
| | | <if test="pid != null and pid != ''">and a.id = #{pid}</if> |
| | | <if test="campusid != null and campusid != ''">and a.campusid = #{campusid}</if> |
| | | <if test="telcode != null and telcode != ''">and a.telcode = #{telcode}</if> |
| | | <if test="notrequiredFlag != null and notrequiredFlag != ''">and a.notrequired_flag = #{notrequiredFlag} |
| | |
| | | and d.orgid = #{orgid} |
| | | <if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if> |
| | | <if test="idcardno != null and idcardno != ''">and a.idcardno = #{idcardno}</if> |
| | | <if test="pid != null and pid != ''">and a.id = #{id}</if> |
| | | <!-- 同上(QC 版语句):占位符 id -> pid。 --> |
| | | <if test="pid != null and pid != ''">and a.id = #{pid}</if> |
| | | <if test="telcode != null and telcode != ''">and a.telcode = #{telcode}</if> |
| | | <if test="notrequiredFlag != null and notrequiredFlag != ''">and a.notrequired_flag = #{notrequiredFlag} |
| | | </if> |