Commit e4e01e01 authored by 周健威's avatar 周健威

修改bug

parent 6aff8702
...@@ -37,6 +37,7 @@ import lombok.extern.slf4j.Slf4j; ...@@ -37,6 +37,7 @@ import lombok.extern.slf4j.Slf4j;
import org.apache.commons.jexl2.MapContext; import org.apache.commons.jexl2.MapContext;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
...@@ -623,10 +624,10 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper,BaseOrder> { ...@@ -623,10 +624,10 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper,BaseOrder> {
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
} }
} }
@Scheduled(cron = "0 0 2 * * ? ")
private void countDailyOrdersRegularly(){
DailyOrderStatistics dailyOrderStatistics= mapper.getTotalOrder();
}
// @Scheduled(cron = "0 0 2 * * ? ")
// private void countDailyOrdersRegularly(){
// DailyOrderStatistics dailyOrderStatistics= mapper.getTotalOrder();
// }
} }
\ No newline at end of file
...@@ -215,23 +215,23 @@ ...@@ -215,23 +215,23 @@
base_order base_order
where where
date(pay_time)=date(now())-1 date(pay_time)=date(now())-1
group by date_format(pay_time,'%d')
date_format(pay_time,'%d') </select> group by
</select>
<select id="getTotalOrder" resultType="com.xxfc.platform.order.entity.DailyOrderStatistics">
select <!-- <select id="getTotalOrder" resultType="com.xxfc.platform.order.entity.DailyOrderStatistics">-->
date_format(refund_time,'%Y-%c-%d') as oneDay,
sum(1) as totalOrders, <!-- select-->
sum(refund_time)as actualTotalIncome <!-- date_format(refund_time,'%Y-%c-%d') as oneDay,-->
from <!-- sum(1) as totalOrders,-->
base_order <!-- sum(refund_time)as actualTotalIncome-->
where <!-- from-->
date(refund_time)=date(now())-1 <!-- base_order-->
group by <!-- where-->
date_format(refund_time,'%d') <!-- date(refund_time)=date(now())-1-->
</select> <!-- group by-->
<!-- date_format(refund_time,'%d')-->
<!-- </select>-->
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment