69 changed files with 1764 additions and 83 deletions
@ -0,0 +1,48 @@ |
|||||
|
package com.yxt.anrui.buscenter.api.bussalesorderborrower; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/9/11 9:09 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class BusNoGuaranteeCreditReviewQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("用户sid") |
||||
|
private String userSid; |
||||
|
@ApiModelProperty("组织全路径") |
||||
|
private String orgPath; |
||||
|
@ApiModelProperty("菜单sid") |
||||
|
private String menuSid; |
||||
|
@ApiModelProperty("菜单url") |
||||
|
private String menuUrl; |
||||
|
@ApiModelProperty("分公司") |
||||
|
private String company; |
||||
|
@ApiModelProperty("销售部门") |
||||
|
private String department; |
||||
|
@ApiModelProperty("销售专员") |
||||
|
private String salesman; |
||||
|
@ApiModelProperty("订单开始日期") |
||||
|
private String startTime; |
||||
|
@ApiModelProperty("订单结束日期") |
||||
|
private String endTime; |
||||
|
@ApiModelProperty("贷款人") |
||||
|
private String borrowerName; |
||||
|
@ApiModelProperty("消贷合同编号") |
||||
|
private String contractNo; |
||||
|
@ApiModelProperty("资方") |
||||
|
private String bankName; |
||||
|
@ApiModelProperty("家访考察结果") |
||||
|
private String homeVisit; |
||||
|
@ApiModelProperty("信审终审结果") |
||||
|
private String creditReview; |
||||
|
@ApiModelProperty("放款审核结果") |
||||
|
private String loanReview; |
||||
|
@ApiModelProperty("是否放款") |
||||
|
private String isLoan; |
||||
|
|
||||
|
} |
@ -0,0 +1,50 @@ |
|||||
|
package com.yxt.anrui.buscenter.api.bussalesorderborrower; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/9/11 9:09 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class BusNoGuaranteeCreditReviewVo implements Vo { |
||||
|
|
||||
|
|
||||
|
@ApiModelProperty("订单日期") |
||||
|
private String orderDate; |
||||
|
@ApiModelProperty("分公司") |
||||
|
private String company; |
||||
|
@ApiModelProperty("销售部门") |
||||
|
private String department; |
||||
|
@ApiModelProperty("销售专员") |
||||
|
private String salesman; |
||||
|
@ApiModelProperty("贷款人") |
||||
|
private String borrowerName; |
||||
|
@ApiModelProperty("消贷合同编号") |
||||
|
private String contractNo; |
||||
|
@ApiModelProperty("资方") |
||||
|
private String bankName; |
||||
|
@ApiModelProperty("手机号码") |
||||
|
private String mobile; |
||||
|
@ApiModelProperty("家访考察结果") |
||||
|
private String homeVisit; |
||||
|
@ApiModelProperty("家访考察日期") |
||||
|
private String homeVisitDate; |
||||
|
@ApiModelProperty("信审终审结果") |
||||
|
private String creditReview; |
||||
|
@ApiModelProperty("信审终审日期") |
||||
|
private String creditReviewDate; |
||||
|
@ApiModelProperty("放款审核结果") |
||||
|
private String loanReview; |
||||
|
@ApiModelProperty("放款审核日期") |
||||
|
private String loanReviewDate; |
||||
|
@ApiModelProperty("是否放款") |
||||
|
private String isLoan; |
||||
|
@ApiModelProperty("放款日期") |
||||
|
private String isLoanDate; |
||||
|
|
||||
|
|
||||
|
} |
@ -1,27 +1,58 @@ |
|||||
<?xml version="1.0" encoding="UTF-8" ?> |
<?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"> |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.yxt.anrui.buscenter.biz.bussalesorderborrower.BusSalesOrderBorrowerMapper"> |
<mapper namespace="com.yxt.anrui.buscenter.biz.bussalesorderborrower.BusSalesOrderBorrowerMapper"> |
||||
<!-- <where> ${ew.sqlSegment} </where>--> |
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
<!-- ${ew.customSqlSegment} --> |
<!-- ${ew.customSqlSegment} --> |
||||
<select id="selectPageVo" resultType="com.yxt.anrui.buscenter.api.bussalesorderborrower.BusSalesOrderBorrowerVo"> |
<select id="selectPageVo" resultType="com.yxt.anrui.buscenter.api.bussalesorderborrower.BusSalesOrderBorrowerVo"> |
||||
SELECT * FROM bus_sales_order_borrower <where> ${ew.sqlSegment} </where> |
SELECT * FROM bus_sales_order_borrower |
||||
</select> |
<where>${ew.sqlSegment}</where> |
||||
|
</select> |
||||
|
|
||||
<select id="selectListAllVo" resultType="com.yxt.anrui.buscenter.api.bussalesorderborrower.BusSalesOrderBorrowerVo"> |
<select id="selectListAllVo" resultType="com.yxt.anrui.buscenter.api.bussalesorderborrower.BusSalesOrderBorrowerVo"> |
||||
SELECT * FROM bus_sales_order_borrower <where> ${ew.sqlSegment} </where> |
SELECT * FROM bus_sales_order_borrower |
||||
</select> |
<where>${ew.sqlSegment}</where> |
||||
|
</select> |
||||
|
|
||||
<select id="selectBySalesOrderSid" resultType="int"> |
<select id="selectBySalesOrderSid" resultType="int"> |
||||
select ifnull(sum(vehCount),0) from bus_sales_order_borrower where salesOrderSid = #{sid} |
select ifnull(sum(vehCount), 0) |
||||
|
from bus_sales_order_borrower |
||||
|
where salesOrderSid = #{sid} |
||||
</select> |
</select> |
||||
|
|
||||
<select id="selectBySid" resultType="com.yxt.anrui.riskcenter.api.loanfinpolicy.LoanFinPolicy"> |
<select id="selectBySid" resultType="com.yxt.anrui.riskcenter.api.loanfinpolicy.LoanFinPolicy"> |
||||
select lp.* from anrui_riskcenter.loan_solutions ls |
select lp.* |
||||
left join anrui_riskcenter.loan_fin_policy lp on lp.sid = ls.policySid |
from anrui_riskcenter.loan_solutions ls |
||||
where ls.salesOrderSid = #{sid} |
left join anrui_riskcenter.loan_fin_policy lp on lp.sid = ls.policySid |
||||
|
where ls.salesOrderSid = #{sid} |
||||
</select> |
</select> |
||||
|
|
||||
<select id="selectByOrderSid" resultType="com.yxt.anrui.buscenter.api.bussalesorderborrower.BusSalesOrderBorrower"> |
<select id="selectByOrderSid" resultType="com.yxt.anrui.buscenter.api.bussalesorderborrower.BusSalesOrderBorrower"> |
||||
select * from bus_sales_order_borrower where salesOrderSid = #{sid} and customSid = #{customerSid} |
select * |
||||
</select> |
from bus_sales_order_borrower |
||||
|
where salesOrderSid = #{sid} |
||||
|
and customSid = #{customerSid} |
||||
|
</select> |
||||
|
<select id="noGuaranteeCreditReviewPage" |
||||
|
resultType="com.yxt.anrui.buscenter.api.bussalesorderborrower.BusNoGuaranteeCreditReviewVo"> |
||||
|
SELECT bo.sid AS salesOrderSid, |
||||
|
DATE_FORMAT(bo.createDate, '%Y-%m-%d') AS orderDate, |
||||
|
bo.useOrgName AS company, |
||||
|
bo.orgName AS department, |
||||
|
bo.staffName AS salesman, |
||||
|
bo.contractNo AS contractNo, |
||||
|
bor.borrowerName AS borrowerName, |
||||
|
bor.bankName AS bankName, |
||||
|
bor.mobile AS mobile, |
||||
|
cr.homeVisit AS homeVisit, |
||||
|
cr.homeVisitDate AS homeVisitDate, |
||||
|
cr.creditReview AS creditReview, |
||||
|
cr.creditReviewDate AS creditReviewDate, |
||||
|
cr.loanReview AS loanReview, |
||||
|
cr.loanReviewDate AS loanReviewDate, |
||||
|
cr.isLoan AS isLoan, |
||||
|
cr.isLoanDate AS isLoanDate |
||||
|
FROM bus_sales_order_borrower AS bor |
||||
|
LEFT JOIN bus_sales_order AS bo ON bor.salesOrderSid = bo.sid |
||||
|
LEFT JOIN anrui_riskcenter.loan_noguarantee_credit_review AS cr ON cr.salesOrderSid = bo.sid |
||||
|
</select> |
||||
</mapper> |
</mapper> |
@ -0,0 +1,29 @@ |
|||||
|
package com.yxt.anrui.flowable.api.flow2; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2023/9/10 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class FlowableMessageVo implements Vo { |
||||
|
private static final long serialVersionUID = 5680927155476931545L; |
||||
|
@ApiModelProperty("流程id") |
||||
|
private String proDefId; |
||||
|
@ApiModelProperty("流程实例id") |
||||
|
private String procInstId; |
||||
|
@ApiModelProperty("环节名称") |
||||
|
private String nodeName; |
||||
|
@ApiModelProperty("环节id") |
||||
|
private String taskDefKey; |
||||
|
@ApiModelProperty("审核人员、被催办人") |
||||
|
private String assignee; |
||||
|
@ApiModelProperty("接收时间") |
||||
|
private String createTime; |
||||
|
|
||||
|
private String taskId; |
||||
|
} |
@ -1,4 +1,16 @@ |
|||||
<?xml version="1.0" encoding="UTF-8" ?> |
<?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"> |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.yxt.anrui.flowable.biz.flow2.FlowMapper"> |
<mapper namespace="com.yxt.anrui.flowable.biz.flow2.FlowMapper"> |
||||
|
<select id="getMessageList" resultType="com.yxt.anrui.flowable.api.flow2.FlowableMessageVo"> |
||||
|
select TIMESTAMPDIFF(SECOND, CREATE_TIME_, NOW()) as yuTime, |
||||
|
PROC_DEF_ID_ as proDefId, |
||||
|
PROC_INST_ID_ as procInstId, |
||||
|
TASK_DEF_KEY_ as taskDefKey, |
||||
|
NAME_ as nodeName, |
||||
|
ASSIGNEE_ as assignee, |
||||
|
CREATE_TIME_ as createTime, |
||||
|
ID_ taskId, |
||||
|
from act_ru_task |
||||
|
HAVING yuTime > (#{minutes} * 60) |
||||
|
</select> |
||||
</mapper> |
</mapper> |
@ -0,0 +1,36 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loannoguaranteecreditreview; |
||||
|
|
||||
|
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; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/8/16 14:34 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "公司非担保业务进度维护", description = "公司非担保业务进度维护") |
||||
|
@TableName("loan_noguarantee_credit_review") |
||||
|
public class LoanNoGuaranteeCreditReview extends BaseEntity { |
||||
|
@ApiModelProperty("销售订单sid") |
||||
|
private String salesOrderSid; |
||||
|
@ApiModelProperty("家访考察结果") |
||||
|
private String homeVisit; |
||||
|
@ApiModelProperty("家访考察日期") |
||||
|
private String homeVisitDate; |
||||
|
@ApiModelProperty("信审终审结果") |
||||
|
private String creditReview; |
||||
|
@ApiModelProperty("信审终审日期") |
||||
|
private String creditReviewDate; |
||||
|
@ApiModelProperty("放款审核结果") |
||||
|
private String loanReview; |
||||
|
@ApiModelProperty("放款审核日期") |
||||
|
private String loanReviewDate; |
||||
|
@ApiModelProperty("是否放款") |
||||
|
private String isLoan; |
||||
|
@ApiModelProperty("放款日期") |
||||
|
private String isLoanDate; |
||||
|
} |
@ -0,0 +1,44 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loannoguaranteecreditreview; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/8/21 9:13 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class LoanNoGuaranteeCreditReviewDetailsVo implements Vo { |
||||
|
private String salesOrderSid; |
||||
|
@ApiModelProperty("销售专员") |
||||
|
private String salesman; |
||||
|
@ApiModelProperty("贷款人") |
||||
|
private String borrowerName; |
||||
|
@ApiModelProperty("家访考察结果") |
||||
|
private String homeVisit; |
||||
|
@ApiModelProperty("家访考察日期") |
||||
|
private String homeVisitDate; |
||||
|
@ApiModelProperty("信审终审结果") |
||||
|
private String creditReview; |
||||
|
@ApiModelProperty("信审终审日期") |
||||
|
private String creditReviewDate; |
||||
|
@ApiModelProperty("放款审核结果") |
||||
|
private String loanReview; |
||||
|
@ApiModelProperty("放款审核日期") |
||||
|
private String loanReviewDate; |
||||
|
@ApiModelProperty("是否放款") |
||||
|
private String isLoan; |
||||
|
@ApiModelProperty("放款日期") |
||||
|
private String isLoanDate; |
||||
|
@ApiModelProperty("家访考察结果截图") |
||||
|
private List<String> homeVisitFiles = new ArrayList<>(); |
||||
|
@ApiModelProperty("信审终审结果截图") |
||||
|
private List<String> creditReviewFiles = new ArrayList<>(); |
||||
|
@ApiModelProperty("放款审核结果截图") |
||||
|
private List<String> loanReviewFiles = new ArrayList<>(); |
||||
|
} |
@ -0,0 +1,46 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loannoguaranteecreditreview; |
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/8/21 9:12 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class LoanNoGuaranteeCreditReviewDto implements Dto { |
||||
|
|
||||
|
private String salesOrderSid; |
||||
|
@ApiModelProperty("销售专员") |
||||
|
private String salesman; |
||||
|
@ApiModelProperty("贷款人") |
||||
|
private String borrowerName; |
||||
|
@ApiModelProperty("家访考察结果") |
||||
|
private String homeVisit; |
||||
|
@ApiModelProperty("家访考察日期") |
||||
|
private String homeVisitDate; |
||||
|
@ApiModelProperty("信审终审结果") |
||||
|
private String creditReview; |
||||
|
@ApiModelProperty("信审终审日期") |
||||
|
private String creditReviewDate; |
||||
|
@ApiModelProperty("放款审核结果") |
||||
|
private String loanReview; |
||||
|
@ApiModelProperty("放款审核日期") |
||||
|
private String loanReviewDate; |
||||
|
@ApiModelProperty("是否放款") |
||||
|
private String isLoan; |
||||
|
@ApiModelProperty("放款日期") |
||||
|
private String isLoanDate; |
||||
|
@ApiModelProperty("家访考察结果截图") |
||||
|
private List<String> homeVisitFiles = new ArrayList<>(); |
||||
|
@ApiModelProperty("信审终审结果截图") |
||||
|
private List<String> creditReviewFiles = new ArrayList<>(); |
||||
|
@ApiModelProperty("放款审核结果截图") |
||||
|
private List<String> loanReviewFiles = new ArrayList<>(); |
||||
|
|
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loannoguaranteecreditreview; |
||||
|
|
||||
|
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; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/8/16 14:36 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class LoanNoGuaranteeCreditReviewFallback implements LoanNoGuaranteeCreditReviewFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<LoanNoGuaranteeCreditReviewDetailsVo> details(String salesOrderSid) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<String> saveReviewInfo(LoanNoGuaranteeCreditReviewDto dto) { |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,41 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loannoguaranteecreditreview; |
||||
|
|
||||
|
import com.yxt.anrui.riskcenter.api.loanwarrantinformation.LoanAuditInfoDto; |
||||
|
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.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @description: 风控参数 |
||||
|
* @author: fan |
||||
|
* @date: 2023/7/6 |
||||
|
**/ |
||||
|
@Api(tags = "公司非担保业务进度维护") |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-riskcenter-LoanNoGuaranteeCreditReview", |
||||
|
name = "anrui-riskcenter", |
||||
|
path = "v1/noguaranteereview", |
||||
|
fallback = LoanNoGuaranteeCreditReviewFallback.class) |
||||
|
public interface LoanNoGuaranteeCreditReviewFeign { |
||||
|
|
||||
|
@ApiOperation("编辑回显、详情") |
||||
|
@PostMapping("/details") |
||||
|
@ResponseBody |
||||
|
public ResultBean<LoanNoGuaranteeCreditReviewDetailsVo> details(@RequestParam("salesOrderSid") String salesOrderSid); |
||||
|
|
||||
|
/** |
||||
|
* 办理保存 |
||||
|
* |
||||
|
* @param |
||||
|
*/ |
||||
|
@ApiOperation("审核保存") |
||||
|
@PostMapping("/saveReviewInfo") |
||||
|
public ResultBean<String> saveReviewInfo(@RequestBody LoanNoGuaranteeCreditReviewDto dto); |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,29 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loannoguaranteecreditreview; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/8/16 15:05 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class LoanNoGuaranteeCreditReviewQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("参数编码") |
||||
|
private String parameterNo; |
||||
|
@ApiModelProperty("参数名称") |
||||
|
private String parameterName; |
||||
|
@ApiModelProperty("组织全路径") |
||||
|
private String orgPath; |
||||
|
@ApiModelProperty("菜单sid") |
||||
|
private String menuSid; |
||||
|
@ApiModelProperty("菜单url") |
||||
|
private String menuUrl; |
||||
|
@ApiModelProperty("用户sid") |
||||
|
private String userSid; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loannoguaranteecreditreview; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/8/16 15:04 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class LoanNoGuaranteeCreditReviewVo implements Vo { |
||||
|
private String sid; |
||||
|
@ApiModelProperty("参数编码") |
||||
|
private String parameterNo; |
||||
|
@ApiModelProperty("参数名称") |
||||
|
private String parameterName; |
||||
|
@ApiModelProperty("参数值") |
||||
|
private String parameterValue; |
||||
|
@ApiModelProperty("备注") |
||||
|
private String remarks; |
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loanrepaymentschedule; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/9/11 14:00 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AppRepaymentPlanDetailsVo implements Vo { |
||||
|
@ApiModelProperty("sid") |
||||
|
private String sid; |
||||
|
@ApiModelProperty("合同号") |
||||
|
private String contractId; |
||||
|
@ApiModelProperty("贷款人名称") |
||||
|
private String lenderName; |
||||
|
@ApiModelProperty("车辆台数") |
||||
|
private String carNumber; |
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; |
||||
|
@ApiModelProperty("资方") |
||||
|
private String managementName; |
||||
|
@ApiModelProperty("金融产品") |
||||
|
private String financial; |
||||
|
@ApiModelProperty("销售专员") |
||||
|
private String salesName; |
||||
|
private List<AppRepaymentPlanListDetailsVo> records = new ArrayList<>(); |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loanrepaymentschedule; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/9/11 14:03 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AppRepaymentPlanListDetailsVo implements Vo { |
||||
|
private String times; |
||||
|
private String otherTimes; |
||||
|
private String number; |
||||
|
private String total; |
||||
|
private String month; |
||||
|
private String monthlyPayment; |
||||
|
private String otherMonthlyPayment; |
||||
|
private String companyMonthlyPayment; |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loanrepaymentschedule; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/9/11 11:56 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AppRepaymentPlanQuery implements Query { |
||||
|
@ApiModelProperty("用户sid") |
||||
|
private String userSid; |
||||
|
|
||||
|
@ApiModelProperty("合同编号/贷款人姓名/资方名称") |
||||
|
private String names; |
||||
|
|
||||
|
@ApiModelProperty("当前组织机构全路径sid") |
||||
|
private String orgPath; |
||||
|
|
||||
|
} |
@ -0,0 +1,32 @@ |
|||||
|
package com.yxt.anrui.riskcenter.api.loanrepaymentschedule; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/9/11 11:54 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AppRepaymentPlanVo implements Vo { |
||||
|
@ApiModelProperty("业务sid") |
||||
|
private String sid; |
||||
|
@ApiModelProperty("消贷合同编号") |
||||
|
private String contractId; |
||||
|
@ApiModelProperty("贷款人名称") |
||||
|
private String lenderName; |
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; |
||||
|
@ApiModelProperty("资方") |
||||
|
private String managementName; |
||||
|
@ApiModelProperty("金融产品") |
||||
|
private String financial; |
||||
|
@ApiModelProperty("销售专员") |
||||
|
private String salesName; |
||||
|
@ApiModelProperty("车辆台数") |
||||
|
private String carNum; |
||||
|
@ApiModelProperty("下载路径") |
||||
|
private String downloadUrl; |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.yxt.anrui.riskcenter.biz.loannoguaranteecreditreview; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import com.yxt.anrui.riskcenter.api.loannoguaranteecreditreview.LoanNoGuaranteeCreditReview; |
||||
|
import com.yxt.anrui.riskcenter.api.loanparameter.LoanParameter; |
||||
|
import com.yxt.anrui.riskcenter.api.loanparameter.LoanParameterVo; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: fan |
||||
|
* @date: 2023/8/21 |
||||
|
**/ |
||||
|
@Mapper |
||||
|
public interface LoanNoGuaranteeCreditReviewMapper extends BaseMapper<LoanNoGuaranteeCreditReview> { |
||||
|
|
||||
|
|
||||
|
@Select("SELECT * FROM loan_noguarantee_credit_review WHERE salesOrderSid = #{salesOrderSid}") |
||||
|
LoanNoGuaranteeCreditReview selectOneByOrderSid(String salesOrderSid); |
||||
|
} |
@ -0,0 +1,5 @@ |
|||||
|
<?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.loannoguaranteecreditreview.LoanNoGuaranteeCreditReviewMapper"> |
||||
|
|
||||
|
</mapper> |
@ -0,0 +1,38 @@ |
|||||
|
package com.yxt.anrui.riskcenter.biz.loannoguaranteecreditreview; |
||||
|
|
||||
|
|
||||
|
import com.yxt.anrui.riskcenter.api.loannoguaranteecreditreview.LoanNoGuaranteeCreditReviewDetailsVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loannoguaranteecreditreview.LoanNoGuaranteeCreditReviewDto; |
||||
|
import com.yxt.anrui.riskcenter.api.loannoguaranteecreditreview.LoanNoGuaranteeCreditReviewFeign; |
||||
|
import com.yxt.anrui.riskcenter.api.loanparameter.*; |
||||
|
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 org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: fan |
||||
|
* @date: 2023/8/21 |
||||
|
**/ |
||||
|
@Api(tags = "公司非担保业务进度维护") |
||||
|
@RestController |
||||
|
@RequestMapping("v1/noguaranteereview") |
||||
|
public class LoanNoGuaranteeCreditReviewRest implements LoanNoGuaranteeCreditReviewFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private LoanNoGuaranteeCreditReviewService loanNoGuaranteeCreditReviewService; |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<LoanNoGuaranteeCreditReviewDetailsVo> details(String salesOrderSid) { |
||||
|
return loanNoGuaranteeCreditReviewService.details(salesOrderSid); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<String> saveReviewInfo(LoanNoGuaranteeCreditReviewDto dto) { |
||||
|
return loanNoGuaranteeCreditReviewService.saveReviewInfo(dto); |
||||
|
} |
||||
|
} |
@ -0,0 +1,152 @@ |
|||||
|
package com.yxt.anrui.riskcenter.biz.loannoguaranteecreditreview; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.anrui.buscenter.api.bussalesorder.BusSalesOrder; |
||||
|
import com.yxt.anrui.buscenter.api.bussalesorder.BusSalesOrderFeign; |
||||
|
import com.yxt.anrui.buscenter.api.bussalesorderborrower.BusSalesOrderBorrowerDetailsVo; |
||||
|
import com.yxt.anrui.buscenter.api.bussalesorderborrower.BusSalesOrderBorrowerFeign; |
||||
|
import com.yxt.anrui.buscenter.api.bussalesordervehicle.BusSalesOrderVehicleFeign; |
||||
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign; |
||||
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationVo; |
||||
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign; |
||||
|
import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery; |
||||
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
||||
|
import com.yxt.anrui.riskcenter.api.loanfile.LoanFile; |
||||
|
import com.yxt.anrui.riskcenter.api.loanfile.LoanFileEnum; |
||||
|
import com.yxt.anrui.riskcenter.api.loannoguaranteecreditreview.LoanNoGuaranteeCreditReview; |
||||
|
import com.yxt.anrui.riskcenter.api.loannoguaranteecreditreview.LoanNoGuaranteeCreditReviewDetailsVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loannoguaranteecreditreview.LoanNoGuaranteeCreditReviewDto; |
||||
|
import com.yxt.anrui.riskcenter.api.loanparameter.*; |
||||
|
import com.yxt.anrui.riskcenter.biz.loanfile.LoanFileService; |
||||
|
import com.yxt.common.base.config.component.FileUploadComponent; |
||||
|
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 org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.Collections; |
||||
|
import java.util.List; |
||||
|
import java.util.stream.Collectors; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: fan |
||||
|
* @date: 2023/8/21 |
||||
|
**/ |
||||
|
@Service |
||||
|
public class LoanNoGuaranteeCreditReviewService extends MybatisBaseService<LoanNoGuaranteeCreditReviewMapper, LoanNoGuaranteeCreditReview> { |
||||
|
|
||||
|
@Autowired |
||||
|
private SysUserFeign sysUserFeign; |
||||
|
@Autowired |
||||
|
private SysStaffOrgFeign sysStaffOrgFeign; |
||||
|
@Autowired |
||||
|
private SysOrganizationFeign sysOrganizationFeign; |
||||
|
@Autowired |
||||
|
private BusSalesOrderFeign busSalesOrderFeign; |
||||
|
@Autowired |
||||
|
private BusSalesOrderBorrowerFeign busSalesOrderBorrowerFeign; |
||||
|
@Autowired |
||||
|
private LoanFileService loanFileService; |
||||
|
@Autowired |
||||
|
private FileUploadComponent fileUploadComponent; |
||||
|
|
||||
|
public ResultBean<LoanNoGuaranteeCreditReviewDetailsVo> details(String salesOrderSid) { |
||||
|
ResultBean<LoanNoGuaranteeCreditReviewDetailsVo> rb = ResultBean.fireFail(); |
||||
|
LoanNoGuaranteeCreditReviewDetailsVo vo = new LoanNoGuaranteeCreditReviewDetailsVo(); |
||||
|
LoanNoGuaranteeCreditReview entity = baseMapper.selectOneByOrderSid(salesOrderSid); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
String sid = ""; |
||||
|
if (StringUtils.isNotBlank(entity.getSid())) { |
||||
|
sid = entity.getSid(); |
||||
|
} |
||||
|
BusSalesOrder busSalesOrder = busSalesOrderFeign.fetchBySid(salesOrderSid).getData(); |
||||
|
if (null != busSalesOrder) { |
||||
|
if (StringUtils.isNotBlank(busSalesOrder.getStaffName())) { |
||||
|
vo.setSalesman(busSalesOrder.getStaffName()); |
||||
|
} |
||||
|
} |
||||
|
BusSalesOrderBorrowerDetailsVo borrowerDetailsVo = busSalesOrderBorrowerFeign.fetchDetailsByOrderSid(salesOrderSid).getData(); |
||||
|
if (null != borrowerDetailsVo) { |
||||
|
if (StringUtils.isNotBlank(borrowerDetailsVo.getBorrowerName())) { |
||||
|
vo.setBorrowerName(borrowerDetailsVo.getBorrowerName()); |
||||
|
} |
||||
|
} |
||||
|
//家访考察结果截图
|
||||
|
List<LoanFile> fileList = loanFileService.selectByLinkSid(sid, LoanFileEnum.HOME_VISIT_FILES.getAttachType()); |
||||
|
fileList.removeAll(Collections.singleton(null)); |
||||
|
if (!fileList.isEmpty()) { |
||||
|
List<String> homeVisitFiles = fileList.stream().map(c -> fileUploadComponent.getUrlPrefix() + c.getFilePath()). |
||||
|
collect(Collectors.toList()); |
||||
|
vo.setHomeVisitFiles(homeVisitFiles); |
||||
|
} |
||||
|
//信审终审结果截图
|
||||
|
fileList = loanFileService.selectByLinkSid(sid, LoanFileEnum.CREDIT_REVIEW_FILES.getAttachType()); |
||||
|
fileList.removeAll(Collections.singleton(null)); |
||||
|
if (!fileList.isEmpty()) { |
||||
|
List<String> creditReviewFiles = fileList.stream().map(c -> fileUploadComponent.getUrlPrefix() + c.getFilePath()).collect(Collectors.toList()); |
||||
|
vo.setCreditReviewFiles(creditReviewFiles); |
||||
|
} |
||||
|
//放款审核结果截图
|
||||
|
fileList = loanFileService.selectByLinkSid(sid, LoanFileEnum.LOAN_REVIEW_FILES.getAttachType()); |
||||
|
fileList.removeAll(Collections.singleton(null)); |
||||
|
if (!fileList.isEmpty()) { |
||||
|
List<String> loanReviewFiles = fileList.stream().map(c -> fileUploadComponent.getUrlPrefix() + c.getFilePath()).collect(Collectors.toList()); |
||||
|
vo.setLoanReviewFiles(loanReviewFiles); |
||||
|
} |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public ResultBean<String> saveReviewInfo(LoanNoGuaranteeCreditReviewDto dto) { |
||||
|
ResultBean<String> rb = ResultBean.fireFail(); |
||||
|
String salesOrderSid = dto.getSalesOrderSid(); |
||||
|
LoanNoGuaranteeCreditReview entity = baseMapper.selectOneByOrderSid(salesOrderSid); |
||||
|
if (null != entity) { |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
String sid = entity.getSid(); |
||||
|
//删除附件表中关于该linkSid的文件
|
||||
|
loanFileService.deleteByLinkSid(sid); |
||||
|
List<String> homeVisitFiles = dto.getHomeVisitFiles(); |
||||
|
if (!homeVisitFiles.isEmpty()) { |
||||
|
loanFileService.saveAll(sid, homeVisitFiles, LoanFileEnum.HOME_VISIT_FILES.getAttachType()); |
||||
|
} |
||||
|
List<String> creditReviewFiles = dto.getCreditReviewFiles(); |
||||
|
if (!creditReviewFiles.isEmpty()) { |
||||
|
loanFileService.saveAll(sid, creditReviewFiles, LoanFileEnum.CREDIT_REVIEW_FILES.getAttachType()); |
||||
|
} |
||||
|
List<String> loanReviewFiles = dto.getLoanReviewFiles(); |
||||
|
if (!loanReviewFiles.isEmpty()) { |
||||
|
loanFileService.saveAll(sid, loanReviewFiles, LoanFileEnum.LOAN_REVIEW_FILES.getAttachType()); |
||||
|
} |
||||
|
} else { |
||||
|
LoanNoGuaranteeCreditReview loanNoGuaranteeCreditReview = new LoanNoGuaranteeCreditReview(); |
||||
|
BeanUtil.copyProperties(dto, loanNoGuaranteeCreditReview, "id", "sid"); |
||||
|
baseMapper.insert(loanNoGuaranteeCreditReview); |
||||
|
String sid = loanNoGuaranteeCreditReview.getSid(); |
||||
|
//删除附件表中关于该linkSid的文件
|
||||
|
loanFileService.deleteByLinkSid(sid); |
||||
|
List<String> homeVisitFiles = dto.getHomeVisitFiles(); |
||||
|
if (!homeVisitFiles.isEmpty()) { |
||||
|
loanFileService.saveAll(sid, homeVisitFiles, LoanFileEnum.HOME_VISIT_FILES.getAttachType()); |
||||
|
} |
||||
|
List<String> creditReviewFiles = dto.getCreditReviewFiles(); |
||||
|
if (!creditReviewFiles.isEmpty()) { |
||||
|
loanFileService.saveAll(sid, creditReviewFiles, LoanFileEnum.CREDIT_REVIEW_FILES.getAttachType()); |
||||
|
} |
||||
|
List<String> loanReviewFiles = dto.getLoanReviewFiles(); |
||||
|
if (!loanReviewFiles.isEmpty()) { |
||||
|
loanFileService.saveAll(sid, loanReviewFiles, LoanFileEnum.LOAN_REVIEW_FILES.getAttachType()); |
||||
|
} |
||||
|
} |
||||
|
return rb.success().setData(salesOrderSid); |
||||
|
} |
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.repaymentplan; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/8/28 10:41 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class RepaymentPlanDetailsVo implements Vo { |
||||
|
@ApiModelProperty("sid") |
||||
|
private String sid; |
||||
|
@ApiModelProperty("合同号") |
||||
|
private String contractId; |
||||
|
@ApiModelProperty("贷款人名称") |
||||
|
private String lenderName; |
||||
|
@ApiModelProperty("车辆台数") |
||||
|
private String carNumber; |
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; |
||||
|
@ApiModelProperty("资方") |
||||
|
private String managementName; |
||||
|
@ApiModelProperty("金融产品") |
||||
|
private String financial; |
||||
|
@ApiModelProperty("销售专员") |
||||
|
private String salesName; |
||||
|
private List<RepaymentPlanListDetailsVo> records = new ArrayList<>(); |
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.repaymentplan; |
||||
|
|
||||
|
|
||||
|
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.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
/** |
||||
|
* @Author |
||||
|
* @Date |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Api(tags = "还款计划表") |
||||
|
@FeignClient( |
||||
|
contextId = "terminal-RepaymentPlan", |
||||
|
name = "anrui-terminal", |
||||
|
path = "/riskcenter/v1/repaymentPlan", |
||||
|
fallback = RepaymentPlanFeignFallback.class) |
||||
|
public interface RepaymentPlanFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/getRepaymentPlanList") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<RepaymentPlanVo>> getRepaymentPlanList(@RequestBody PagerQuery<RepaymentPlanQuery> pq); |
||||
|
|
||||
|
|
||||
|
@ApiOperation("查看还款计划表") |
||||
|
@GetMapping("/getRepaymentPlanListBySid") |
||||
|
@ResponseBody |
||||
|
public ResultBean<RepaymentPlanDetailsVo> getRepaymentPlanListBySid(@RequestParam("sid") String sid); |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.repaymentplan; |
||||
|
|
||||
|
import com.yxt.anrui.terminal.api.risk.mortgage.AppMortgageInformationTransactDto; |
||||
|
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; |
||||
|
|
||||
|
/** |
||||
|
* @Author |
||||
|
* @Date 2023/3/21 15:19 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Component |
||||
|
public class RepaymentPlanFeignFallback implements RepaymentPlanFeign { |
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<RepaymentPlanVo>> getRepaymentPlanList(PagerQuery<RepaymentPlanQuery> pq) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<RepaymentPlanDetailsVo> getRepaymentPlanListBySid(String sid) { |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.repaymentplan; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/9/11 14:26 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class RepaymentPlanListDetailsVo implements Vo { |
||||
|
|
||||
|
private String times; |
||||
|
private String otherTimes; |
||||
|
private String number; |
||||
|
private String total; |
||||
|
private String month; |
||||
|
private String monthlyPayment; |
||||
|
private String otherMonthlyPayment; |
||||
|
private String companyMonthlyPayment; |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.repaymentplan; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/8/28 10:35 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class RepaymentPlanQuery implements Query { |
||||
|
@ApiModelProperty("用户sid") |
||||
|
private String userSid; |
||||
|
|
||||
|
@ApiModelProperty("合同编号/贷款人姓名/资方名称") |
||||
|
private String names; |
||||
|
|
||||
|
@ApiModelProperty("当前组织机构全路径sid") |
||||
|
private String orgPath; |
||||
|
|
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.repaymentplan; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/8/28 10:33 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class RepaymentPlanVo implements Vo { |
||||
|
|
||||
|
@ApiModelProperty("业务sid") |
||||
|
private String sid; |
||||
|
@ApiModelProperty("消贷合同编号") |
||||
|
private String contractId; |
||||
|
@ApiModelProperty("贷款人名称") |
||||
|
private String lenderName; |
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; |
||||
|
@ApiModelProperty("资方") |
||||
|
private String managementName; |
||||
|
@ApiModelProperty("金融产品") |
||||
|
private String financial; |
||||
|
@ApiModelProperty("销售专员") |
||||
|
private String salesName; |
||||
|
@ApiModelProperty("车辆台数") |
||||
|
private String carNum; |
||||
|
@ApiModelProperty("下载路径") |
||||
|
private String downloadUrl; |
||||
|
|
||||
|
} |
@ -0,0 +1,39 @@ |
|||||
|
package com.yxt.anrui.terminal.biz.risk.repaymentplan; |
||||
|
|
||||
|
import com.yxt.anrui.terminal.api.risk.mortgage.*; |
||||
|
import com.yxt.anrui.terminal.api.risk.repaymentplan.RepaymentPlanDetailsVo; |
||||
|
import com.yxt.anrui.terminal.api.risk.repaymentplan.RepaymentPlanFeign; |
||||
|
import com.yxt.anrui.terminal.api.risk.repaymentplan.RepaymentPlanQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.repaymentplan.RepaymentPlanVo; |
||||
|
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 org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Controller; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
|
||||
|
/** |
||||
|
* @Author |
||||
|
* @Date 2023/3/25 9:39 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Api(tags = "还款计划表") |
||||
|
@Controller |
||||
|
@RequestMapping("/riskcenter/v1/repaymentPlan") |
||||
|
public class RepaymentPlanRest implements RepaymentPlanFeign { |
||||
|
|
||||
|
|
||||
|
@Autowired |
||||
|
private RepaymentPlanService repaymentPlanService; |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<RepaymentPlanVo>> getRepaymentPlanList(PagerQuery<RepaymentPlanQuery> pq) { |
||||
|
return repaymentPlanService.getRepaymentPlanList(pq); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<RepaymentPlanDetailsVo> getRepaymentPlanListBySid(String sid) { |
||||
|
return repaymentPlanService.getRepaymentPlanListBySid(sid); |
||||
|
} |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
package com.yxt.anrui.terminal.biz.risk.repaymentplan; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.yxt.anrui.riskcenter.api.loanmortgageinformationtransact.*; |
||||
|
import com.yxt.anrui.riskcenter.api.loanrepaymentschedule.AppRepaymentPlanDetailsVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanrepaymentschedule.AppRepaymentPlanQuery; |
||||
|
import com.yxt.anrui.riskcenter.api.loanrepaymentschedule.AppRepaymentPlanVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanrepaymentschedule.LoanRepaymentScheduleFeign; |
||||
|
import com.yxt.anrui.terminal.api.risk.mortgage.AppMortgageInformationTransactDetailsVo; |
||||
|
import com.yxt.anrui.terminal.api.risk.mortgage.AppMortgageInformationTransactDto; |
||||
|
import com.yxt.anrui.terminal.api.risk.mortgage.AppMortgageInformationTransactQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.mortgage.AppMortgageInformationTransactVo; |
||||
|
import com.yxt.anrui.terminal.api.risk.repaymentplan.RepaymentPlanDetailsVo; |
||||
|
import com.yxt.anrui.terminal.api.risk.repaymentplan.RepaymentPlanQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.repaymentplan.RepaymentPlanVo; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* @Author |
||||
|
* @Date 2023/3/25 9:40 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Service |
||||
|
public class RepaymentPlanService { |
||||
|
|
||||
|
|
||||
|
@Autowired |
||||
|
private LoanRepaymentScheduleFeign loanRepaymentScheduleFeign; |
||||
|
|
||||
|
|
||||
|
public ResultBean<PagerVo<RepaymentPlanVo>> getRepaymentPlanList(PagerQuery<RepaymentPlanQuery> pq) { |
||||
|
ResultBean<PagerVo<RepaymentPlanVo>> rb = ResultBean.fireFail(); |
||||
|
PagerVo<RepaymentPlanVo> pagerVo = new PagerVo<>(); |
||||
|
PagerQuery<AppRepaymentPlanQuery> pagerQuery = new PagerQuery<>(); |
||||
|
BeanUtil.copyProperties(pq, pagerQuery); |
||||
|
ResultBean<PagerVo<AppRepaymentPlanVo>> repaymentPlanList = loanRepaymentScheduleFeign.getRepaymentPlanList(pagerQuery); |
||||
|
if (repaymentPlanList.getSuccess()) { |
||||
|
PagerVo<AppRepaymentPlanVo> data = repaymentPlanList.getData(); |
||||
|
BeanUtil.copyProperties(data, pagerVo); |
||||
|
} |
||||
|
return rb.success().setData(pagerVo); |
||||
|
} |
||||
|
|
||||
|
public ResultBean<RepaymentPlanDetailsVo> getRepaymentPlanListBySid(String sid) { |
||||
|
ResultBean<RepaymentPlanDetailsVo> rb = ResultBean.fireFail(); |
||||
|
RepaymentPlanDetailsVo vo = new RepaymentPlanDetailsVo(); |
||||
|
AppRepaymentPlanDetailsVo data = loanRepaymentScheduleFeign.getRepaymentPlanListBySid(sid).getData(); |
||||
|
if (null != data) { |
||||
|
BeanUtil.copyProperties(data, vo); |
||||
|
} |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue