|
|
|
@ -18,9 +18,11 @@ import com.dxhy.order.constant.ConfigureConstant; |
|
|
|
|
import com.dxhy.order.constant.OrderInfoContentEnum; |
|
|
|
|
import com.dxhy.order.constant.OrderInfoEnum; |
|
|
|
|
import com.dxhy.order.constant.OrderManagementConstant; |
|
|
|
|
import com.dxhy.order.consumer.dao.OrderBatchRequestMapper; |
|
|
|
|
import com.dxhy.order.consumer.dao.OrderProcessInfoMapper; |
|
|
|
|
import com.dxhy.order.consumer.model.OderDetailInfo; |
|
|
|
|
import com.dxhy.order.consumer.model.PageOrderExt; |
|
|
|
|
import com.dxhy.order.consumer.model.page.PageRequestVO; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.model.PageInvoiceItem; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.model.PageKySlReq; |
|
|
|
|
import com.dxhy.order.consumer.modules.order.model.PageKySlRsp; |
|
|
|
@ -48,6 +50,7 @@ import com.dxhy.order.model.newsk.taxpayerinfo.TaxpayerInfoResponse; |
|
|
|
|
import com.dxhy.order.model.qd.OrderInfoQd; |
|
|
|
|
import com.dxhy.order.model.qdsk.taxpayerinfo.Kysl; |
|
|
|
|
import com.dxhy.order.model.qdsk.taxpayerinfo.Qdjcxx; |
|
|
|
|
import com.dxhy.order.model.sk.kp.CommonInvoiceStatus; |
|
|
|
|
import com.dxhy.order.utils.*; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
@ -151,6 +154,9 @@ public class OrderInfoServiceImpl implements OrderInfoService { |
|
|
|
|
@Resource |
|
|
|
|
private SpecialInvoiceReversalMapper specialInvoiceReversalMapper; |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private OrderBatchRequestMapper orderBatchRequestMapper; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public PageUtils selectOrderInfo(Map<String, Object> map, List<String> shList, List<String> entList) { |
|
|
|
|
return orderProcessService.selectOrderInfo(map, shList, entList); |
|
|
|
@ -1695,6 +1701,56 @@ public class OrderInfoServiceImpl implements OrderInfoService { |
|
|
|
|
orderProcessInfo.setOrderInfoId(orderInfoId); |
|
|
|
|
return orderProcessInfoMapper.updateOrderProcessInfoByFpqqlsh(orderProcessInfo,null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public R logicalDeleteByOrderInfoId(List<PageRequestVO> pageRequestList){ |
|
|
|
|
|
|
|
|
|
StringBuilder errorMsgList = new StringBuilder(); |
|
|
|
|
for (int i = 0; i < pageRequestList.size(); i++) { |
|
|
|
|
|
|
|
|
|
String preStr = ""; |
|
|
|
|
try { |
|
|
|
|
PageRequestVO pageRequest = pageRequestList.get(i); |
|
|
|
|
|
|
|
|
|
if (pageRequestList.size() > 1) { |
|
|
|
|
preStr = "第" + (i + 1) + "行:"; |
|
|
|
|
} |
|
|
|
|
String orderInfoId = pageRequest.getOrderInfoId(); |
|
|
|
|
List<String> shList = Arrays.asList(pageRequest.getXhfNsrsbh()); |
|
|
|
|
int i1 = new Random().nextInt(100); |
|
|
|
|
OrderProcessInfo orderProcessInfo = new OrderProcessInfo(); |
|
|
|
|
orderProcessInfo.setOrderInfoId(orderInfoId); |
|
|
|
|
orderProcessInfo.setOrderStatus(ConfigureConstant.STRING_1); |
|
|
|
|
orderProcessInfo.setBhzt(ConfigureConstant.STRING_1); |
|
|
|
|
orderProcessInfo.setFpqqlsh(pageRequest.getFpqqlsh() + "-bh" + i1); |
|
|
|
|
orderProcessInfo.setDdqqpch(pageRequest.getFpqqlsh() + "-bh" + i1); |
|
|
|
|
orderProcessInfo.setUpdateTime(new Date()); |
|
|
|
|
int success = orderProcessService.updateOrderProcessInfoByProcessId(orderProcessInfo, shList); |
|
|
|
|
OrderInfo orderInfo = new OrderInfo(); |
|
|
|
|
orderInfo.setId(orderInfoId); |
|
|
|
|
orderInfo.setFpqqlsh(pageRequest.getFpqqlsh() + "-bh"+ i1); |
|
|
|
|
orderInfo.setUpdateTime(new Date()); |
|
|
|
|
|
|
|
|
|
orderMapper.updateOrderInfoByOrderId(orderInfo,shList); |
|
|
|
|
//orderBatchRequestMapper.updateByPrimaryKeySelective();
|
|
|
|
|
if (success < 0) { |
|
|
|
|
errorMsgList.append(preStr).append("数据删除失败").append("\r\n"); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("{}数据删除失败:{}", LOGGER_MSG, e); |
|
|
|
|
errorMsgList.append(preStr).append("数据删除失败").append("\r\n"); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
if (ObjectUtil.isNotEmpty(errorMsgList)) { |
|
|
|
|
return R.error(errorMsgList.toString()); |
|
|
|
|
} |
|
|
|
|
return R.ok(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public R ratioConversion(List<String> orderInfoIds,String ratio,String xhfNsrsbh,String originUnit,String newUnit){ |
|
|
|
|
//校验是否为同一税号 校验开票情况
|
|
|
|
|