|
|
|
@ -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("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<RedInfoDTO> 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()); |
|
|
|
|