## 日结结束调用业绩汇总;
This commit is contained in:
parent
07f8dbe8d3
commit
6a4429ca68
|
@ -39,11 +39,17 @@
|
|||
<groupId>com.bd</groupId>
|
||||
<artifactId>bd-common-aop</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.bd</groupId>
|
||||
<artifactId>bd-api-bonus</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.bd</groupId>
|
||||
<artifactId>bd-api-report</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- rabbit mq -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.amqp</groupId>
|
||||
|
|
|
@ -18,6 +18,7 @@ import com.hzs.common.domain.member.base.CuMember;
|
|||
import com.hzs.common.domain.member.bonus.*;
|
||||
import com.hzs.common.domain.member.ext.CuMemberExt;
|
||||
import com.hzs.common.domain.sale.ext.SaOrderExt;
|
||||
import com.hzs.report.order.IPerformanceSummaryServiceApi;
|
||||
import com.hzs.system.config.IBonusItemsServiceApi;
|
||||
import com.hzs.system.config.dto.BonusConfigDTO;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
@ -39,6 +40,8 @@ public class BonusSettleServiceImpl implements IBonusSettleService {
|
|||
|
||||
@DubboReference
|
||||
IBonusItemsServiceApi iBonusItemsServiceApi;
|
||||
@DubboReference
|
||||
IPerformanceSummaryServiceApi iPerformanceSummaryServiceApi;
|
||||
|
||||
@Autowired
|
||||
private IBonusOrderService iBonusOrderService;
|
||||
|
@ -107,6 +110,12 @@ public class BonusSettleServiceImpl implements IBonusSettleService {
|
|||
log.error("奖金结算异常", e);
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
try {
|
||||
// 调用统计业绩汇总接口
|
||||
iPerformanceSummaryServiceApi.createDataByDay(settleDate);
|
||||
} catch (Exception e) {
|
||||
log.error("每日数据业绩汇总异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -67,7 +67,7 @@ dubbo:
|
|||
port: -1
|
||||
cloud:
|
||||
# 订阅服务
|
||||
subscribed-services: bd-system, bd-third, bd-sale, bd-member
|
||||
subscribed-services: bd-system, bd-third, bd-sale, bd-member, bd-report
|
||||
scan:
|
||||
# dubbo 服务扫描包(开启之后才会对外提供服务)
|
||||
base-packages: com.hzs.bonus
|
||||
|
|
Loading…
Reference in New Issue