|
|
@@ -4,30 +4,13 @@
|
|
|
"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
|
|
|
+ select t.id, t.name, t.formula, GROUP_CONCAT(t1.name SEPARATOR ',') AS bind_quota
|
|
|
from quota_formula_rule t
|
|
|
+ LEFT JOIN xjr_dictionary_detail t1 ON FIND_IN_SET(t1.code, t.bind_quota)
|
|
|
where t.delete_mark = 0
|
|
|
+ GROUP BY t.id
|
|
|
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>
|
|
|
|
|
|
|