|
|
|
@ -83,11 +83,25 @@ |
|
|
|
|
|
|
|
|
|
<!-- 获取申请记录详情 --> |
|
|
|
|
<select id="getApplyDetail" parameterType="integer" resultType="com.daqing.framework.domain.crms.ext.ApplyDetailPO"> |
|
|
|
|
SELECT l.status AS audit_status,l.apply_content AS remark,b.business_status AS business_status |
|
|
|
|
SELECT l.status AS audit_status,l.apply_content AS remark,b.business_status AS business_status,l.business_id As businessId |
|
|
|
|
FROM dg_apply_amount_list AS l |
|
|
|
|
LEFT JOIN dg_business_process_status AS b |
|
|
|
|
ON l.business_id = b.business_id |
|
|
|
|
WHERE l.id = #{id} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<!-- 获取申请记录详情 --> |
|
|
|
|
<select id="getAuditOpinion" parameterType="integer" resultType="java.lang.String"> |
|
|
|
|
SELECT |
|
|
|
|
audit_opinion |
|
|
|
|
FROM |
|
|
|
|
dg_audit_process |
|
|
|
|
WHERE |
|
|
|
|
( reason != NULL OR reason != '' ) |
|
|
|
|
AND business_id = #{businessId} |
|
|
|
|
ORDER BY |
|
|
|
|
create_time DESC |
|
|
|
|
LIMIT 1 |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
</mapper> |