diff --git a/bd-business/bd-business-system/src/main/resources/mapper/system/board/BoardMapper.xml b/bd-business/bd-business-system/src/main/resources/mapper/system/board/BoardMapper.xml index ebd31fea..69142d8e 100644 --- a/bd-business/bd-business-system/src/main/resources/mapper/system/board/BoardMapper.xml +++ b/bd-business/bd-business-system/src/main/resources/mapper/system/board/BoardMapper.xml @@ -52,9 +52,8 @@ from (select cm.PK_SETTLE_GRADE, count(1) member_total from cu_member cm where cm.del_flag = 0 - and cm.pay_status = 1 and cm.category = 0 - and to_char(cm.pay_time, 'yyyy-mm-dd') = + and to_char(cm.CREATION_TIME, 'yyyy-mm-dd') = to_char(sysdate, 'yyyy-mm-dd') and cm.customer_type != 1 group by cm.PK_SETTLE_GRADE @@ -70,9 +69,8 @@ from (select cm.PK_SETTLE_GRADE, count(1) member_total from cu_member cm where cm.del_flag = 0 - and cm.pay_status = 1 and cm.category = 0 - and to_char(cm.pay_time, 'yyyy-mm-dd') = + and to_char(cm.CREATION_TIME, 'yyyy-mm-dd') = to_char(sysdate - 1, 'yyyy-mm-dd') and cm.customer_type != 1 group by cm.PK_SETTLE_GRADE @@ -88,9 +86,8 @@ from (select cm.PK_SETTLE_GRADE, count(1) member_total from cu_member cm where cm.del_flag = 0 - and cm.pay_status = 1 and cm.category = 0 - and to_char(cm.pay_time, 'yyyy-mm') = to_char(sysdate, 'yyyy-mm') + and to_char(cm.CREATION_TIME, 'yyyy-mm') = to_char(sysdate, 'yyyy-mm') and cm.customer_type != 1 group by cm.PK_SETTLE_GRADE order by cm.PK_SETTLE_GRADE) a