Explorar el Código

面料损耗更新

fenghaifu hace 2 años
padre
commit
6bfdbe7e56

+ 12 - 12
jeecg-boot-module-system/src/main/java/org/jeecg/modules/report/mapper/xml/FabricLossMapper.xml

@@ -633,18 +633,18 @@
 				inner join SO_SODetails e on e.iSOsID=c.isodid
 				where a.ccode like CONCAT(#{code},'%')  and a.ccode not like '%样%' and
 					(d.cInvCCode like '01%' or d.cInvCCode like '02%' or d.cInvCCode like '03%' or d.cInvCCode like '04%')
-		)
-<!--
-		select distinct c.autoid,a.ccode as cOmCode,c.cInvCode as cInvCodeOut,d.cInvName as cInvNameOut,
-		isnull(c.cFree1,'') as cColorOut,isnull(c.cBatch,'') as cBatchOut,c.iQuantity as iQuantityOut,
-		isnull(c.cbatchproperty9,'') as cVenAbbName
-		from om_momain a
-		inner join OM_MODetails b on a.moid=b.moid
-		inner join rdrecords32 c on c.iorderdid  =b.isosid and b.cinvcode=c.cinvcode
-		INNER JOIN Inventory d ON c.cinvcode = d.cinvcode
-		where a.ccode like CONCAT(#{code},'%')  and a.ccode not like '%样%' and
-			(d.cInvCCode like '01%' or d.cInvCCode like '02%' or d.cInvCCode like '03%' or d.cInvCCode like '04%')
--->
+		) or e.cSOCode like CONCAT(#{code},'%')
+		<!--
+                select distinct c.autoid,a.ccode as cOmCode,c.cInvCode as cInvCodeOut,d.cInvName as cInvNameOut,
+                isnull(c.cFree1,'') as cColorOut,isnull(c.cBatch,'') as cBatchOut,c.iQuantity as iQuantityOut,
+                isnull(c.cbatchproperty9,'') as cVenAbbName
+                from om_momain a
+                inner join OM_MODetails b on a.moid=b.moid
+                inner join rdrecords32 c on c.iorderdid  =b.isosid and b.cinvcode=c.cinvcode
+                INNER JOIN Inventory d ON c.cinvcode = d.cinvcode
+                where a.ccode like CONCAT(#{code},'%')  and a.ccode not like '%样%' and
+                    (d.cInvCCode like '01%' or d.cInvCCode like '02%' or d.cInvCCode like '03%' or d.cInvCCode like '04%')
+        -->
 	</select>
 	<!--获取本次采购入库的形态转换-->
 	<select id="getPoAssemVouchList" resultType="map">