|
|
@ -80,24 +80,27 @@ |
|
|
|
<select id="getHomeAppealList2" |
|
|
|
resultType="com.yxt.anrui.riskcenter.api.loanhomevisitappeal.LoanHomeVisitAppealPageVo"> |
|
|
|
SELECT la.sid, |
|
|
|
la.homeVisitSid AS kcSid, |
|
|
|
la.nodeState, |
|
|
|
bo.`contractNo` AS contractId, |
|
|
|
bo.`useOrgName`, |
|
|
|
bo.`orgName`, |
|
|
|
bo.`staffName`, |
|
|
|
bb.`borrowerName` AS lenderName, |
|
|
|
bb.`mobile`, |
|
|
|
li.homeVisStaffName AS jfMember, |
|
|
|
li.resHomeVisDate AS times, |
|
|
|
li.`remarks`, |
|
|
|
la.`appealReason` |
|
|
|
la.homeVisitSid AS kcSid, |
|
|
|
la.nodeState, |
|
|
|
bo.`contractNo` AS contractId, |
|
|
|
bo.`useOrgName`, |
|
|
|
bo.`orgName`, |
|
|
|
bo.`staffName`, |
|
|
|
bb.`borrowerName` AS lenderName, |
|
|
|
bb.`mobile`, |
|
|
|
li.homeVisStaffName AS jfMember, |
|
|
|
li.resHomeVisDate AS times, |
|
|
|
li.`remarks`, |
|
|
|
la.`appealReason` |
|
|
|
FROM loan_homevisit_appeal la |
|
|
|
LEFT JOIN loan_homevisit_investigate li |
|
|
|
ON la.`homeVisitSid` = li.`sid` |
|
|
|
LEFT JOIN anrui_buscenter.`bus_sales_order` bo |
|
|
|
ON li.`saleOrderSid` = bo.`sid` |
|
|
|
LEFT JOIN anrui_buscenter.`bus_sales_order_borrower` bb |
|
|
|
ON li.`saleOrderBorrowerSid` = bb.`sid` |
|
|
|
LEFT JOIN loan_homevisit_investigate li |
|
|
|
ON la.`homeVisitSid` = li.`sid` |
|
|
|
LEFT JOIN anrui_buscenter.`bus_sales_order` bo |
|
|
|
ON li.`saleOrderSid` = bo.`sid` |
|
|
|
LEFT JOIN anrui_buscenter.`bus_sales_order_borrower` bb |
|
|
|
ON li.`saleOrderBorrowerSid` = bb.`sid` |
|
|
|
<where> |
|
|
|
${ew.sqlSegment} |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
</mapper> |