Commit 6b3b4bef by liyanlin

fix

parent c6e6e66e
package com.blt.other.module.cost.controller; package com.blt.other.module.cost.controller;
import com.blt.other.module.commons.dto.FinansysDetailDto;
import com.blt.other.module.cost.vo.ApplyCallbackUrlVo; import com.blt.other.module.cost.vo.ApplyCallbackUrlVo;
import com.blt.other.module.cost.vo.CashierCallbackUrlVo; import com.blt.other.module.cost.vo.CashierCallbackUrlVo;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
...@@ -13,6 +14,7 @@ import org.springframework.web.client.RestTemplate; ...@@ -13,6 +14,7 @@ import org.springframework.web.client.RestTemplate;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map; import java.util.Map;
/** /**
...@@ -61,4 +63,10 @@ public class CostApi4k { ...@@ -61,4 +63,10 @@ public class CostApi4k {
, cashierCallbackUrlVo,Map.class); , cashierCallbackUrlVo,Map.class);
return responseEntity.getBody(); return responseEntity.getBody();
} }
@PostMapping("/finansys/detail")
public FinansysDetailDto getCostFinansysDetailDto(HttpServletResponse response, HttpServletRequest request){
ResponseEntity<FinansysDetailDto> responseEntity = restTemplate.postForEntity(BASE_URL + "/cost/finansys/detail", request,FinansysDetailDto.class);
return responseEntity.getBody();
}
} }
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