|
|
|
@ -15,6 +15,7 @@ import com.dxhy.erp.entity.BaseTDxRecordInvoice; |
|
|
|
|
import com.dxhy.erp.entity.BaseTDxRecordInvoiceOut; |
|
|
|
|
import com.dxhy.erp.model.ErpInvoiceData; |
|
|
|
|
import com.dxhy.erp.model.EsOutPutResp; |
|
|
|
|
import com.dxhy.erp.model.OutPut; |
|
|
|
|
import com.dxhy.erp.service.BaseIReceiptInvoiceService; |
|
|
|
|
import com.dxhy.erp.service.IReceiptOutService; |
|
|
|
|
import com.dxhy.erp.utils.JsonUtils; |
|
|
|
@ -43,6 +44,7 @@ public class ReceiptOutServiceImpl extends MpBaseServiceImpl<BaseReceiptOutDao, |
|
|
|
|
BaseIReceiptInvoiceService baseIReceiptInvoiceService; |
|
|
|
|
@Override |
|
|
|
|
public String transfer(ErpInvoiceData erpInvoiceData, BaseInvoiceEditVO condVO, UserInfo userInfo) { |
|
|
|
|
OutPut outPut = new OutPut(); |
|
|
|
|
EsOutPutResp es = new EsOutPutResp(); |
|
|
|
|
es.setSAPKEY(erpInvoiceData.getIS_INPUT().getSAPKEY()); |
|
|
|
|
es.setBSKEY(erpInvoiceData.getIS_INPUT().getBSKEY()); |
|
|
|
@ -58,7 +60,9 @@ public class ReceiptOutServiceImpl extends MpBaseServiceImpl<BaseReceiptOutDao, |
|
|
|
|
if(CollectionUtils.isEmpty(invoices)){ |
|
|
|
|
es.setZTYPE("E"); |
|
|
|
|
es.setZMESSAGE("底账数据不存在"); |
|
|
|
|
return JsonUtils.getInstance().toJsonString(es); |
|
|
|
|
|
|
|
|
|
outPut.setES_OUTPUT(es); |
|
|
|
|
return JsonUtils.getInstance().toJsonString(outPut); |
|
|
|
|
} |
|
|
|
|
// second:根据uuids查询出转出明细并转为map,key=uuid ,value=转出明细
|
|
|
|
|
List<BaseTDxRecordInvoiceOut> outs = listByUuids(ids); |
|
|
|
@ -83,8 +87,8 @@ public class ReceiptOutServiceImpl extends MpBaseServiceImpl<BaseReceiptOutDao, |
|
|
|
|
|
|
|
|
|
DynamicContextHolder.push("business" + DbConstant.BUSINESS_WRITE); |
|
|
|
|
excuteTransferWrite(condList, outList); |
|
|
|
|
|
|
|
|
|
return JsonUtils.getInstance().toJsonString(es); |
|
|
|
|
outPut.setES_OUTPUT(es); |
|
|
|
|
return JsonUtils.getInstance().toJsonString(outPut); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 根据uuids查询进项税转出明细 |
|
|
|
|