QuotaFormulaRuleMapper.xml 737 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.student.mapper.QuotaFormulaRuleMapper">
  6. <select id="getPage" parameterType="com.xjrsoft.module.student.dto.QuotaFormulaRulePageDto" resultType="com.xjrsoft.module.student.vo.QuotaFormulaRulePageVo">
  7. select t.id, t.name, t.formula, GROUP_CONCAT(t1.name SEPARATOR ',') AS bind_quota
  8. from quota_formula_rule t
  9. LEFT JOIN xjr_dictionary_detail t1 ON FIND_IN_SET(t1.code, t.bind_quota)
  10. where t.delete_mark = 0
  11. GROUP BY t.id
  12. order by t.create_date
  13. </select>
  14. </mapper>