|
|
@ -222,7 +222,13 @@ public class InvoiceRestApiV6 { |
|
|
|
PoCommonRequestParam poCommonRequestParam = JsonUtils.getInstance().parseObject(reqStr, PoCommonRequestParam.class); |
|
|
|
PoCommonRequestParam poCommonRequestParam = JsonUtils.getInstance().parseObject(reqStr, PoCommonRequestParam.class); |
|
|
|
Map zData = JsonUtils.getInstance().parseObject(poCommonRequestParam.getIS_INPUT().getZDATA(), Map.class); |
|
|
|
Map zData = JsonUtils.getInstance().parseObject(poCommonRequestParam.getIS_INPUT().getZDATA(), Map.class); |
|
|
|
DeptEntity deptEntity = userInfoService.querySysDeptEntityByEnterpriseNumbers(zData.get("BUKRS").toString()); |
|
|
|
DeptEntity deptEntity = userInfoService.querySysDeptEntityByEnterpriseNumbers(zData.get("BUKRS").toString()); |
|
|
|
if(ObjectUtil.isNull(deptEntity)){ |
|
|
|
if(ObjectUtil.isNotNull(deptEntity) && StringUtils.isNotBlank(deptEntity.getDeptId())){ |
|
|
|
|
|
|
|
deptEntity = userInfoService.querySysDeptEntity(deptEntity); |
|
|
|
|
|
|
|
DdpcxxReqBO ddpcxxReq = BeanTransitionUtils.transitionPoKpReq(poCommonRequestParam,deptEntity); |
|
|
|
|
|
|
|
DdpcxxRspV5 ddpcxxRspV5 = interfaceServiceV6.generateQdInvoiceV6(ddpcxxReq, secretId, null); |
|
|
|
|
|
|
|
PoCommonResponseParam poCommonResponseParam = BeanTransitionUtils.transitionPoKpResp(ddpcxxRspV5); |
|
|
|
|
|
|
|
returnJsonString = JsonUtils.getInstance().toJsonString(poCommonResponseParam); |
|
|
|
|
|
|
|
}else{ |
|
|
|
PoCommonResponseParam poCommonResponseParam = new PoCommonResponseParam(); |
|
|
|
PoCommonResponseParam poCommonResponseParam = new PoCommonResponseParam(); |
|
|
|
EsOutput esOutput = new EsOutput(); |
|
|
|
EsOutput esOutput = new EsOutput(); |
|
|
|
esOutput.setBSKEY(poCommonRequestParam.getIS_INPUT().getBSKEY()); |
|
|
|
esOutput.setBSKEY(poCommonRequestParam.getIS_INPUT().getBSKEY()); |
|
|
@ -231,14 +237,6 @@ public class InvoiceRestApiV6 { |
|
|
|
esOutput.setZMESSAGE("根据公司代码未查询到对应销方"); |
|
|
|
esOutput.setZMESSAGE("根据公司代码未查询到对应销方"); |
|
|
|
poCommonResponseParam.setES_OUTPUT(esOutput); |
|
|
|
poCommonResponseParam.setES_OUTPUT(esOutput); |
|
|
|
return JsonUtils.getInstance().toJsonString(poCommonResponseParam); |
|
|
|
return JsonUtils.getInstance().toJsonString(poCommonResponseParam); |
|
|
|
}else { |
|
|
|
|
|
|
|
if(StringUtils.isBlank(deptEntity.getInvoiceNsrsbh()) && StringUtils.isNotBlank(deptEntity.getDeptId())){ |
|
|
|
|
|
|
|
deptEntity = userInfoService.querySysDeptEntity(deptEntity); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
DdpcxxReqBO ddpcxxReq = BeanTransitionUtils.transitionPoKpReq(poCommonRequestParam,deptEntity); |
|
|
|
|
|
|
|
DdpcxxRspV5 ddpcxxRspV5 = interfaceServiceV6.generateQdInvoiceV6(ddpcxxReq, secretId, null); |
|
|
|
|
|
|
|
PoCommonResponseParam poCommonResponseParam = BeanTransitionUtils.transitionPoKpResp(ddpcxxRspV5); |
|
|
|
|
|
|
|
returnJsonString = JsonUtils.getInstance().toJsonString(poCommonResponseParam); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} else if (ConfigurerInfo.GETORDERINFOANDINVOICEINFO.equals(interfaceName)){ |
|
|
|
} else if (ConfigurerInfo.GETORDERINFOANDINVOICEINFO.equals(interfaceName)){ |
|
|
|
//订单和发票数据查询接口
|
|
|
|
//订单和发票数据查询接口
|
|
|
|