Browse Source

权证资料详情

master
fanzongzhe 2 years ago
parent
commit
ec9c5ac150
  1. 26
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanwarrantinformation/LoanWarrantInformationDetailsVo.java
  2. 14
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanwarrantinformation/LoanWarrantInformationFeign.java
  3. 5
      anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanwarrantinformation/LoanWarrantInformationFeignFallback.java
  4. 5
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanwarrantinformation/LoanWarrantInformationRest.java
  5. 40
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanwarrantinformation/LoanWarrantInformationService.java

26
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanwarrantinformation/LoanWarrantInformationDetailsVo.java

@ -14,16 +14,16 @@ import java.util.List;
*/
@Data
public class LoanWarrantInformationDetailsVo implements Vo {
@ApiModelProperty("业务车辆sid")
private String busVinSid;
@ApiModelProperty("业务sid")
private String sid;
@ApiModelProperty("消贷合同编号")
private String contractId;
@ApiModelProperty("贷款人")
private String contractNo;
@ApiModelProperty("客户名称")
private String borrowerName;
@ApiModelProperty("车架号")
private String vinNo;
@ApiModelProperty("抵押日期")
private String mortgageDate;
@ApiModelProperty("资方名称")
private String bankName;
@ApiModelProperty("备注")
private String remarks;
@ApiModelProperty("登记证 1-2页")
@ -34,4 +34,18 @@ public class LoanWarrantInformationDetailsVo implements Vo {
private List<String> taxiFiles = new ArrayList<>();
@ApiModelProperty("行驶证")
private List<String> drivingFiles = new ArrayList<>();
@ApiModelProperty("移交资料")
private String transferInformation;
@ApiModelProperty("送达日期")
private String deliveryDate;
@ApiModelProperty("快递单号")
private String trackingNo;
@ApiModelProperty("移交方式key")
private String transferWayKey;
@ApiModelProperty("移交方式value")
private String transferWayValue;
@ApiModelProperty("接收人/签收人")
private String recipient;
@ApiModelProperty("移交备注")
private String transferRemarks;
}

14
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanwarrantinformation/LoanWarrantInformationFeign.java

@ -10,11 +10,11 @@ import org.springframework.web.bind.annotation.*;
/**
* @description: 抵押办理
* @description: 权证资料
* @author: fan
* @date: 2023/7/6
**/
@Api(tags = "抵押办理")
@Api(tags = "权证资料")
@FeignClient(
contextId = "anrui-riskcenter-LoanWarrantInformation",
name = "anrui-riskcenter",
@ -64,7 +64,6 @@ public interface LoanWarrantInformationFeign {
public ResultBean<String> approvedWarrantInfo(@RequestBody LoanAuditInfoDto dto);
/**
* 移交回显
*
@ -84,5 +83,14 @@ public interface LoanWarrantInformationFeign {
@PostMapping("/saveTransferInfo")
public ResultBean saveTransferInfo(@RequestBody LoanTransferInfoDto dto);
/**
* 详情
*
* @param
*/
@ApiOperation("详情")
@GetMapping("/detailsInfo/{sid}")
@ResponseBody
public ResultBean<LoanWarrantInformationDetailsVo> detailsInfo(@PathVariable("sid") String sid);
}

5
anrui-riskcenter/anrui-riskcenter-api/src/main/java/com/yxt/anrui/riskcenter/api/loanwarrantinformation/LoanWarrantInformationFeignFallback.java

@ -39,6 +39,11 @@ public class LoanWarrantInformationFeignFallback implements LoanWarrantInformati
return null;
}
@Override
public ResultBean<LoanWarrantInformationDetailsVo> detailsInfo(String sid) {
return null;
}
@Override
public ResultBean<String> approvedWarrantInfo(LoanAuditInfoDto dto) {
return null;

5
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanwarrantinformation/LoanWarrantInformationRest.java

@ -55,4 +55,9 @@ public class LoanWarrantInformationRest implements LoanWarrantInformationFeign {
return loanMortgageInformationTransactService.saveTransferInfo(dto);
}
@Override
public ResultBean<LoanWarrantInformationDetailsVo> detailsInfo(String sid) {
return loanMortgageInformationTransactService.detailsInfo(sid);
}
}

40
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanwarrantinformation/LoanWarrantInformationService.java

@ -334,4 +334,44 @@ public class LoanWarrantInformationService extends MybatisBaseService<LoanWarran
}
return rb.success();
}
/**
* 详情
* @param sid
* @return
*/
public ResultBean<LoanWarrantInformationDetailsVo> detailsInfo(String sid) {
ResultBean<LoanWarrantInformationDetailsVo> rb = ResultBean.fireFail();
LoanWarrantInformationDetailsVo vo = new LoanWarrantInformationDetailsVo();
LoanAuditInfoVo auditInfoVo = getAuditInfo(sid).getData();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
if (null != auditInfoVo) {
BeanUtil.copyProperties(auditInfoVo,vo);
}
LoanWarrantInformation entity = fetchBySid(sid);
if (null != entity) {
if (StringUtils.isNotBlank(entity.getTransferRemarks())) {
vo.setTransferRemarks(entity.getTransferRemarks());
}
if (StringUtils.isNotBlank(entity.getTransferInformation())) {
vo.setTransferInformation(entity.getTransferInformation());
}
if (StringUtils.isNotBlank(entity.getTransferWayKey())) {
vo.setTransferWayKey(entity.getTransferWayKey());
}
if (StringUtils.isNotBlank(entity.getTransferWayValue())) {
vo.setTransferWayValue(entity.getTransferWayValue());
}
if (StringUtils.isNotBlank(entity.getTrackingNo())) {
vo.setTrackingNo(entity.getTrackingNo());
}
if (StringUtils.isNotBlank(entity.getRecipient())) {
vo.setRecipient(entity.getRecipient());
}
if (null != entity.getDeliveryDate()) {
vo.setDeliveryDate(sdf.format(entity.getDeliveryDate()));
}
}
return rb.success().setData(vo);
}
}

Loading…
Cancel
Save