fix
This commit is contained in:
@@ -54,7 +54,7 @@ public class ClerkWagesSettlementTask {
|
||||
* 每分钟查询未结算订单
|
||||
* 如果订单完成时间超过24小时,可进行结算,生成工资
|
||||
*/
|
||||
@Scheduled(cron = "0 0/1 * * * ?")
|
||||
// @Scheduled(cron = "0 0/1 * * * ?")
|
||||
public void dailyRanking() {
|
||||
// 1、查询所有的租户信息
|
||||
List<SysTenantEntity> tenantEntities = sysTenantService.listAll();
|
||||
|
||||
@@ -46,7 +46,7 @@ public class OrderRankingSettlementTask {
|
||||
* 当日订单结算,查询前一日的订单信息,生成订单排名数据
|
||||
* 每天凌晨0点5分0秒时触发执行
|
||||
*/
|
||||
@Scheduled(cron = "0 10 0 * * ?")
|
||||
// @Scheduled(cron = "0 0/1 * * * ?")
|
||||
public void dailyRanking() {
|
||||
// 1、查询所有的租户信息
|
||||
List<SysTenantEntity> tenantEntities = sysTenantService.listAll();
|
||||
@@ -110,13 +110,14 @@ public class OrderRankingSettlementTask {
|
||||
ordersExpiredNumber++;
|
||||
}
|
||||
}
|
||||
BigDecimal orderContinueProportion = new BigDecimal(ordersExpiredNumber).divide(new BigDecimal(orderNumber), 4, RoundingMode.HALF_UP).add(new BigDecimal(100));
|
||||
BigDecimal averageUnitPrice = orderMoney.divide(new BigDecimal(customIds.size()), 4, RoundingMode.HALF_UP);
|
||||
BigDecimal orderContinueProportion = orderNumber == 0 ? BigDecimal.ZERO : new BigDecimal(ordersExpiredNumber).divide(new BigDecimal(orderNumber), 4, RoundingMode.HALF_UP).add(new BigDecimal(100));
|
||||
BigDecimal averageUnitPrice = customIds.isEmpty() ? BigDecimal.ZERO : orderMoney.divide(new BigDecimal(customIds.size()), 4, RoundingMode.HALF_UP);
|
||||
PlayClerkRankingInfoEntity rankingInfo = new PlayClerkRankingInfoEntity();
|
||||
rankingInfo.setId(rankingId);
|
||||
rankingInfo.setClerkId(clerkId);
|
||||
rankingInfo.setStartCountDate(startTime);
|
||||
rankingInfo.setEndCountDate(endTime);
|
||||
rankingInfo.setWeeklyRanking("0");
|
||||
rankingInfo.setOrderNumber(orderInfoEntities.size());
|
||||
rankingInfo.setSerialNumber(newSerialNumber + 1);
|
||||
rankingInfo.setOrderMoney(orderMoney);
|
||||
|
||||
Reference in New Issue
Block a user