|
@@ -42,8 +42,11 @@ public class KuaishouPlanCreateServiceImpl extends ServiceImpl<KuaishouPlanCreat
|
|
|
String leaderName = planCreateMapper.getLeaderNameByUserId(userId);
|
|
|
create.setLeaderName(leaderName);
|
|
|
Integer planCount = planCreateMapper.getNewPlan(accountId, startDate, endDate);
|
|
|
- create.setNewPlan(planCount);
|
|
|
Integer newUnitCount = planCreateMapper.getNewUnit(accountId, startDate, endDate);
|
|
|
+ if (planCount == 0 && newUnitCount == 0) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ create.setNewPlan(planCount);
|
|
|
create.setNewUnit(newUnitCount);
|
|
|
Integer autoUnitCount = planCreateMapper.getAutoUnit(accountId, startDate, endDate);
|
|
|
create.setAutoUnit(autoUnitCount);
|
|
@@ -63,8 +66,5 @@ public class KuaishouPlanCreateServiceImpl extends ServiceImpl<KuaishouPlanCreat
|
|
|
if (insert > 0) {
|
|
|
log.info("账户创建汇总清洗完成,accountId:{},stat_date:{}", accountId, statDate);
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|