diff --git a/bd-business/bd-business-report/src/main/resources/mapper/report/member/CuMemberAwardsStatMapper.xml b/bd-business/bd-business-report/src/main/resources/mapper/report/member/CuMemberAwardsStatMapper.xml index 9645cf3f..95b5d329 100644 --- a/bd-business/bd-business-report/src/main/resources/mapper/report/member/CuMemberAwardsStatMapper.xml +++ b/bd-business/bd-business-report/src/main/resources/mapper/report/member/CuMemberAwardsStatMapper.xml @@ -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)) and cmm.PK_PARENT=#{dpdVO.pkMember} @@ -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)) AND cm.MEMBER_CODE =#{dpdVO.memberCode}