Commit 73a04f28 authored by liwenbin's avatar liwenbin

f

parent 5963f360
......@@ -13,6 +13,7 @@ import com.quantgroup.asset.distribution.service.funding.IAidFundAuditOrderServi
import com.quantgroup.asset.distribution.service.jpa.entity.AidLoanFundAuditOrder;
import com.quantgroup.asset.distribution.service.jpa.entity.Asset;
import com.quantgroup.asset.distribution.service.niwodai.vo.NiwodaiCostant;
import com.quantgroup.asset.distribution.service.niwodai.vo.NiwodaiIncomingCallbackResponseVO;
import com.quantgroup.asset.distribution.service.niwodai.vo.NiwodaiIncomingResultResponseVO;
import com.quantgroup.asset.distribution.service.notify.INotifyService;
import com.quantgroup.asset.distribution.service.product.IFinanceProductService;
......@@ -20,9 +21,13 @@ import com.quantgroup.asset.distribution.service.redis.IRedisService;
import com.quantgroup.asset.distribution.util.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ResourceUtils;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.io.FileNotFoundException;
import java.util.Map;
/**
......@@ -49,7 +54,12 @@ public class NiWoDaiController {
private INotifyService notifyService;
@RequestMapping("/incoming/callback")
public GlobalResponse auditResultCallback(String orderId, String type, Integer code, Long timestamp, String data) {
public GlobalResponse auditResultCallback(@RequestBody NiwodaiIncomingCallbackResponseVO responseVO) {
String orderId = responseVO.getOrderId();
String type = responseVO.getType();
Integer code = responseVO.getCode();
Long timestamp = responseVO.getTimestamp();
String data = responseVO.getData();
log.info("你我贷审核进件回调收到结果, orderId : {}, type : {}, code : {}, timestamp : {}, data : {}", orderId,
type, code, timestamp, data);
AidLoanFundAuditOrder aidLoanFundAuditOrder = aidFundAuditOrderService.findByBizNoAndFundId(orderId, AidFundConstants.FundId.NIWODAI);
......@@ -112,7 +122,8 @@ public class NiWoDaiController {
return true;
}
public static void main(String[] args) {
System.out.println(System.currentTimeMillis());
public static void main(String[] args) throws FileNotFoundException {
System.out.println(ResourceUtils.getURL("classpath:").getPath());
}
}
package com.quantgroup.asset.distribution.service.niwodai.vo;
import lombok.Data;
import java.io.Serializable;
/**
* @author : Hyuk
* @description : NiwodaiIncomingCallbackResponseVO
* @date : 2020/4/2 11:43 上午
*/
@Data
public class NiwodaiIncomingCallbackResponseVO implements Serializable {
private static final long serialVersionUID = 1L;
private String orderId;
private String type;
private Integer code;
private Long timestamp;
private String data;
}
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