大庆担保项目创建

master
shijie 4 years ago
parent 12561f35f6
commit 0d6580edc6
  1. 17
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgApplyAmountInfoController.java
  2. 24
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/feign/CrmsFeignService.java
  3. 4
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/request/DgApplyAmountInfoRequest.java
  4. 4
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgApplyAmountInfoResponse.java

@ -1,10 +1,18 @@
package com.daqing.financial.guarantee.controller;
import com.daqing.financial.guarantee.model.request.DgApplyAmountInfoRequest;
import com.daqing.framework.domain.hrms.request.UpdatePwdRequest;
import com.daqing.framework.model.response.ResponseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.validation.Valid;
/**
* <p>
* 申请贷款信息 前端控制器
@ -17,4 +25,13 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/dg-apply-amount-info")
public class DgApplyAmountInfoController {
@PostMapping("/companyInfoBySth")
@ApiOperation(value = "根据客户编号/客户名称获取企业信息")
public ResponseResult companyInfoBySth(@RequestBody DgApplyAmountInfoRequest applyAmountInfo){
//远程调用crms查询企业信息
/* boolean result = userLoginService.updatePwd(user);
return result ? ResponseResult.SUCCESS() : ResponseResult.FAIL();*/
return ResponseResult.SUCCESS();
}
}

@ -0,0 +1,24 @@
package com.daqing.financial.guarantee.feign;
import com.daqing.framework.model.response.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.Map;
/**
* 这是一个声明式的远程调用
*/
@FeignClient(value = "dq-financial-crms", contextId = "guaranteeToCrms")
public interface CrmsFeignService {
/**
* 根据客户编号/客户名称获取企业信息
* @param params
* @return
*/
@GetMapping("/crms/customer/list")
ResponseResult list(@RequestParam Map<String, Object> params);
}

@ -0,0 +1,4 @@
package com.daqing.financial.guarantee.model.request;
public class DgApplyAmountInfoRequest {
}

@ -0,0 +1,4 @@
package com.daqing.financial.guarantee.model.response;
public class DgApplyAmountInfoResponse {
}
Loading…
Cancel
Save