|
@@ -33,10 +33,11 @@
|
|
|
<select id="listByAccountRequestFundsId" resultType="com.fjhx.account.entity.account.vo.AccountRequestFundsDetailVo">
|
|
|
SELECT
|
|
|
arfd.*,
|
|
|
- c.`code` contractCode
|
|
|
+ IF( arfd.data_type = 1, c.`code`, s.`code` ) contractCode
|
|
|
FROM
|
|
|
account_request_funds_detail arfd
|
|
|
LEFT JOIN bytesailing_sale.contract c ON arfd.contract_id = c.id
|
|
|
+ LEFT JOIN bytesailing_sale.sample s ON arfd.contract_id = s.id
|
|
|
WHERE
|
|
|
arfd.account_request_funds_id = #{accountRequestFundsId}
|
|
|
</select>
|