浏览代码

装箱合同列表添加过滤

yzc 1 年之前
父节点
当前提交
b8e0e8cc24
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      hx-sale/src/main/resources/mapper/contract/ContractMapper.xml

+ 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}