Browse Source

问题赋分新增状态2

main
sjh 1 year ago
parent
commit
c90cd7abb8
  1. 2
      src/main/java/com/biutag/supervision/mapper/RiskScoreRuleMapper.java

2
src/main/java/com/biutag/supervision/mapper/RiskScoreRuleMapper.java

@ -9,7 +9,7 @@ import java.util.List;
public interface RiskScoreRuleMapper extends BaseMapper<RiskScoreRule> {
@Select("select mc.id, mc.pid, mc.risk_name NAME, mc.sort_id, count(mc2.id) size from risk_score_rule mc left join model m on mc.id = m.risk_score_rule_id LEFT JOIN risk_score_rule mc2 on mc.id = mc2.pid where mc.pid = 0 and mc.status = 1 GROUP BY mc.id, mc.risk_name, mc.sort_id order by sort_id")
@Select("select mc.id, mc.pid, mc.risk_name NAME, mc.sort_id, count(mc2.id) size from risk_score_rule mc left join model m on mc.id = m.risk_score_rule_id LEFT JOIN risk_score_rule mc2 on mc.id = mc2.pid where mc.pid = 0 and mc2.status = 1 GROUP BY mc.id, mc.risk_name, mc.sort_id order by sort_id")
List<RiskClassModel> selectListRoot();
@Select("select mc.id, mc.pid, mc.risk_name NAME, mc.sort_id, count(m.risk_score_rule_id) size from risk_score_rule mc left join model m on mc.id = m.risk_score_rule_id where mc.status = 1 GROUP BY mc.id, mc.risk_name, mc.sort_id order by sort_id")

Loading…
Cancel
Save