From 03b89d57d26dda7dbaef41371028aa91efaf2a0e Mon Sep 17 00:00:00 2001 From: kane Date: Fri, 8 Sep 2023 18:07:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A2=E5=AD=97=E4=BF=A1=E6=81=AF=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E4=B8=8B=E8=BD=BD=E6=97=B6=E9=97=B4=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/api/ElephantInvoiceApiServiceImpl.java | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/jianshui-invoice/src/main/java/com/jianshui/invoice/service/impl/api/ElephantInvoiceApiServiceImpl.java b/jianshui-invoice/src/main/java/com/jianshui/invoice/service/impl/api/ElephantInvoiceApiServiceImpl.java index 12ed9f3..bb420f9 100644 --- a/jianshui-invoice/src/main/java/com/jianshui/invoice/service/impl/api/ElephantInvoiceApiServiceImpl.java +++ b/jianshui-invoice/src/main/java/com/jianshui/invoice/service/impl/api/ElephantInvoiceApiServiceImpl.java @@ -992,16 +992,8 @@ public class ElephantInvoiceApiServiceImpl implements IInvoiceApiService { // Date tkrqq = DateUtil.offsetDay(new Date(), -5); // queryJson.put("TKRQQ", DateUtil.format(tkrqq,"yyyyMMdd")); // 填开日期起,可空", // queryJson.put("TKRQZ", DateUtil.format(new Date(),"yyyyMMdd")); // 填开日期止,可空", - if (StringUtils.isBlank(downloadRedInfoDTO.getBillTimeBegin())){ - queryJson.put("TKRQQ", downloadRedInfoDTO.getBillTimeBegin()); // 填开日期起,可空", - }else { - queryJson.put("TKRQQ", downloadRedInfoDTO.getBillTimeBegin() + "000000"); // 填开日期起,可空", - } - if (StringUtils.isBlank(downloadRedInfoDTO.getBillTimeEnd())){ - queryJson.put("TKRQZ", downloadRedInfoDTO.getBillTimeEnd()); // 填开日期止,可空", - }else { - queryJson.put("TKRQZ", downloadRedInfoDTO.getBillTimeEnd() + "235959"); // 填开日期止,可空", - } + queryJson.put("TKRQQ", downloadRedInfoDTO.getBillTimeBegin()); // 填开日期起,可空", + queryJson.put("TKRQZ", downloadRedInfoDTO.getBillTimeEnd()); // 填开日期止,可空", queryJson.put("GMFSBH", redInfoResult.getBuyerTaxnum()); // 购买方税号,可空", queryJson.put("XHFSBH", redInfoResult.getSellerTaxnum()); // 销货方税号,可空", @@ -1014,7 +1006,6 @@ public class ElephantInvoiceApiServiceImpl implements IInvoiceApiService { //kk TODO : 2023/9/6 V6新加字段 - int page = 1; queryJson.put("GS", 10); // 个数" List resultDTO = new ArrayList<>(); @@ -1038,7 +1029,7 @@ public class ElephantInvoiceApiServiceImpl implements IInvoiceApiService { // 判断外层报文是否成功 if (queryResult.isError()) { // 不是第一页之后的9999都给扔出去 - if(page > 1){ + if (page > 1) { break; } throw new JianshuiServiceException(queryResult.getMsg());