Commit 0cf3ba55 by guojuxing

商户规则列表查询修改

parent f96298ae
......@@ -113,7 +113,7 @@
</if>
</select>
<select id="listRule" parameterType="com.gic.enterprise.dto.rule.RuleEnterpriseDTO">
<select id="listRule" resultType="com.gic.enterprise.dto.rule.RuleEnterpriseDTO">
select t1.rule_name ruleName, count(DISTINCT t2.enterprise_id) countEnterpriseId
from tab_config_rule_enterprise t1
left join tab_config_rule_enterprise_rel t2 on t1.enterprise_rule_id = t2.enterprise_rule_id
......@@ -131,7 +131,7 @@
order by t1.create_time desc
</select>
<select id="listEnterpriseRule" parameterType="com.gic.enterprise.dto.rule.RuleEnterpriseDTO">
<select id="listEnterpriseRule" resultType="com.gic.enterprise.dto.rule.RuleEnterpriseDTO">
select t2.enterprise_name enterpriseName, t2.company_name companyName, t2.logo logo, t2.enterprise_id enterpriseId
from tab_config_rule_enterprise_rel t1
left join tab_enterprise t2 on t1.enterprise_id = t2.enterprise_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment