30 lines
1.2 KiB
XML
30 lines
1.2 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.hcy.common.mapper.staff.StaffPhysicalExaminationMapper">
|
|
<!-- 通用查询映射结果 -->
|
|
<resultMap id="BaseResultMap" type="com.hcy.common.entity.staff.StaffPhysicalExamination">
|
|
</resultMap>
|
|
|
|
<select id="list" resultType="com.hcy.common.entity.staff.StaffPhysicalExamination">
|
|
SELECT
|
|
spe.*
|
|
FROM
|
|
la_staff_physical_examination AS spe
|
|
LEFT JOIN la_staff AS sa ON sa.id = spe.staff_id
|
|
<where>
|
|
spe.is_delete = 0
|
|
<if test="form.status != null and form.status != ''">
|
|
AND spe.`status` = #{form.status}
|
|
</if>
|
|
<if test="form.name != null and form.name != ''">
|
|
AND sa.`name` LIKE concat('%',#{form.name},'%')
|
|
</if>
|
|
<if test="form.createTimeStart != null and form.createTimeStart != ''">
|
|
and spe.create_time >= #{form.createTimeStart}
|
|
and spe.create_time <= #{form.createTimeEnd}
|
|
</if>
|
|
</where>
|
|
order by spe.id desc
|
|
</select>
|
|
</mapper>
|