Parcourir la source

装箱合同列表添加过滤

yzc il y a 1 an
Parent
commit
b8e0e8cc24

+ 1 - 0
hx-sale/src/main/resources/mapper/contract/ContractMapper.xml

@@ -175,6 +175,7 @@
         FROM
         contract t1
         LEFT JOIN contract_product t2 ON t1.id = t2.contract_id
+        join production_order po on po.contract_id = t1.id and po.produce_status = 2
         <where>
             <if test="customerId neq null and customerId neq '' ">
                 buy_corporation_id = #{customerId}