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.
42 lines
1.3 KiB
XML
42 lines
1.3 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.docus.demo.mapper.mysql.BasicMapper">
|
|
|
|
|
|
<select id="getBasicVoList" resultType="com.docus.demo.vo.BasicVo">
|
|
SELECT
|
|
patient_id as patient_id,
|
|
admiss_times AS admissTimes,
|
|
inpatient_no AS inpatientNo,
|
|
dis_date AS disDate,
|
|
b_column5 as bColumn5
|
|
FROM docus_medicalrecord.t_basic
|
|
<where>
|
|
b_column5 is not null
|
|
AND b_column8 = 1
|
|
|
|
<!-- <if test="dto.inpatientNoList !=null and dto.inpatientNoList.size() != 0 ">-->
|
|
<!-- AND inpatient_no in-->
|
|
<!-- <foreach collection="dto.inpatientNoList" item="inpatientNo" separator="," open="(" close=")">-->
|
|
<!-- #{inpatientNo}-->
|
|
<!-- </foreach>-->
|
|
<!-- </if>-->
|
|
|
|
<if test="dto.startDate !=null and dto.startDate != ''">
|
|
AND dis_date >=#{dto.startDate}
|
|
</if>
|
|
|
|
<if test="dto.startDate !=null and dto.startDate != ''">
|
|
AND dis_date <= #{dto.endDate}
|
|
</if>
|
|
|
|
|
|
|
|
</where>
|
|
|
|
limit #{pageStart} ,#{pageEnd}
|
|
|
|
</select>
|
|
</mapper> |