|
@@ -4,6 +4,7 @@ package com.ym.mec.biz.service.impl;
|
|
|
import com.ym.mec.biz.dal.dao.StudentGoodsSellDao;
|
|
|
import com.ym.mec.biz.dal.dao.SysConfigDao;
|
|
|
import com.ym.mec.biz.dal.dto.StudentGoodsSellDto;
|
|
|
+import com.ym.mec.biz.dal.dto.StudentPaymentOrderDto;
|
|
|
import com.ym.mec.biz.dal.entity.StudentGoodsSell;
|
|
|
import com.ym.mec.biz.dal.page.GoodsSellQueryInfo;
|
|
|
import com.ym.mec.biz.service.StudentGoodsSellService;
|
|
@@ -74,4 +75,28 @@ public class StudentGoodsSellServiceImpl extends BaseServiceImpl<Integer, Studen
|
|
|
studentGoodsSellDao.autoAffirmReceive(orderNo,str);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public PageInfo<StudentPaymentOrderDto> queryStudentPaymentOrders(GoodsSellQueryInfo queryInfo) {
|
|
|
+ PageInfo<StudentPaymentOrderDto> pageInfo = new PageInfo<>(queryInfo.getPage(), queryInfo.getRows());
|
|
|
+ Map<String, Object> params = new HashMap<>();
|
|
|
+ MapUtil.populateMap(params, queryInfo);
|
|
|
+ List<StudentPaymentOrderDto> dataList = null;
|
|
|
+ int count = studentGoodsSellDao.countStudentPaymentOrders(params);
|
|
|
+ if (count > 0) {
|
|
|
+ pageInfo.setTotal(count);
|
|
|
+ params.put("offset", pageInfo.getOffset());
|
|
|
+ dataList = studentGoodsSellDao.queryStudentPaymentOrders(params);
|
|
|
+ Integer autoAffirmReceiveTime = Integer.parseInt(sysConfigDao.findConfigValue("auto_affirm_receive_time"));
|
|
|
+ dataList.forEach(e->{
|
|
|
+ e.setAutoAffirmReceiveTime(autoAffirmReceiveTime);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (count == 0) {
|
|
|
+ dataList = new ArrayList<>();
|
|
|
+ }
|
|
|
+ pageInfo.setRows(dataList);
|
|
|
+ return pageInfo;
|
|
|
+ }
|
|
|
+
|
|
|
}
|