12345678910111213141516 |
- <?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.xjrsoft.module.ledger.mapper.LedgerConfigReleaseMapper">
- <select id="getPage" parameterType="com.xjrsoft.module.ledger.dto.LedgerConfigReleasePageDto" resultType="com.xjrsoft.module.ledger.vo.LedgerConfigReleasePageVo">
- SELECT t1.id, t3.name AS ledger_name,t2.title AS menu_name,t1.remark FROM ledger_config_release t1
- LEFT JOIN xjr_menu t2 ON t1.menu_id = t2.id
- LEFT JOIN ledger_config t3 ON t1.ledger_config_id = t3.id
- WHERE t1.delete_mark = 0
- <if test="dto.name != null and dto.name != ''">
- and (t3.name like concat('%',#{dto.name},'%') or t2.title like concat('%',#{dto.name},'%'))
- </if>
- </select>
- </mapper>
|