|
@ -1337,10 +1337,10 @@ |
|
|
<select id="specialRebateDisGetVehPageList" |
|
|
<select id="specialRebateDisGetVehPageList" |
|
|
resultType="com.yxt.anrui.base.api.basevehicle.BaseSpecialRebateDisGetVehVo"> |
|
|
resultType="com.yxt.anrui.base.api.basevehicle.BaseSpecialRebateDisGetVehVo"> |
|
|
SELECT |
|
|
SELECT |
|
|
bvm.brandName, |
|
|
bv.carBrandName AS brandName, |
|
|
bmc.carColor color, |
|
|
bmc.carColor color, |
|
|
bv.locationName location, |
|
|
bv.locationName location, |
|
|
bv.sid as vehSid, |
|
|
bv.sid AS vehSid, |
|
|
bv.modelSid, |
|
|
bv.modelSid, |
|
|
bv.modelName, |
|
|
bv.modelName, |
|
|
bv.vinNo, |
|
|
bv.vinNo, |
|
@ -1350,23 +1350,20 @@ |
|
|
bv.solidDate |
|
|
bv.solidDate |
|
|
FROM |
|
|
FROM |
|
|
base_vehicle bv |
|
|
base_vehicle bv |
|
|
LEFT JOIN base_vehicle_model bvm |
|
|
LEFT JOIN base_model_config bmc |
|
|
ON bv.modelSid = bvm.sid |
|
|
ON bv.modelConfigSid = bmc.sid |
|
|
AND bv.createOrgSid = bvm.createOrg |
|
|
|
|
|
LEFT JOIN base_vehicle_brand bvb |
|
|
|
|
|
ON bvm.carBrand = bvb.sid |
|
|
|
|
|
LEFT JOIN base_model_config bmc ON bv.modelConfigSid = bmc.sid |
|
|
|
|
|
<where> |
|
|
<where> |
|
|
${ew.sqlSegment} |
|
|
${ew.sqlSegment} |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="getVehBySpecialRebateSid" resultType="com.yxt.anrui.base.api.basevehicle.BaseSpecialRebateDisGetVehVo"> |
|
|
<select id="getVehBySpecialRebateSid" resultType="com.yxt.anrui.base.api.basevehicle.BaseSpecialRebateDisGetVehVo"> |
|
|
SELECT bvm.brandName, |
|
|
SELECT |
|
|
|
|
|
bv.carBrandName AS brandName, |
|
|
bmc.carColor color, |
|
|
bmc.carColor color, |
|
|
bv.locationName location, |
|
|
bv.locationName location, |
|
|
ssv.vehSid, |
|
|
ssv.vehSid, |
|
|
ssv.sid as specialRebateVehSid, |
|
|
ssv.sid AS specialRebateVehSid, |
|
|
bv.modelSid, |
|
|
bv.modelSid, |
|
|
bv.modelName, |
|
|
bv.modelName, |
|
|
ssv.vinNo, |
|
|
ssv.vinNo, |
|
@ -1374,13 +1371,12 @@ |
|
|
bv.priceDate, |
|
|
bv.priceDate, |
|
|
bv.salesDate, |
|
|
bv.salesDate, |
|
|
bv.solidDate |
|
|
bv.solidDate |
|
|
FROM anrui_scm.scm_specialrebate_vehs ssv |
|
|
FROM |
|
|
|
|
|
anrui_scm.scm_specialrebate_vehs ssv |
|
|
LEFT JOIN anrui_base.base_vehicle bv |
|
|
LEFT JOIN anrui_base.base_vehicle bv |
|
|
ON ssv.vehSid = bv.sid |
|
|
ON ssv.vehSid = bv.sid |
|
|
LEFT JOIN base_vehicle_model bvm |
|
|
LEFT JOIN base_model_config bmc |
|
|
ON bv.modelSid = bvm.sid |
|
|
ON bv.modelConfigSid = bmc.sid |
|
|
AND bv.createOrgSid = bvm.createOrg |
|
|
|
|
|
LEFT JOIN base_model_config bmc ON bv.modelConfigSid = bmc.sid |
|
|
|
|
|
WHERE ssv.specialRebateSid = #{specialRebateSid} |
|
|
WHERE ssv.specialRebateSid = #{specialRebateSid} |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
@ -1535,18 +1531,14 @@ |
|
|
|
|
|
|
|
|
<select id="vehicleCollectionPageList" resultType="com.yxt.anrui.base.api.basevehicle.BaseChoiceVehicleVo"> |
|
|
<select id="vehicleCollectionPageList" resultType="com.yxt.anrui.base.api.basevehicle.BaseChoiceVehicleVo"> |
|
|
SELECT bv.sid, |
|
|
SELECT bv.sid, |
|
|
bvm.vehicleAlias, |
|
|
bv.modelName AS vehicleAlias, |
|
|
bvm.sid as carModelSid, |
|
|
bv.modelSid AS carModelSid, |
|
|
LEFT(bv.vinNo,8) as vinNo, |
|
|
RIGHT(bv.vinNo,8) AS vinNo, |
|
|
bv.costPrice as guidedPrice, |
|
|
bv.costPrice AS guidedPrice, |
|
|
bv.priceDate, |
|
|
bv.priceDate, |
|
|
bv.salesDate, |
|
|
bv.salesDate, |
|
|
bv.solidDate |
|
|
bv.solidDate |
|
|
FROM base_vehicle bv |
|
|
FROM base_vehicle bv |
|
|
LEFT JOIN base_vehicle_model bvm ON bv.modelSid = bvm.sid |
|
|
|
|
|
LEFT JOIN base_model_config bmc ON bv.modelConfigSid = bmc.sid |
|
|
|
|
|
LEFT JOIN base_vehmodel_config bvc |
|
|
|
|
|
ON bvc.modelSid = bvm.sid AND bvc.configurationItemsSid = bmc.sid AND bvc.useOrgSid = bv.createOrgSid |
|
|
|
|
|
<where> |
|
|
<where> |
|
|
(bv.solidDate IS NULL AND bv.salesDate IS NOT NULL OR bv.salesDate IS NOT NULL) AND |
|
|
(bv.solidDate IS NULL AND bv.salesDate IS NOT NULL OR bv.salesDate IS NOT NULL) AND |
|
|
${ew.sqlSegment} |
|
|
${ew.sqlSegment} |
|
|