<?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>
|