
12 changed files with 610 additions and 10 deletions
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh; |
|||
|
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.flowable.SaleOrderRetVehDto; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.flowable.SaleOrderRetVehTaskQuery; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.flowable.SubmitOrderRetVehDto; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.flowable.*; |
|||
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.web.bind.annotation.*; |
|||
|
|||
@Api(tags = "销售订单退库车辆申请主表") |
|||
@FeignClient( |
|||
contextId = "anrui-terminal-BusSalesOrderRetVeh", |
|||
name = "anrui-terminal", |
|||
path = "/autoservice/v1/salesOrderRetVeh", |
|||
fallback = AppBusSalesOrderRetVehFeignFallback.class) |
|||
public interface AppBusSalesOrderRetVehFeign { |
|||
|
|||
/*-----------------------------------------流程------------------------------------------*/ |
|||
|
|||
@ApiOperation("提交销售订单退车申请") |
|||
@PostMapping("/submitSalesOrderRetVehInfo") |
|||
@ResponseBody |
|||
ResultBean submitSalesOrderRetVehInfo(@RequestBody SubmitOrderRetVehDto dto); |
|||
|
|||
@ApiOperation("办理") |
|||
@PutMapping("/agreeSalesOrderRetVehInfo") |
|||
@ResponseBody |
|||
ResultBean agreeSalesOrderRetVehInfo(@RequestBody SaleOrderRetVehDto dto); |
|||
|
|||
@ApiOperation("驳回") |
|||
@PutMapping("/rejectSalesOrderRetVehInfo") |
|||
@ResponseBody |
|||
ResultBean rejectSalesOrderRetVehInfo(@RequestBody SaleOrderRetVehTaskQuery query); |
|||
|
|||
@ApiOperation("撤回") |
|||
@PutMapping("/recallSalesOrderRetVehInfo") |
|||
@ResponseBody |
|||
ResultBean recallSalesOrderRetVehInfo(@RequestBody SaleOrderRetVehTaskQuery query); |
|||
|
|||
@ApiOperation("终止") |
|||
@PutMapping("/stopSalesOrderRetVehInfo") |
|||
@ResponseBody |
|||
ResultBean stopSalesOrderRetVehInfo(@RequestBody SaleOrderRetVehTaskQuery query); |
|||
} |
@ -0,0 +1,100 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh; |
|||
|
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.flowable.SaleOrderRetVehDto; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.flowable.SaleOrderRetVehTaskQuery; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.flowable.SubmitOrderRetVehDto; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.AppBusSalesOrderFeign; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.depositinfo.DepositInfoDto; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.depositinfo.DepositInfoQuery; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.depositinfo.DepositInfoVo; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.depositinfo.DepositListVo; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.discount.DiscountDto; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.discount.DiscountVo; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.flowable.*; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.insurance.InsuranceDto; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.insurance.InsuranceInfoDto; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.insurance.InsuranceInfoVo; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.insurance.InsurancePrintVo; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.model.*; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.order.*; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.price.PriceDto; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.price.PriceVo; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.topinfo.TopDto; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.topinfo.TopVo; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.vininput.InputVinDto; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.vininput.InputVinQuery; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.vininput.InputVinVo; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.vininput.VinNoVo; |
|||
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-buscenter(业务管理) <br/> |
|||
* File: BusSalesOrderFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.bussalesorder.BusSalesOrderFeignFallback <br/> |
|||
* Description: 销售订单主表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-04-27 13:39:04 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class AppBusSalesOrderRetVehFeignFallback implements AppBusSalesOrderRetVehFeign { |
|||
|
|||
@Override |
|||
public ResultBean submitSalesOrderRetVehInfo(SubmitOrderRetVehDto dto) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean agreeSalesOrderRetVehInfo(SaleOrderRetVehDto dto) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean rejectSalesOrderRetVehInfo(SaleOrderRetVehTaskQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean recallSalesOrderRetVehInfo(SaleOrderRetVehTaskQuery query) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean stopSalesOrderRetVehInfo(SaleOrderRetVehTaskQuery query) { |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,70 @@ |
|||
package com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.flowable; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/8/9 8:58 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class OrderRetVehSubmitDto implements Dto { |
|||
private static final long serialVersionUID = 6988372341832062114L; |
|||
|
|||
@ApiModelProperty(value = "价格说明") |
|||
private String priceRemarks; |
|||
@ApiModelProperty(value = "优惠说明") |
|||
private String discountRemarks; |
|||
@ApiModelProperty(value = "中介名称") |
|||
@JsonProperty("intermediaryName") |
|||
private String distributorName; |
|||
@JsonProperty("intermediaryMobile") |
|||
@ApiModelProperty(value = "联系电话") |
|||
private String distributorMobile; |
|||
|
|||
@ApiModelProperty(value = "中介单位sid") |
|||
@JsonProperty("intermediarySid") |
|||
private String distributorSid; |
|||
@ApiModelProperty(value = "单车中介服务费") |
|||
@JsonProperty("agencyFee") |
|||
private String distributorPrice; |
|||
@ApiModelProperty(value = "内部引荐人") |
|||
@JsonProperty("recommender") |
|||
private String name; |
|||
@ApiModelProperty(value = "内部引荐人sid") |
|||
@JsonProperty("recommenderSid") |
|||
private String userSid; |
|||
@ApiModelProperty(value = "数量") |
|||
@JsonProperty("number") |
|||
private Integer num; |
|||
|
|||
@ApiModelProperty("中介返利备注") |
|||
private String remarks; |
|||
|
|||
@ApiModelProperty(value = "中介名称") |
|||
@JsonProperty("intermediaryName2") |
|||
private String distributorNameTwo; |
|||
@JsonProperty("intermediaryMobile2") |
|||
@ApiModelProperty(value = "联系电话") |
|||
private String distributorMobileTwo; |
|||
|
|||
@ApiModelProperty(value = "中介单位sid") |
|||
@JsonProperty("intermediarySid2") |
|||
private String distributorSidTwo; |
|||
@ApiModelProperty(value = "单车中介服务费") |
|||
@JsonProperty("agencyFee2") |
|||
private String distributorPriceTwo; |
|||
|
|||
@ApiModelProperty("所在单位1") |
|||
@JsonProperty("intermediaryUnit") |
|||
private String distributorUnit; |
|||
@ApiModelProperty("所在单位2") |
|||
@JsonProperty("intermediaryUnit2") |
|||
private String distributorUnitTwo; |
|||
|
|||
@ApiModelProperty("当前组织机构全路径sid") |
|||
private String orgPath; |
|||
} |
@ -0,0 +1,37 @@ |
|||
package com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.flowable; |
|||
|
|||
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 dimengzhe |
|||
* @Date 2022/8/9 14:09 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class SaleOrderRetVehDto implements Dto { |
|||
private static final long serialVersionUID = 3626473483180150495L; |
|||
|
|||
@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,28 @@ |
|||
package com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.flowable; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/8/9 14:15 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class SaleOrderRetVehQuery implements Query { |
|||
private static final long serialVersionUID = 5514095179438249641L; |
|||
|
|||
@ApiModelProperty(value = "节点key") |
|||
private String taskDefKey; |
|||
@ApiModelProperty(value = "业务sid") |
|||
private String businessSid; |
|||
@ApiModelProperty(value = "0 上一环节 1下一环节") |
|||
@NotNull(message = "参数错误:next") |
|||
private Integer next; |
|||
|
|||
@ApiModelProperty("组织机构全路径") |
|||
private String orgPath; |
|||
} |
@ -0,0 +1,42 @@ |
|||
package com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.flowable; |
|||
|
|||
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 dimengzhe |
|||
* @Date 2023/2/2 13:47 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class SaleOrderRetVehQueryBy implements Query { |
|||
private static final long serialVersionUID = 2845814240351212265L; |
|||
|
|||
@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; |
|||
|
|||
@ApiModelProperty("采购系统sid") |
|||
private String purchaseSystemSid; |
|||
@ApiModelProperty("采购系统名称") |
|||
private String purchaseSystemName; |
|||
} |
@ -0,0 +1,47 @@ |
|||
package com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.flowable; |
|||
|
|||
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 dimengzhe |
|||
* @Date 2022/8/9 14:11 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class SaleOrderRetVehTaskQuery implements Query { |
|||
private static final long serialVersionUID = -7082170710942810289L; |
|||
|
|||
/** |
|||
* 终止、驳回、撤回 |
|||
*/ |
|||
@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,21 @@ |
|||
package com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.flowable; |
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/8/9 8:56 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class SubmitOrderRetVehDto implements Dto { |
|||
private static final long serialVersionUID = -3341005368687646398L; |
|||
@ApiModelProperty("任务id") |
|||
private String taskId; |
|||
@ApiModelProperty("流程实例id") |
|||
private String procInsId; |
|||
@ApiModelProperty("组织全路径") |
|||
private String orgPath; |
|||
} |
@ -0,0 +1,70 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.autoservice.saleOrderRetVeh; |
|||
|
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.AppBusSalesOrderRetVehFeign; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.flowable.SaleOrderRetVehDto; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.flowable.SaleOrderRetVehTaskQuery; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.flowable.SubmitOrderRetVehDto; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import io.swagger.annotations.Api; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Controller; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
|
|||
@Api(tags = "销售订单退车申请主表") |
|||
@Controller |
|||
@RequestMapping("/autoservice/v1/salesOrderRetVeh") |
|||
public class AppBusSalesOrderRetVehRest implements AppBusSalesOrderRetVehFeign { |
|||
|
|||
@Autowired |
|||
AppBusSalesOrderRetVehService appBusSalesOrderRetVehService; |
|||
|
|||
@Override |
|||
public ResultBean submitSalesOrderRetVehInfo(SubmitOrderRetVehDto dto) { |
|||
return appBusSalesOrderRetVehService.submitSalesOrderRetVehInfo(dto); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean agreeSalesOrderRetVehInfo(SaleOrderRetVehDto dto) { |
|||
return appBusSalesOrderRetVehService.agreeSalesOrderRetVehInfo(dto); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean rejectSalesOrderRetVehInfo(SaleOrderRetVehTaskQuery query) { |
|||
return appBusSalesOrderRetVehService.rejectSalesOrderRetVehInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean recallSalesOrderRetVehInfo(SaleOrderRetVehTaskQuery query) { |
|||
return appBusSalesOrderRetVehService.recallSalesOrderRetVehInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean stopSalesOrderRetVehInfo(SaleOrderRetVehTaskQuery query) { |
|||
return appBusSalesOrderRetVehService.stopSalesOrderRetVehInfo(query); |
|||
} |
|||
} |
@ -0,0 +1,122 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.autoservice.saleOrderRetVeh; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.yxt.anrui.buscenter.api.bussalesorderreturnvehapply.BusSalesOrderReturnVehApplyFeign; |
|||
import com.yxt.anrui.buscenter.api.bussalesorderreturnvehapply.flow.BusSalesOrderReturnVehApplyCompleteDto; |
|||
import com.yxt.anrui.buscenter.api.bussalesorderreturnvehapply.flow.BusSalesOrderReturnVehApplyTaskQuery; |
|||
import com.yxt.anrui.buscenter.api.bussalesorderreturnvehapply.flow.SubmitBusSalesOrderReturnVehApplyDto; |
|||
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.terminal.api.autoservice.saleOrderRetVeh.flowable.SaleOrderRetVehDto; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.flowable.SaleOrderRetVehTaskQuery; |
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrderRetVeh.flowable.SubmitOrderRetVehDto; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
@Service |
|||
public class AppBusSalesOrderRetVehService { |
|||
|
|||
@Autowired |
|||
BusSalesOrderReturnVehApplyFeign busSalesOrderReturnVehApplyFeign; |
|||
@Autowired |
|||
private SysUserFeign sysUserFeign; |
|||
@Autowired |
|||
private SysStaffOrgFeign sysStaffOrgFeign; |
|||
|
|||
public ResultBean submitSalesOrderRetVehInfo(SubmitOrderRetVehDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
SubmitBusSalesOrderReturnVehApplyDto submitBusSalesOrderReturnVehApplyDto = new SubmitBusSalesOrderReturnVehApplyDto(); |
|||
BeanUtil.copyProperties(dto, submitBusSalesOrderReturnVehApplyDto); |
|||
submitBusSalesOrderReturnVehApplyDto.setInstanceId(dto.getProcInsId()); |
|||
ResultBean resultBean = busSalesOrderReturnVehApplyFeign.submitVehicleApply(submitBusSalesOrderReturnVehApplyDto); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success(); |
|||
} |
|||
|
|||
public ResultBean agreeSalesOrderRetVehInfo(SaleOrderRetVehDto 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(); |
|||
BusSalesOrderReturnVehApplyCompleteDto busSalesOrderReturnVehApplyCompleteDto = new BusSalesOrderReturnVehApplyCompleteDto(); |
|||
BeanUtil.copyProperties(dto, busSalesOrderReturnVehApplyCompleteDto); |
|||
busSalesOrderReturnVehApplyCompleteDto.setOrgSidPath(orgSidPath); |
|||
ResultBean resultBean = busSalesOrderReturnVehApplyFeign.complete(busSalesOrderReturnVehApplyCompleteDto); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean rejectSalesOrderRetVehInfo(SaleOrderRetVehTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
BusSalesOrderReturnVehApplyTaskQuery busSalesOrderReturnVehApplyTaskQuery = new BusSalesOrderReturnVehApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, busSalesOrderReturnVehApplyTaskQuery); |
|||
ResultBean resultBean = busSalesOrderReturnVehApplyFeign.taskReject(busSalesOrderReturnVehApplyTaskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean recallSalesOrderRetVehInfo(SaleOrderRetVehTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
BusSalesOrderReturnVehApplyTaskQuery busSalesOrderReturnVehApplyTaskQuery = new BusSalesOrderReturnVehApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, busSalesOrderReturnVehApplyTaskQuery); |
|||
ResultBean resultBean = busSalesOrderReturnVehApplyFeign.revokeProcess(busSalesOrderReturnVehApplyTaskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean stopSalesOrderRetVehInfo(SaleOrderRetVehTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
BusSalesOrderReturnVehApplyTaskQuery busSalesOrderReturnVehApplyTaskQuery = new BusSalesOrderReturnVehApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, busSalesOrderReturnVehApplyTaskQuery); |
|||
ResultBean resultBean = busSalesOrderReturnVehApplyFeign.breakProcess(busSalesOrderReturnVehApplyTaskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
} |
Loading…
Reference in new issue