| | |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="dataSource" column="data_source" /> |
| | | <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 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 |
| | |
| | | <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> |
| | | |
| | | <!--查询--> |
| | |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="dataSource != null">data_source,</if> |
| | | <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> |
| | |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="dataSource != null">#{dataSource},</if> |
| | | <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, |
| | | 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.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> |
| | |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="dataSource != null">data_source = #{dataSource},</if> |
| | | <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> |
| | |
| | | <if test="item.createTime != null">create_time = #{item.createTime},</if> |
| | | <if test="item.updateTime != null">update_time = #{item.updateTime},</if> |
| | | <if test="item.dataSource != null">data_source = #{item.dataSource},</if> |
| | | <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> |