| | |
| | | <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" /> |
| | | </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 from tms_trip AS thisTab |
| | | </sql> |
| | | <sql id="selectTmsTripVoCount"> |
| | | select count(0) from tms_trip as thisTab |
| | |
| | | <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> |
| | | </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> |
| | | </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, |
| | | </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}, |
| | | </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> |
| | | </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> |
| | | </trim> |
| | | where id = #{item.id} |
| | | </foreach> |