## bug460 直推数据列表功能直推数量修改
This commit is contained in:
		
							parent
							
								
									0816e69ace
								
							
						
					
					
						commit
						2049e0e2b1
					
				| 
						 | 
				
			
			@ -733,7 +733,8 @@
 | 
			
		|||
        select SUM(so.ORDER_ACHIEVE) ORDER_ACHIEVE,so.PK_REFERENCE from CU_MEMBER cmm
 | 
			
		||||
        INNER JOIN SA_ORDER so on so.PK_REFERENCE=cmm.PK_ID and so.DEL_FLAG=0 and so.ORDER_STATUS=1 and so.PK_COUNTRY=#{dpdVO.pkCountry}
 | 
			
		||||
        where cmm.DEL_FLAG=0
 | 
			
		||||
        and so.ORDER_TYPE in (1,2,24,25)
 | 
			
		||||
        and ((so.ORDER_TYPE = 3 and so.ORDER_TYPE_EXTEND = 1)
 | 
			
		||||
        or so.ORDER_TYPE in (1,2,24,25))
 | 
			
		||||
        <if test="dpdVO.pkMember!=null">
 | 
			
		||||
            and cmm.PK_PARENT=#{dpdVO.pkMember}
 | 
			
		||||
        </if>
 | 
			
		||||
| 
						 | 
				
			
			@ -763,7 +764,8 @@
 | 
			
		|||
        where cm.DEL_FLAG = 0 AND cm.CATEGORY = 0
 | 
			
		||||
        AND PK_SETTLE_COUNTRY = 1
 | 
			
		||||
        and so.DEL_FLAG = 0 and so.ORDER_STATUS=1
 | 
			
		||||
        and so.ORDER_TYPE in (1,2,24,25)
 | 
			
		||||
        and ((so.ORDER_TYPE = 3 and so.ORDER_TYPE_EXTEND = 1)
 | 
			
		||||
        or so.ORDER_TYPE in (1,2,24,25))
 | 
			
		||||
        <if test="dpdVO.memberCode != null and dpdVO.memberCode !='' ">
 | 
			
		||||
            AND cm.MEMBER_CODE =#{dpdVO.memberCode}
 | 
			
		||||
        </if>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue