
38 changed files with 1182 additions and 39 deletions
@ -0,0 +1,74 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.bussalesordertrailer; |
|||
|
|||
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; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售订单挂车信息) <br/> |
|||
* File: BusSalesOrderTrailer.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.bussalesordertrailer.BusSalesOrderTrailer <br/> |
|||
* Description: 销售订单-挂车信息. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-05-24 09:54:56 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售订单-挂车信息", description = "销售订单-挂车信息") |
|||
@TableName("bus_sales_order_trailer") |
|||
public class BusSalesOrderTrailer extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("销售订单sid") |
|||
private String salesOrderSid; // 销售订单sid
|
|||
@ApiModelProperty("挂车类型key") |
|||
private String trailerTypeKey; // 挂车类型key
|
|||
@ApiModelProperty("挂车类型value") |
|||
private String trailerTypeValue; // 挂车类型value
|
|||
@ApiModelProperty("外廓尺寸长") |
|||
private BigDecimal appearanceSizeLong; // 外廓尺寸长
|
|||
@ApiModelProperty("单台成交价") |
|||
private BigDecimal singleFinalPrice; // 单台成交价
|
|||
@ApiModelProperty("数量") |
|||
private Integer trailerCount; // 数量
|
|||
@ApiModelProperty("合同附件") |
|||
private String contractFile; // 合同附件
|
|||
@ApiModelProperty("同车型合格证附件") |
|||
private String certFile; // 同车型合格证附件
|
|||
@ApiModelProperty("0不过票,1过票") |
|||
private Integer isCompPassTicket; // 0不过票,1过票
|
|||
|
|||
} |
@ -0,0 +1,79 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.bussalesordertrailer; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售订单挂车信息) <br/> |
|||
* File: BusSalesOrderTrailerVo.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.bussalesordertrailer.BusSalesOrderTrailerVo <br/> |
|||
* Description: 销售订单-挂车信息 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-05-24 09:54:56 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售订单-挂车信息 视图数据详情", description = "销售订单-挂车信息 视图数据详情") |
|||
public class BusSalesOrderTrailerDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("销售订单sid") |
|||
private String salesOrderSid; // 销售订单sid
|
|||
@ApiModelProperty("挂车类型key") |
|||
private String trailerTypeKey; // 挂车类型key
|
|||
@ApiModelProperty("挂车类型value") |
|||
private String trailerTypeValue; // 挂车类型value
|
|||
@ApiModelProperty("外廓尺寸长") |
|||
private BigDecimal appearanceSizeLong; // 外廓尺寸长
|
|||
@ApiModelProperty("单台成交价") |
|||
private BigDecimal singleFinalPrice; // 单台成交价
|
|||
@ApiModelProperty("数量") |
|||
private Integer trailerCount; // 数量
|
|||
@ApiModelProperty("合同附件") |
|||
private List<BusSalesOrderTrailerFile> contractFile = new ArrayList<>(); // 合同附件
|
|||
@ApiModelProperty("同车型合格证附件") |
|||
private List<BusSalesOrderTrailerFile> certFile = new ArrayList<>(); // 同车型合格证附件
|
|||
@ApiModelProperty("0不过票,1过票") |
|||
private Integer isCompPassTicket; // 0不过票,1过票
|
|||
|
|||
} |
@ -0,0 +1,77 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.bussalesordertrailer; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售订单挂车信息) <br/> |
|||
* File: BusSalesOrderTrailerDto.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.bussalesordertrailer.BusSalesOrderTrailerDto <br/> |
|||
* Description: 销售订单-挂车信息 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-05-24 09:54:56 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售订单-挂车信息 数据传输对象", description = "销售订单-挂车信息 数据传输对象") |
|||
public class BusSalesOrderTrailerDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("销售订单sid") |
|||
private String salesOrderSid; // 销售订单sid
|
|||
@ApiModelProperty("挂车类型key") |
|||
private String trailerTypeKey; // 挂车类型key
|
|||
@ApiModelProperty("挂车类型value") |
|||
private String trailerTypeValue; // 挂车类型value
|
|||
@ApiModelProperty("外廓尺寸长") |
|||
private BigDecimal appearanceSizeLong; // 外廓尺寸长
|
|||
@ApiModelProperty("单台成交价") |
|||
private BigDecimal singleFinalPrice; // 单台成交价
|
|||
@ApiModelProperty("数量") |
|||
private Integer trailerCount; // 数量
|
|||
@ApiModelProperty("合同附件") |
|||
private List<String> contractFile = new ArrayList<>(); // 合同附件
|
|||
@ApiModelProperty("同车型合格证附件") |
|||
private List<String> certFile = new ArrayList<>(); // 同车型合格证附件
|
|||
@ApiModelProperty("0不过票,1过票") |
|||
private Integer isCompPassTicket; // 0不过票,1过票
|
|||
|
|||
} |
@ -0,0 +1,75 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.bussalesordertrailer; |
|||
|
|||
import com.yxt.anrui.buscenter.api.bussalesorderdiscount.app.AppBusSalesOrderDiscountDto; |
|||
import com.yxt.anrui.buscenter.api.bussalesorderdiscount.app.AppBusSalesOrderDiscountListVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售订单挂车信息) <br/> |
|||
* File: BusSalesOrderTrailerFeign.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.bussalesordertrailer.BusSalesOrderTrailerFeign <br/> |
|||
* Description: 销售订单-挂车信息. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-05-24 09:54:56 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "销售订单-挂车信息") |
|||
@FeignClient( |
|||
contextId = "anrui-buscenter-BusSalesOrderTrailer", |
|||
name = "anrui-buscenter", |
|||
path = "v1/bussalesordertrailer", |
|||
fallback = BusSalesOrderTrailerFeignFallback.class) |
|||
public interface BusSalesOrderTrailerFeign { |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody List<BusSalesOrderTrailerDto> dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delete") |
|||
@ResponseBody |
|||
public ResultBean delete(@RequestParam(value = "sid") String sid); |
|||
|
|||
@ApiOperation("根据销售订单sid获取一条记录") |
|||
@GetMapping("/fetchDetailsByOrderSid/{orderSid}") |
|||
@ResponseBody |
|||
public ResultBean<List<BusSalesOrderTrailerDetailsVo>> fetchDetailsByOrderSid(@PathVariable("orderSid") String orderSid); |
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.bussalesordertrailer; |
|||
|
|||
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: BusSalesOrderTrailerFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.bussalesordertrailer.BusSalesOrderTrailerFeignFallback <br/> |
|||
* Description: 销售订单-挂车信息. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-05-24 09:54:56 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class BusSalesOrderTrailerFeignFallback implements BusSalesOrderTrailerFeign { |
|||
|
|||
@Override |
|||
public ResultBean save(List<BusSalesOrderTrailerDto> dto) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delete(String sid) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<BusSalesOrderTrailerDetailsVo>> fetchDetailsByOrderSid(String orderSid) { |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,56 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.api.bussalesordertrailer; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售订单挂车信息) <br/> |
|||
* File: BusSalesOrderTrailerVo.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.bussalesordertrailer.BusSalesOrderTrailerVo <br/> |
|||
* Description: 销售订单-挂车信息 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-05-24 09:54:56 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售订单-挂车信息 视图数据详情", description = "销售订单-挂车信息 视图数据详情") |
|||
public class BusSalesOrderTrailerFile implements Vo { |
|||
|
|||
private String url; |
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.bussalesordertrailer; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.toolkit.Constants; |
|||
import com.yxt.anrui.buscenter.api.bussalesordertrailer.BusSalesOrderTrailerDetailsVo; |
|||
import org.apache.ibatis.annotations.Delete; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.apache.ibatis.annotations.Select; |
|||
import com.yxt.anrui.buscenter.api.bussalesordertrailer.BusSalesOrderTrailer; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售订单挂车信息) <br/> |
|||
* File: BusSalesOrderTrailerMapper.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.bussalesordertrailer.BusSalesOrderTrailerMapper <br/> |
|||
* Description: 销售订单-挂车信息. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-05-24 09:54:56 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface BusSalesOrderTrailerMapper extends BaseMapper<BusSalesOrderTrailer> { |
|||
|
|||
@Select("select count(*) from bus_sales_order_trailer where salesOrderSid = #{saleOrderSid}") |
|||
int fetchByOrderSid(String saleOrderSid); |
|||
|
|||
@Delete("delete from bus_sales_order_trailer where salesOrderSid = #{salesOrderSid}") |
|||
void delByOrderSid(String salesOrderSid); |
|||
|
|||
@Select("select * from bus_sales_order_trailer where salesOrderSid = #{orderSid}") |
|||
List<BusSalesOrderTrailerDetailsVo> fetchAllByOrderSid(String orderSid); |
|||
} |
@ -0,0 +1,6 @@ |
|||
<?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.buscenter.biz.bussalesordertrailer.BusSalesOrderTrailerMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
</mapper> |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.bussalesordertrailer; |
|||
|
|||
import com.yxt.common.core.result.ResultBean; |
|||
import io.swagger.annotations.Api; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import com.yxt.anrui.buscenter.api.bussalesordertrailer.BusSalesOrderTrailerDetailsVo; |
|||
import com.yxt.anrui.buscenter.api.bussalesordertrailer.BusSalesOrderTrailerDto; |
|||
import com.yxt.anrui.buscenter.api.bussalesordertrailer.BusSalesOrderTrailerFeign; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售订单挂车信息) <br/> |
|||
* File: BusSalesOrderTrailerFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.bussalesordertrailer.BusSalesOrderTrailerRest <br/> |
|||
* Description: 销售订单-挂车信息. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-05-24 09:54:56 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "销售订单-挂车信息") |
|||
@RestController("com.yxt.anrui.buscenter.biz.bussalesordertrailer.BusSalesOrderTrailerRest") |
|||
@RequestMapping("v1/bussalesordertrailer") |
|||
public class BusSalesOrderTrailerRest implements BusSalesOrderTrailerFeign { |
|||
|
|||
@Autowired |
|||
private BusSalesOrderTrailerService busSalesOrderTrailerService; |
|||
|
|||
@Override |
|||
public ResultBean save(List<BusSalesOrderTrailerDto> dto) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delete(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
busSalesOrderTrailerService.deleteBySid(sid); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<List<BusSalesOrderTrailerDetailsVo>> fetchDetailsByOrderSid(String orderSid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
List<BusSalesOrderTrailerDetailsVo> busSalesOrderTrailerDetailsVos = busSalesOrderTrailerService.fetchAllByOrderSid(orderSid); |
|||
return rb.success().setData(busSalesOrderTrailerDetailsVos); |
|||
} |
|||
} |
@ -0,0 +1,134 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.buscenter.biz.bussalesordertrailer; |
|||
|
|||
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.bussalesordertrailer.BusSalesOrderTrailerFile; |
|||
import com.yxt.common.base.config.component.FileUploadComponent; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
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.vo.PagerVo; |
|||
import com.yxt.anrui.buscenter.api.bussalesordertrailer.BusSalesOrderTrailer; |
|||
import com.yxt.anrui.buscenter.api.bussalesordertrailer.BusSalesOrderTrailerDetailsVo; |
|||
import com.yxt.anrui.buscenter.api.bussalesordertrailer.BusSalesOrderTrailerDto; |
|||
|
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售订单挂车信息) <br/> |
|||
* File: BusSalesOrderTrailerService.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.biz.bussalesordertrailer.BusSalesOrderTrailerService <br/> |
|||
* Description: 销售订单-挂车信息 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-05-24 09:54:56 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class BusSalesOrderTrailerService extends MybatisBaseService<BusSalesOrderTrailerMapper, BusSalesOrderTrailer> { |
|||
|
|||
@Autowired |
|||
private FileUploadComponent fileUploadComponent; |
|||
|
|||
public void saveOrUpdateDto(BusSalesOrderTrailerDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
this.insertByDto(dto); |
|||
return; |
|||
} |
|||
this.updateByDto(dto); |
|||
} |
|||
|
|||
public void insertByDto(BusSalesOrderTrailerDto dto){ |
|||
BusSalesOrderTrailer entity = new BusSalesOrderTrailer(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
} |
|||
|
|||
public void updateByDto(BusSalesOrderTrailerDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
BusSalesOrderTrailer entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public BusSalesOrderTrailerDetailsVo fetchDetailsVoBySid(String sid){ |
|||
BusSalesOrderTrailer entity = fetchBySid(sid); |
|||
BusSalesOrderTrailerDetailsVo vo = new BusSalesOrderTrailerDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
|
|||
public int fetchByOrderSid(String saleOrderSid) { |
|||
return baseMapper.fetchByOrderSid(saleOrderSid); |
|||
} |
|||
|
|||
public void delByOrderSid(String salesOrderSid) { |
|||
baseMapper.delByOrderSid(salesOrderSid); |
|||
} |
|||
|
|||
public List<BusSalesOrderTrailerDetailsVo> fetchAllByOrderSid(String orderSid) { |
|||
List<BusSalesOrderTrailerDetailsVo> busSalesOrderTrailerDetailsVos = baseMapper.fetchAllByOrderSid(orderSid); |
|||
for (BusSalesOrderTrailerDetailsVo busSalesOrderTrailerDetailsVo : busSalesOrderTrailerDetailsVos) { |
|||
BusSalesOrderTrailer busSalesOrderTrailer = fetchBySid(busSalesOrderTrailerDetailsVo.getSid()); |
|||
String certFile = busSalesOrderTrailer.getCertFile(); |
|||
String[] certFiles = certFile.split(","); |
|||
List<BusSalesOrderTrailerFile> certFiless = new ArrayList<>(); |
|||
for (String file : certFiles) { |
|||
String url = fileUploadComponent.getUrlPrefix() + file; |
|||
BusSalesOrderTrailerFile busSalesOrderTrailerFile = new BusSalesOrderTrailerFile(); |
|||
busSalesOrderTrailerFile.setUrl(url); |
|||
certFiless.add(busSalesOrderTrailerFile); |
|||
} |
|||
String contractFile = busSalesOrderTrailer.getContractFile(); |
|||
String[] contractFiles = contractFile.split(","); |
|||
List<BusSalesOrderTrailerFile> contractFiless = new ArrayList<>(); |
|||
for (String file : contractFiles) { |
|||
String url = fileUploadComponent.getUrlPrefix() + file; |
|||
BusSalesOrderTrailerFile busSalesOrderTrailerFile = new BusSalesOrderTrailerFile(); |
|||
busSalesOrderTrailerFile.setUrl(url); |
|||
contractFiless.add(busSalesOrderTrailerFile); |
|||
} |
|||
busSalesOrderTrailerDetailsVo.setCertFile(certFiless); |
|||
busSalesOrderTrailerDetailsVo.setContractFile(contractFiless); |
|||
} |
|||
return busSalesOrderTrailerDetailsVos; |
|||
} |
|||
} |
@ -0,0 +1,80 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.autoservice.saleOrders.trailer; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售订单挂车信息) <br/> |
|||
* File: BusSalesOrderTrailerVo.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.bussalesordertrailer.BusSalesOrderTrailerVo <br/> |
|||
* Description: 销售订单-挂车信息 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-05-24 09:54:56 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售订单-挂车信息 视图数据详情", description = "销售订单-挂车信息 视图数据详情") |
|||
public class AppSalesOrderTrailerDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("销售订单sid") |
|||
private String salesOrderSid; // 销售订单sid
|
|||
@ApiModelProperty("挂车类型key") |
|||
private String trailerTypeKey; // 挂车类型key
|
|||
@ApiModelProperty("挂车类型value") |
|||
private String trailerTypeValue; // 挂车类型value
|
|||
@ApiModelProperty("外廓尺寸长") |
|||
private String appearanceSizeLong; // 外廓尺寸长
|
|||
@ApiModelProperty("单台成交价") |
|||
private BigDecimal singleFinalPrice; // 单台成交价
|
|||
@ApiModelProperty("数量") |
|||
private Integer trailerCount; // 数量
|
|||
@ApiModelProperty("合同附件") |
|||
private List<String> contractFile = new ArrayList<>(); // 合同附件
|
|||
@ApiModelProperty("同车型合格证附件") |
|||
private List<String> certFile = new ArrayList<>(); // 同车型合格证附件
|
|||
@ApiModelProperty("序号") |
|||
private Integer sort; // 序号
|
|||
@ApiModelProperty("0不过票,1过票") |
|||
private Integer isCompPassTicket; // 0不过票,1过票
|
|||
|
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.autoservice.saleOrders.trailer; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-buscenter(销售订单挂车信息) <br/> |
|||
* File: BusSalesOrderTrailerDto.java <br/> |
|||
* Class: com.yxt.anrui.buscenter.api.bussalesordertrailer.BusSalesOrderTrailerDto <br/> |
|||
* Description: 销售订单-挂车信息 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2024-05-24 09:54:56 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "销售订单-挂车信息 数据传输对象", description = "销售订单-挂车信息 数据传输对象") |
|||
public class AppSalesOrderTrailerDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("销售订单sid") |
|||
private String salesOrderSid; // 销售订单sid
|
|||
@ApiModelProperty("挂车类型key") |
|||
private String trailerTypeKey; // 挂车类型key
|
|||
@ApiModelProperty("挂车类型value") |
|||
private String trailerTypeValue; // 挂车类型value
|
|||
@ApiModelProperty("外廓尺寸长") |
|||
private BigDecimal appearanceSizeLong; // 外廓尺寸长
|
|||
@ApiModelProperty("单台成交价") |
|||
private BigDecimal singleFinalPrice; // 单台成交价
|
|||
@ApiModelProperty("数量") |
|||
private Integer trailerCount; // 数量
|
|||
@ApiModelProperty("合同附件") |
|||
private List<String> contractFile = new ArrayList<>(); // 合同附件
|
|||
@ApiModelProperty("同车型合格证附件") |
|||
private List<String> certFile = new ArrayList<>(); // 同车型合格证附件
|
|||
@ApiModelProperty("序号") |
|||
private Integer sort; // 序号
|
|||
@ApiModelProperty("0不过票,1过票") |
|||
private Integer isCompPassTicket; // 0不过票,1过票
|
|||
|
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.yxt.anrui.terminal.api.autoservice.saleOrders.trailer; |
|||
|
|||
import com.yxt.anrui.terminal.api.autoservice.saleOrders.discount.DiscountListVo; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/6/2 13:55 |
|||
* @Description 销售订单-主车优惠 |
|||
*/ |
|||
@Data |
|||
public class TrailerVo implements Vo { |
|||
private static final long serialVersionUID = -1835469698115349175L; |
|||
|
|||
private String total; |
|||
private List<AppSalesOrderTrailerDetailsVo> records; |
|||
} |
@ -0,0 +1,35 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.as.api.asbusclaiminvoicebill; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class AsBusclaimInvoiceBillFile implements Vo { |
|||
|
|||
private String url; |
|||
} |
Loading…
Reference in new issue