|
|
|
@ -30,11 +30,12 @@ |
|
|
|
|
<result column="operating_status" property="operatingStatus" /> |
|
|
|
|
<result column="business_status" property="businessStatus" /> |
|
|
|
|
<result column="business_id" property="businessId" /> |
|
|
|
|
<result column="role_id" property="roleId" /> |
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
<select id="pageByCondition" resultMap="GuaranteeLetterListResponseMap"> |
|
|
|
|
select lau.id,aai.business_code,cc.name,cc.phone,aai.business_type,lcc.loan_money,lcc.loan_tern,aai.create_time, |
|
|
|
|
lau.status,aai.bank,lcc.passing_time,lcc.file,lau.audit_opinion,lau.operating_status,bps.business_status,lau.business_id |
|
|
|
|
select lau.id,aai.business_code,cc.name,cc.phone,aai.business_type,lcc.loan_money,lcc.loan_tern,aai.create_time,lau.status, |
|
|
|
|
aai.bank,lcc.passing_time,lcc.file,lau.audit_opinion,lau.operating_status,bps.business_status,lau.business_id,lau.role_id |
|
|
|
|
from dg_guarantee_letter_assign_user lau |
|
|
|
|
left join dg_apply_amount_info aai on lau.business_id = aai.id |
|
|
|
|
left join crms_company_customer ccc on lau.company_id = ccc.id |
|
|
|
@ -47,7 +48,7 @@ |
|
|
|
|
#{id} |
|
|
|
|
</foreach> |
|
|
|
|
<if test="userId != null and userId != ''"> |
|
|
|
|
AND (lau.user_id = #{userId} or lau.user_id is null) |
|
|
|
|
AND (lau.user_id = #{userId} or lau.user_id is null OR lau.user_id = '') |
|
|
|
|
</if> |
|
|
|
|
<if test="customerNumberOrName != null and customerNumberOrName != ''"> |
|
|
|
|
AND aai.business_code LIKE CONCAT('%',#{customerNumberOrName},'%') OR cc.name LIKE CONCAT('%',#{customerNumberOrName},'%') |
|
|
|
|