Commit 9be24f19 by jinxin

时间bug处理

parent 3cfa1674
......@@ -268,10 +268,10 @@ public class AppOrderApiServiceImpl implements AppOrderApiService {
qdto.setPageSize(10000);
Page<AppOrderPageDTO> page = this.getAppOrderPage(qdto).getResult();
List<AppOrderPageDTO> list = page.getResult();
Boolean flag = false;
if (CollUtil.isNotEmpty(list)) {
Date beginTime = new Date();
Integer num = 0;
Boolean flag = false;
for (AppOrderPageDTO dto : list) {
if (dto.getOrderStatus() == 2 ){
num += dto.getUserNum();
......@@ -300,6 +300,9 @@ public class AppOrderApiServiceImpl implements AppOrderApiService {
} else {
result.setType(0);
}
if (!flag){
appOrderEndTime = now;
}
int i = DateUtil.daysBetween(appOrderEndTime, endTime);
if(i< 0){
i = 0;
......
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