
18 changed files with 776 additions and 3 deletions
@ -0,0 +1,62 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loancapitalcreditresult; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(资方信审终审结果反馈) <br/> |
|||
* File: LoanCapitalCreditResult.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResult <br/> |
|||
* Description: 资方信审终审结果反馈. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-25 11:06:15 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "资方信审终审结果反馈", description = "资方信审终审结果反馈") |
|||
@TableName("loan_capital_credit_result") |
|||
public class LoanCapitalCreditResult extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("资方信审时间") |
|||
private String capCarefulDate; // 资方信审时间
|
|||
@ApiModelProperty("资方信审结果") |
|||
private String capCarefulResult; // 资方信审结果
|
|||
@ApiModelProperty("销售订单sid") |
|||
private String saleOrderSid; // 销售订单sid
|
|||
@ApiModelProperty("销售订单消贷合同sid") |
|||
private String loanContractSid; // 销售订单消贷合同sid
|
|||
|
|||
} |
@ -0,0 +1,63 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loancapitalcreditresult; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(资方信审终审结果反馈) <br/> |
|||
* File: LoanCapitalCreditResultVo.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultVo <br/> |
|||
* Description: 资方信审终审结果反馈 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-25 11:06:15 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "资方信审终审结果反馈 视图数据详情", description = "资方信审终审结果反馈 视图数据详情") |
|||
public class LoanCapitalCreditResultDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("资方信审时间") |
|||
private String capCarefulDate; // 资方信审时间
|
|||
@ApiModelProperty("资方信审结果") |
|||
private String capCarefulResult; // 资方信审结果
|
|||
@ApiModelProperty("销售订单sid") |
|||
private String saleOrderSid; // 销售订单sid
|
|||
@ApiModelProperty("销售订单消贷合同sid") |
|||
private String loanContractSid; // 销售订单消贷合同sid
|
|||
|
|||
} |
@ -0,0 +1,63 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loancapitalcreditresult; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(资方信审终审结果反馈) <br/> |
|||
* File: LoanCapitalCreditResultDto.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultDto <br/> |
|||
* Description: 资方信审终审结果反馈 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-25 11:06:15 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "资方信审终审结果反馈 数据传输对象", description = "资方信审终审结果反馈 数据传输对象") |
|||
public class LoanCapitalCreditResultDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("资方信审时间") |
|||
private String capCarefulDate; // 资方信审时间
|
|||
@ApiModelProperty("资方信审结果") |
|||
private String capCarefulResult; // 资方信审结果
|
|||
@ApiModelProperty("销售订单sid") |
|||
private String saleOrderSid; // 销售订单sid
|
|||
@ApiModelProperty("销售订单消贷合同sid") |
|||
private String loanContractSid; // 销售订单消贷合同sid
|
|||
|
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loancapitalcreditresult; |
|||
|
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(资方信审终审结果反馈) <br/> |
|||
* File: LoanCapitalCreditResultFeign.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultFeign <br/> |
|||
* Description: 资方信审终审结果反馈. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-25 11:06:15 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "资方信审终审结果反馈") |
|||
@FeignClient( |
|||
contextId = "anrui-riskcenter-LoanCapitalCreditResult", |
|||
name = "anrui-riskcenter", |
|||
path = "v1/loancapitalcreditresult", |
|||
fallback = LoanCapitalCreditResultFeignFallback.class) |
|||
public interface LoanCapitalCreditResultFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<LoanCapitalCreditResultVo>> listPage(@RequestBody PagerQuery<LoanCapitalCreditResultQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody LoanCapitalCreditResultDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<LoanCapitalCreditResultDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loancapitalcreditresult; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(资方信审终审结果反馈) <br/> |
|||
* File: LoanCapitalCreditResultFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultFeignFallback <br/> |
|||
* Description: 资方信审终审结果反馈. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-25 11:06:15 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class LoanCapitalCreditResultFeignFallback implements LoanCapitalCreditResultFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<LoanCapitalCreditResultVo>> listPage(PagerQuery<LoanCapitalCreditResultQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-riskcenter/loancapitalcreditresult/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(LoanCapitalCreditResultDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loancapitalcreditresult/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui-riskcenter/loancapitalcreditresult/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<LoanCapitalCreditResultDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui-riskcenter/loancapitalcreditresult/fetchDetailsBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,61 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loancapitalcreditresult; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(资方信审终审结果反馈) <br/> |
|||
* File: LoanCapitalCreditResultQuery.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultQuery <br/> |
|||
* Description: 资方信审终审结果反馈 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-25 11:06:15 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "资方信审终审结果反馈 查询条件", description = "资方信审终审结果反馈 查询条件") |
|||
public class LoanCapitalCreditResultQuery implements Query { |
|||
|
|||
@ApiModelProperty("资方信审时间") |
|||
private String capCarefulDate; // 资方信审时间
|
|||
@ApiModelProperty("资方信审结果") |
|||
private String capCarefulResult; // 资方信审结果
|
|||
@ApiModelProperty("销售订单sid") |
|||
private String saleOrderSid; // 销售订单sid
|
|||
@ApiModelProperty("销售订单消贷合同sid") |
|||
private String loanContractSid; // 销售订单消贷合同sid
|
|||
|
|||
} |
@ -0,0 +1,63 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.api.loancapitalcreditresult; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(资方信审终审结果反馈) <br/> |
|||
* File: LoanCapitalCreditResultVo.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultVo <br/> |
|||
* Description: 资方信审终审结果反馈 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-25 11:06:15 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "资方信审终审结果反馈 视图数据对象", description = "资方信审终审结果反馈 视图数据对象") |
|||
public class LoanCapitalCreditResultVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("资方信审时间") |
|||
private String capCarefulDate; // 资方信审时间
|
|||
@ApiModelProperty("资方信审结果") |
|||
private String capCarefulResult; // 资方信审结果
|
|||
@ApiModelProperty("销售订单sid") |
|||
private String saleOrderSid; // 销售订单sid
|
|||
@ApiModelProperty("销售订单消贷合同sid") |
|||
private String loanContractSid; // 销售订单消贷合同sid
|
|||
|
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.biz.loancapitalcreditresult; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.toolkit.Constants; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.apache.ibatis.annotations.Select; |
|||
import com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResult; |
|||
import com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(资方信审终审结果反馈) <br/> |
|||
* File: LoanCapitalCreditResultMapper.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.biz.loancapitalcreditresult.LoanCapitalCreditResultMapper <br/> |
|||
* Description: 资方信审终审结果反馈. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-25 11:06:15 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface LoanCapitalCreditResultMapper extends BaseMapper<LoanCapitalCreditResult> { |
|||
|
|||
//@Update("update loan_capital_credit_result set name=#{msg} where id=#{id}")
|
|||
//IPage<LoanCapitalCreditResultVo> voPage(IPage<LoanCapitalCreditResult> page, @Param(Constants.WRAPPER) QueryWrapper<LoanCapitalCreditResult> qw);
|
|||
|
|||
IPage<LoanCapitalCreditResultVo> selectPageVo(IPage<LoanCapitalCreditResult> page, @Param(Constants.WRAPPER) Wrapper<LoanCapitalCreditResult> qw); |
|||
|
|||
List<LoanCapitalCreditResultVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<LoanCapitalCreditResult> qw); |
|||
|
|||
@Select("select * from loan_capital_credit_result") |
|||
List<LoanCapitalCreditResultVo> selectListVo(); |
|||
} |
@ -0,0 +1,13 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.yxt.anrui.riskcenter.biz.loancapitalcreditresult.LoanCapitalCreditResultMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultVo"> |
|||
SELECT * FROM loan_capital_credit_result <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultVo"> |
|||
SELECT * FROM loan_capital_credit_result <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,100 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.biz.loancapitalcreditresult; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
import com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResult; |
|||
import com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultQuery; |
|||
import com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultVo; |
|||
import com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultDetailsVo; |
|||
import com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultDto; |
|||
import com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultFeign; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(资方信审终审结果反馈) <br/> |
|||
* File: LoanCapitalCreditResultFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.biz.loancapitalcreditresult.LoanCapitalCreditResultRest <br/> |
|||
* Description: 资方信审终审结果反馈. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-25 11:06:15 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "资方信审终审结果反馈") |
|||
@RestController("com.yxt.anrui.riskcenter.biz.loancapitalcreditresult.LoanCapitalCreditResultRest") |
|||
@RequestMapping("v1/loancapitalcreditresult") |
|||
public class LoanCapitalCreditResultRest implements LoanCapitalCreditResultFeign { |
|||
|
|||
@Autowired |
|||
private LoanCapitalCreditResultService loanCapitalCreditResultService; |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<LoanCapitalCreditResultVo>> listPage(@RequestBody PagerQuery<LoanCapitalCreditResultQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<LoanCapitalCreditResultVo> pv = loanCapitalCreditResultService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody LoanCapitalCreditResultDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
loanCapitalCreditResultService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
loanCapitalCreditResultService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<LoanCapitalCreditResultDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanCapitalCreditResultDetailsVo vo = loanCapitalCreditResultService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,110 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.riskcenter.biz.loancapitalcreditresult; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.common.base.utils.PagerUtil; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResult; |
|||
import com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultQuery; |
|||
import com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultVo; |
|||
import com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultDetailsVo; |
|||
import com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultDto; |
|||
import com.yxt.anrui.riskcenter.api.loancapitalcreditresult.LoanCapitalCreditResultFeign; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(资方信审终审结果反馈) <br/> |
|||
* File: LoanCapitalCreditResultService.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.biz.loancapitalcreditresult.LoanCapitalCreditResultService <br/> |
|||
* Description: 资方信审终审结果反馈 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-08-25 11:06:15 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class LoanCapitalCreditResultService extends MybatisBaseService<LoanCapitalCreditResultMapper, LoanCapitalCreditResult> { |
|||
private QueryWrapper<LoanCapitalCreditResult> createQueryWrapper(LoanCapitalCreditResultQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<LoanCapitalCreditResult> qw = new QueryWrapper<>(); |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<LoanCapitalCreditResultVo> listPageVo(PagerQuery<LoanCapitalCreditResultQuery> pq) { |
|||
LoanCapitalCreditResultQuery query = pq.getParams(); |
|||
QueryWrapper<LoanCapitalCreditResult> qw = createQueryWrapper(query); |
|||
IPage<LoanCapitalCreditResult> page = PagerUtil.queryToPage(pq); |
|||
IPage<LoanCapitalCreditResultVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<LoanCapitalCreditResultVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public void saveOrUpdateDto(LoanCapitalCreditResultDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
this.insertByDto(dto); |
|||
return; |
|||
} |
|||
this.updateByDto(dto); |
|||
} |
|||
|
|||
public void insertByDto(LoanCapitalCreditResultDto dto){ |
|||
LoanCapitalCreditResult entity = new LoanCapitalCreditResult(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
} |
|||
|
|||
public void updateByDto(LoanCapitalCreditResultDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
LoanCapitalCreditResult entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public LoanCapitalCreditResultDetailsVo fetchDetailsVoBySid(String sid){ |
|||
LoanCapitalCreditResult entity = fetchBySid(sid); |
|||
LoanCapitalCreditResultDetailsVo vo = new LoanCapitalCreditResultDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
} |
Loading…
Reference in new issue