|
|
@ -5,8 +5,6 @@ import com.dxhy.order.constant.ConfigureConstant; |
|
|
|
import com.dxhy.order.constant.NsrQueueEnum; |
|
|
|
import com.dxhy.order.constant.NsrQueueEnum; |
|
|
|
import com.dxhy.order.constant.OrderInfoEnum; |
|
|
|
import com.dxhy.order.constant.OrderInfoEnum; |
|
|
|
import com.dxhy.order.constant.OrderManagementConstant; |
|
|
|
import com.dxhy.order.constant.OrderManagementConstant; |
|
|
|
import com.dxhy.order.consumer.modules.manager.model.dto.ManualPushInvoiceDTO; |
|
|
|
|
|
|
|
import com.dxhy.order.consumer.modules.manager.model.dto.ManualPushInvoiceDetailDTO; |
|
|
|
|
|
|
|
import com.dxhy.order.model.*; |
|
|
|
import com.dxhy.order.model.*; |
|
|
|
import com.dxhy.order.model.queue.CommonTsMqData; |
|
|
|
import com.dxhy.order.model.queue.CommonTsMqData; |
|
|
|
import com.dxhy.order.model.queue.FpTsMqData; |
|
|
|
import com.dxhy.order.model.queue.FpTsMqData; |
|
|
@ -56,16 +54,15 @@ public class InvoiceDataServiceImpl implements InvoiceDataService { |
|
|
|
* 发票状态手动回推 |
|
|
|
* 发票状态手动回推 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
public R manualPushInvoice(List<Map> idList) { |
|
|
|
public R manualPushInvoice(ManualPushInvoiceDTO dto) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set<String> set = new HashSet<>(); |
|
|
|
Set<String> set = new HashSet<>(); |
|
|
|
int successCount = 0; |
|
|
|
int successCount = 0; |
|
|
|
for (ManualPushInvoiceDetailDTO map : dto.getList()) { |
|
|
|
for (Map map : idList) { |
|
|
|
OrderInvoiceInfo orderInvoiceInfo1 = new OrderInvoiceInfo(); |
|
|
|
OrderInvoiceInfo orderInvoiceInfo1 = new OrderInvoiceInfo(); |
|
|
|
String ddqqlsh = map.getDdqqlsh(); |
|
|
|
String ddqqlsh = (String) map.get("ddqqlsh"); |
|
|
|
String nsrsbh = map.getXhfNsrsbh(); |
|
|
|
String nsrsbh = (String) map.get("xhfNsrsbh"); |
|
|
|
List<String> shList = new ArrayList<>(); |
|
|
|
List<String> shList = new ArrayList<>(); |
|
|
|
shList.add(nsrsbh); |
|
|
|
shList.add(nsrsbh); |
|
|
|
orderInvoiceInfo1.setFpqqlsh(ddqqlsh); |
|
|
|
orderInvoiceInfo1.setFpqqlsh(ddqqlsh); |
|
|
@ -73,21 +70,6 @@ public class InvoiceDataServiceImpl implements InvoiceDataService { |
|
|
|
if (orderInvoiceInfo == null) { |
|
|
|
if (orderInvoiceInfo == null) { |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
List<String> xhfNsrsbhList = Collections.singletonList(map.getXhfNsrsbh()); |
|
|
|
|
|
|
|
// 新增回写报账单号
|
|
|
|
|
|
|
|
OrderProcessInfo orderProcessInfo = orderProcessInfoMapper.selectByOrderId(orderInvoiceInfo.getOrderInfoId(), xhfNsrsbhList); |
|
|
|
|
|
|
|
if (ObjectUtil.isNull(orderProcessInfo)) { |
|
|
|
|
|
|
|
return R.error("找不到订单处理业务"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
orderProcessInfo.setBzdh(dto.getBzdh()); |
|
|
|
|
|
|
|
orderProcessInfoMapper.updateOrderProcessInfoByProcessId(orderProcessInfo, xhfNsrsbhList); |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
|
|
log.error("{}回写报账单号异常", LOGGER_MSG, e); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询当前税号的销方信息是否配置推送地址
|
|
|
|
//查询当前税号的销方信息是否配置推送地址
|
|
|
|
PushInfo queryPushInfo = new PushInfo(); |
|
|
|
PushInfo queryPushInfo = new PushInfo(); |
|
|
|
//推送地址为有效
|
|
|
|
//推送地址为有效
|
|
|
|