|
@@ -2,12 +2,15 @@ package com.zanxiang.game.data.serve.service.impl;
|
|
|
|
|
|
import com.zanxiang.erp.security.util.SecurityUtil;
|
|
|
import com.zanxiang.game.data.serve.component.DataPowerComponent;
|
|
|
+import com.zanxiang.game.data.serve.pojo.dto.AdsOrderDetailDTO;
|
|
|
import com.zanxiang.game.data.serve.pojo.dto.AdsOrderDetailListDTO;
|
|
|
import com.zanxiang.game.data.serve.pojo.dto.AdsOrderDetailTotalDTO;
|
|
|
import com.zanxiang.game.data.serve.pojo.entity.AdsOrderDetail;
|
|
|
+import com.zanxiang.game.data.serve.pojo.entity.TPayCallCpLog;
|
|
|
import com.zanxiang.game.data.serve.pojo.enums.OrderByEnum;
|
|
|
import com.zanxiang.game.data.serve.pojo.vo.AdsOrderDetailTotalVO;
|
|
|
import com.zanxiang.game.data.serve.pojo.vo.AdsOrderDetailVO;
|
|
|
+import com.zanxiang.game.data.serve.pojo.vo.OrderCPDetailVO;
|
|
|
import com.zanxiang.game.data.serve.service.IAdsOrderDetailService;
|
|
|
import com.zanxiang.game.data.serve.utils.Page;
|
|
|
import com.zanxiang.module.util.bean.BeanUtil;
|
|
@@ -228,6 +231,30 @@ public class AdsOrderDetailService implements IAdsOrderDetailService {
|
|
|
return sql.getObject(AdsOrderDetailTotalVO.class);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Page<OrderCPDetailVO> getOrderDetailList(AdsOrderDetailDTO dto) {
|
|
|
+ //未传递参数,显示空结果
|
|
|
+ if (StringUtils.isBlank(dto.getOrderId())) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ //查询条件
|
|
|
+ Criteria cri = Cnd.cri();
|
|
|
+ cri.where().andEquals("order_id", dto.getOrderId());
|
|
|
+ //拼接默认排序条件
|
|
|
+ cri.getOrderBy().desc("create_time");
|
|
|
+ //pager对象
|
|
|
+ Pager pager = dto.toPage();
|
|
|
+ //得到查询的结果
|
|
|
+ List<OrderCPDetailVO> records = dao.query(TPayCallCpLog.class, cri, pager).stream().map(this::toVO).collect(Collectors.toList());
|
|
|
+ pager.setRecordCount(dao.count(TPayCallCpLog.class, cri));
|
|
|
+ return new Page<>(records, pager);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 订单详情列表
|
|
|
+ * @param gameOrder 原始表中的数据
|
|
|
+ * @return AdsOrderDetailVO
|
|
|
+ */
|
|
|
private AdsOrderDetailVO toVO(AdsOrderDetail gameOrder) {
|
|
|
if (gameOrder == null) {
|
|
|
return null;
|
|
@@ -238,4 +265,18 @@ public class AdsOrderDetailService implements IAdsOrderDetailService {
|
|
|
}
|
|
|
return BeanUtil.copy(gameOrder, AdsOrderDetailVO.class);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * cp回调信息
|
|
|
+ * @param tPayCallCpLog 原始表中的数据
|
|
|
+ * @return OrderCPDetailVO
|
|
|
+ */
|
|
|
+ private OrderCPDetailVO toVO(TPayCallCpLog tPayCallCpLog) {
|
|
|
+ if (tPayCallCpLog == null) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ return BeanUtil.copy(tPayCallCpLog, OrderCPDetailVO.class);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|