71 changed files with 1855 additions and 426 deletions
@ -0,0 +1,18 @@ |
|||
package com.yxt.anrui.base.api.basemanufacturerbank; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/10/9 10:11 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class BaseManPayQuery implements Query { |
|||
private static final long serialVersionUID = 1674811728094269348L; |
|||
|
|||
private String useOrgSid; |
|||
|
|||
|
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.yxt.anrui.base.api.basemanufacturerbank; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/10/9 10:12 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class BaseManPayVo implements Vo { |
|||
private static final long serialVersionUID = -4726735870987018408L; |
|||
|
|||
@ApiModelProperty("厂家销售通路") |
|||
private String accountName; |
|||
|
|||
@ApiModelProperty("开户行") |
|||
private String depositBank; |
|||
|
|||
@ApiModelProperty("收款银行账号") |
|||
private String bankAccount; |
|||
} |
@ -0,0 +1,14 @@ |
|||
package com.yxt.anrui.buscenter.api.busadvanceginvoiceapply; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class AdCarListVo implements Vo { |
|||
private static final long serialVersionUID = -1495695891564098295L; |
|||
@ApiModelProperty("车架号") |
|||
private String vin; |
|||
@ApiModelProperty("成交价") |
|||
private String price; |
|||
} |
@ -0,0 +1,51 @@ |
|||
package com.yxt.anrui.buscenter.api.busadvanceginvoiceapply; |
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Data |
|||
public class AppAdvanceInvoiceDto implements Dto { |
|||
private static final long serialVersionUID = 4381514282343908312L; |
|||
|
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; |
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; |
|||
@ApiModelProperty("合同id") |
|||
private String contractNo; |
|||
@ApiModelProperty("客户") |
|||
private String customerName; |
|||
@ApiModelProperty("申请日期") |
|||
private String applyDate; |
|||
@ApiModelProperty("车辆列表") |
|||
private List<AdCarListVo> carList; |
|||
@ApiModelProperty("欠款金额") |
|||
private String arrearsMoney; |
|||
@ApiModelProperty("车型") |
|||
private String carModel; |
|||
@ApiModelProperty("开票信息确认书") |
|||
private List<String> confirmFile; |
|||
@ApiModelProperty("客户开票申请书") |
|||
private List<String> applyFile; |
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("手写原因") |
|||
private String otherReasons; |
|||
@ApiModelProperty("承诺回款日期") |
|||
private String returnedMoneyDate; |
|||
@ApiModelProperty("车辆登记合同") |
|||
private List<String> registerFile; |
|||
@ApiModelProperty("提前开票原因 0手写 1选择") |
|||
private String advGinReasonValue; |
|||
@ApiModelProperty("提前开票原因 0手写 1选择") |
|||
private String advGinReasonKey; |
|||
@ApiModelProperty("选择原因") |
|||
private String reasonChoose; |
|||
@ApiModelProperty("任务id") |
|||
private String taskId; |
|||
@ApiModelProperty("流程实列id") |
|||
private String procInsId; |
|||
} |
@ -0,0 +1,52 @@ |
|||
package com.yxt.anrui.buscenter.api.busadvanceginvoiceapply; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Data |
|||
public class AppAdvanceInvoiceInfoVo implements Vo { |
|||
private static final long serialVersionUID = 1498350342194981549L; |
|||
|
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; |
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; |
|||
@ApiModelProperty("合同id") |
|||
private String contractNo; |
|||
@ApiModelProperty("客户") |
|||
private String customerName; |
|||
@ApiModelProperty("申请日期") |
|||
private String applyDate; |
|||
@ApiModelProperty("车辆列表") |
|||
private List<AdCarListVo> carList; |
|||
@ApiModelProperty("欠款金额") |
|||
private String arrearsMoney; |
|||
@ApiModelProperty("车型") |
|||
private String carModel; |
|||
@ApiModelProperty("开票信息确认书") |
|||
private List<String> confirmFile; |
|||
@ApiModelProperty("客户开票申请书") |
|||
private List<String> applyFile; |
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("手写原因") |
|||
private String otherReasons; |
|||
@ApiModelProperty("承诺回款日期") |
|||
private String returnedMoneyDate; |
|||
@ApiModelProperty("车辆登记合同") |
|||
private List<String> registerFile; |
|||
@ApiModelProperty("提前开票原因 0手写 1选择") |
|||
private String advGinReasonValue; |
|||
@ApiModelProperty("提前开票原因 0手写 1选择") |
|||
private String advGinReasonKey; |
|||
@ApiModelProperty("选择原因") |
|||
private String reasonChoose; |
|||
@ApiModelProperty("任务id") |
|||
private String taskId; |
|||
@ApiModelProperty("流程实列id") |
|||
private String procInsId; |
|||
|
|||
} |
@ -0,0 +1,46 @@ |
|||
package com.yxt.anrui.buscenter.api.busadvanceginvoiceapply; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class AppAdvanceInvoicePageVo implements Vo { |
|||
private static final long serialVersionUID = 1414719057186977899L; |
|||
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; |
|||
|
|||
@ApiModelProperty("合同状态") |
|||
private String contractType; |
|||
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; |
|||
|
|||
@ApiModelProperty("欠款金额") |
|||
private String arrearsMoney; |
|||
|
|||
@ApiModelProperty("承诺汇款日期") |
|||
private String returnedMoneyDate; |
|||
|
|||
@ApiModelProperty("申请人") |
|||
private String applyName; |
|||
|
|||
@ApiModelProperty("数量") |
|||
private String num; |
|||
|
|||
@ApiModelProperty("原因") |
|||
private String otherReasons; |
|||
|
|||
@ApiModelProperty("创建日期") |
|||
private String applyDate; |
|||
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; |
|||
|
|||
@ApiModelProperty("是否显示办理按钮") |
|||
private Boolean showUpdateBtn; |
|||
|
|||
@ApiModelProperty("是否显示删除按钮") |
|||
private Boolean showDeleteBtn; |
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.yxt.anrui.buscenter.api.busadvanceginvoiceapply; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class AppAdvanceInvoiceQuery implements Query { |
|||
private static final long serialVersionUID = 7668511398241906995L; |
|||
|
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; |
|||
|
|||
@ApiModelProperty("客户名称字段 合同编号字段") |
|||
private String name; |
|||
} |
@ -0,0 +1,43 @@ |
|||
package com.yxt.anrui.buscenter.api.busarrearscarryvehicleapply; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
@Data |
|||
public class AppArrearsCarryVehiclePageVo implements Vo { |
|||
|
|||
@ApiModelProperty("车辆sid") |
|||
private String vehicleSid; |
|||
|
|||
@ApiModelProperty("车架号") |
|||
@JsonProperty("VINNo") |
|||
private String VINNo; |
|||
|
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; |
|||
|
|||
@ApiModelProperty("客户sid") |
|||
private String customerSid; |
|||
|
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; |
|||
|
|||
@ApiModelProperty("车型名称") |
|||
private String modelName; |
|||
|
|||
@ApiModelProperty("车型Sid") |
|||
private String modelSid; |
|||
|
|||
@ApiModelProperty("成交价") |
|||
private BigDecimal dealMoney; |
|||
|
|||
@ApiModelProperty("申请日期") |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private String applyDate; |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.yxt.anrui.buscenter.api.busarrearscarryvehicleapply; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class AppArrearsCarryVehicleQuery implements Query { |
|||
private static final long serialVersionUID = 6131516750203771743L; |
|||
|
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; |
|||
|
|||
@ApiModelProperty("客户名称 合同编号") |
|||
private String name; |
|||
|
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.yxt.anrui.portal.api.sysmapping; |
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Data |
|||
public class SaveListDto implements Dto { |
|||
private static final long serialVersionUID = -8934344899751306457L; |
|||
|
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; // 数据字典sid
|
|||
|
|||
@ApiModelProperty("数据字典sid") |
|||
private String dictSid; // 数据字典sid
|
|||
|
|||
@ApiModelProperty("List") |
|||
private List<SysMappingListDto> listDtos; |
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.portal.api.sysmapping; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: sysmapping(sysmapping) <br/> |
|||
* File: SysMappingDto.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysmapping.SysMappingDto <br/> |
|||
* Description: sys_mapping 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-09-26 10:50:18 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "数据映射 数据传输对象", description = "数据映射 数据传输对象") |
|||
public class SysMappingListDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
@ApiModelProperty("映射来源,如CWXT等") |
|||
private String map_sourceKey; // 映射来源,如CWXT等
|
|||
@ApiModelProperty("映射来源,如财务系统等") |
|||
private String map_sourceValue; // 映射来源,如财务系统等
|
|||
@ApiModelProperty("映射实体,如付款单") |
|||
private String map_object; // 映射实体,如付款单
|
|||
@ApiModelProperty("映射项目类别,如应付类别") |
|||
private String map_item; // 映射项目类别,如应付类别
|
|||
@ApiModelProperty("项目key,如002") |
|||
private String map_itemKey; // 项目key,如002
|
|||
@ApiModelProperty("项目value,如外采") |
|||
private String map_itemValue; // 项目value,如外采
|
|||
|
|||
} |
@ -0,0 +1,13 @@ |
|||
package com.yxt.anrui.portal.api.sysmapping; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class SysMappingListInfoQuery implements Query { |
|||
private static final long serialVersionUID = 2691844852742909158L; |
|||
|
|||
@ApiModelProperty("数据字典sid") |
|||
private String dictSid; |
|||
} |
@ -0,0 +1,51 @@ |
|||
package com.yxt.anrui.terminal.api.autoservice.advanceInvoice; |
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Data |
|||
public class AdvanceInvoiceDto implements Dto { |
|||
private static final long serialVersionUID = 3374676388152082886L; |
|||
|
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; |
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; |
|||
@ApiModelProperty("合同id") |
|||
private String contractId; |
|||
@ApiModelProperty("客户") |
|||
private String customerName; |
|||
@ApiModelProperty("申请日期") |
|||
private String applyDate; |
|||
@ApiModelProperty("车辆列表") |
|||
private String carList; |
|||
@ApiModelProperty("欠款金额") |
|||
private String cumulativeArrearsPrice; |
|||
@ApiModelProperty("车型") |
|||
private String modelName; |
|||
@ApiModelProperty("开票信息确认书") |
|||
private List<String> confirmFile; |
|||
@ApiModelProperty("客户开票申请书") |
|||
private List<String> applyFile; |
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("手写原因") |
|||
private String reasonWrite; |
|||
@ApiModelProperty("承诺回款日期") |
|||
private String collectionDate; |
|||
@ApiModelProperty("车辆登记合同") |
|||
private String registerFile; |
|||
@ApiModelProperty("提前开票原因 0手写 1选择") |
|||
private String reasonType; |
|||
@ApiModelProperty("提前开票原因 0手写 1选择") |
|||
private String reasonKey; |
|||
@ApiModelProperty("选择原因") |
|||
private String reasonChoose; |
|||
@ApiModelProperty("任务id") |
|||
private String taskId; |
|||
@ApiModelProperty("流程实列id") |
|||
private String procInsId; |
|||
} |
@ -0,0 +1,52 @@ |
|||
package com.yxt.anrui.terminal.api.autoservice.advanceInvoice; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Data |
|||
public class AdvanceInvoiceInfoVo implements Vo { |
|||
private static final long serialVersionUID = 6256861573673134007L; |
|||
|
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; |
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; |
|||
@ApiModelProperty("合同id") |
|||
private String contractId; |
|||
@ApiModelProperty("客户") |
|||
private String customerName; |
|||
@ApiModelProperty("申请日期") |
|||
private String applyDate; |
|||
@ApiModelProperty("车辆列表") |
|||
private List<AppCarListVo> carList; |
|||
@ApiModelProperty("欠款金额") |
|||
private String cumulativeArrearsPrice; |
|||
@ApiModelProperty("车型") |
|||
private String modelName; |
|||
@ApiModelProperty("开票信息确认书") |
|||
private List<String> confirmFile; |
|||
@ApiModelProperty("客户开票申请书") |
|||
private List<String> applyFile; |
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("手写原因") |
|||
private String reasonWrite; |
|||
@ApiModelProperty("承诺回款日期") |
|||
private String collectionDate; |
|||
@ApiModelProperty("车辆登记合同") |
|||
private String registerFile; |
|||
@ApiModelProperty("提前开票原因 0手写 1选择") |
|||
private String reasonType; |
|||
@ApiModelProperty("提前开票原因 0手写 1选择") |
|||
private String reasonKey; |
|||
@ApiModelProperty("选择原因") |
|||
private String reasonChoose; |
|||
@ApiModelProperty("任务id") |
|||
private String taskId; |
|||
@ApiModelProperty("流程实列id") |
|||
private String procInsId; |
|||
|
|||
} |
@ -0,0 +1,37 @@ |
|||
package com.yxt.anrui.terminal.api.autoservice.advanceInvoice; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class AdvanceInvoicePageVo implements Vo { |
|||
private static final long serialVersionUID = -8631337422991366458L; |
|||
|
|||
@ApiModelProperty("合同sid") |
|||
private String contractSid; |
|||
@ApiModelProperty("合同状态") |
|||
private String contractType; |
|||
@ApiModelProperty("合同编号") |
|||
private String contractId; |
|||
@ApiModelProperty("欠款金额") |
|||
private String arrearsMoney; |
|||
@ApiModelProperty("承诺汇款日期") |
|||
private String paymentDate; |
|||
@ApiModelProperty("申请人") |
|||
private String applicant; |
|||
@ApiModelProperty("数量") |
|||
private String number; |
|||
@ApiModelProperty("原因") |
|||
private String reason; |
|||
@ApiModelProperty("创建日期") |
|||
private String date; |
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; |
|||
@ApiModelProperty("是否显示办理按钮") |
|||
private Boolean showUpdateBtn; |
|||
@ApiModelProperty("是否显示删除按钮") |
|||
private Boolean showDeleteBtn; |
|||
|
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.yxt.anrui.terminal.api.autoservice.advanceInvoice; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class AdvanceInvoiceQuery implements Query { |
|||
private static final long serialVersionUID = -7435351433058437187L; |
|||
|
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; |
|||
|
|||
@ApiModelProperty("客户名称字段 合同编号字段") |
|||
private String name; |
|||
} |
@ -0,0 +1,85 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.autoservice.advanceInvoice; |
|||
|
|||
import com.yxt.anrui.buscenter.api.busadvanceginvoiceapply.*; |
|||
import com.yxt.anrui.terminal.api.autoservice.invoiced.BillApplicationIInfoDto; |
|||
import com.yxt.anrui.terminal.api.autoservice.invoiced.BillApplicationIInfoVo; |
|||
import com.yxt.anrui.terminal.api.supplychain.scmvehicleexamine.AppExaminePageQuery; |
|||
import com.yxt.anrui.terminal.api.supplychain.scmvehicleexamine.AppExaminePageVo; |
|||
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.*; |
|||
|
|||
import javax.validation.Valid; |
|||
|
|||
/** |
|||
* Project: anrui_buscenter(销售业务) <br/> |
|||
* File: BusAdvanceGinvoiceapplyFeign.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.busadvanceginvoiceapply.BusAdvanceGinvoiceapplyFeign <br/> |
|||
* Description: 提前开票申请. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-03-17 16:02:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "提前开票申请") |
|||
@FeignClient( |
|||
contextId = "anrui-terminal-BusAdvanceGinvoiceapply", |
|||
name = "anrui-terminal", |
|||
path = "autoservice/v1/advanceInvoice", |
|||
fallback = BusAdvanceGinvoiceapplyFeignFallback.class) |
|||
public interface AppBusAdvanceGinvoiceapplyFeign { |
|||
|
|||
|
|||
@ApiOperation("手机端-获取提前开票列表") |
|||
@PostMapping("/getAdvanceInvoiceList") |
|||
@ResponseBody |
|||
ResultBean<PagerVo<AdvanceInvoicePageVo>> getAdvanceInvoiceList(@RequestBody PagerQuery<AdvanceInvoiceQuery> pagerQuery); |
|||
|
|||
@ApiOperation("手机端-初始化提前开票申请") |
|||
@GetMapping("/initAdvanceInvoice/{contractSid}") |
|||
@ResponseBody |
|||
public ResultBean<AdvanceInvoiceInfoVo> initAdvanceInvoice(@PathVariable("contractSid") String contractSid); |
|||
|
|||
@ApiOperation("移动端-保存提前开票申请") |
|||
@PostMapping("/saveAdvanceInvoice") |
|||
@ResponseBody |
|||
public ResultBean saveAdvanceInvoice(@Valid @RequestBody AdvanceInvoiceDto dto); |
|||
|
|||
@ApiOperation("手机端-删除提前开票") |
|||
@GetMapping("/deleteAdvanceInvoice/{contractSid}") |
|||
@ResponseBody |
|||
public ResultBean deleteAdvanceInvoice(@PathVariable("contractSid") String contractSid); |
|||
} |
@ -0,0 +1,70 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.autoservice.advanceInvoice; |
|||
|
|||
import com.yxt.anrui.buscenter.api.busadvanceginvoiceapply.*; |
|||
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; |
|||
|
|||
/** |
|||
* Project: anrui_buscenter(销售业务) <br/> |
|||
* File: BusAdvanceGinvoiceapplyFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.busadvanceginvoiceapply.BusAdvanceGinvoiceapplyFeignFallback <br/> |
|||
* Description: 提前开票申请. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-03-17 16:02:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class AppBusAdvanceGinvoiceapplyFeignFallback implements AppBusAdvanceGinvoiceapplyFeign { |
|||
|
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<AdvanceInvoicePageVo>> getAdvanceInvoiceList(PagerQuery<AdvanceInvoiceQuery> pagerQuery) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<AdvanceInvoiceInfoVo> initAdvanceInvoice(String contractSid) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean saveAdvanceInvoice(AdvanceInvoiceDto dto) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean deleteAdvanceInvoice(String contractSid) { |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,15 @@ |
|||
package com.yxt.anrui.terminal.api.autoservice.advanceInvoice; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class AppCarListVo implements Vo { |
|||
private static final long serialVersionUID = -7003788760351399800L; |
|||
|
|||
@ApiModelProperty("车架号") |
|||
private String vin; |
|||
@ApiModelProperty("成交价") |
|||
private String price; |
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.autoservice.advanceInvoice; |
|||
|
|||
import com.yxt.anrui.buscenter.api.busadvanceginvoiceapply.*; |
|||
import com.yxt.anrui.terminal.api.autoservice.advanceInvoice.*; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* Project: anrui_buscenter(销售业务) <br/> |
|||
* File: BusAdvanceGinvoiceapplyFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.busadvanceginvoiceapply.BusAdvanceGinvoiceapplyRest <br/> |
|||
* Description: 提前开票申请. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-03-17 16:02:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "提前开票申请") |
|||
@RestController() |
|||
@RequestMapping("autoservice/v1/advanceInvoice") |
|||
public class AppBusAdvanceGinvoiceapplyRest implements AppBusAdvanceGinvoiceapplyFeign { |
|||
|
|||
@Autowired |
|||
private AppBusAdvanceGinvoiceapplyService appBusAdvanceGinvoiceapplyService; |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<AdvanceInvoicePageVo>> getAdvanceInvoiceList(PagerQuery<AdvanceInvoiceQuery> pagerQuery) { |
|||
return appBusAdvanceGinvoiceapplyService.getAdvanceInvoiceList(pagerQuery); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<AdvanceInvoiceInfoVo> initAdvanceInvoice(String contractSid) { |
|||
return appBusAdvanceGinvoiceapplyService.initAdvanceInvoice(contractSid); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean saveAdvanceInvoice(AdvanceInvoiceDto dto) { |
|||
return appBusAdvanceGinvoiceapplyService.saveAdvanceInvoice(dto); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean deleteAdvanceInvoice(String contractSid) { |
|||
return appBusAdvanceGinvoiceapplyService.deleteAdvanceInvoice(contractSid); |
|||
} |
|||
} |
@ -0,0 +1,98 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.autoservice.advanceInvoice; |
|||
|
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.yxt.anrui.buscenter.api.busadvanceginvoiceapply.*; |
|||
import com.yxt.anrui.fin.api.finbillapplication.AppBillApplicationIInfoDto; |
|||
import com.yxt.anrui.fin.api.finbillapplication.AppBillApplicationIInfoVo; |
|||
import com.yxt.anrui.fin.api.finbillapplication.AppBillApplicationPageQuery; |
|||
import com.yxt.anrui.terminal.api.autoservice.advanceInvoice.AdvanceInvoiceDto; |
|||
import com.yxt.anrui.terminal.api.autoservice.advanceInvoice.AdvanceInvoiceInfoVo; |
|||
import com.yxt.anrui.terminal.api.autoservice.advanceInvoice.AdvanceInvoicePageVo; |
|||
import com.yxt.anrui.terminal.api.autoservice.advanceInvoice.AdvanceInvoiceQuery; |
|||
import com.yxt.anrui.terminal.api.autoservice.invoiced.BillApplicationIInfoVo; |
|||
import com.yxt.anrui.terminal.api.autoservice.invoiced.BillApplicationPageVo; |
|||
import com.yxt.anrui.terminal.config.CoverUtils; |
|||
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; |
|||
|
|||
|
|||
/** |
|||
* Project: anrui_buscenter(销售业务) <br/> |
|||
* File: BusAdvanceGinvoiceapplyService.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.busadvanceginvoiceapply.BusAdvanceGinvoiceapplyService <br/> |
|||
* Description: 提前开票申请 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-03-17 16:02:10 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class AppBusAdvanceGinvoiceapplyService { |
|||
|
|||
@Autowired |
|||
BusAdvanceGinvoiceapplyFeign busAdvanceGinvoiceapplyFeign; |
|||
|
|||
public ResultBean<PagerVo<AdvanceInvoicePageVo>> getAdvanceInvoiceList(PagerQuery<AdvanceInvoiceQuery> pagerQuery) { |
|||
ResultBean<PagerVo<AdvanceInvoicePageVo>> rb = ResultBean.fireFail(); |
|||
PagerQuery<AppAdvanceInvoiceQuery> pq = CoverUtils.getPagerQuery(pagerQuery); |
|||
ResultBean<PagerVo<AppAdvanceInvoicePageVo>> advanceInvoiceList = busAdvanceGinvoiceapplyFeign.getAdvanceInvoiceList(pq); |
|||
PagerVo<AdvanceInvoicePageVo> vo = CoverUtils.selectPagerVo(advanceInvoiceList.getData()); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
public ResultBean<AdvanceInvoiceInfoVo> initAdvanceInvoice(String contractSid) { |
|||
ResultBean<AdvanceInvoiceInfoVo> rb = ResultBean.fireFail(); |
|||
AdvanceInvoiceInfoVo vo = new AdvanceInvoiceInfoVo(); |
|||
ResultBean<AppAdvanceInvoiceInfoVo> resultBean = busAdvanceGinvoiceapplyFeign.initAdvanceInvoice(contractSid); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
AppAdvanceInvoiceInfoVo appAdvanceInvoiceInfoVo = resultBean.getData(); |
|||
BeanUtil.copyProperties(appAdvanceInvoiceInfoVo, vo); |
|||
return rb.success().setData(vo); |
|||
} |
|||
|
|||
public ResultBean saveAdvanceInvoice(AdvanceInvoiceDto dto) { |
|||
AppAdvanceInvoiceDto appAdvanceInvoiceDto = new AppAdvanceInvoiceDto(); |
|||
BeanUtil.copyProperties(dto, appAdvanceInvoiceDto); |
|||
ResultBean resultBean = busAdvanceGinvoiceapplyFeign.saveAdvanceInvoice(appAdvanceInvoiceDto); |
|||
return resultBean; |
|||
} |
|||
|
|||
public ResultBean deleteAdvanceInvoice(String contractSid) { |
|||
ResultBean resultBean = busAdvanceGinvoiceapplyFeign.deleteAdvanceInvoice(contractSid); |
|||
return resultBean; |
|||
} |
|||
} |
Loading…
Reference in new issue