| 123456789101112131415161718192021222324252627282930313233 |
- <?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.student.mapper.QuotaFormulaRuleMapper">
- <select id="getPage" parameterType="com.xjrsoft.module.student.dto.QuotaFormulaRulePageDto" resultType="com.xjrsoft.module.student.vo.QuotaFormulaRulePageVo">
- select t.id, t.name, t.formula
- from quota_formula_rule t
- where t.delete_mark = 0
- order by t.create_date
- </select>
- <select id="getQuota" parameterType="com.xjrsoft.module.student.dto.QuotaFormulaRulePageDto" resultType="com.xjrsoft.module.student.vo.QuotaFormulaRulePageVo">
- SELECT
- t.id,
- GROUP_CONCAT(t1.name SEPARATOR ',') AS bind_quota
- FROM
- quota_formula_rule t
- LEFT JOIN
- xjr_dictionary_detail t1
- ON
- t1.item_id = 1752246376061272065
- WHERE
- t.delete_mark = 0
- AND FIND_IN_SET(t1.code, t.bind_quota)
- GROUP BY
- t.id
- ORDER BY
- MAX(t.create_date);
- </select>
- </mapper>
|