|
|
@@ -4,9 +4,30 @@
|
|
|
"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, t.bind_quota
|
|
|
+ select t.id, t.name, t.formula
|
|
|
from quota_formula_rule t
|
|
|
where t.delete_mark = 0
|
|
|
order by t.create_date
|
|
|
</select>
|
|
|
-</mapper>
|
|
|
+
|
|
|
+ <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>
|
|
|
+
|
|
|
+
|