Commit 40f81e6a authored by hongguangwu's avatar hongguangwu

1.7.21-回单加前2天

parent 34e6e8e6
...@@ -16,6 +16,8 @@ import org.springframework.web.bind.annotation.*; ...@@ -16,6 +16,8 @@ import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
/** /**
* 聚富通代发工资相关 * 聚富通代发工资相关
...@@ -163,10 +165,18 @@ public class IcbcTransactionFlowIssueController { ...@@ -163,10 +165,18 @@ public class IcbcTransactionFlowIssueController {
// 工资 // 工资
icbcTransactionFlowIssueService.getPdfFile(); icbcTransactionFlowIssueService.getPdfFile();
// 非扣税 // 非扣税
icbcTransactionFlowIssueService.getPdfFileByNoTax(null); icbcTransactionFlowIssueService.getPdfFileByNoTax(addDay(-2));
icbcTransactionFlowIssueService.getPdfFileByNoTax(addDay(-1));
return R.ok(); return R.ok();
} }
private String addDay(int day) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
Calendar cal = Calendar.getInstance();
cal.add(Calendar.DATE, day); // 获取前一天日期
return sdf.format(cal.getTime());
}
@Operation(summary = "定时任务获取回单文件", description = "定时任务获取回单文件") @Operation(summary = "定时任务获取回单文件", description = "定时任务获取回单文件")
@PostMapping("/getTestPdfFile") @PostMapping("/getTestPdfFile")
public R getPdfFileTest() throws IOException { public R getPdfFileTest() throws IOException {
......
...@@ -364,6 +364,7 @@ public class IcbcTransactionFlowQueryServiceImpl extends ServiceImpl<EkpSocialIn ...@@ -364,6 +364,7 @@ public class IcbcTransactionFlowQueryServiceImpl extends ServiceImpl<EkpSocialIn
String fSeqNo; String fSeqNo;
MybankEnterpriseTradeQhisdResponseV1 response; MybankEnterpriseTradeQhisdResponseV1 response;
// int i=1;
for(Map<String,String> accountInfo: accountList) { for(Map<String,String> accountInfo: accountList) {
bizContent = new MybankEnterpriseTradeQhisdRequestV1.MybankEnterpriseTradeQhisdRequestBizV1(); bizContent = new MybankEnterpriseTradeQhisdRequestV1.MybankEnterpriseTradeQhisdRequestBizV1();
...@@ -384,6 +385,8 @@ public class IcbcTransactionFlowQueryServiceImpl extends ServiceImpl<EkpSocialIn ...@@ -384,6 +385,8 @@ public class IcbcTransactionFlowQueryServiceImpl extends ServiceImpl<EkpSocialIn
request.setServiceUrl(icbcConfigProperties.getServerUrl()); request.setServiceUrl(icbcConfigProperties.getServerUrl());
request.setBizContent(bizContent); request.setBizContent(bizContent);
response = client.execute(request); response = client.execute(request);
// 如果工行人要传参,把这个打出来,复制给他
//System.out.println("传参" + (i++) + ":" + JSON.toJSONString(request));
if (response.isSuccess()) { if (response.isSuccess()) {
getInfoListByNoTax(request, mainMap, returnMap, detailMap, client, bizContent); getInfoListByNoTax(request, mainMap, returnMap, detailMap, client, bizContent);
} }
...@@ -422,6 +425,7 @@ public class IcbcTransactionFlowQueryServiceImpl extends ServiceImpl<EkpSocialIn ...@@ -422,6 +425,7 @@ public class IcbcTransactionFlowQueryServiceImpl extends ServiceImpl<EkpSocialIn
if (no.contains("-")) { if (no.contains("-")) {
no = no.split("-")[0]; no = no.split("-")[0];
} }
// no 的值将是 "HQP923041354291" // no 的值将是 "HQP923041354291"
infoOldVo = mainMap.get(no); infoOldVo = mainMap.get(no);
if (infoOldVo != null) { if (infoOldVo != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment