|
@@ -48,15 +48,22 @@ class TRbacUserService extends Service {
|
|
|
create_date: { $lt: timeRangData.endTime }, user_orgin: 'IVI' });
|
|
|
const newAppTotal = await this.total({
|
|
|
create_date: { $gte: timeRangData.startTime, $lt: timeRangData.endTime }, user_orgin: 'APP' });
|
|
|
+ const newAppSaledTotal = await this.total({
|
|
|
+ create_date: { $gte: timeRangData.startTime, $lt: timeRangData.endTime }, user_orgin: 'APP',
|
|
|
+ role_id: ctx.helper.saledRoleId,
|
|
|
+ });
|
|
|
const newAppSexAndAgeTotal = await this.sex2Age({
|
|
|
create_date: { $gte: timeRangData.startTime, $lt: timeRangData.endTime }, user_orgin: 'APP' });
|
|
|
const newIviTotal = await this.total({
|
|
|
create_date: { $gte: timeRangData.startTime, $lt: timeRangData.endTime }, user_orgin: 'IVI' });
|
|
|
+ const newIviSaledTotal = await this.total({
|
|
|
+ create_date: { $gte: timeRangData.startTime, $lt: timeRangData.endTime }, user_orgin: 'IVI',
|
|
|
+ role_id: ctx.helper.saledRoleId,
|
|
|
+ });
|
|
|
const newIviSexAndAgeTotal = await this.sex2Age({
|
|
|
create_date: { $gte: timeRangData.startTime, $lt: timeRangData.endTime }, user_orgin: 'IVI' });
|
|
|
const activeAppTotal = await this.activeAppTotal(timeRangData);
|
|
|
- const activeAppSexAndAgeTotal = [];
|
|
|
- // const activeAppSexAndAgeTotal = await this.activeAppSex2Age(timeRangData);
|
|
|
+ const activeAppSexAndAgeTotal = await this.activeAppSex2Age(timeRangData);
|
|
|
const activeIviTotal = await this.activeIviTotal(timeRangData);
|
|
|
const activeIviSexAndAgeTotal = await this.activeIviSex2Age(timeRangData);
|
|
|
initData.end_time = new Date();
|
|
@@ -68,6 +75,7 @@ class TRbacUserService extends Service {
|
|
|
iviTotal, iviSexAndAgeTotal,
|
|
|
newIviTotal, newIviSexAndAgeTotal,
|
|
|
activeIviTotal, activeIviSexAndAgeTotal,
|
|
|
+ newAppSaledTotal, newIviSaledTotal,
|
|
|
}, isForceUpdate);
|
|
|
}
|
|
|
|