|
|
@ -605,7 +605,7 @@ |
|
|
|
AND bv.modelConfigSid = bvc.configurationItemsSid |
|
|
|
and (bv.vehicleStateValue = '库存' or bv.vehicleStateValue = '在途' or bv.vehicleStateValue = '调入') |
|
|
|
AND bv.lockedState = #{lockedStateKey} |
|
|
|
and bv.useOrgSid = #{orgSid} and bv.isProblemVeh = '0') AS nowCarNum, |
|
|
|
and bv.useOrgSid = #{orgSid} and bv.isProblemVeh = '0' and length(bv.vinNo)>8) AS nowCarNum, |
|
|
|
(select SUM(cast((cast(bo.platformNo as signed)-IFNULL(cast(bo.lockingNum as signed),'0')) as signed)) |
|
|
|
as quantity from bus_vehicle_order bo |
|
|
|
LEFT JOIN bus_vehicle_apply_detail bd on bo.purchaseApplyMediumModelSid = bd.sid |
|
|
|