|
|
|
@ -157,15 +157,26 @@ |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
<select id="getAuthSteps" resultType="com.gaotao.modules.auditManagement.entity.AuthStep"> |
|
|
|
select B.* from auth_rule A |
|
|
|
left join auth_step B on A.id = B.rule_id |
|
|
|
<where> |
|
|
|
<if test="recordTypeDb != null and recordTypeDb != ''"> |
|
|
|
and A.record_type_db = ( SELECT min(role_item_no) from business_role_list |
|
|
|
where record_type_db = #{recordTypeDb,jdbcType=VARCHAR} and family_id = #{familyId,jdbcType=VARCHAR}) |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
ORDER BY B.step_id |
|
|
|
<!-- select B.* from auth_rule A--> |
|
|
|
<!-- left join auth_step B on A.id = B.rule_id--> |
|
|
|
<!-- <where>--> |
|
|
|
<!-- <if test="recordTypeDb != null and recordTypeDb != ''">--> |
|
|
|
<!-- and A.record_type_db = ( SELECT min(role_item_no) from business_role_list--> |
|
|
|
<!-- where record_type_db = #{recordTypeDb,jdbcType=VARCHAR} and family_id = #{familyId,jdbcType=VARCHAR})--> |
|
|
|
<!-- </if>--> |
|
|
|
<!-- </where>--> |
|
|
|
<!-- ORDER BY B.step_id--> |
|
|
|
|
|
|
|
select * from auth_step s |
|
|
|
where rule_id = ( select top 1 id from auth_rule r |
|
|
|
where r.id in ( SELECT auth_rule_id from auth_rule_part WHERE family_id = #{familyId}) |
|
|
|
order by r.priority desc) |
|
|
|
order by s.step_id |
|
|
|
|
|
|
|
</select> |
|
|
|
<select id="getAuthStepsAllToolType" resultType="com.gaotao.modules.auditManagement.entity.AuthStep"> |
|
|
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
</mapper> |