123456789101112131415161718192021222324252627282930 |
- <?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.zy.bms.mapper.LogsMapper">
- <select id="listPage" resultType="com.zy.bms.pojo.vo.LogsVo">
- SELECT
- t1.topic,
- t1.type,
- t1.open_num,
- t1.content,
- t1.m,
- t1.create_time,
- t2.remark
- FROM
- logs t1
- LEFT JOIN instructions t2 ON t1.m = t2.code
- <where>
- <if test="io.openNum != null and io.openNum != ''">
- AND t1.open_num LIKE CONCAT("%",#{io.openNum},"%")
- </if>
- <if test="io.type != null and io.type > -1">
- AND t1.type = #{io.type}
- </if>
- <if test="io.m != null and io.m !=''">
- AND t1.m = #{io.m}
- </if>
- </where>
- ORDER BY t1.create_time DESC
- </select>
- </mapper>
|