wujianwei
2026-01-08 850e19bd9655071cd801d74c240b70c61167b4cd
tms/src/main/resources/mapper/tms/TmsTripMapper.xml
@@ -23,10 +23,13 @@
        <result property="signImg"    column="sign_img"    />
        <result property="zjsfUrl"    column="zjsf_url"    />
        <result property="chqjkcnsUrl"    column="chqjkcns_url"    />
        <result property="longitude"    column="longitude"    />
        <result property="latitude"    column="latitude"    />
        <result property="iscc"    column="iscc"    />
    </resultMap>
    <sql id="selectTmsTripVo">
        select thisTab.id, thisTab.dispatch_order_id, thisTab.driver_id, thisTab.driver_name, thisTab.vehicle_id, thisTab.vehicle_number, thisTab.trip_type, thisTab.trip_time, thisTab.odometer, thisTab.address, thisTab.voucher_url, thisTab.create_by, thisTab.create_time, thisTab.update_time, thisTab.data_source, thisTab.sign_img, thisTab.zjsf_url, thisTab.chqjkcns_url from tms_trip AS thisTab
        select thisTab.id, thisTab.dispatch_order_id, thisTab.driver_id, thisTab.driver_name, thisTab.vehicle_id, thisTab.vehicle_number, thisTab.trip_type, thisTab.trip_time, thisTab.odometer, thisTab.address, thisTab.voucher_url, thisTab.create_by, thisTab.create_time, thisTab.update_time, thisTab.data_source, thisTab.sign_img, thisTab.zjsf_url, thisTab.chqjkcns_url, thisTab.longitude, thisTab.latitude ,thisTab.iscc from tms_trip AS thisTab
    </sql>
    <sql id="selectTmsTripVoCount">
        select count(0) from tms_trip as thisTab
@@ -44,6 +47,9 @@
        <if test="address != null  and address != ''"> and thisTab.address = #{address}</if>
        <if test="voucherUrl != null  and voucherUrl != ''"> and thisTab.voucher_url = #{voucherUrl}</if>
        <if test="dataSource != null  and dataSource != ''"> and thisTab.data_source = #{dataSource}</if>
        <if test="longitude != null  and longitude != ''"> and thisTab.longitude = #{longitude}</if>
        <if test="latitude != null  and latitude != ''"> and thisTab.latitude = #{latitude}</if>
        <if test="iscc != null  and iscc != ''"> and thisTab.iscc = #{iscc}</if>
    </sql>
    <!--查询-->
@@ -88,6 +94,9 @@
            <if test="signImg != null">sign_img,</if>
            <if test="zjsfUrl != null">zjsf_url,</if>
            <if test="chqjkcnsUrl != null">chqjkcns_url,</if>
            <if test="longitude != null">longitude,</if>
            <if test="latitude != null">latitude,</if>
            <if test="iscc != null">iscc,</if>
         </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="dispatchOrderId != null">#{dispatchOrderId},</if>
@@ -107,17 +116,20 @@
            <if test="signImg != null">#{signImg},</if>
            <if test="zjsfUrl != null">#{zjsfUrl},</if>
            <if test="chqjkcnsUrl != null">#{chqjkcnsUrl},</if>
            <if test="longitude != null">#{longitude},</if>
            <if test="latitude != null">#{latitude},</if>
            <if test="iscc != null">#{iscc},</if>
         </trim>
    </insert>
    <insert id="insertTmsTripBatch" parameterType="java.util.List"  useGeneratedKeys="true" keyProperty="id">
        insert into tms_trip
        <trim prefix="(" suffix=") values" suffixOverrides=",">
            id,dispatch_order_id,driver_id,driver_name,vehicle_id,vehicle_number,trip_type,trip_time,odometer,address,voucher_url,create_by,create_time,update_time,data_source,sign_img,zjsf_url,chqjkcns_url,
            id,dispatch_order_id,driver_id,driver_name,vehicle_id,vehicle_number,trip_type,trip_time,odometer,address,voucher_url,create_by,create_time,update_time,data_source,sign_img,zjsf_url,chqjkcns_url,longitude,latitude,iscc,
        </trim>
        <foreach item="item" index="index" collection="list" separator=",">
            <trim prefix="(" suffix=") " suffixOverrides=",">
                #{item.id},#{item.dispatchOrderId},#{item.driverId},#{item.driverName},#{item.vehicleId},#{item.vehicleNumber},#{item.tripType},#{item.tripTime},#{item.odometer},#{item.address},#{item.voucherUrl},#{item.createBy},#{item.createTime},#{item.updateTime},#{item.dataSource},#{item.signImg},#{item.zjsfUrl},#{item.chqjkcnsUrl},
                #{item.id},#{item.dispatchOrderId},#{item.driverId},#{item.driverName},#{item.vehicleId},#{item.vehicleNumber},#{item.tripType},#{item.tripTime},#{item.odometer},#{item.address},#{item.voucherUrl},#{item.createBy},#{item.createTime},#{item.updateTime},#{item.dataSource},#{item.signImg},#{item.zjsfUrl},#{item.chqjkcnsUrl},#{item.longitude},#{item.latitude},#{item.iscc},
            </trim>
        </foreach>
    </insert>
@@ -143,6 +155,9 @@
            <if test="signImg != null">sign_img = #{signImg},</if>
            <if test="zjsfUrl != null">zjsf_url = #{zjsfUrl},</if>
            <if test="chqjkcnsUrl != null">chqjkcns_url = #{chqjkcnsUrl},</if>
            <if test="longitude != null">longitude = #{longitude},</if>
            <if test="latitude != null">latitude = #{latitude},</if>
            <if test="iscc != null">iscc = #{iscc},</if>
        </trim>
        where id = #{id}
    </update>
@@ -168,6 +183,9 @@
                <if test="item.signImg != null">sign_img = #{item.signImg},</if>
                <if test="item.zjsfUrl != null">zjsf_url = #{item.zjsfUrl},</if>
                <if test="item.chqjkcnsUrl != null">chqjkcns_url = #{item.chqjkcnsUrl},</if>
                <if test="item.longitude != null">longitude = #{item.longitude},</if>
                <if test="item.latitude != null">latitude = #{item.latitude},</if>
                <if test="item.iscc != null">iscc = #{item.iscc},</if>
            </trim>
        where id = #{item.id}
        </foreach>