Commit 6222166f authored by hongguangwu's avatar hongguangwu

Merge remote-tracking branch 'origin/MVP1.6.7' into MVP1.6.7

parents 0a5256ff 2d9db8c3
//package com.yifu.cloud.plus.v1.ekp.controller; package com.yifu.cloud.plus.v1.ekp.controller;
//
//import com.yifu.cloud.plus.v1.ekp.service.IcbcTransactionFlowQueryService; import com.yifu.cloud.plus.v1.ekp.service.IcbcTransactionFlowQueryService;
//import com.yifu.cloud.plus.v1.yifu.common.core.util.R; import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
//import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Operation;
//import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
//import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
//import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
//
///** /**
// * 聚富通到账通知交易流水查询 * 聚富通到账通知交易流水查询
// * *
// * @author huyc * @author huyc
// * @date 2024-05-23 10:24:12 * @date 2024-05-23 10:24:12
// */ */
//@RestController @RestController
//@RequiredArgsConstructor @RequiredArgsConstructor
//@RequestMapping("/icbcQuery" ) @RequestMapping("/icbcQuery" )
//@Tag(name = "聚富通到账通知交易流水查询") @Tag(name = "聚富通到账通知交易流水查询")
//public class IcbcTransactionFlowQueryController { public class IcbcTransactionFlowQueryController {
//
// private final IcbcTransactionFlowQueryService icbcTransactionFlowQueryService; private final IcbcTransactionFlowQueryService icbcTransactionFlowQueryService;
//
// /** /**
// * 交易流水查询 * 交易流水查询
// * *
// * @param * @param
// * @return * @return
// */ */
// @Operation(summary = "交易流水查询", description = "交易流水查询") @Operation(summary = "交易流水查询", description = "交易流水查询")
// @PostMapping("/page") @PostMapping("/page")
// public R getIcbcTransactionFlow() { public R getIcbcTransactionFlow() {
// return icbcTransactionFlowQueryService.getIcbcTransactionFlow(); return icbcTransactionFlowQueryService.getIcbcTransactionFlow();
// } }
//
// /** /**
// * 预订单接口 * 预订单接口
// * *
// * @param * @param
// * @return * @return
// */ */
// @Operation(summary = "预订单接口", description = "预订单接口") @Operation(summary = "预订单接口", description = "预订单接口")
// @PostMapping("/save") @PostMapping("/save")
// public R saveIcbcManagerCard() { public R saveIcbcManagerCard() {
// return icbcTransactionFlowQueryService.saveIcbcManagerCard(); return icbcTransactionFlowQueryService.saveIcbcManagerCard();
// } }
//} }
//package com.yifu.cloud.plus.v1.ekp.service; package com.yifu.cloud.plus.v1.ekp.service;
//
//import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
//import com.yifu.cloud.plus.v1.ekp.entity.EkpSocialInfo; import com.yifu.cloud.plus.v1.ekp.entity.EkpSocialInfo;
//import com.yifu.cloud.plus.v1.yifu.common.core.util.R; import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
//
///** /**
// * 聚富通到账通知交易流水查询 * 聚富通到账通知交易流水查询
// * *
// * @author huyc * @author huyc
// * @date 2024-05-23 11:21:56 * @date 2024-05-23 11:21:56
// */ */
//public interface IcbcTransactionFlowQueryService extends IService<EkpSocialInfo> { public interface IcbcTransactionFlowQueryService extends IService<EkpSocialInfo> {
//
// R getIcbcTransactionFlow(); R getIcbcTransactionFlow();
//
// R saveIcbcManagerCard(); R saveIcbcManagerCard();
//
//} }
//package com.yifu.cloud.plus.v1.ekp.service.impl; package com.yifu.cloud.plus.v1.ekp.service.impl;
//
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import com.icbc.api.DefaultIcbcClient; import com.icbc.api.DefaultIcbcClient;
//import com.icbc.api.IcbcApiException; import com.icbc.api.IcbcApiException;
//import com.icbc.api.IcbcConstants; import com.icbc.api.IcbcConstants;
//import com.icbc.api.request.JftApiB2bpayTransqueryRequestV1; import com.icbc.api.request.JftApiB2bpayTransqueryRequestV1;
//import com.icbc.api.request.JftApiPayB2bpayGenpreorderRequestV1; import com.icbc.api.request.JftApiPayB2bpayGenpreorderRequestV1;
//import com.icbc.api.response.JftApiB2bpayTransqueryResponseV1; import com.icbc.api.response.JftApiB2bpayTransqueryResponseV1;
//import com.icbc.api.response.JftApiPayB2bpayGenpreorderResponseV1; import com.icbc.api.response.JftApiPayB2bpayGenpreorderResponseV1;
//import com.yifu.cloud.plus.v1.ekp.config.IcbcConfigProperties; import com.yifu.cloud.plus.v1.ekp.config.IcbcConfigProperties;
//import com.yifu.cloud.plus.v1.ekp.entity.EkpSocialInfo; import com.yifu.cloud.plus.v1.ekp.entity.EkpSocialInfo;
//import com.yifu.cloud.plus.v1.ekp.mapper.EkpSocialInfoMapper; import com.yifu.cloud.plus.v1.ekp.mapper.EkpSocialInfoMapper;
//import com.yifu.cloud.plus.v1.ekp.service.IcbcTransactionFlowQueryService; import com.yifu.cloud.plus.v1.ekp.service.IcbcTransactionFlowQueryService;
//import com.yifu.cloud.plus.v1.yifu.common.core.util.R; import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
//import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
//import lombok.extern.log4j.Log4j2; import lombok.extern.log4j.Log4j2;
//import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.context.properties.EnableConfigurationProperties;
//import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
//
//import java.util.ArrayList; import java.util.ArrayList;
//import java.util.List; import java.util.List;
//
///** /**
// * 聚富通到账通知交易流水查询 * 聚富通到账通知交易流水查询
// * *
// * @author huyc * @author huyc
// * @date 2024-05-23 11:21:56 * @date 2024-05-23 11:21:56
// */ */
//@Log4j2 @Log4j2
//@Service @Service
//@RequiredArgsConstructor @RequiredArgsConstructor
//@EnableConfigurationProperties(IcbcConfigProperties.class) @EnableConfigurationProperties(IcbcConfigProperties.class)
//public class IcbcTransactionFlowQueryServiceImpl extends ServiceImpl<EkpSocialInfoMapper, EkpSocialInfo> implements IcbcTransactionFlowQueryService { public class IcbcTransactionFlowQueryServiceImpl extends ServiceImpl<EkpSocialInfoMapper, EkpSocialInfo> implements IcbcTransactionFlowQueryService {
//
// @Autowired @Autowired
// private IcbcConfigProperties icbcConfigProperties; private IcbcConfigProperties icbcConfigProperties;
//
// public R getIcbcTransactionFlow() { public R getIcbcTransactionFlow() {
// //应用id 应用方私钥 网关公钥 应用方加密串 //应用id 应用方私钥 网关公钥 应用方加密串
// String APP_ID = "11000000000000015602"; String APP_ID = "11000000000000028685";
// //应用方私钥 //应用方私钥
// String MY_PRIVATE_KEY = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCudy1tOyVTSCjJD9ej/IXmIKHTBLJ3FPYyhUnAt65hXgTD7OJso3+1cc+AakLGTLrSm9pxxd2AsUkVbdYFsXyq0rQOkG71ULPrzYI/XfbIcjf8dleFkTlEi+bVNN3J3LzbY4uPhPztDbkcwBoawl1jhcGTkFdIUCfJ8s9zXAAKgHjeNLXwrdnfvlTn8sfJX3JvrQ9W1Ji2NhCzAg7/fgJ9wAmS+aWKKBuc3ge5DQYcTtIe8hBeKSh6WZkjdUOja6ytOwEGCA3KiCVTw42rP/njrMAR3rh2ptXQtlLekMIEtiN3QAnIWp8IDg8uBEKr0aye6m/IfKMNpbbyaKqaeBUhAgMBAAECggEAOp0rk+ElHx/FJBfAeQWj7rbT51NSqhNOy5ZgOvD7ExdFPpXdVGZxx4HfFuOcX4bz1UIrV8IEMvJc/WgTWYJRwgpcF/CKdryQVg6LTcLB4IIPMTCJIwSxWsgt2z+Rq/oPMR32i1dAqlvL707S9l6KhZ8wc+UwjcjwNTbwX29vTBdiTsFS6QJBaUytu+nHoHvVrpg4botifiokHR1JX0hWjxP/Dh29aooaIbSu80A2sRPLIvRtCzxGjfcZP+H1ZtE439SC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93ShQY+maVsPhEj8jFjGe2JlMscX8QgzkfxowrOpdlXsMSYgbG0ccBkXWZXbsh8tsUH9g+WNAoGAbQ5avOo0uF603Uts7ZFC0Lia0Vcx499oxGG5s8Js7tBAS6I7bRp5xokQHz/8BRKBL52oWJklpgy+N6oBnU7rFgRGaZBITABedqIWppHtac4ihUyQ+ZPRIfZqpmOXuaFJVmjUkm6zimpD+TOlaX3ZL88fdDX0E3xuBtBwBuxIkH0CgYEAlXyBbG2/fVV/PDUVCAA+aeWstojR1ncDhJmFnENSk5I/y3mh+d+u4ZG3hmVQZfR1EYM+n9wPQ2LxqNpGPA8o4JK/MSfVKun4lBwjkergHzxWJ5AMuYL1DPrOtMPEqrTqOHfVzSZGsz9cMK4tDWETKKFBOM/5oSdGGW3oYvzcS0M=";
// //网关公钥 //网关公钥
// String APIGW_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwFgHD4kzEVPdOj03ctKM7KV+16bWZ5BMNgvEeuEQwfQYkRVwI9HFOGkwNTMn5hiJXHnlXYCX+zp5r6R52MY0O7BsTCLT7aHaxsANsvI9ABGx3OaTVlPB59M6GPbJh0uXvio0m1r/lTW3Z60RU6Q3oid/rNhP3CiNgg0W6O3AGqwIDAQAB"; String APIGW_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCMpjaWjngB4E3ATh+G1DVAmQnIpiPEFAEDqRfNGAVvvH35yDetqewKi0l7OEceTMN1C6NPym3zStvSoQayjYV+eIcZERkx31KhtFu9clZKgRTyPjdKMIth/wBtPKjL/5+PYalLdomM4ONthrPgnkN4x4R0+D4+EBpXo8gNiAFsNwIDAQAB";
// //应用方加密串 //应用方加密串
// String AES_Key = "5xGJdh7qb+B95SUoxDlatg=="; String AES_Key = "8jTKCqZ9035g+HRzpZQqZA==";
// DefaultIcbcClient client = new DefaultIcbcClient(APP_ID, IcbcConstants.SIGN_TYPE_RSA2, DefaultIcbcClient client = new DefaultIcbcClient(APP_ID, IcbcConstants.SIGN_TYPE_RSA2,
// MY_PRIVATE_KEY, IcbcConstants.CHARSET_UTF8, IcbcConstants.FORMAT_JSON, APIGW_PUBLIC_KEY, MY_PRIVATE_KEY, IcbcConstants.CHARSET_UTF8, IcbcConstants.FORMAT_JSON, APIGW_PUBLIC_KEY,
// AES_Key, icbcConfigProperties.getAesKey(), "", ""); AES_Key, icbcConfigProperties.getAesKey(), "", "");
// JftApiB2bpayTransqueryRequestV1 request = new JftApiB2bpayTransqueryRequestV1(); JftApiB2bpayTransqueryRequestV1 request = new JftApiB2bpayTransqueryRequestV1();
// request.setServiceUrl("https://apipcs3.dccnet.com.cn/api/jft/api/b2bpay/transquery/V1"); request.setServiceUrl("https://gw.open.icbc.com.cn/api/jft/api/b2bpay/transquery/V1");
//
// JftApiB2bpayTransqueryRequestV1.JftApiB2bpayTransqueryRequestV1Biz bizContent = new JftApiB2bpayTransqueryRequestV1.JftApiB2bpayTransqueryRequestV1Biz bizContent = new
// JftApiB2bpayTransqueryRequestV1.JftApiB2bpayTransqueryRequestV1Biz(); JftApiB2bpayTransqueryRequestV1.JftApiB2bpayTransqueryRequestV1Biz();
// bizContent.setAppId(APP_ID); bizContent.setAppId(APP_ID);
//// bizContent.setOutVendorId("955888"); bizContent.setOutVendorId("130290000436004");
//// bizContent.setOutUserId("874"); // bizContent.setOutUserId("874");
// bizContent.setCardNo("9558830200003786563"); bizContent.setCardNo("1302010109024596014");
//// bizContent.setPayAccount("0200000309200211917"); // bizContent.setPayAccount("0200000309200211917");
// bizContent.setStartTrxDate("20240401"); bizContent.setStartTrxDate("20240301");
// bizContent.setEndTrxDate("20240730"); bizContent.setEndTrxDate("20240730");
// bizContent.setStartId("1"); bizContent.setStartId("1");
// bizContent.setEndId("50"); bizContent.setEndId("50");
// request.setBizContent(bizContent); request.setBizContent(bizContent);
// JftApiB2bpayTransqueryResponseV1 response; JftApiB2bpayTransqueryResponseV1 response;
// try { try {
// //到账通知交易流水查询 //到账通知交易流水查询
// response = client.execute(request); response = client.execute(request);
// log.info(request.toString()); log.error("到账通知交易流水查询" + request.toString());
// log.info(response.toString()); log.error("到账通知交易流水结果" + response.toString());
// if ("00".equals(response.getStatus())) { if ("00".equals(response.getStatus())) {
// return R.ok(); return R.ok();
// } else { } else {
// return R.failed(); return R.failed();
// } }
// } catch (IcbcApiException e) { } catch (IcbcApiException e) {
// e.printStackTrace(); e.printStackTrace();
// return R.ok(); return R.ok();
// } }
// } }
//
// public R saveIcbcManagerCard() { public R saveIcbcManagerCard() {
// //应用id 应用方私钥 网关公钥 应用方加密串 //应用id 应用方私钥 网关公钥 应用方加密串
// String APP_ID = "11000000000000015602"; String APP_ID = "11000000000000015602";
// //应用方私钥 //应用方私钥
// String MY_PRIVATE_KEY = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCudy1tOyVTSCjJD9ej/IXmIKHTBLJ3FPYyhUnAt65hXgTD7OJso3+1cc+AakLGTLrSm9pxxd2AsUkVbdYFsXyq0rQOkG71ULPrzYI/XfbIcjf8dleFkTlEi+bVNN3J3LzbY4uPhPztDbkcwBoawl1jhcGTkFdIUCfJ8s9zXAAKgHjeNLXwrdnfvlTn8sfJX3JvrQ9W1Ji2NhCzAg7/fgJ9wAmS+aWKKBuc3ge5DQYcTtIe8hBeKSh6WZkjdUOja6ytOwEGCA3KiCVTw42rP/njrMAR3rh2ptXQtlLekMIEtiN3QAnIWp8IDg8uBEKr0aye6m/IfKMNpbbyaKqaeBUhAgMBAAECggEAOp0rk+ElHx/FJBfAeQWj7rbT51NSqhNOy5ZgOvD7ExdFPpXdVGZxx4HfFuOcX4bz1UIrV8IEMvJc/WgTWYJRwgpcF/CKdryQVg6LTcLB4IIPMTCJIwSxWsgt2z+Rq/oPMR32i1dAqlvL707S9l6KhZ8wc+UwjcjwNTbwX29vTBdiTsFS6QJBaUytu+nHoHvVrpg4botifiokHR1JX0hWjxP/Dh29aooaIbSu80A2sRPLIvR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hg9SbA4/U3APCRJxgOfdfL2ZWIUQpQx2zC+1DyebkLHJdrB8fzZ6pBxP4qN2hz9hgAWyWH5CbnI+6Lya2qioawmt83NE7hFWC0lA7rCwLAlGFQQKBgBmpf03hpMEP6xfuWR6banW8ZR/MRUKTteOcPbGn0cIf06JZUV9K7StWkznAnerotcLtMO3LiJrv8GdKsfqquFg+SHyNIgAoa79c6/lZexcfGdPFezehHf48Sf0b632ONRF+kY8VTZ2/PHkRz6G2A8v1Eq4USlJkZi/s1/E+sWQBAoGAMU8mm9SGWka1hPYOI3ONCzeBbRBNulcS7B7luGcEbhPwi0p77xciSUy64GSVjZboD/DX9n3m7rU2GIqr50gkpQuTW9N9PNr7z74Tk36bCp5MpEeybMOgv8hovEQBa5PoTbAm9qMf9Xm1whQXUzhjcWR7vT4qAg1A+QXX58G9EkA=";
// //网关公钥 //网关公钥
// String APIGW_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwFgHD4kzEVPdOj03ctKM7KV+16bWZ5BMNgvEeuEQwfQYkRVwI9HFOGkwNTMn5hiJXHnlXYCX+zp5r6R52MY0O7BsTCLT7aHaxsANsvI9ABGx3OaTVlPB59M6GPbJh0uXvio0m1r/lTW3Z60RU6Q3oid/rNhP3CiNgg0W6O3AGqwIDAQAB"; String APIGW_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwFgHD4kzEVPdOj03ctKM7KV+16bWZ5BMNgvEeuEQwfQYkRVwI9HFOGkwNTMn5hiJXHnlXYCX+zp5r6R52MY0O7BsTCLT7aHaxsANsvI9ABGx3OaTVlPB59M6GPbJh0uXvio0m1r/lTW3Z60RU6Q3oid/rNhP3CiNgg0W6O3AGqwIDAQAB";
// //应用方加密串 //应用方加密串
// String AES_Key = "5xGJdh7qb+B95SUoxDlatg=="; String AES_Key = "5xGJdh7qb+B95SUoxDlatg==";
// DefaultIcbcClient client = new DefaultIcbcClient(APP_ID, IcbcConstants.SIGN_TYPE_RSA2, DefaultIcbcClient client = new DefaultIcbcClient(APP_ID, IcbcConstants.SIGN_TYPE_RSA2,
// MY_PRIVATE_KEY, IcbcConstants.CHARSET_UTF8, IcbcConstants.FORMAT_JSON, MY_PRIVATE_KEY, IcbcConstants.CHARSET_UTF8, IcbcConstants.FORMAT_JSON,
// APIGW_PUBLIC_KEY, IcbcConstants.ENCRYPT_TYPE_AES, AES_Key, null, null); APIGW_PUBLIC_KEY, IcbcConstants.ENCRYPT_TYPE_AES, AES_Key, null, null);
// JftApiPayB2bpayGenpreorderRequestV1 request = new JftApiPayB2bpayGenpreorderRequestV1(); JftApiPayB2bpayGenpreorderRequestV1 request = new JftApiPayB2bpayGenpreorderRequestV1();
// request.setServiceUrl("https://apipcs3.dccnet.com.cn/api/jft/api/pay/b2bpay/genpreorder/V1"); request.setServiceUrl("https://apipcs3.dccnet.com.cn/api/jft/api/pay/b2bpay/genpreorder/V1");
// JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz bizContent = JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz bizContent =
// new JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz(); new JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz();
// bizContent.setAppId(APP_ID); bizContent.setAppId(APP_ID);
// bizContent.setOutOrderId("202406200000066688"); bizContent.setOutOrderId("202406200000066688");
// bizContent.setPayMethod("05"); bizContent.setPayMethod("05");
// bizContent.setMultiRecFlag("0"); bizContent.setMultiRecFlag("0");
// bizContent.setStlFlag("0"); bizContent.setStlFlag("0");
// bizContent.setAsynFlag("0"); bizContent.setAsynFlag("0");
// bizContent.setOutVendorId("158742714"); bizContent.setOutVendorId("158742714");
// bizContent.setOutUserId("0202401200000000039"); bizContent.setOutUserId("0202401200000000039");
//// bizContent.setRecAcctId("123654123"); // bizContent.setRecAcctId("123654123");
//// bizContent.setPayerAcctId("1001765234"); // bizContent.setPayerAcctId("1001765234");
// bizContent.setTradeTime("2024-06-21 10:41:56"); bizContent.setTradeTime("2024-06-21 10:41:56");
// bizContent.setTrxChannel("01"); bizContent.setTrxChannel("01");
// bizContent.setTrxIp("172.16.24.98"); bizContent.setTrxIp("172.16.24.98");
// bizContent.setPayModeTool("5"); bizContent.setPayModeTool("5");
// bizContent.setPayPhoneno("18856151558"); bizContent.setPayPhoneno("18856151558");
// bizContent.setPayerType("1"); bizContent.setPayerType("1");
// bizContent.setOrderAmount("2.00"); bizContent.setOrderAmount("2.00");
// bizContent.setPayAmount("2.00"); bizContent.setPayAmount("2.00");
// bizContent.setFloatRate("888"); bizContent.setFloatRate("888");
// bizContent.setProvince("安徽"); bizContent.setProvince("安徽");
// bizContent.setCity("合肥市"); bizContent.setCity("合肥市");
// bizContent.setCounty("包河区"); bizContent.setCounty("包河区");
// bizContent.setEmail("123456@icbc.com"); bizContent.setEmail("123456@icbc.com");
// bizContent.setPhone("1388888888"); bizContent.setPhone("1388888888");
// bizContent.setAddress("安徽"); bizContent.setAddress("安徽");
// bizContent.setPost("5168845"); bizContent.setPost("5168845");
// bizContent.setPayRem("试一下"); bizContent.setPayRem("试一下");
// bizContent.setOrderRem("食品"); bizContent.setOrderRem("食品");
// bizContent.setAddRemark("食品"); bizContent.setAddRemark("食品");
// bizContent.setPayerName("aigc科技集团"); bizContent.setPayerName("aigc科技集团");
// bizContent.setPayerAcctNum("0200062009212528888"); bizContent.setPayerAcctNum("0200062009212528888");
// bizContent.setCurrency("001"); bizContent.setCurrency("001");
// bizContent.setPayerWalletId("1234567890123456789012"); bizContent.setPayerWalletId("1234567890123456789012");
// bizContent.setPayerWalletName("XXXXX有限公司"); bizContent.setPayerWalletName("XXXXX有限公司");
// bizContent.setNotifyUrl("http://www.xxx.com"); bizContent.setNotifyUrl("http://www.xxx.com");
// bizContent.setJumpUrl("http://www.xxx.com"); bizContent.setJumpUrl("http://www.xxx.com");
JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.Good
goodsInfo = new JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.Good();
goodsInfo.setGoodsSeqno("1");
goodsInfo.setGoodsName("牛肉干");
goodsInfo.setGoodsNum("10");
goodsInfo.setGoodsAmt("10");
goodsInfo.setWeight("肉干");
goodsInfo.setPrice("50");
goodsInfo.setSellerAddress("13866668");
goodsInfo.setSellerName("牛大");
goodsInfo.setUnits("斤");
goodsInfo.setOutVendorId("158742714");
// JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.Good // JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.Good
// goodsInfo = new JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.Good(); // goodsInfo2 = new JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.Good();
// goodsInfo.setGoodsSeqno("1"); // goodsInfo2.setGoodsSeqno("2");
// goodsInfo.setGoodsName("牛肉干"); // goodsInfo2.setGoodsName("商品");
// goodsInfo.setGoodsNum("10"); // goodsInfo2.setGoodsNum("10");
// goodsInfo.setGoodsAmt("10"); // goodsInfo2.setGoodsAmt("10");
// goodsInfo.setWeight("肉干"); // goodsInfo2.setWeight("商品规格");
// goodsInfo.setPrice("50"); // goodsInfo2.setPrice("50");
// goodsInfo.setSellerAddress("13866668"); // goodsInfo2.setSellerAddress("13866668");
// goodsInfo.setSellerName("牛大"); // goodsInfo2.setSellerName("张三");
// goodsInfo.setUnits("斤"); // goodsInfo2.setUnits("斤");
// goodsInfo.setOutVendorId("158742714"); // goodsInfo2.setOutVendorId("158742714");
//// JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.Good List<JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.Good> goodList = new ArrayList<>();
//// goodsInfo2 = new JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.Good(); goodList.add(goodsInfo);
//// goodsInfo2.setGoodsSeqno("2"); // goodList.add(goodsInfo2);
//// goodsInfo2.setGoodsName("商品"); bizContent.setGoodsInfo(goodList);
//// goodsInfo2.setGoodsNum("10"); JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.RecInfo
//// goodsInfo2.setGoodsAmt("10"); recInfo1 = new JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.RecInfo();
//// goodsInfo2.setWeight("商品规格"); recInfo1.setOutVendorId("158742714");
//// goodsInfo2.setPrice("50"); recInfo1.setRecAcctId("123654123");
//// goodsInfo2.setSellerAddress("13866668"); recInfo1.setTrxAmount("2.00");
//// goodsInfo2.setSellerName("张三"); recInfo1.setOrderAmount("2.00");
//// goodsInfo2.setUnits("斤");
//// goodsInfo2.setOutVendorId("158742714");
// List<JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.Good> goodList = new ArrayList<>();
// goodList.add(goodsInfo);
//// goodList.add(goodsInfo2);
// bizContent.setGoodsInfo(goodList);
// JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.RecInfo // JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.RecInfo
// recInfo1 = new JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.RecInfo(); // recInfo2 = new JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.RecInfo();
// recInfo1.setOutVendorId("158742714"); // recInfo2.setOutVendorId("158742714");
// recInfo1.setRecAcctId("123654123"); // recInfo2.setRecAcctId("04187335");
// recInfo1.setTrxAmount("2.00"); // recInfo2.setTrxAmount("1.00");
// recInfo1.setOrderAmount("2.00"); // recInfo2.setOrderAmount("1.00");
//// JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.RecInfo List<JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.RecInfo> recList = new ArrayList<>();
//// recInfo2 = new JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.RecInfo(); recList.add(recInfo1);
//// recInfo2.setOutVendorId("158742714"); // recList.add(recInfo2);
//// recInfo2.setRecAcctId("04187335"); bizContent.setRecList(recList);
//// recInfo2.setTrxAmount("1.00"); bizContent.setSummary("测试一下");
//// recInfo2.setOrderAmount("1.00"); bizContent.setPurpose("测试一下");
// List<JftApiPayB2bpayGenpreorderRequestV1.JftApiPayB2bpayGenpreorderRequestV1Biz.RecInfo> recList = new ArrayList<>(); request.setBizContent(bizContent);
// recList.add(recInfo1); try {
//// recList.add(recInfo2); JftApiPayB2bpayGenpreorderResponseV1 responseV1 = client.execute(request);
// bizContent.setRecList(recList); if ("00".equals(responseV1.getStatus())) {
// bizContent.setSummary("测试一下"); return R.ok();
// bizContent.setPurpose("测试一下"); } else {
// request.setBizContent(bizContent); return R.failed();
// try { }
// JftApiPayB2bpayGenpreorderResponseV1 responseV1 = client.execute(request); } catch (IcbcApiException e) {
// if ("00".equals(responseV1.getStatus())) { e.printStackTrace();
// return R.ok(); return R.ok();
// } else { }
// return R.failed(); }
// } }
// } catch (IcbcApiException e) {
// e.printStackTrace();
// return R.ok();
// }
// }
//}
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