<?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.collaborativeApproval.mapper.NoticeMapper">
|
|
<select id="listPage" resultType="com.ruoyi.collaborativeApproval.dto.NoticeDTO">
|
select n.*, su.user_name as create_user_name
|
from notice n
|
left join sys_user su on n.create_user = su.user_id
|
<where>
|
<if test="ew.title != null and ew.title != ''">
|
and n.title like concat('%',#{ew.title},'%')
|
</if>
|
<if test="ew.type != null">
|
and n.type = #{ew.type}
|
</if>
|
<if test="ew.status != null">
|
and n.status = #{ew.status}
|
</if>
|
</where>
|
</select>
|
</mapper>
|