Browse Source

216-客户跟进销售合同改为只显示已经审批通过的

yzc 1 year ago
parent
commit
2a77c245c8

+ 2 - 1
hx-customer/src/main/resources/mapper/customer/CustomerMapper.xml

@@ -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

+ 2 - 1
hx-sale/src/main/resources/mapper/sale/SaleQuotationMapper.xml

@@ -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})
               UNION
               (SELECT id,
                       NULL AS amount, date AS create_time, NULL AS contractCode, 30 AS type, content AS remark