Browse Source

更改

master
ligaode 4 months ago
parent
commit
c6998c1a54
  1. 34
      anrui-base/anrui-base-biz/src/main/java/com/yxt/anrui/base/biz/basevehicle/BaseVehicleMapper.xml

34
anrui-base/anrui-base-biz/src/main/java/com/yxt/anrui/base/biz/basevehicle/BaseVehicleMapper.xml

@ -781,7 +781,8 @@
bvm.vehicleTypeCode, bvm.vehicleTypeCode,
bmc.configCode bmc.configCode
FROM base_vehmodel_config bvc FROM base_vehmodel_config bvc
LEFT JOIN base_vehicle_model bvm ON bvc.modelSid = bvm.sid LEFT JOIN base_vehicle_model bvm
ON bvc.modelSid = bvm.sid
LEFT JOIN base_model_config bmc ON bvc.configurationItemsSid = bmc.sid LEFT JOIN base_model_config bmc ON bvc.configurationItemsSid = bmc.sid
WHERE bvc.modelSid = #{modelSid} WHERE bvc.modelSid = #{modelSid}
AND bvc.configurationItemsSid = #{configSid} AND bvc.configurationItemsSid = #{configSid}
@ -1109,7 +1110,8 @@
or bv.vehicleStateValue = '在途' or bv.vehicleStateValue = '在途'
or bv.vehicleStateValue = '调入' or bv.vehicleStateValue = '调入'
) )
and bv.isDelete = 0 and length(bv.vinNo)>8 and bv.isDelete = 0
and length(bv.vinNo) > 8
order by isFictitious, bv.locationName, bv.vinNo desc order by isFictitious, bv.locationName, bv.vinNo desc
</select> </select>
@ -1304,7 +1306,7 @@
<select id="selectByVinNoAndOrgSid" resultType="com.yxt.anrui.base.api.basevehicle.BaseVehicle"> <select id="selectByVinNoAndOrgSid" resultType="com.yxt.anrui.base.api.basevehicle.BaseVehicle">
SELECT * SELECT *
FROM base_vehicle FROM base_vehicle
WHERE vinNo like concat('%',#{vinNo},'%') WHERE vinNo like concat('%', #{vinNo}, '%')
AND useOrgSid = #{useOrgSid} AND useOrgSid = #{useOrgSid}
AND isDelete = 0 AND isDelete = 0
AND vehicleState != "0004" AND vehicleState != "0004"
@ -1313,21 +1315,18 @@
<select id="vehicleRebatePageList" resultType="com.yxt.anrui.base.api.basevehicle.BaseVehicleRebateVo"> <select id="vehicleRebatePageList" resultType="com.yxt.anrui.base.api.basevehicle.BaseVehicleRebateVo">
SELECT SELECT
bv.sid, bv.sid,
bvm.carBrand, bv.carBrandSid AS carBrand,
bvm.brandName, bv.carBrandName AS brandName,
bv.purchaseSystemSid, bv.purchaseSystemSid,
bv.purchaseSystemName, bv.purchaseSystemName,
bvm.vehicleAlias, bv.modelName AS vehicleAlias,
bvm.sid AS modelSid, bv.modelSid,
bv.vinNo, bv.vinNo,
bv.freight, bv.freight,
bv.costPrice, bv.costPrice,
IFNULL(bs.costPrice, 0) AS topAmount IFNULL(bs.costPrice, 0) AS topAmount
FROM FROM
base_vehicle bv base_vehicle bv
LEFT JOIN base_vehicle_model bvm
ON bv.modelSid = bvm.sid
AND bv.createOrgSid = bvm.createOrg
LEFT JOIN base_vehinstall bs LEFT JOIN base_vehinstall bs
ON RIGHT(bv.vinNo, 8) = RIGHT(bs.vinNo, 8) ON RIGHT(bv.vinNo, 8) = RIGHT(bs.vinNo, 8)
<where> <where>
@ -1823,19 +1822,16 @@
</select> </select>
<select id="selectVinNo" resultType="int"> <select id="selectVinNo" resultType="int">
SELECT SELECT COUNT(*)
COUNT(*) FROM base_vehicle
FROM
base_vehicle
WHERE vinNo LIKE CONCAT('%', #{vinNo}, '%') WHERE vinNo LIKE CONCAT('%', #{vinNo}, '%')
AND isDelete = 0 AND isDelete = 0
AND vehicleState != "0004" AND vehicleState != "0004"
</select> </select>
<select id="selOneByVinNo" resultType="com.yxt.anrui.base.api.basevehicle.BaseVehicle"> <select id="selOneByVinNo" resultType="com.yxt.anrui.base.api.basevehicle.BaseVehicle">
SELECT SELECT *
* FROM base_vehicle bv
FROM WHERE bv.isDelete = '0'
base_vehicle bv AND bv.vinNo LIKE CONCAT('%', #{substringVinNo}, '%')
WHERE bv.isDelete = '0' AND bv.vinNo LIKE CONCAT( '%', #{substringVinNo}, '%' )
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save