20 changed files with 522 additions and 362 deletions
@ -0,0 +1,26 @@ |
|||
package com.yxt.anrui.buscenter.api.busdeliveredapply; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/4/24 15:04 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class BusDeliveredApplyDetailQuery implements Query { |
|||
private static final long serialVersionUID = 1182664979141877875L; |
|||
@ApiModelProperty(value = "出库申请sid") |
|||
private String sid; |
|||
|
|||
@ApiModelProperty(value = "车辆申请集合") |
|||
private BusDeliveredApplyDetailVo detailVo; |
|||
|
|||
@ApiModelProperty(value = "勾选的合同编号集合") |
|||
private List<String> stringList = new ArrayList<>(); |
|||
} |
@ -1,13 +1,29 @@ |
|||
<?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.busdelivered.BusDeliveredMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.buscenter.api.busdelivered.BusDeliveredVo"> |
|||
SELECT * FROM bus_delivered <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.buscenter.api.busdelivered.BusDeliveredVo"> |
|||
SELECT * FROM bus_delivered <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.buscenter.api.busdelivered.BusDeliveredVo"> |
|||
SELECT bd.sid, |
|||
<!--合同编号--> |
|||
bd.contractNo, |
|||
<!--客户名称--> |
|||
bd.name, |
|||
<!--车架号--> |
|||
bd.vinNo, |
|||
<!--认款状态--> |
|||
case bd.type |
|||
when 1 then '已交款' |
|||
when 2 then '未交款' end as type |
|||
FROM bus_delivered bd |
|||
${ew.customSqlSegment} |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.buscenter.api.busdelivered.BusDeliveredVo"> |
|||
SELECT * |
|||
FROM bus_delivered |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
</mapper> |
@ -1,13 +1,38 @@ |
|||
<?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.busdeliveredapplydetails.BusDeliveredApplyDetailsMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.buscenter.api.busdeliveredapplydetails.BusDeliveredApplyDetailsVo"> |
|||
SELECT * FROM bus_delivered_apply_details <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.buscenter.api.busdeliveredapplydetails.BusDeliveredApplyDetailsVo"> |
|||
SELECT * FROM bus_delivered_apply_details <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" |
|||
resultType="com.yxt.anrui.buscenter.api.busdeliveredapplydetails.BusDeliveredApplyDetailsVo"> |
|||
SELECT * |
|||
FROM bus_delivered_apply_details |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" |
|||
resultType="com.yxt.anrui.buscenter.api.busdeliveredapplydetails.BusDeliveredApplyDetailsVo"> |
|||
SELECT * |
|||
FROM bus_delivered_apply_details |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="detailsList" |
|||
resultType="com.yxt.anrui.buscenter.api.busdeliveredapplydetails.BusDeliveredApplyDetailsVo"> |
|||
select ba.sid, |
|||
<!--车架号--> |
|||
ba.vinNo, |
|||
<!--成交价--> |
|||
ba.price, |
|||
<!--使用人信息sid--> |
|||
ba.useMessageSid, |
|||
<!--备注--> |
|||
ba.remarks |
|||
from bus_delivered_apply_details ba |
|||
where applySid = #{sid} |
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue