
34 changed files with 1545 additions and 844 deletions
File diff suppressed because it is too large
@ -0,0 +1,32 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.outBoundVeh; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/11/13 15:45 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AppOutBoundVehApplyVinList { |
||||
|
/** |
||||
|
* 车型 |
||||
|
*/ |
||||
|
private String model; |
||||
|
/** |
||||
|
* 车牌号 |
||||
|
*/ |
||||
|
private String vehMark; |
||||
|
/** |
||||
|
* 车辆类型 |
||||
|
*/ |
||||
|
private String vehType; |
||||
|
/** |
||||
|
* 车架号 |
||||
|
*/ |
||||
|
private String vinNo; |
||||
|
/** |
||||
|
* 存放地点 |
||||
|
*/ |
||||
|
private String location; |
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.outBoundVeh; |
||||
|
|
||||
|
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/11/13 15:38 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OutBoundVehApplyDetailsVo implements Vo { |
||||
|
private String sid; |
||||
|
private String publishInfo; |
||||
|
private String time; //申请日期
|
||||
|
private List<String> buyFiles = new ArrayList<>(); //车辆买卖协议
|
||||
|
private List<String> deliveryFiles = new ArrayList<>(); //车辆交付确认书
|
||||
|
private List<String> assessFiles = new ArrayList<>(); //车辆完整评估照片
|
||||
|
private List<String> otherFiles = new ArrayList<>(); //其他附件
|
||||
|
private String taskId; |
||||
|
private String procInsId; |
||||
|
private String applySid; //处置申请sid
|
||||
|
/** |
||||
|
* 出库金额 |
||||
|
*/ |
||||
|
private String amount; |
||||
|
/** |
||||
|
* 客户名称 |
||||
|
*/ |
||||
|
private String custName; |
||||
|
@ApiModelProperty("处置合同号") |
||||
|
private String disposalContractNo; |
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
private String remarks; |
||||
|
@ApiModelProperty("处置方式(未处置/客户赎回/二次销售/二次转租)") |
||||
|
private String disposal; |
||||
|
@ApiModelProperty("处置方式key") |
||||
|
private String disposalKey; |
||||
|
/** |
||||
|
* 车辆列表 |
||||
|
*/ |
||||
|
private List<AppOutBoundVehApplyVinList> vinList = new ArrayList<>(); |
||||
|
@ApiModelProperty("联系电话") |
||||
|
private String phoneNum; |
||||
|
|
||||
|
} |
@ -0,0 +1,67 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.outBoundVeh; |
||||
|
|
||||
|
|
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.flow.AppOutBoundVehApplyDelegateQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.flow.AppOutBoundVehApplyTaskQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.flow.CompleteOutBoundVehApplyDto; |
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.flow.OutBoundVehApplyFlowableQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.cloud.openfeign.SpringQueryMap; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import javax.validation.Valid; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: fzz |
||||
|
* @date: 2023/8/8 |
||||
|
**/ |
||||
|
@Api(tags = "交回车辆出库申请") |
||||
|
@FeignClient( |
||||
|
contextId = "terminal-OutBoundVeh", |
||||
|
name = "anrui-terminal", |
||||
|
path = "/riskcenter/v1/outboundveh", |
||||
|
fallback = OutBoundVehApplyFeignFallback.class) |
||||
|
public interface OutBoundVehApplyFeign { |
||||
|
|
||||
|
|
||||
|
@ApiOperation("详情") |
||||
|
@GetMapping("/appDetail/{sid}") |
||||
|
@ResponseBody |
||||
|
ResultBean<OutBoundVehApplyDetailsVo> detail(@PathVariable("sid") String sid); |
||||
|
|
||||
|
//-------------------------流程-----------------------------------------
|
||||
|
|
||||
|
@ApiOperation("办理") |
||||
|
@PutMapping("/agreeCreditInfo") |
||||
|
@ResponseBody |
||||
|
ResultBean agreeCreditInfo(@Valid @RequestBody CompleteOutBoundVehApplyDto dto); |
||||
|
|
||||
|
@ApiOperation("驳回") |
||||
|
@PutMapping("/rejectCreditInfo") |
||||
|
@ResponseBody |
||||
|
ResultBean rejectCreditInfo(@Valid @RequestBody AppOutBoundVehApplyTaskQuery query); |
||||
|
|
||||
|
@ApiOperation("撤回") |
||||
|
@PutMapping("/recallCreditInfo") |
||||
|
@ResponseBody |
||||
|
ResultBean recallCreditInfo(@Valid @RequestBody AppOutBoundVehApplyTaskQuery query); |
||||
|
|
||||
|
@ApiOperation("终止") |
||||
|
@PutMapping("/stopCreditInfo") |
||||
|
@ResponseBody |
||||
|
ResultBean stopCreditInfo(@Valid @RequestBody AppOutBoundVehApplyTaskQuery query); |
||||
|
|
||||
|
@ApiOperation("获取流程操作标题") |
||||
|
@GetMapping("/getFlowOperateTitle") |
||||
|
@ResponseBody |
||||
|
ResultBean<String> getFlowOperateTitle(@Valid @SpringQueryMap OutBoundVehApplyFlowableQuery query); |
||||
|
|
||||
|
@ApiOperation(value = "加签") |
||||
|
@PutMapping(value = "/delegate") |
||||
|
@ResponseBody |
||||
|
public ResultBean delegate(@RequestBody AppOutBoundVehApplyDelegateQuery delegateQuery); |
||||
|
} |
@ -0,0 +1,52 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.outBoundVeh; |
||||
|
|
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.flow.AppOutBoundVehApplyDelegateQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.flow.AppOutBoundVehApplyTaskQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.flow.CompleteOutBoundVehApplyDto; |
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.flow.OutBoundVehApplyFlowableQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: fzz |
||||
|
* @date: |
||||
|
**/ |
||||
|
@Component |
||||
|
public class OutBoundVehApplyFeignFallback implements OutBoundVehApplyFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<OutBoundVehApplyDetailsVo> detail(String sid) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean agreeCreditInfo(CompleteOutBoundVehApplyDto dto) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean rejectCreditInfo(AppOutBoundVehApplyTaskQuery query) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean recallCreditInfo(AppOutBoundVehApplyTaskQuery query) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean stopCreditInfo(AppOutBoundVehApplyTaskQuery query) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<String> getFlowOperateTitle(OutBoundVehApplyFlowableQuery query) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delegate(AppOutBoundVehApplyDelegateQuery delegateQuery) { |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.outBoundVeh.flow; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/9/28 10:16 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AppOutBoundVehApplyDelegateQuery { |
||||
|
@ApiModelProperty |
||||
|
private String userSid; |
||||
|
@ApiModelProperty("流程实例id") |
||||
|
@JsonProperty("procInsId") |
||||
|
private String instanceId; |
||||
|
@ApiModelProperty("任务Id") |
||||
|
private String taskId; |
||||
|
@ApiModelProperty("审批人sid") |
||||
|
private String assignee; |
||||
|
@ApiModelProperty("填写意见") |
||||
|
private String views; |
||||
|
} |
@ -0,0 +1,46 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.outBoundVeh.flow; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/10/17 9:14 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AppOutBoundVehApplyTaskQuery implements Query { |
||||
|
/** |
||||
|
* 终止、驳回、撤回 |
||||
|
*/ |
||||
|
@ApiModelProperty("任务Id") |
||||
|
@NotBlank(message = "参数错误:taskId") |
||||
|
private String taskId; |
||||
|
/** |
||||
|
* 终止、驳回、撤回 |
||||
|
*/ |
||||
|
@ApiModelProperty("业务sid") |
||||
|
@NotBlank(message = "参数错误:businessSid") |
||||
|
private String businessSid; |
||||
|
/** |
||||
|
* 终止、驳回 |
||||
|
*/ |
||||
|
@ApiModelProperty("任务意见") |
||||
|
private String comment; |
||||
|
/** |
||||
|
* 终止、撤回、驳回 |
||||
|
*/ |
||||
|
@ApiModelProperty("用户Sid") |
||||
|
private String userSid; |
||||
|
/** |
||||
|
* 终止 |
||||
|
*/ |
||||
|
@ApiModelProperty("流程实例Id") |
||||
|
@JsonProperty("procInsId") |
||||
|
private String instanceId; |
||||
|
|
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.outBoundVeh.flow; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/10/17 9:13 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class CompleteOutBoundVehApplyDto implements Dto { |
||||
|
@ApiModelProperty(value = "任务id") |
||||
|
@NotBlank(message = "参数错误:taskId") |
||||
|
private String taskId; |
||||
|
@ApiModelProperty(value = "流程id") |
||||
|
@NotBlank(message = "参数错误:procInsId") |
||||
|
@JsonProperty("procInsId") |
||||
|
private String instanceId; |
||||
|
@ApiModelProperty(value = "意见") |
||||
|
private String comment; |
||||
|
@ApiModelProperty(value = "业务sid") |
||||
|
@NotBlank(message = "参数错误:businessSid") |
||||
|
private String businessSid; |
||||
|
@ApiModelProperty(value = "用户sid") |
||||
|
@NotBlank(message = "参数错误:userSid") |
||||
|
private String userSid; |
||||
|
@ApiModelProperty(value = "节点id") |
||||
|
@NotBlank(message = "参数错误:taskDefKey") |
||||
|
private String taskDefKey; |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.yxt.anrui.terminal.api.risk.outBoundVeh.flow; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotNull; |
||||
|
|
||||
|
@Data |
||||
|
public class OutBoundVehApplyFlowableQuery implements Query { |
||||
|
private static final long serialVersionUID = -5879668616710833830L; |
||||
|
|
||||
|
@ApiModelProperty(value = "节点key") |
||||
|
private String taskDefKey; |
||||
|
@ApiModelProperty(value = "业务sid") |
||||
|
private String businessSid; |
||||
|
@ApiModelProperty(value = "0 上一环节 1下一环节") |
||||
|
@NotNull(message = "参数错误:next") |
||||
|
private Integer next; |
||||
|
|
||||
|
} |
@ -0,0 +1,68 @@ |
|||||
|
package com.yxt.anrui.terminal.biz.risk.outBoundVeh; |
||||
|
|
||||
|
|
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.OutBoundVehApplyDetailsVo; |
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.OutBoundVehApplyFeign; |
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.flow.AppOutBoundVehApplyDelegateQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.flow.AppOutBoundVehApplyTaskQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.flow.CompleteOutBoundVehApplyDto; |
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.flow.OutBoundVehApplyFlowableQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.subletApply.SubletApplyDetailsVo; |
||||
|
import com.yxt.anrui.terminal.api.risk.subletApply.SubletApplyFeign; |
||||
|
import com.yxt.anrui.terminal.api.risk.subletApply.flow.AppSubletApplyDelegateQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.subletApply.flow.AppSubletApplyTaskQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.subletApply.flow.CompleteSubletApplyDto; |
||||
|
import com.yxt.anrui.terminal.api.risk.subletApply.flow.SubletApplyFlowableQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Controller; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: fzz |
||||
|
* @date: |
||||
|
**/ |
||||
|
@Controller |
||||
|
@RequestMapping("/riskcenter/v1/outboundveh") |
||||
|
public class OutBoundVehApplyRest implements OutBoundVehApplyFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private OutBoundVehApplyService outBoundVehApplyService; |
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<OutBoundVehApplyDetailsVo> detail(String sid) { |
||||
|
return outBoundVehApplyService.detail(sid); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean agreeCreditInfo(CompleteOutBoundVehApplyDto dto) { |
||||
|
return outBoundVehApplyService.agreeCreditInfo(dto); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean rejectCreditInfo(AppOutBoundVehApplyTaskQuery query) { |
||||
|
return outBoundVehApplyService.rejectCreditInfo(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean recallCreditInfo(AppOutBoundVehApplyTaskQuery query) { |
||||
|
return outBoundVehApplyService.recallCreditInfo(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean stopCreditInfo(AppOutBoundVehApplyTaskQuery query) { |
||||
|
return outBoundVehApplyService.stopCreditInfo(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<String> getFlowOperateTitle(OutBoundVehApplyFlowableQuery query) { |
||||
|
return outBoundVehApplyService.getFlowOperateTitle(query); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delegate(AppOutBoundVehApplyDelegateQuery delegateQuery) { |
||||
|
return outBoundVehApplyService.delegate(delegateQuery); |
||||
|
} |
||||
|
} |
@ -0,0 +1,157 @@ |
|||||
|
package com.yxt.anrui.terminal.biz.risk.outBoundVeh; |
||||
|
|
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrg; |
||||
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign; |
||||
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
||||
|
import com.yxt.anrui.portal.api.sysuser.SysUserVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanoutboundapply.LoanOutboundApplyFeign; |
||||
|
import com.yxt.anrui.riskcenter.api.loanoutboundapply.app.AppOutboundDetailsVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loanoutboundapply.flow.*; |
||||
|
import com.yxt.anrui.riskcenter.api.loansubletapply.LoanSubletApplyFeign; |
||||
|
import com.yxt.anrui.riskcenter.api.loansubletapply.app.AppSubletDetailsVo; |
||||
|
import com.yxt.anrui.riskcenter.api.loansubletapply.flow.*; |
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.OutBoundVehApplyDetailsVo; |
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.flow.AppOutBoundVehApplyDelegateQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.flow.AppOutBoundVehApplyTaskQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.flow.CompleteOutBoundVehApplyDto; |
||||
|
import com.yxt.anrui.terminal.api.risk.outBoundVeh.flow.OutBoundVehApplyFlowableQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.subletApply.SubletApplyDetailsVo; |
||||
|
import com.yxt.anrui.terminal.api.risk.subletApply.flow.AppSubletApplyDelegateQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.subletApply.flow.AppSubletApplyTaskQuery; |
||||
|
import com.yxt.anrui.terminal.api.risk.subletApply.flow.CompleteSubletApplyDto; |
||||
|
import com.yxt.anrui.terminal.api.risk.subletApply.flow.SubletApplyFlowableQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.Collections; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: fzz |
||||
|
* @date: |
||||
|
**/ |
||||
|
@Service |
||||
|
public class OutBoundVehApplyService { |
||||
|
|
||||
|
@Autowired |
||||
|
private SysUserFeign sysUserFeign; |
||||
|
@Autowired |
||||
|
private SysStaffOrgFeign sysStaffOrgFeign; |
||||
|
@Autowired |
||||
|
private LoanOutboundApplyFeign loanOutboundApplyFeign; |
||||
|
|
||||
|
public ResultBean<OutBoundVehApplyDetailsVo> detail(String sid) { |
||||
|
ResultBean<OutBoundVehApplyDetailsVo> rb = ResultBean.fireFail(); |
||||
|
OutBoundVehApplyDetailsVo vo = new OutBoundVehApplyDetailsVo(); |
||||
|
AppOutboundDetailsVo data = loanOutboundApplyFeign.appDetail(sid).getData(); |
||||
|
if (null != data) { |
||||
|
BeanUtil.copyProperties(data, vo); |
||||
|
} |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public ResultBean agreeCreditInfo(CompleteOutBoundVehApplyDto dto) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
//根据用户sid获取staffSid
|
||||
|
ResultBean<SysUserVo> userVoResultBean = sysUserFeign.fetchBySid(dto.getUserSid()); |
||||
|
if (!userVoResultBean.getSuccess()) { |
||||
|
return rb.setMsg(userVoResultBean.getMsg()); |
||||
|
} |
||||
|
//根据staffSid获取用户的组织全路径
|
||||
|
ResultBean<SysStaffOrg> staffOrgResultBean = sysStaffOrgFeign.getOrgByStaffSid(userVoResultBean.getData().getStaffSid()); |
||||
|
if (!staffOrgResultBean.getSuccess()) { |
||||
|
return rb.setMsg(staffOrgResultBean.getMsg()); |
||||
|
} |
||||
|
//用户的组织全路径
|
||||
|
String orgSidPath = staffOrgResultBean.getData().getOrgSidPath(); |
||||
|
OutboundCompleteDto completeDto = new |
||||
|
OutboundCompleteDto(); |
||||
|
BeanUtil.copyProperties(dto, completeDto); |
||||
|
completeDto.setOrgSidPath(orgSidPath); |
||||
|
ResultBean resultBean = loanOutboundApplyFeign.complete(completeDto); |
||||
|
if (!resultBean.getSuccess()) { |
||||
|
return rb.setMsg(resultBean.getMsg()); |
||||
|
} |
||||
|
return rb.success().setData(resultBean.getData()); |
||||
|
} |
||||
|
|
||||
|
public ResultBean rejectCreditInfo(AppOutBoundVehApplyTaskQuery query) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
OutboundTaskQuery taskQuery = new |
||||
|
OutboundTaskQuery(); |
||||
|
BeanUtil.copyProperties(query, taskQuery); |
||||
|
ResultBean resultBean = loanOutboundApplyFeign.taskReject(taskQuery); |
||||
|
if (!resultBean.getSuccess()) { |
||||
|
return rb.setMsg(resultBean.getMsg()); |
||||
|
} |
||||
|
return rb.success().setData(resultBean.getData()); |
||||
|
} |
||||
|
|
||||
|
public ResultBean recallCreditInfo(AppOutBoundVehApplyTaskQuery query) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
OutboundTaskQuery taskQuery = new |
||||
|
OutboundTaskQuery(); |
||||
|
BeanUtil.copyProperties(query, taskQuery); |
||||
|
ResultBean resultBean = loanOutboundApplyFeign.revokeProcess(taskQuery); |
||||
|
if (!resultBean.getSuccess()) { |
||||
|
return rb.setMsg(resultBean.getMsg()); |
||||
|
} |
||||
|
return rb.success().setData(resultBean.getData()); |
||||
|
} |
||||
|
|
||||
|
public ResultBean stopCreditInfo(AppOutBoundVehApplyTaskQuery query) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
OutboundTaskQuery taskQuery = new |
||||
|
OutboundTaskQuery(); |
||||
|
BeanUtil.copyProperties(query, taskQuery); |
||||
|
ResultBean resultBean = loanOutboundApplyFeign.breakProcess(taskQuery); |
||||
|
if (!resultBean.getSuccess()) { |
||||
|
return rb.setMsg(resultBean.getMsg()); |
||||
|
} |
||||
|
return rb.success().setData(resultBean.getData()); |
||||
|
} |
||||
|
|
||||
|
public ResultBean<String> getFlowOperateTitle(OutBoundVehApplyFlowableQuery query) { |
||||
|
ResultBean<String> rb = ResultBean.fireFail(); |
||||
|
//0 上一环节 1下一环节
|
||||
|
int next = query.getNext(); |
||||
|
OutboundGetNodeQuery getNodeQuery = new |
||||
|
OutboundGetNodeQuery(); |
||||
|
BeanUtil.copyProperties(query, getNodeQuery); |
||||
|
String data = ""; |
||||
|
if (next == 0) { |
||||
|
ResultBean<List<OutboundGetNodeVo>> getPreviousNodesForReject = loanOutboundApplyFeign.getPreviousNodesForReject(getNodeQuery); |
||||
|
if (getPreviousNodesForReject.getSuccess()) { |
||||
|
getPreviousNodesForReject.getData().removeAll(Collections.singleton(null)); |
||||
|
data = getPreviousNodesForReject.getData().get(0).getName(); |
||||
|
} else { |
||||
|
return rb.setMsg(getPreviousNodesForReject.getMsg()); |
||||
|
} |
||||
|
} else if (next == 1) { |
||||
|
ResultBean<List<OutboundGetNodeVo>> getNextNodesForSubmit = loanOutboundApplyFeign.getNextNodesForSubmit(getNodeQuery); |
||||
|
if (getNextNodesForSubmit.getSuccess()) { |
||||
|
getNextNodesForSubmit.getData().removeAll(Collections.singleton(null)); |
||||
|
data = getNextNodesForSubmit.getData().get(0).getName(); |
||||
|
} else { |
||||
|
return rb.setMsg(getNextNodesForSubmit.getMsg()); |
||||
|
} |
||||
|
} else { |
||||
|
return rb.setMsg("参数错误:next"); |
||||
|
} |
||||
|
return rb.success().setData(data); |
||||
|
} |
||||
|
|
||||
|
public ResultBean delegate(AppOutBoundVehApplyDelegateQuery delegateQuery) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
OutboundDelegateQuery delegateQuery1 = new |
||||
|
OutboundDelegateQuery(); |
||||
|
BeanUtil.copyProperties(delegateQuery, delegateQuery1); |
||||
|
ResultBean delegate = loanOutboundApplyFeign.delegate(delegateQuery1); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue