|
|
|
@ -3,6 +3,8 @@ package com.dxhy.order.consumer.modules.order.service.impl; |
|
|
|
|
import cn.hutool.core.collection.CollectionUtil; |
|
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
|
import com.dxhy.order.baseservice.module.thirdservice.user.model.DeptEntity; |
|
|
|
|
import com.dxhy.order.baseservice.module.thirdservice.user.service.UserInfoService; |
|
|
|
|
import com.dxhy.order.constant.ConfigureConstant; |
|
|
|
|
import com.dxhy.order.constant.OrderInfoEnum; |
|
|
|
|
import com.dxhy.order.model.OrderInvoiceInfo; |
|
|
|
@ -27,6 +29,7 @@ import java.util.ArrayList; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
import java.util.Objects; |
|
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 订单处理业务实现 |
|
|
|
@ -46,6 +49,8 @@ public class OrderProcessServiceImpl implements OrderProcessService { |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private OrderInvoiceInfoService orderInvoiceInfoService; |
|
|
|
|
@Resource |
|
|
|
|
private UserInfoService userInfoService; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public OrderProcessInfo selectOrderProcessInfoByProcessId(String id, List<String> shList) { |
|
|
|
@ -70,6 +75,8 @@ public class OrderProcessServiceImpl implements OrderProcessService { |
|
|
|
|
log.debug("订单查询,当前页:{},页面条数:{}", currPage, pageSize); |
|
|
|
|
PageHelper.startPage(currPage, pageSize); |
|
|
|
|
List<OrderProcessInfo> list = orderProcessInfoMapper.queryOrderInfo(paramMap, shList, entList); |
|
|
|
|
List<DeptEntity> taxpayerEntityList = userInfoService.getTaxpayerEntityList(); |
|
|
|
|
Map<String, String> collect = taxpayerEntityList.stream().collect(Collectors.toMap(t -> t.getDeptId(), t -> t.getName())); |
|
|
|
|
list.forEach(op -> { |
|
|
|
|
//如果是红票,将清单标志改为0,(红票没有清单)
|
|
|
|
|
if (OrderInfoEnum.ORDER_BILLING_INVOICE_TYPE_1.getKey().equals(op.getKplx())) { |
|
|
|
@ -79,6 +86,7 @@ public class OrderProcessServiceImpl implements OrderProcessService { |
|
|
|
|
if (Objects.isNull(op.getDyztms())) { |
|
|
|
|
op.setDyztms(""); |
|
|
|
|
} |
|
|
|
|
op.setTaxpayerName(StringUtils.isNotBlank(collect.get(op.getEntId()))?collect.get(op.getEntId()):""); |
|
|
|
|
}); |
|
|
|
|
PageInfo<OrderProcessInfo> pageInfo = new PageInfo<>(list); |
|
|
|
|
return new PageUtils(pageInfo.getList(), (int) pageInfo.getTotal(), pageInfo.getPageSize(), |
|
|
|
|