到账通知发布-推送按钮-推送合同平台的到账通知单-增加bankrelated_code字段
This commit is contained in:
parent
95bbfce185
commit
ecd768ed3a
|
@ -78,10 +78,10 @@ public class myBtnClickAction extends InformerAction implements ICommonAction {
|
|||
result = "'" + (String) pks.get(0) + "'";
|
||||
|
||||
}
|
||||
System.out.println(result);
|
||||
Logger.error(result);
|
||||
// 解析JSON数据为JSONObject对象
|
||||
// 从JSON对象中提取账单编号
|
||||
System.out.println(json);
|
||||
Logger.error(json);
|
||||
String urlpath;
|
||||
String appKey;
|
||||
String appSecret;
|
||||
|
@ -125,7 +125,7 @@ public class myBtnClickAction extends InformerAction implements ICommonAction {
|
|||
return resultMap;
|
||||
}
|
||||
long timestampMillis = System.currentTimeMillis();
|
||||
System.out.println("当前时间戳(毫秒):" + timestampMillis);
|
||||
Logger.error("当前时间戳(毫秒):" + timestampMillis);
|
||||
String dai = "appKey" + appKey + "timestamp" + timestampMillis;
|
||||
String signature = calculateHmacSHA256(dai, appSecret);
|
||||
SSLUtilities sas = new SSLUtilities();
|
||||
|
@ -149,14 +149,13 @@ public class myBtnClickAction extends InformerAction implements ICommonAction {
|
|||
response.append(inputLine);
|
||||
}
|
||||
|
||||
System.out.println(response);
|
||||
System.out.println(response);
|
||||
Logger.error(response);
|
||||
|
||||
String jsonString = response.toString();
|
||||
Map<String, Object> map = JSON.parseObject(jsonString, Map.class);
|
||||
System.out.println(map);
|
||||
Logger.error("jsonString = " + jsonString);
|
||||
|
||||
System.out.println(url);
|
||||
Logger.error("url = " + url);
|
||||
|
||||
// 获取当前年份
|
||||
String sql = " select bz.code as nzcode,jstype.code as pk_balatype,ban.code bancode,ban.name as banname,bankname,bank.accnum as accnum,infodate,CASE direction " +
|
||||
|
@ -165,7 +164,7 @@ public class myBtnClickAction extends InformerAction implements ICommonAction {
|
|||
"ELSE '不存在' " +
|
||||
"END as direction, 'CNY' as currencyCode,moneyy , bant.code as dfcode,bant.name as dfname,oppbankaccount,bankt.accnum dfaccnum " +
|
||||
",pk_oppunit,org.code as orgcode,org.name as orgname,cmp.pk_informer " +
|
||||
",cmp.memo,cmp.transerial,df.name as ksmc,df.code as ksbm,cmp.note_no,vdef1,cmp.oppunitname " +
|
||||
",cmp.memo,cmp.transerial,df.name as ksmc,df.code as ksbm,cmp.note_no,vdef1,cmp.oppunitname, cmp.bankrelated_code " +
|
||||
"from cmp_informer cmp " +
|
||||
"left join bd_bankaccbas bank on cmp.pk_bankacc=bank.pk_bankaccbas " +
|
||||
"left join bd_bankdoc ban on cmp.pk_bank=ban.pk_bankdoc " +
|
||||
|
@ -233,6 +232,7 @@ public class myBtnClickAction extends InformerAction implements ICommonAction {
|
|||
vmao.put("paymentMethod", "10");
|
||||
}
|
||||
vmao.put("sourceId", row.get("pk_informer"));
|
||||
vmao.put("bankrelated_code", row.get("bankrelated_code"));
|
||||
lists.add(vmao);
|
||||
}
|
||||
|
||||
|
@ -312,10 +312,7 @@ public class myBtnClickAction extends InformerAction implements ICommonAction {
|
|||
|
||||
|
||||
public static Map httpFW(String urlString, String jsonInputString) {
|
||||
// String jsonInputString = "{\"key\": \"中文\"}"; // 你的 JSON 数据
|
||||
// String urlString = "http://example.com/api"; // 替换为你的 URL
|
||||
System.out.println("请求值");
|
||||
System.out.println(jsonInputString);
|
||||
Logger.error("请求值 = " + jsonInputString);
|
||||
try {
|
||||
URL url = new URL(urlString);
|
||||
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
|
||||
|
|
Loading…
Reference in New Issue