<?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.ruoyi.project.tr.specialCheck.mapper.TbBaseCheckItemMapper">
|
|
<resultMap id="BaseResultMap" type="com.ruoyi.project.tr.specialCheck.domin.TbBaseCheckItem">
|
<id property="id" column="id"/>
|
|
<result property="taskId" column="task_id"/>
|
<result property="checkName" column="check_name"/>
|
<result property="checkContent" column="check_content"/>
|
<result property="checkWay" column="check_way"/>
|
<result property="checkBasis" column="check_basis"/>
|
<result property="applicablePlace" column="applicable_place"/>
|
|
<result property="deleted" column="deleted"/>
|
<result property="createBy" column="create_by"/>
|
<result property="createDate" column="create_date"/>
|
<result property="updateBy" column="update_by"/>
|
<result property="updateDate" column="update_date"/>
|
</resultMap>
|
|
<!-- List<TbBaseCheckItem> selectTbBaseCheckItemPage(TbBaseCheckItemBO tbBaseCheckItemBO);-->
|
<select id="selectTbBaseCheckItemPage" resultMap="BaseResultMap">
|
select * from tb_base_check_item
|
<where>
|
deleted = 0
|
<if test="checkName != null">
|
and task_name check_name concat('%',#{checkName},'%')
|
</if>
|
<if test="checkContent != null">
|
and check_content like concat('%',#{checkContent},'%')
|
</if>
|
<if test="checkWay != null">
|
and check_way like concat('%',#{checkWay},'%')
|
</if>
|
<if test="createDate != null">
|
and create_date >= #{createDate}
|
</if>
|
<if test="updateDate != null">
|
and #{updateDate} >= update_date
|
</if>
|
order by create_date desc
|
</where>
|
</select>
|
|
</mapper>
|