车辆修改
This commit is contained in:
parent
c7fd8184fe
commit
7690223abc
@ -19,7 +19,7 @@
|
|||||||
<if test="param.isBlack != null and param.isBlack != ''">
|
<if test="param.isBlack != null and param.isBlack != ''">
|
||||||
and t.is_black=#{param.isBlack}
|
and t.is_black=#{param.isBlack}
|
||||||
</if>
|
</if>
|
||||||
<if test="param.carModuleType != null and param.carModuleType != ''">
|
<if test="param.carModuleType != null and param.carModuleType != '' and param.carModuleType != '4'.toString()">
|
||||||
and t.car_module_type = #{param.carModuleType}
|
and t.car_module_type = #{param.carModuleType}
|
||||||
</if>
|
</if>
|
||||||
<if test="param.enterpriseIds != null and param.enterpriseIds.size() != 0">
|
<if test="param.enterpriseIds != null and param.enterpriseIds.size() != 0">
|
||||||
|
|||||||
@ -21,7 +21,8 @@
|
|||||||
ORDER BY a.pass_time DESC
|
ORDER BY a.pass_time DESC
|
||||||
</select>
|
</select>
|
||||||
<select id="getCarPassRecordList" resultType="com.zhgd.xmgl.modules.car.entity.CarPassRecord">
|
<select id="getCarPassRecordList" resultType="com.zhgd.xmgl.modules.car.entity.CarPassRecord">
|
||||||
SELECT a.*, b.is_black
|
SELECT a.*, b.is_black,
|
||||||
|
ifnull(b.car_module_type,4) as carModuleType
|
||||||
FROM car_pass_record a
|
FROM car_pass_record a
|
||||||
LEFT JOIN car_info b ON (a.project_sn = b.project_sn AND a.car_number = b.car_number)
|
LEFT JOIN car_info b ON (a.project_sn = b.project_sn AND a.car_number = b.car_number)
|
||||||
WHERE a.project_sn = #{projectSn}
|
WHERE a.project_sn = #{projectSn}
|
||||||
@ -167,7 +168,7 @@
|
|||||||
left join (<include refid="com.zhgd.xmgl.modules.car.mapper.CarInfoMapper.all"/>) as b ON (t.project_sn =
|
left join (<include refid="com.zhgd.xmgl.modules.car.mapper.CarInfoMapper.all"/>) as b ON (t.project_sn =
|
||||||
b.project_sn AND t.car_number = b.car_number)
|
b.project_sn AND t.car_number = b.car_number)
|
||||||
where t.project_sn = #{param.projectSn}
|
where t.project_sn = #{param.projectSn}
|
||||||
<if test="param.carModuleType != null and param.carModuleType != ''">
|
<if test="param.carModuleType != null and param.carModuleType != '' and param.carModuleType != '4'.toString()">
|
||||||
and b.car_module_type = #{param.carModuleType}
|
and b.car_module_type = #{param.carModuleType}
|
||||||
</if>
|
</if>
|
||||||
<if test="param.carModuleType == '4'.toString()">
|
<if test="param.carModuleType == '4'.toString()">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user