@@ -92,7 +92,8 @@
NULL AS content,
create_user
FROM bytesailing_sale.contract c
- WHERE c.buy_corporation_id = #{id}
+ WHERE c.status = 30
+ and c.buy_corporation_id = #{id}
and c.tenant_id = #{tenantId}
and c.del_flag = 0)
UNION
@@ -76,7 +76,8 @@
20 as type,
NULL AS remark
FROM contract c
- where c.buy_corporation_id = #{id})
+ where c.status = 30
+ and c.buy_corporation_id = #{id})
(SELECT id,
NULL AS amount, date AS create_time, NULL AS contractCode, 30 AS type, content AS remark