|
|
@ -5,16 +5,16 @@ |
|
|
|
<!-- ${ew.customSqlSegment} --> |
|
|
|
<select id="selectPageVo" resultType="com.yxt.anrui.base.api.busvehicleapplydetail.BusVehicleApplyDetailVo"> |
|
|
|
SELECT bvad.applySid, |
|
|
|
bvad.vehicleSid, |
|
|
|
bvad.vehicleName, |
|
|
|
bvad.configSid, |
|
|
|
bvad.actualQuantity |
|
|
|
, |
|
|
|
bvad.state, |
|
|
|
bvad.saleGuPrice, |
|
|
|
bva.brand |
|
|
|
bvad.vehicleSid, |
|
|
|
bvad.vehicleName, |
|
|
|
bvad.configSid, |
|
|
|
bvad.actualQuantity |
|
|
|
, |
|
|
|
bvad.state, |
|
|
|
bvad.saleGuPrice, |
|
|
|
bva.brand |
|
|
|
FROM bus_vehicle_apply_detail bvad |
|
|
|
left join bus_vehicle_apply bva on bvad.applySid = bva.sid |
|
|
|
left join bus_vehicle_apply bva on bvad.applySid = bva.sid |
|
|
|
<where> |
|
|
|
${ew.sqlSegment} |
|
|
|
</where> |
|
|
@ -36,27 +36,29 @@ |
|
|
|
<select id="applyPage" resultType="com.yxt.anrui.base.api.busvehicleapplydetail.BusVehicleApplyListVo"> |
|
|
|
select bo.sid linkSid, bo.orderNo linkNo, bo.orderDate linkText, bo.platformNo, bo.lockingNum |
|
|
|
from bus_vehicle_apply_detail bd |
|
|
|
left join bus_vehicle_apply bv on bd.applySid = bv.sid |
|
|
|
left join bus_vehicle_order bo on bo.purchaseApplyMediumModelSid = bd.sid |
|
|
|
${ew.customSqlSegment} |
|
|
|
left join bus_vehicle_apply bv on bd.applySid = bv.sid |
|
|
|
left join bus_vehicle_order bo on bo.purchaseApplyMediumModelSid = bd.sid |
|
|
|
${ew.customSqlSegment} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectOrderCount" resultType="com.yxt.anrui.base.api.busvehicleorder.OrderListVo"> |
|
|
|
select bo.platformNo, bo.lockingNum |
|
|
|
from bus_vehicle_apply_detail bd |
|
|
|
left join bus_vehicle_apply bv on bd.applySid = bv.sid |
|
|
|
left join bus_vehicle_order bo on bo.purchaseApplyMediumModelSid = bd.sid |
|
|
|
${ew.customSqlSegment} |
|
|
|
left join bus_vehicle_apply bv on bd.applySid = bv.sid |
|
|
|
left join bus_vehicle_order bo on bo.purchaseApplyMediumModelSid = bd.sid |
|
|
|
${ew.customSqlSegment} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getAppApplyList" resultType="com.yxt.anrui.base.api.busvehicleapplydetail.AppBusVehicleApplyListVo"> |
|
|
|
select bo.sid, bo.orderNo orderId, bo.orderDate date, bo.platformNo as totalNum, bo.lockingNum |
|
|
|
from bus_vehicle_apply_detail bd |
|
|
|
left join bus_vehicle_apply bv on bd.applySid = bv.sid |
|
|
|
left join bus_vehicle_order bo on bo.purchaseApplyMediumModelSid = bd.sid |
|
|
|
left join bus_vehicle_apply bv |
|
|
|
on bd.applySid = bv.sid |
|
|
|
left join bus_vehicle_order bo on bo.purchaseApplyMediumModelSid = bd.sid |
|
|
|
where bd.vehicleSid = #{modelSid} |
|
|
|
and bd.configSid = #{configSid} |
|
|
|
and length(bo.platformNo) > 0 |
|
|
|
and length (bo.platformNo) |
|
|
|
> 0 |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getVehicleApply" resultType="com.yxt.anrui.base.api.busvehicleapply.app.AppVehicleApplyListVo"> |
|
|
@ -72,7 +74,15 @@ |
|
|
|
bsz.sid topSid, |
|
|
|
bd.actualPay |
|
|
|
from bus_vehicle_apply_detail bd |
|
|
|
left join bus_vehicle_apply_sz bsz on bsz.detailsSid = bd.sid |
|
|
|
left join bus_vehicle_apply_sz bsz on bsz.detailsSid = bd.sid |
|
|
|
where bd.applySid = #{sid} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="fetchVehNoByMMCSid" resultType="java.lang.String"> |
|
|
|
SELECT vehicleNo |
|
|
|
FROM bus_vehicle_apply_detail |
|
|
|
WHERE applySid = #{mainSid} |
|
|
|
AND vehicleSid = #{modelSid} |
|
|
|
AND configSid = #{configSid} |
|
|
|
</select> |
|
|
|
</mapper> |