fix
Helius
2022-12-14 62a304eb5c68fc7f54a9bc247e76223cc2c7f243
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
<?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.xcong.farmer.cms.modules.system.mapper.MessageBoardMapper">
 
    <select id="selectAdminMessageBoardInPage" resultType="com.xcong.farmer.cms.modules.system.vo.AdminMessageBoardVo">
        SELECT
        a.*,
        DATE_FORMAT(a.create_time, '%Y-%m-%d %H:%i:%S') createTime
        FROM
        t_message_board a
        <where>
            <if test="record != null" >
                <if test="record.name!=null">
                    and a.name like concat ('%',#{record.name},'%')
                </if>
                <if test="record.remark!=null">
                    and a.remark like concat ('%',#{record.remark},'%')
                </if>
                <if test="record.companyId!=null">
                    and a.company_id = #{record.companyId}
                </if>
            </if>
        </where>
    </select>
 
</mapper>