|
|
@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<result property="id" column="id" />
|
|
|
|
<result property="id" column="id" />
|
|
|
|
<result property="companyCode" column="company_code" />
|
|
|
|
<result property="companyCode" column="company_code" />
|
|
|
|
<result property="carQueueId" column="car_queue_id" />
|
|
|
|
<result property="carQueueId" column="car_queue_id" />
|
|
|
|
|
|
|
|
<result property="carQueue" column="car_queue" />
|
|
|
|
<result property="carTypeId" column="car_type_id" />
|
|
|
|
<result property="carTypeId" column="car_type_id" />
|
|
|
|
<result property="cartype" column="cartype" />
|
|
|
|
<result property="cartype" column="cartype" />
|
|
|
|
<result property="carLicense" column="car_license" />
|
|
|
|
<result property="carLicense" column="car_license" />
|
|
|
@ -76,9 +77,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
LEFT JOIN base_car_queue bcq ON bc.car_queue_id = bcq.id
|
|
|
|
LEFT JOIN base_car_queue bcq ON bc.car_queue_id = bcq.id
|
|
|
|
LEFT JOIN base_car_type bct ON bct.id = bc.car_type_id
|
|
|
|
LEFT JOIN base_car_type bct ON bct.id = bc.car_type_id
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
|
|
|
|
bc.is_delete != '1'
|
|
|
|
<if test="id != null and id != ''"> and bc.id = #{id} </if>
|
|
|
|
<if test="id != null and id != ''"> and bc.id = #{id} </if>
|
|
|
|
<if test="carLicense != null and carLicense != ''"> and bc.car_license like concat('%', #{carLicense}, '%') </if>
|
|
|
|
<if test="carLicense != null and carLicense != ''"> and bc.car_license like concat('%', #{carLicense}, '%') </if>
|
|
|
|
|
|
|
|
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
@ -129,13 +130,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
bt.current_texture_depth,
|
|
|
|
bt.current_texture_depth,
|
|
|
|
bt.state,
|
|
|
|
bt.state,
|
|
|
|
bt.tyre_position,
|
|
|
|
bt.tyre_position,
|
|
|
|
bct.title as cartype
|
|
|
|
bct.title as cartype,
|
|
|
|
|
|
|
|
bcq.title as car_queue
|
|
|
|
FROM
|
|
|
|
FROM
|
|
|
|
base_car bc
|
|
|
|
base_car bc
|
|
|
|
LEFT JOIN base_device bd ON bc.device_id = bd.internet_things_no
|
|
|
|
LEFT JOIN base_device bd ON bc.device_id = bd.internet_things_no
|
|
|
|
LEFT JOIN base_car_type bct ON bc.car_type_id=bct.id
|
|
|
|
LEFT JOIN base_car_type bct ON bc.car_type_id=bct.id
|
|
|
|
LEFT JOIN base_tyre bt on bt.car_id=bc.id
|
|
|
|
LEFT JOIN base_tyre bt on bt.car_id=bc.id
|
|
|
|
|
|
|
|
LEFT JOIN base_car_queue bcq ON bc.car_queue_id = bcq.id
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
bc.is_delete != '1'
|
|
|
|
bc.is_delete != '1'
|
|
|
|
<if test="id != null "> and bc.id = #{id}</if>
|
|
|
|
<if test="id != null "> and bc.id = #{id}</if>
|
|
|
@ -256,7 +258,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<!-- </foreach>-->
|
|
|
|
<!-- </foreach>-->
|
|
|
|
<!-- </delete>-->
|
|
|
|
<!-- </delete>-->
|
|
|
|
<update id="deleteBaseCarByIds" parameterType="String">
|
|
|
|
<update id="deleteBaseCarByIds" parameterType="String">
|
|
|
|
|
|
|
|
update base_car set is_delete = '1' where id in
|
|
|
|
|
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
|
|
|
|
|
#{id}
|
|
|
|
|
|
|
|
</foreach>
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
<update id="updateCarGPS" parameterType="BaseCar">
|
|
|
|
<update id="updateCarGPS" parameterType="BaseCar">
|
|
|
|
update base_car
|
|
|
|
update base_car
|
|
|
|