Merge remote-tracking branch 'origin/master'

pull/1/head
wqy 2 years ago
commit 6fe4191cb5

@ -64,5 +64,5 @@ sms:
# 腾讯专用 # 腾讯专用
sdkAppId: sdkAppId:
aes: aes:
# aes的密钥(长度需要16位) # aes的密钥(长度只能是16或24或32位)
key: 1111111111111111 key: 1111111111111111

@ -6,11 +6,9 @@ import com.cyl.h5.pojo.request.CancelOrderRequest;
import com.cyl.h5.service.H5OrderService; import com.cyl.h5.service.H5OrderService;
import com.cyl.manager.oms.domain.Order; import com.cyl.manager.oms.domain.Order;
import com.cyl.manager.oms.mapper.OrderMapper; import com.cyl.manager.oms.mapper.OrderMapper;
import com.cyl.manager.oms.service.OrderService;
import com.ruoyi.common.constant.Constants; import com.ruoyi.common.constant.Constants;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@ -28,7 +26,9 @@ public class OrderJob {
@Autowired @Autowired
private OrderMapper orderMapper; private OrderMapper orderMapper;
@Async /**
* 12020
*/
@Scheduled(cron = "20 20 1 * * ?") @Scheduled(cron = "20 20 1 * * ?")
public void cancelOrder(){ public void cancelOrder(){
log.info("【取消订单任务开始】"); log.info("【取消订单任务开始】");

@ -56,7 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
SELECT product_id , SELECT product_id ,
product_name, product_name,
pic, pic,
SUM(quantity) as total_sales IFNULL(SUM(quantity), 0) as total_sales
FROM oms_order_item item right join oms_order o on o.id=item.order_id FROM oms_order_item item right join oms_order o on o.id=item.order_id
WHERE DATE(item.create_time) between DATE(#{startDate}) AND DATE(#{endDate}) AND o.status in(1,2,3) WHERE DATE(item.create_time) between DATE(#{startDate}) AND DATE(#{endDate}) AND o.status in(1,2,3)
GROUP BY product_id, product_name GROUP BY product_id, product_name
@ -94,7 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
product_name, product_name,
pic, pic,
sp_data, sp_data,
SUM(quantity) as total_sales IFNULL(SUM(quantity), 0) as total_sales
FROM oms_order_item item right join oms_order o on o.id=item.order_id FROM oms_order_item item right join oms_order o on o.id=item.order_id
WHERE DATE(item.create_time) between DATE(#{startDate}) AND DATE(#{endDate}) AND o.status in(1,2,3) WHERE DATE(item.create_time) between DATE(#{startDate}) AND DATE(#{endDate}) AND o.status in(1,2,3)
GROUP BY sku_id GROUP BY sku_id

Loading…
Cancel
Save