|
|
@ -25,10 +25,8 @@ import com.dxhy.order.baseservice.openapi.protocol.qd.PageKpzzglRsp; |
|
|
|
import com.dxhy.order.baseservice.openapi.protocol.qd.PageXfxx; |
|
|
|
import com.dxhy.order.baseservice.openapi.protocol.qd.PageXfxx; |
|
|
|
import com.dxhy.order.constant.*; |
|
|
|
import com.dxhy.order.constant.*; |
|
|
|
import com.dxhy.order.consumer.config.OpenApiConfig; |
|
|
|
import com.dxhy.order.consumer.config.OpenApiConfig; |
|
|
|
import com.dxhy.order.consumer.modules.order.service.GenerateReadyOpenOrderService; |
|
|
|
import com.dxhy.order.consumer.modules.order.model.InvoiceRemarkSet; |
|
|
|
import com.dxhy.order.consumer.modules.order.service.OpenInvoiceService; |
|
|
|
import com.dxhy.order.consumer.modules.order.service.*; |
|
|
|
import com.dxhy.order.consumer.modules.order.service.OrderCommonService; |
|
|
|
|
|
|
|
import com.dxhy.order.consumer.modules.order.service.OrderProcessService; |
|
|
|
|
|
|
|
import com.dxhy.order.consumer.modules.validate.service.ValidateInterfaceOrderService; |
|
|
|
import com.dxhy.order.consumer.modules.validate.service.ValidateInterfaceOrderService; |
|
|
|
import com.dxhy.order.consumer.modules.validate.service.ValidateOrderInfoService; |
|
|
|
import com.dxhy.order.consumer.modules.validate.service.ValidateOrderInfoService; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v4.checklimit.RedisCheckLimit; |
|
|
|
import com.dxhy.order.consumer.openapi.protocol.v4.checklimit.RedisCheckLimit; |
|
|
@ -131,6 +129,8 @@ public class AllocateInvoiceInterfaceServiceImplV3 implements AllocateInvoiceInt |
|
|
|
private UnifyService unifyService; |
|
|
|
private UnifyService unifyService; |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private GroupManagementService groupManagementService; |
|
|
|
private GroupManagementService groupManagementService; |
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private InvoiceRemarkSetService invoiceRemarkSetService; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 发票开具接口 |
|
|
|
* 发票开具接口 |
|
|
@ -866,6 +866,29 @@ public class AllocateInvoiceInterfaceServiceImplV3 implements AllocateInvoiceInt |
|
|
|
itemInfo.setZnfm(""); |
|
|
|
itemInfo.setZnfm(""); |
|
|
|
itemInfo.setTswl(""); |
|
|
|
itemInfo.setTswl(""); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//根据配置拼接备注信息
|
|
|
|
|
|
|
|
InvoiceRemarkSet invoiceRemarkSet = new InvoiceRemarkSet(); |
|
|
|
|
|
|
|
invoiceRemarkSet.setGsbm(insertProcessInfo.get(0).getGsdm()); |
|
|
|
|
|
|
|
invoiceRemarkSet.setStatus(ConfigureConstant.STRING_1); |
|
|
|
|
|
|
|
List<InvoiceRemarkSet> invoiceRemarkSets = invoiceRemarkSetService.queryRemarkSet(invoiceRemarkSet); |
|
|
|
|
|
|
|
if(invoiceRemarkSets.size()>0){ |
|
|
|
|
|
|
|
InvoiceRemarkSet en = invoiceRemarkSets.get(0); |
|
|
|
|
|
|
|
log.info("{}结算单:{}查询到备注设置:{}",LOGGER_MSG,insertOrder.get(0).getDdh(),JsonUtils.getInstance().toJsonString(en)); |
|
|
|
|
|
|
|
String mbnr = en.getMbnr(); |
|
|
|
|
|
|
|
List<String> mbnrList = Arrays.asList(mbnr.split("、")); |
|
|
|
|
|
|
|
for(int i =0;i<mbnrList.size();i++){ |
|
|
|
|
|
|
|
String s = mbnrList.get(i); |
|
|
|
|
|
|
|
if(OrderInfoEnum.INVOICE_REMARK_SET_BZDH.getValue().equals(s)){ |
|
|
|
|
|
|
|
insertOrder.get(0).setBz(insertOrder.get(0).getBz()+OrderInfoEnum.INVOICE_REMARK_SET_BZDH.getValue()+":"+insertProcessInfo.get(0).getBzdh()+(i==mbnrList.size()-1?"":",")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(OrderInfoEnum.INVOICE_REMARK_SET_JSDH.getValue().equals(s)){ |
|
|
|
|
|
|
|
insertOrder.get(0).setBz(insertOrder.get(0).getBz()+OrderInfoEnum.INVOICE_REMARK_SET_JSDH.getValue()+":"+insertProcessInfo.get(0).getDdh()+(i==mbnrList.size()-1?"":",")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(OrderInfoEnum.INVOICE_REMARK_SET_KB.getValue().equals(s)){ |
|
|
|
|
|
|
|
insertOrder.get(0).setBz(insertOrder.get(0).getBz()+OrderInfoEnum.INVOICE_REMARK_SET_KB.getValue()+":"+insertProcessInfo.get(0).getKb()+(i==mbnrList.size()-1?"":",")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
/* |
|
|
|
* 手动导入判断 |
|
|
|
* 手动导入判断 |
|
|
|