本文解答了关于《取得虚开专用发票的处理》相关内容,同时关于的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。
取得虚开专用发票的处理结果
* @param dto
* @return com.zdsoft.finance.common.utils.proxy.ProxyResponse
* @throws
* @author laijun
* @date 2018-03-21 11:17
*/
@RequestMapping(value = "getVirtualInvoice")
public ProxyResponse getVirtualInvoice(@RequestBody ProxyRequest dto) {
ProxyResponse result;
try {
String json = (String) dto.getBody().getBodyMap().get(KeyConstants.PROXY_DTO_JSON);
if (Strings.isNotEmpty(json)) {
//参数解析
VirtualGetInvoiceDTO virtualGetInvoiceDTO = JSONObject.parseObject(json, VirtualGetInvoiceDTO.class);
//虚开专用发票查询
ResponseDTO responseDTO = virtualInvoiceForAdvanceService.getVirtualInvoice(virtualGetInvoiceDTO);
result = new ProxyResponse(Integer.valueOf(responseDTO.getCode()), responseDTO.getMessage(), responseDTO.getData());
} else {
result = new ProxyResponse(GeeLoaderResponseCode.FAIL_SYS_PARAM_CODE, GeeLoaderResponseCode.FAIL_SYS_PARAM_MESSAGE, null);
}
} catch (Exception e) {
result = new ProxyResponse(GeeLoaderResponseCode.FAIL_SYS_CODE, GeeLoaderResponseCode.FAIL_SYS_MESSAGE, null);
log.error("虚开专用发票查询异常:{}" , e);
}
return result;
}
}
总结:以上是编辑:【泪】整理及AI智能原创关于《取得虚开专用发票的处理
》优质内容解答希望能帮助到您。