|  |  |  | @ -3,31 +3,31 @@ | 
			
		
	
		
			
				
					|  |  |  |  | <mapper namespace="com.glxp.api.dao.inv.InvPreinProductDao"> | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="filterList" resultType="com.glxp.api.res.inv.InvPreinProductResponse"> | 
			
		
	
		
			
				
					|  |  |  |  |         select ipp.id, | 
			
		
	
		
			
				
					|  |  |  |  |         ipp.nameCode, | 
			
		
	
		
			
				
					|  |  |  |  |         bp.cpmctymc, | 
			
		
	
		
			
				
					|  |  |  |  |         ipp.relIdFk, | 
			
		
	
		
			
				
					|  |  |  |  |         bp.ggxh, | 
			
		
	
		
			
				
					|  |  |  |  |         ipp.batchNo, | 
			
		
	
		
			
				
					|  |  |  |  |         ipp.productionDate, | 
			
		
	
		
			
				
					|  |  |  |  |         ipp.expireDate, | 
			
		
	
		
			
				
					|  |  |  |  |         bp.ylqxzcrbarmc, | 
			
		
	
		
			
				
					|  |  |  |  |         bp.zczbhhzbapzbh, | 
			
		
	
		
			
				
					|  |  |  |  |         ipp.inCount, | 
			
		
	
		
			
				
					|  |  |  |  |         ipp.outCount, | 
			
		
	
		
			
				
					|  |  |  |  |         ipp.reCount, | 
			
		
	
		
			
				
					|  |  |  |  |         ipp.customerId, | 
			
		
	
		
			
				
					|  |  |  |  |         basic_corp.name     supName, | 
			
		
	
		
			
				
					|  |  |  |  |         ipp.supId, | 
			
		
	
		
			
				
					|  |  |  |  |         auth_dept.name      deptName, | 
			
		
	
		
			
				
					|  |  |  |  |         auth_warehouse.name invName, | 
			
		
	
		
			
				
					|  |  |  |  |         ipp.deptCode, | 
			
		
	
		
			
				
					|  |  |  |  |         ipp.invCode | 
			
		
	
		
			
				
					|  |  |  |  |                ipp.nameCode, | 
			
		
	
		
			
				
					|  |  |  |  |                bp.cpmctymc, | 
			
		
	
		
			
				
					|  |  |  |  |                ipp.relIdFk, | 
			
		
	
		
			
				
					|  |  |  |  |                bp.ggxh, | 
			
		
	
		
			
				
					|  |  |  |  |                ipp.batchNo, | 
			
		
	
		
			
				
					|  |  |  |  |                ipp.productionDate, | 
			
		
	
		
			
				
					|  |  |  |  |                ipp.expireDate, | 
			
		
	
		
			
				
					|  |  |  |  |                bp.ylqxzcrbarmc, | 
			
		
	
		
			
				
					|  |  |  |  |                bp.zczbhhzbapzbh, | 
			
		
	
		
			
				
					|  |  |  |  |                ipp.inCount, | 
			
		
	
		
			
				
					|  |  |  |  |                ipp.outCount, | 
			
		
	
		
			
				
					|  |  |  |  |                ipp.reCount, | 
			
		
	
		
			
				
					|  |  |  |  |                ipp.customerId, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_corp.name     supName, | 
			
		
	
		
			
				
					|  |  |  |  |                ipp.supId, | 
			
		
	
		
			
				
					|  |  |  |  |                auth_dept.name      deptName, | 
			
		
	
		
			
				
					|  |  |  |  |                auth_warehouse.name invName, | 
			
		
	
		
			
				
					|  |  |  |  |                ipp.deptCode, | 
			
		
	
		
			
				
					|  |  |  |  |                ipp.invCode | 
			
		
	
		
			
				
					|  |  |  |  |         from inv_prein_product ipp | 
			
		
	
		
			
				
					|  |  |  |  |         inner join basic_udirel on ipp.relIdFk = basic_udirel.id | 
			
		
	
		
			
				
					|  |  |  |  |         inner join basic_products bp on basic_udirel.uuid = bp.uuid | 
			
		
	
		
			
				
					|  |  |  |  |         left join basic_corp on ipp.supId = basic_corp.erpId | 
			
		
	
		
			
				
					|  |  |  |  |         left join auth_dept on auth_dept.code = ipp.deptCode | 
			
		
	
		
			
				
					|  |  |  |  |         left join auth_warehouse on auth_warehouse.code = ipp.invCode | 
			
		
	
		
			
				
					|  |  |  |  |                      inner join basic_udirel on ipp.relIdFk = basic_udirel.id | 
			
		
	
		
			
				
					|  |  |  |  |                      inner join basic_products bp on basic_udirel.uuid = bp.uuid | 
			
		
	
		
			
				
					|  |  |  |  |                      left join basic_corp on ipp.supId = basic_corp.erpId | 
			
		
	
		
			
				
					|  |  |  |  |                      left join auth_dept on auth_dept.code = ipp.deptCode | 
			
		
	
		
			
				
					|  |  |  |  |                      left join auth_warehouse on auth_warehouse.code = ipp.invCode | 
			
		
	
		
			
				
					|  |  |  |  |         <where> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="cpmctymc != null and cpmctymc != ''"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND bp.cpmctymc like concat('%', #{cpmctymc}, '%') | 
			
		
	
	
		
			
				
					|  |  |  | @ -75,16 +75,17 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                 </foreach> | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |         </where> | 
			
		
	
		
			
				
					|  |  |  |  |         group by ipp.id | 
			
		
	
		
			
				
					|  |  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="filterPreProductList" resultType="com.glxp.api.entity.inv.InvPreinProductEntity"> | 
			
		
	
		
			
				
					|  |  |  |  |         select ipp.* | 
			
		
	
		
			
				
					|  |  |  |  |         from inv_prein_product ipp | 
			
		
	
		
			
				
					|  |  |  |  |         inner join basic_udirel on ipp.relIdFk = basic_udirel.id | 
			
		
	
		
			
				
					|  |  |  |  |         inner join basic_products bp on basic_udirel.uuid = bp.uuid | 
			
		
	
		
			
				
					|  |  |  |  |         left join basic_corp on ipp.supId = basic_corp.erpId | 
			
		
	
		
			
				
					|  |  |  |  |         left join auth_dept on auth_dept.code = ipp.deptCode | 
			
		
	
		
			
				
					|  |  |  |  |         left join auth_warehouse on auth_warehouse.code = ipp.invCode | 
			
		
	
		
			
				
					|  |  |  |  |                      inner join basic_udirel on ipp.relIdFk = basic_udirel.id | 
			
		
	
		
			
				
					|  |  |  |  |                      inner join basic_products bp on basic_udirel.uuid = bp.uuid | 
			
		
	
		
			
				
					|  |  |  |  |                      left join basic_corp on ipp.supId = basic_corp.erpId | 
			
		
	
		
			
				
					|  |  |  |  |                      left join auth_dept on auth_dept.code = ipp.deptCode | 
			
		
	
		
			
				
					|  |  |  |  |                      left join auth_warehouse on auth_warehouse.code = ipp.invCode | 
			
		
	
		
			
				
					|  |  |  |  |         <where> | 
			
		
	
		
			
				
					|  |  |  |  |             bp.diType = 1 | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="cpmctymc != null and cpmctymc != ''"> | 
			
		
	
	
		
			
				
					|  |  |  | @ -215,5 +216,4 @@ | 
			
		
	
		
			
				
					|  |  |  |  |         GROUP BY ipp.relId, ipp.batchNo | 
			
		
	
		
			
				
					|  |  |  |  |         order by ipp.updateTime desc | 
			
		
	
		
			
				
					|  |  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | </mapper> | 
			
		
	
	
		
			
				
					|  |  |  | 
 |