Merge branch 'test' into prod
# Conflicts: # cash-api/order-server/src/main/java/com/czg/controller/pay/OrderPayController.java
This commit is contained in:
@@ -20,6 +20,7 @@ import com.mybatisflex.core.query.QueryWrapper;
|
||||
import jakarta.annotation.Resource;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@@ -44,6 +45,8 @@ public class OrderPayController {
|
||||
private OrderInfoService orderInfoService;
|
||||
@DubboReference
|
||||
private SysParamsService paramsService;
|
||||
@Value("${spring.profiles.active}")
|
||||
private String env;
|
||||
|
||||
@PostMapping("/creditPay")
|
||||
@Debounce(value = "#payParam.checkOrderPay.orderId")
|
||||
@@ -154,6 +157,7 @@ public class OrderPayController {
|
||||
AssertUtil.isNull(shopId, "店铺id不能为空");
|
||||
AssertUtil.isNull(checkOrderPay, "订单信息不能为空");
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("env", env);
|
||||
map.put("shopId", shopId);
|
||||
map.put("orderId", checkOrderPay.getOrderId());
|
||||
map.put("payAmount", checkOrderPay.getOrderAmount());
|
||||
|
||||
@@ -38,7 +38,7 @@ public class EntryManagerTask {
|
||||
log.info("进件查询,定时任务执行");
|
||||
long start = System.currentTimeMillis();
|
||||
entryManager(null);
|
||||
log.info("进件查询,定时任务执行完毕,耗时:{}ms", start - System.currentTimeMillis());
|
||||
log.info("进件查询,定时任务执行完毕,耗时:{}ms", System.currentTimeMillis() - start);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -17,6 +17,7 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* 统计任务
|
||||
*
|
||||
* @author Administrator
|
||||
*/
|
||||
@Component
|
||||
@@ -43,7 +44,7 @@ public class StatisticTask {
|
||||
// 获取前一天
|
||||
LocalDate yesterday = LocalDate.now().minusDays(1);
|
||||
baseStatistic(yesterday);
|
||||
log.info("统计数据,定时任务执行完毕,耗时:{}ms", start - System.currentTimeMillis());
|
||||
log.info("统计数据,定时任务执行完毕,耗时:{}ms", System.currentTimeMillis() - start);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user