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