智慧保安后台管理-外网项目备份
guoshilong
2023-12-15 cbb51be06db9560ffaca9cd42d1f2d92b4ed3f37
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?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="org.springblade.modules.post.mapper.PostFilingMapper">
 
    <!--自定义分页查询-->
    <select id="selectPostFilingPage" resultType="org.springblade.modules.post.vo.PostFilingVO">
        select * from sys_post_filing
        where is_deleted = 0
        <if test="postFiling.type!=null">
            and type = #{postFiling.type}
        </if>
        <if test="postFiling.name!=null and postFiling.name!=''">
            and name like concat('%',#{postFiling.name},'%')
        </if>
        ORDER BY duty_time ASC
    </select>
    <select id="getAll" resultType="org.springblade.modules.post.entity.PostFiling">
        select * from sys_post_filing
        where is_deleted = 0
        <if test="postFiling.type!=null">
            and type = #{postFiling.type}
        </if>
        <if test="postFiling.name!=null and postFiling.name!=''">
            and name like concat('%',#{postFiling.name},'%')
        </if>
        ORDER BY duty_time ASC
    </select>
</mapper>