guq 7 лет назад
Родитель
Сommit
88cee75cd4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      applications/sale/sale-server/src/main/resources/mapper/SaleMapper.xml

+ 1 - 1
applications/sale/sale-server/src/main/resources/mapper/SaleMapper.xml

@@ -402,7 +402,7 @@
     and purchasedetail.companyid= #{companyid}
     and purchasedetail.companyid= #{companyid}
   </select>
   </select>
   <select id="checkCustomer" parameterType="long" resultType="integer">
   <select id="checkCustomer" parameterType="long" resultType="integer">
-    select count(1) from sale left join  customer on sa_custid=cu_id  where  cu_statuscode='CLOSE' and cu_statuscode='CLOSE'
+    select count(1) from sale left join  customer on sa_custid=cu_id  where  cu_statuscode='CLOSE' and sa_id=#{id}
   </select>
   </select>
   
   
   <!-- 销售订单转采购单-->
   <!-- 销售订单转采购单-->