Просмотр исходного кода

[对账单][修改][总数为近30天]

release_toaliyun_real
gongbiao 7 лет назад
Родитель
Сommit
7c7450f2ce
2 измененных файлов: 12 добавлений и 4 удалений
  1. +8
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java
  2. +4
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingOrderServiceImpl.java

+ 8
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java Просмотреть файл

@@ -986,13 +986,16 @@ public class WxOrderServiceImpl implements WxOrderService {
}

public void queryMerchantCount(String tenantId, Map<String, Object> result) {
String systemTime = DateUtils.getSystemTime("yyyy-MM-dd");
//全部商户个数
Map<String, Object> params = new HashMap<>();
params.put("tenantId", tenantId);
String thirtyTime = DateUtils.getTimeBefore(29, new Date());
params.put("startdate", thirtyTime + " 00:00:00");
params.put("enddate", systemTime + " 23:59:59");
Long allMerchantCount=wxOrderMapper.queryOrderForMerchantCount(params);
result.put("allMerchantCount",allMerchantCount);
//今日
String systemTime = DateUtils.getSystemTime("yyyy-MM-dd");
params.put("startdate", systemTime + " 00:00:00");
params.put("enddate", systemTime + " 23:59:59");
Long todayMerchantCount=wxOrderMapper.queryOrderForMerchantCount(params);
@@ -1028,13 +1031,16 @@ public class WxOrderServiceImpl implements WxOrderService {
}

public void queryOrderSummary(String tenantId, Map<String, Object> result) {
String systemTime = DateUtils.getSystemTime("yyyy-MM-dd");
//全部商户个数
Map<String, Object> params = new HashMap<>();
params.put("tenantId", tenantId);
String thirtyTime = DateUtils.getTimeBefore(29, new Date());
params.put("startdate", thirtyTime + " 00:00:00");
params.put("enddate", systemTime + " 23:59:59");
Long allOrderSummary=wxOrderMapper.queryOrderForSum(params);
result.put("allOrderSummary",allOrderSummary);
//今日
String systemTime = DateUtils.getSystemTime("yyyy-MM-dd");
params.put("startdate", systemTime + " 00:00:00");
params.put("enddate", systemTime + " 23:59:59");
Long todayOrderSummary=wxOrderMapper.queryOrderForSum(params);
@@ -1069,5 +1075,4 @@ public class WxOrderServiceImpl implements WxOrderService {
}
}


}

+ 4
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingOrderServiceImpl.java Просмотреть файл

@@ -665,13 +665,16 @@ public class WxProfitSharingOrderServiceImpl implements WxProfitSharingOrderServ
}

public void queryMerchantCount(String tenantId, Map<String, Object> result) {
String systemTime = DateUtils.getSystemTime("yyyy-MM-dd");
//全部商户个数
Map<String, Object> params = new HashMap<>();
params.put("tenantId", tenantId);
String thirtyTime = DateUtils.getTimeBefore(29, new Date());
params.put("startdate", thirtyTime + " 00:00:00");
params.put("enddate", systemTime + " 23:59:59");
Long allMerchantCount=wxProfitSharingOrderMapper.queryOrderForMerchantCount(params);
result.put("allMerchantCount",allMerchantCount);
//今日
String systemTime = DateUtils.getSystemTime("yyyy-MM-dd");
params.put("startdate", systemTime + " 00:00:00");
params.put("enddate", systemTime + " 23:59:59");
Long todayMerchantCount=wxProfitSharingOrderMapper.queryOrderForMerchantCount(params);


Загрузка…
Отмена
Сохранить