You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1.0 KiB
XML
21 lines
1.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.glxp.api.dao.basic.BasicSkPrescribeMapper">
|
|
<select id="filterList" parameterType="com.glxp.api.req.basic.BasicSkPrescribeRequest"
|
|
resultType="com.glxp.api.res.basic.BasicSkPrescribeResponse">
|
|
SELECT basic_sk_prescribe.*, basic_sk_sicker.name sickName, sys_workplace.workplaceName
|
|
FROM basic_sk_prescribe
|
|
left join basic_sk_sicker on basic_sk_prescribe.sickerCode = basic_sk_sicker.code
|
|
left join sys_workplace on basic_sk_prescribe.workPlaceCode = sys_workplace.workplaceId
|
|
<where>
|
|
<if test="code != '' and code != null">
|
|
AND code LIKE concat('%', #{code}, '%')
|
|
</if>
|
|
<if test="sickerCode != null and sickerCode != ''">
|
|
AND sickerCode = #{sickerCode}
|
|
</if>
|
|
</where>
|
|
order by prescribeDate
|
|
</select>
|
|
</mapper>
|