Compare commits
	
		
			2 Commits
		
	
	
		
			73178e4f77
			...
			4c7575f8c5
		
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								
								 | 
						4c7575f8c5 | |
| 
							
							
								
								 | 
						aa282c7cde | 
| 
						 | 
					@ -855,10 +855,10 @@
 | 
				
			||||||
            NVL( mr.SMALL_BOX_NUM, 0 ) smallBoxNum,
 | 
					            NVL( mr.SMALL_BOX_NUM, 0 ) smallBoxNum,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            NVL( mrs.NEW_BOX_NUM, 0 ) sNewBoxNum,
 | 
					            NVL( mrs.ALL_NEW_BOX_NUM, 0 ) sNewBoxNum,
 | 
				
			||||||
            NVL( mrs.TEAM_NEW_BOX_NUM, 0 ) sTeamNewBoxNum,
 | 
					            NVL( mrs.ALL_TEAM_NEW_BOX_NUM, 0 ) sTeamNewBoxNum,
 | 
				
			||||||
            NVL( mrs.NEW_CONSUME_PV, 0 ) sNewConsumePv,
 | 
					            NVL( mrs.ALL_NEW_CONSUME_PV, 0 ) sNewConsumePv,
 | 
				
			||||||
            NVL( mrs.TEAM_NEW_PV, 0 ) sTeamNewPv
 | 
					            NVL( mrs.ALL_TEAM_NEW_PV, 0 ) sTeamNewPv
 | 
				
			||||||
        FROM
 | 
					        FROM
 | 
				
			||||||
            cu_member cu
 | 
					            cu_member cu
 | 
				
			||||||
                left join ${memberRetailTable} mr on cu.PK_ID = mr.PK_MEMBER and mr.CATEGORY = 0
 | 
					                left join ${memberRetailTable} mr on cu.PK_ID = mr.PK_MEMBER and mr.CATEGORY = 0
 | 
				
			||||||
| 
						 | 
					@ -882,15 +882,15 @@
 | 
				
			||||||
            cu.PK_AWARDS,
 | 
					            cu.PK_AWARDS,
 | 
				
			||||||
            awards.AWARDS_NAME,
 | 
					            awards.AWARDS_NAME,
 | 
				
			||||||
            currentMonth.ENABLE_STATUS,
 | 
					            currentMonth.ENABLE_STATUS,
 | 
				
			||||||
            NVL( NVL( currentDay.NEW_CONSUME_PV, 0 ) + NVL( currentDay.TEAM_NEW_PV, 0 ), 0 ) todayPv,
 | 
					            NVL( NVL( currentDay.ALL_NEW_CONSUME_PV, 0 ) + NVL( currentDay.ALL_TEAM_NEW_PV, 0 ), 0 ) todayPv,
 | 
				
			||||||
            NVL( NVL( currentDay.NEW_BOX_NUM, 0 ) + NVL( currentDay.TEAM_NEW_BOX_NUM, 0 ), 0 ) todayBoxNum,
 | 
					            NVL( NVL( currentDay.ALL_NEW_BOX_NUM, 0 ) + NVL( currentDay.ALL_TEAM_NEW_BOX_NUM, 0 ), 0 ) todayBoxNum,
 | 
				
			||||||
            NVL( NVL( currentMonth.NEW_CONSUME_PV, 0 ) + NVL( currentMonth.TEAM_NEW_PV, 0 ), 0 ) yesterdayPv,
 | 
					            NVL( NVL( currentMonth.NEW_CONSUME_PV, 0 ) + NVL( currentMonth.TEAM_NEW_PV, 0 ), 0 ) yesterdayPv,
 | 
				
			||||||
            NVL( NVL( currentMonth.NEW_BOX_NUM, 0 ) + NVL( currentMonth.TEAM_NEW_BOX_NUM, 0 ), 0 ) yesterdayBoxNum,
 | 
					            NVL( NVL( currentMonth.NEW_BOX_NUM, 0 ) + NVL( currentMonth.TEAM_NEW_BOX_NUM, 0 ), 0 ) yesterdayBoxNum,
 | 
				
			||||||
            NVL( NVL( currentMonth.MONTH_CONSUME_PV, 0 ) + NVL( currentDay.NEW_CONSUME_PV, 0 ) + NVL( currentDay.TEAM_NEW_PV, 0 ), 0 ) currentMonthPv,
 | 
					            NVL( NVL( currentMonth.MONTH_CONSUME_PV, 0 ) + NVL( currentDay.ALL_NEW_CONSUME_PV, 0 ) + NVL( currentDay.ALL_TEAM_NEW_PV, 0 ), 0 ) currentMonthPv,
 | 
				
			||||||
            NVL( NVL( currentMonth.MONTH_BOX_NUM, 0 ) + NVL( currentMonth.TEAM_MONTH_BOX_NUM, 0 ) + NVL( currentDay.NEW_BOX_NUM, 0 ) + NVL( currentDay.TEAM_NEW_BOX_NUM, 0 ), 0 ) currentMonthBoxNum,
 | 
					            NVL( NVL( currentMonth.MONTH_BOX_NUM, 0 ) + NVL( currentMonth.TEAM_MONTH_BOX_NUM, 0 ) + NVL( currentDay.ALL_NEW_BOX_NUM, 0 ) + NVL( currentDay.ALL_TEAM_NEW_BOX_NUM, 0 ), 0 ) currentMonthBoxNum,
 | 
				
			||||||
            NVL( lastMonth.MONTH_CONSUME_PV, 0 ) lastMonthPv,
 | 
					            NVL( lastMonth.MONTH_CONSUME_PV, 0 ) lastMonthPv,
 | 
				
			||||||
            NVL( lastMonth.MONTH_BOX_NUM, 0 ) lastMonthBoxNum,
 | 
					            NVL( lastMonth.MONTH_BOX_NUM, 0 ) lastMonthBoxNum,
 | 
				
			||||||
            NVL( NVL( currentMonth.CONSUME_BOX_NUM, 0 ) + NVL( currentDay.NEW_BOX_NUM, 0 ) + NVL( currentDay.TEAM_NEW_BOX_NUM, 0 ), 0 ) totalBoxNum
 | 
					            NVL( NVL( currentMonth.CONSUME_BOX_NUM, 0 ) + NVL( currentDay.ALL_NEW_BOX_NUM, 0 ) + NVL( currentDay.ALL_TEAM_NEW_BOX_NUM, 0 ), 0 ) totalBoxNum
 | 
				
			||||||
        FROM
 | 
					        FROM
 | 
				
			||||||
            cu_member cu
 | 
					            cu_member cu
 | 
				
			||||||
                LEFT JOIN ${param.currentDayTableName} currentDay ON cu.PK_ID = currentDay.PK_MEMBER
 | 
					                LEFT JOIN ${param.currentDayTableName} currentDay ON cu.PK_ID = currentDay.PK_MEMBER
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue