|
@@ -2,17 +2,25 @@ package com.ym.mec.biz.service.impl;
|
|
|
|
|
|
import com.ym.mec.biz.dal.dao.*;
|
|
|
import com.ym.mec.biz.dal.entity.OperatingReport;
|
|
|
+import com.ym.mec.biz.dal.entity.StudentPaymentOrder;
|
|
|
+import com.ym.mec.biz.dal.enums.OrderTypeEnum;
|
|
|
import com.ym.mec.biz.service.OperatingReportService;
|
|
|
+import com.ym.mec.biz.service.StudentPaymentOrderService;
|
|
|
import com.ym.mec.common.dal.BaseDAO;
|
|
|
import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
|
+import com.ym.mec.util.date.DateUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.boot.SpringApplication;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.*;
|
|
|
+
|
|
|
@Service
|
|
|
public class OperatingReportServiceImpl extends BaseServiceImpl<Integer, OperatingReport> implements OperatingReportService {
|
|
|
|
|
|
@Autowired
|
|
|
private OperatingReportDao operatingReportDao;
|
|
|
+ private StudentPaymentOrderDao studentPaymentOrderDao;
|
|
|
|
|
|
|
|
|
@Override
|
|
@@ -20,4 +28,26 @@ public class OperatingReportServiceImpl extends BaseServiceImpl<Integer, Operati
|
|
|
return operatingReportDao;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<OperatingReport> statistics() {
|
|
|
+ Date nowDate = new Date();
|
|
|
+ Date startTime = DateUtil.addDays1(nowDate, -1);
|
|
|
+ Map<String, Object> params = new HashMap<>();
|
|
|
+ params.put("orderStartDate", DateUtil.getDate(startTime));
|
|
|
+ params.put("orderEndDate", DateUtil.getDate(startTime));
|
|
|
+ params.put("paymentStatus", "SUCCESS");
|
|
|
+
|
|
|
+ Map<String, OperatingReport> schoolOperating = new HashMap<>();
|
|
|
+ Map<String, OperatingReport> organOperating = new HashMap<>();
|
|
|
+ List<StudentPaymentOrder> orders = studentPaymentOrderDao.queryPageOrder(params);
|
|
|
+ for (StudentPaymentOrder order : orders) {
|
|
|
+ if(order.getType().equals(OrderTypeEnum.APPLY)){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ return null;
|
|
|
+
|
|
|
+ }
|
|
|
}
|