|
|
@ -624,7 +624,8 @@ |
|
|
|
bvm.vehicleAlias as modelName, |
|
|
|
bvm.brandName as brand, |
|
|
|
bvm.carBrand as brandSid, |
|
|
|
(SELECT count(*) |
|
|
|
(SELECT |
|
|
|
count(*) |
|
|
|
FROM base_vehicle bv |
|
|
|
WHERE bv.modelSid = bvc.modelSid |
|
|
|
AND bv.modelConfigSid = bvc.configurationItemsSid |
|
|
@ -644,13 +645,17 @@ |
|
|
|
<if test="orgSid != null and orgSid != ''"> |
|
|
|
and bvc.useOrgSid = #{orgSid} |
|
|
|
</if> |
|
|
|
and (SELECT count (*) |
|
|
|
FROM base_vehicle bv |
|
|
|
WHERE bv.modelSid = bvc.modelSid |
|
|
|
AND ( |
|
|
|
SELECT |
|
|
|
count(*) |
|
|
|
FROM |
|
|
|
base_vehicle bv |
|
|
|
WHERE |
|
|
|
bv.modelSid = bvc.modelSid |
|
|
|
AND bv.modelConfigSid = bvc.configurationItemsSid |
|
|
|
AND bv.lockedState = #{state} |
|
|
|
and bv.useOrg = #{orgSid}) |
|
|
|
> 0 |
|
|
|
AND bv.useOrg = #{orgSid} |
|
|
|
) > 0 |
|
|
|
</where> |
|
|
|
|
|
|
|
|
|
|
|