|
@@ -56,10 +56,7 @@ import com.zhongzheng.modules.order.bo.*;
|
|
import com.zhongzheng.modules.order.domain.*;
|
|
import com.zhongzheng.modules.order.domain.*;
|
|
import com.zhongzheng.modules.order.mapper.OrderMapper;
|
|
import com.zhongzheng.modules.order.mapper.OrderMapper;
|
|
import com.zhongzheng.modules.order.service.*;
|
|
import com.zhongzheng.modules.order.service.*;
|
|
-import com.zhongzheng.modules.order.vo.OrderGoodsVo;
|
|
|
|
-import com.zhongzheng.modules.order.vo.OrderListVo;
|
|
|
|
-import com.zhongzheng.modules.order.vo.OrderPayVo;
|
|
|
|
-import com.zhongzheng.modules.order.vo.OrderVo;
|
|
|
|
|
|
+import com.zhongzheng.modules.order.vo.*;
|
|
import com.zhongzheng.modules.system.domain.SysOldOrg;
|
|
import com.zhongzheng.modules.system.domain.SysOldOrg;
|
|
import com.zhongzheng.modules.system.domain.SysTenant;
|
|
import com.zhongzheng.modules.system.domain.SysTenant;
|
|
import com.zhongzheng.modules.system.service.ISysOldOrgService;
|
|
import com.zhongzheng.modules.system.service.ISysOldOrgService;
|
|
@@ -283,6 +280,30 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
|
return orderListVos;
|
|
return orderListVos;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public List<OrderListExportVo> selectExportList(OrderQueryBo bo) {
|
|
|
|
+ if (Validator.isNotEmpty(bo.getOrderGoodsStatus())) {
|
|
|
|
+ if (bo.getOrderGoodsStatus() == -1) {
|
|
|
|
+ Integer[] orderStatus = new Integer[]{-2, -1};
|
|
|
|
+ bo.setOrderStatus(orderStatus);
|
|
|
|
+ } else if (bo.getOrderGoodsStatus() == 0) {
|
|
|
|
+ bo.setGoodsPayStatus(1);
|
|
|
|
+ } else if (bo.getOrderGoodsStatus() == 1) {
|
|
|
|
+ //已支付 sql实现
|
|
|
|
+ } else if (bo.getOrderGoodsStatus() == 2) {
|
|
|
|
+ bo.setRefundStatus(2);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ List<OrderListVo> orderListVos = this.baseMapper.selectListByBo(bo);
|
|
|
|
+ List<OrderListExportVo> list = new ArrayList<>();
|
|
|
|
+ for(OrderListVo vo : orderListVos){
|
|
|
|
+ OrderListExportVo item = BeanUtil.toBean(vo,OrderListExportVo.class);
|
|
|
|
+ item.setPayTime(DateUtils.timestampToDate(vo.getPayTime()));
|
|
|
|
+ list.add(item);
|
|
|
|
+ }
|
|
|
|
+ return list;
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public List<OrderListVo> selectDangAnOrderList(OrderQueryBo bo) {
|
|
public List<OrderListVo> selectDangAnOrderList(OrderQueryBo bo) {
|
|
if (Validator.isNotEmpty(bo.getOrderGoodsStatus())) {
|
|
if (Validator.isNotEmpty(bo.getOrderGoodsStatus())) {
|