|  |  | @ -28,8 +28,8 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                (select `name` from auth_space where `code` = irm.invSpaceCode and invCode = irm.invCode) invSpaceName, |  |  |  |                (select `name` from auth_space where `code` = irm.invSpaceCode and invCode = irm.invCode) invSpaceName, | 
			
		
	
		
		
			
				
					
					|  |  |  |                (select `name` from basic_corp where erpId = irm.supId)                                   supName |  |  |  |                (select `name` from basic_corp where erpId = irm.supId)                                   supName | 
			
		
	
		
		
			
				
					
					|  |  |  |         from inv_remind_msg irm |  |  |  |         from inv_remind_msg irm | 
			
		
	
		
		
			
				
					
					|  |  |  |                      left join basic_udirel bu on bu.id = irm.relId |  |  |  |                  left join basic_udirel bu on bu.id = irm.relId | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                      left join basic_products bp on bp.uuid = bu.uuid |  |  |  |                  left join basic_products bp on bp.uuid = bu.uuid | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="relId != null and relId != ''"> |  |  |  |             <if test="relId != null and relId != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND irm.relId = #{relId} |  |  |  |                 AND irm.relId = #{relId} | 
			
		
	
	
		
		
			
				
					|  |  | @ -50,7 +50,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND irm.ignoreStatus = #{ignoreStatus} |  |  |  |                 AND irm.ignoreStatus = #{ignoreStatus} | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="ggxh != null and ggxh != ''"> |  |  |  |             <if test="ggxh != null and ggxh != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND bp.ggxh = #{ggxh} |  |  |  |                 AND bp.ggxh like concat('%', #{ggxh}, '%') | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="type != null and type != ''"> |  |  |  |             <if test="type != null and type != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND type = #{type} |  |  |  |                 AND type = #{type} | 
			
		
	
	
		
		
			
				
					|  |  | @ -58,6 +58,9 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="supId != null"> |  |  |  |             <if test="supId != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND irm.supId = #{supId} |  |  |  |                 AND irm.supId = #{supId} | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="productName != null and productName != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 AND bp.cpmctymc like concat('%', #{productName}, '%') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |         </where> | 
			
		
	
		
		
			
				
					
					|  |  |  |         order by irm.updateTime desc |  |  |  |         order by irm.updateTime desc | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
	
		
		
			
				
					|  |  | 
 |