LedgerConfigReleaseMapper.xml 882 B

12345678910111213141516
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.xjrsoft.module.ledger.mapper.LedgerConfigReleaseMapper">
  6. <select id="getPage" parameterType="com.xjrsoft.module.ledger.dto.LedgerConfigReleasePageDto" resultType="com.xjrsoft.module.ledger.vo.LedgerConfigReleasePageVo">
  7. SELECT t1.id, t3.name AS ledger_name,t2.title AS menu_name,t1.remark FROM ledger_config_release t1
  8. LEFT JOIN xjr_menu t2 ON t1.menu_id = t2.id
  9. LEFT JOIN ledger_config t3 ON t1.ledger_config_id = t3.id
  10. WHERE t1.delete_mark = 0
  11. <if test="dto.name != null and dto.name != ''">
  12. and (t3.name like concat('%',#{dto.name},'%') or t2.title like concat('%',#{dto.name},'%'))
  13. </if>
  14. </select>
  15. </mapper>