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.
jp2demo/target/classes/mapper/sqlserver1/PaintVisitMapper.xml

32 lines
1015 B
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.docus.demo.mapper.sqlserver1.PaintVisitMapper">
<select id="getTpatientVisitList" resultType="com.docus.demo.entity.sqlserver1.Tpatientvisit">
SELECT * FROM Tpatientvisit
<where>
<if test="dto.inpatientNoList !=null and dto.inpatientNoList.size() != 0 ">
AND fprn in
<foreach collection="dto.inpatientNoList" item="inpatientNo" separator="," open="(" close=")">
#{inpatientNo}
</foreach>
</if>
<if test="dto.startDate !=null and dto.startDate != ''">
AND fcydate &gt;=#{dto.startDate}
</if>
<if test="dto.startDate !=null and dto.startDate != ''">
AND fcydate &lt;= #{dto.endDate}
</if>
</where>
</select>
</mapper>