
11 changed files with 318 additions and 38 deletions
@ -0,0 +1,76 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.base.api.basevehicleoutapply; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-base(销售出库单) <br/> |
|||
* File: BaseVehicleOutApplyQuery.java <br/> |
|||
* Class: com.yxt.anrui.base.api.basevehicleoutapply.BaseVehicleOutApplyQuery <br/> |
|||
* Description: 车辆出库单 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-01-12 08:54:50 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "车辆出库单 查询条件", description = "车辆出库单 查询条件") |
|||
public class BaseVehicleOutApplyQueryNew implements Query { |
|||
|
|||
@ApiModelProperty("物料编码") |
|||
private String materialCode; |
|||
@ApiModelProperty("销售类型key") |
|||
private String typeKey; |
|||
@ApiModelProperty("销售日期开始时间") |
|||
private String saleDateStart; |
|||
@ApiModelProperty("销售日期结束时间") |
|||
private String saleDateEnd; |
|||
@ApiModelProperty("合同编号") |
|||
private String concatNo; |
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; |
|||
@ApiModelProperty("销售部门") |
|||
private String orgDeptSid; |
|||
@ApiModelProperty("销售专员") |
|||
private String staffSid; |
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; |
|||
@ApiModelProperty("内部编码") |
|||
private String insideCode; |
|||
@ApiModelProperty("分公司sid") |
|||
private String orgSid; |
|||
@ApiModelProperty(value = "组织全路径") |
|||
private String orgSidPath; |
|||
|
|||
} |
@ -0,0 +1,104 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.base.api.basevehicleoutapply; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui-base(销售出库单) <br/> |
|||
* File: BaseVehicleOutApplyVo.java <br/> |
|||
* Class: com.yxt.anrui.base.api.basevehicleoutapply.BaseVehicleOutApplyVo <br/> |
|||
* Description: 车辆出库单 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-01-12 08:54:50 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "车辆出库单 视图数据对象", description = "车辆出库单 视图数据对象") |
|||
public class BaseVehicleOutApplyVoNew implements Vo { |
|||
|
|||
@ApiModelProperty("sid") |
|||
private String sid; |
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; |
|||
@ApiModelProperty("分公司sid") |
|||
private String createOrgSid; |
|||
@ApiModelProperty("分公司名称") |
|||
private String createOrgName; |
|||
@ApiModelProperty("简述配置") |
|||
private String modelConfig; |
|||
@ApiModelProperty("内部编码") |
|||
private String insideCode; |
|||
@ApiModelProperty("销售类型") |
|||
private String type; |
|||
@ApiModelProperty("采购类型") |
|||
private String manPurOrderTypeValue; |
|||
@ApiModelProperty("销售日期") |
|||
private String saleDate; |
|||
@ApiModelProperty("成交价") |
|||
private String price; |
|||
@ApiModelProperty("销售部门") |
|||
private String orgName; |
|||
@ApiModelProperty("销售专员") |
|||
private String staffName; |
|||
@ApiModelProperty("合同编号") |
|||
private String concatNo; |
|||
@ApiModelProperty("是否为终端客户") |
|||
private String isTerminal; |
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; |
|||
@ApiModelProperty("手机号码") |
|||
private String mobile; |
|||
@ApiModelProperty("物料名称") |
|||
private String materialName; |
|||
@ApiModelProperty("物料编码") |
|||
private String materialCode; |
|||
@ApiModelProperty("赠品价值") |
|||
private String giftsDescription; |
|||
@ApiModelProperty("销售折让") |
|||
private String salesAllowance; |
|||
@ApiModelProperty("中介人1") |
|||
private String middleOne; |
|||
@ApiModelProperty("返利金额1") |
|||
private String rebateMoneyOne; |
|||
@ApiModelProperty("中介人2") |
|||
private String middleTwo; |
|||
@ApiModelProperty("返利金额2") |
|||
private String rebateMoneyTwo; |
|||
@ApiModelProperty("内部引荐人姓名") |
|||
private String innerName; |
|||
|
|||
|
|||
|
|||
} |
@ -1,13 +1,55 @@ |
|||
<?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.base.biz.basevehicleoutapply.BaseVehicleOutApplyMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.base.api.basevehicleoutapply.BaseVehicleOutApplyVo"> |
|||
SELECT * FROM base_vehicle_out_apply <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.base.api.basevehicleoutapply.BaseVehicleOutApplyVo"> |
|||
SELECT * FROM base_vehicle_out_apply <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.base.api.basevehicleoutapply.BaseVehicleOutApplyVoNew"> |
|||
SELECT |
|||
bvoa.`sid`, |
|||
bvo.vinNo, |
|||
bvoa.`createOrgSid`, |
|||
bv.configName AS modelConfig, |
|||
bv.insideCode, |
|||
bvo.type, |
|||
bvo.manPurOrderTypeValue, |
|||
bvoa.`saleDate`, |
|||
bvo.`price`, |
|||
bvoa.`orgName`, |
|||
bvoa.`staffName`, |
|||
bvoa.`contractNo`, |
|||
CASE |
|||
bvoa.isTerminal |
|||
WHEN 1 |
|||
THEN '是' |
|||
WHEN 0 |
|||
THEN '否' |
|||
END AS isTerminal, |
|||
bvoa.customerName, |
|||
bvoa.mobile, |
|||
bvo.materialName, |
|||
bvo.materialCode, |
|||
bvo.giftsDescription, |
|||
bvo.salesAllowance, |
|||
bvo.middleOne, |
|||
bvo.middleTwo, |
|||
bvo.rebateMoneyOne, |
|||
bvo.rebateMoneyTwo, |
|||
bvoa.innerName |
|||
FROM |
|||
base_vehicle_out_apply bvoa |
|||
LEFT JOIN base_vehicle_out bvo |
|||
ON bvoa.`sid` = bvo.`mainSid` |
|||
LEFT JOIN base_vehicle bv |
|||
ON bv.sid = bvo.vinSid |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.base.api.basevehicleoutapply.BaseVehicleOutApplyVo"> |
|||
SELECT * FROM base_vehicle_out_apply |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue