<?xml version="1.0" encoding="UTF-8" ?>
|
<!DOCTYPE mapper
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.ruoyi.tms.mapper.TmsDispatchOrderMapper">
|
|
<resultMap type="com.ruoyi.tms.domain.TmsDispatchOrder" id="TmsDispatchOrderResult">
|
<result property="id" column="id" />
|
<result property="dispatchNo" column="dispatch_no" />
|
<result property="customerName" column="customer_name" />
|
<result property="customerCode" column="customer_code" />
|
<result property="projectName" column="project_name" />
|
<result property="transportPlanNo" column="transport_plan_no" />
|
<result property="departureRegion" column="departure_region" />
|
<result property="destinationRegion" column="destination_region" />
|
<result property="transportLine" column="transport_line" />
|
<result property="vehicleProvider" column="vehicle_provider" />
|
<result property="mainDriver" column="main_driver" />
|
<result property="assistantDriver" column="assistant_driver" />
|
<result property="requiredVehicleType" column="required_vehicle_type" />
|
<result property="vehicleNumber" column="vehicle_number" />
|
<result property="transportMode" column="transport_mode" />
|
<result property="loadMode" column="load_mode" />
|
<result property="goodsName" column="goods_name" />
|
<result property="quantity" column="quantity" />
|
<result property="goodsType" column="goods_type" />
|
<result property="weight" column="weight" />
|
<result property="netWeight" column="net_weight" />
|
<result property="volume" column="volume" />
|
<result property="loosePieces" column="loose_pieces" />
|
<result property="fullContainers" column="full_containers" />
|
<result property="containerNo" column="container_no" />
|
<result property="palletCount" column="pallet_count" />
|
<result property="earliestDeparture" column="earliest_departure" />
|
<result property="latestDeparture" column="latest_departure" />
|
<result property="earliestArrival" column="earliest_arrival" />
|
<result property="latestArrival" column="latest_arrival" />
|
<result property="departureAddress" column="departure_address" />
|
<result property="destinationAddress" column="destination_address" />
|
<result property="actualVehicleType" column="actual_vehicle_type" />
|
<result property="actualLoadStart" column="actual_load_start" />
|
<result property="actualUnloadEnd" column="actual_unload_end" />
|
<result property="actualDeparture" column="actual_departure" />
|
<result property="actualArrival" column="actual_arrival" />
|
<result property="actualQuantity" column="actual_quantity" />
|
<result property="actualWeight" column="actual_weight" />
|
<result property="actualVolume" column="actual_volume" />
|
<result property="reweighWeight" column="reweigh_weight" />
|
<result property="electronicLock" column="electronic_lock" />
|
<result property="containerInfo" column="container_info" />
|
<result property="carPlate" column="car_plate" />
|
<result property="emptyMileage" column="empty_mileage" />
|
<result property="emptyFuel" column="empty_fuel" />
|
<result property="loadedMileage" column="loaded_mileage" />
|
<result property="loadedFuel" column="loaded_fuel" />
|
<result property="shiftNo" column="shift_no" />
|
<result property="lineNo" column="line_no" />
|
<result property="status" column="status" />
|
<result property="createBy" column="create_by" />
|
<result property="createTime" column="create_time" />
|
<result property="updateBy" column="update_by" />
|
<result property="updateTime" column="update_time" />
|
<result property="remark" column="remark" />
|
</resultMap>
|
|
<sql id="selectTmsDispatchOrderVo">
|
select thisTab.id, thisTab.dispatch_no, thisTab.customer_name, thisTab.customer_code, thisTab.project_name, thisTab.transport_plan_no, thisTab.departure_region, thisTab.destination_region, thisTab.transport_line, thisTab.vehicle_provider, thisTab.main_driver, thisTab.assistant_driver, thisTab.required_vehicle_type, thisTab.vehicle_number, thisTab.transport_mode, thisTab.load_mode, thisTab.goods_name, thisTab.quantity, thisTab.goods_type, thisTab.weight, thisTab.net_weight, thisTab.volume, thisTab.loose_pieces, thisTab.full_containers, thisTab.container_no, thisTab.pallet_count, thisTab.earliest_departure, thisTab.latest_departure, thisTab.earliest_arrival, thisTab.latest_arrival, thisTab.departure_address, thisTab.destination_address, thisTab.actual_vehicle_type, thisTab.actual_load_start, thisTab.actual_unload_end, thisTab.actual_departure, thisTab.actual_arrival, thisTab.actual_quantity, thisTab.actual_weight, thisTab.actual_volume, thisTab.reweigh_weight, thisTab.electronic_lock, thisTab.container_info, thisTab.car_plate, thisTab.empty_mileage, thisTab.empty_fuel, thisTab.loaded_mileage, thisTab.loaded_fuel, thisTab.shift_no, thisTab.line_no, thisTab.status, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.remark from tms_dispatch_order AS thisTab
|
</sql>
|
<sql id="selectTmsDispatchOrderVoCount">
|
select count(0) from tms_dispatch_order as thisTab
|
</sql>
|
|
<sql id="whereCondition">
|
<if test="dispatchNo != null and dispatchNo != ''"> and thisTab.dispatch_no = #{dispatchNo}</if>
|
<if test="customerName != null and customerName != ''"> and thisTab.customer_name like concat('%', #{customerName}, '%')</if>
|
<if test="projectName != null and projectName != ''"> and thisTab.project_name like concat('%', #{projectName}, '%')</if>
|
<if test="transportPlanNo != null and transportPlanNo != ''"> and thisTab.transport_plan_no = #{transportPlanNo}</if>
|
<if test="departureRegion != null and departureRegion != ''"> and thisTab.departure_region = #{departureRegion}</if>
|
<if test="destinationRegion != null and destinationRegion != ''"> and thisTab.destination_region = #{destinationRegion}</if>
|
<if test="transportLine != null "> and thisTab.transport_line = #{transportLine}</if>
|
<if test="vehicleProvider != null "> and thisTab.vehicle_provider = #{vehicleProvider}</if>
|
<if test="mainDriver != null "> and thisTab.main_driver = #{mainDriver}</if>
|
<if test="requiredVehicleType != null "> and thisTab.required_vehicle_type = #{requiredVehicleType}</if>
|
<if test="vehicleNumber != null and vehicleNumber != ''"> and thisTab.vehicle_number = #{vehicleNumber}</if>
|
<if test="status != null "> and thisTab.status = #{status}</if>
|
</sql>
|
|
<!--查询-->
|
<select id="selectTmsDispatchOrderById" parameterType="Integer" resultMap="TmsDispatchOrderResult">
|
<include refid="selectTmsDispatchOrderVo"/>
|
where id = #{id}
|
</select>
|
|
<select id="selectTmsDispatchOrderCount" parameterType="com.ruoyi.tms.domain.TmsDispatchOrder" resultType="int">
|
<include refid="selectTmsDispatchOrderVoCount"/>
|
<where>
|
<include refid="whereCondition"/>
|
</where>
|
</select>
|
|
<select id="selectTmsDispatchOrderList" parameterType="com.ruoyi.tms.domain.TmsDispatchOrder" resultMap="TmsDispatchOrderResult">
|
<include refid="selectTmsDispatchOrderVo"/>
|
<where>
|
<include refid="whereCondition"/>
|
</where>
|
order by thisTab.id desc
|
</select>
|
|
<!-- 新增 -->
|
<insert id="insertTmsDispatchOrder" parameterType="com.ruoyi.tms.domain.TmsDispatchOrder" useGeneratedKeys="true" keyProperty="id">
|
insert into tms_dispatch_order
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="dispatchNo != null and dispatchNo != ''">dispatch_no,</if>
|
<if test="customerName != null and customerName != ''">customer_name,</if>
|
<if test="customerCode != null">customer_code,</if>
|
<if test="projectName != null and projectName != ''">project_name,</if>
|
<if test="transportPlanNo != null and transportPlanNo != ''">transport_plan_no,</if>
|
<if test="departureRegion != null and departureRegion != ''">departure_region,</if>
|
<if test="destinationRegion != null and destinationRegion != ''">destination_region,</if>
|
<if test="transportLine != null">transport_line,</if>
|
<if test="vehicleProvider != null">vehicle_provider,</if>
|
<if test="mainDriver != null">main_driver,</if>
|
<if test="assistantDriver != null">assistant_driver,</if>
|
<if test="requiredVehicleType != null">required_vehicle_type,</if>
|
<if test="vehicleNumber != null and vehicleNumber != ''">vehicle_number,</if>
|
<if test="transportMode != null">transport_mode,</if>
|
<if test="loadMode != null">load_mode,</if>
|
<if test="goodsName != null">goods_name,</if>
|
<if test="quantity != null">quantity,</if>
|
<if test="goodsType != null">goods_type,</if>
|
<if test="weight != null">weight,</if>
|
<if test="netWeight != null">net_weight,</if>
|
<if test="volume != null">volume,</if>
|
<if test="loosePieces != null">loose_pieces,</if>
|
<if test="fullContainers != null">full_containers,</if>
|
<if test="containerNo != null">container_no,</if>
|
<if test="palletCount != null">pallet_count,</if>
|
<if test="earliestDeparture != null">earliest_departure,</if>
|
<if test="latestDeparture != null">latest_departure,</if>
|
<if test="earliestArrival != null">earliest_arrival,</if>
|
<if test="latestArrival != null">latest_arrival,</if>
|
<if test="departureAddress != null">departure_address,</if>
|
<if test="destinationAddress != null">destination_address,</if>
|
<if test="actualVehicleType != null">actual_vehicle_type,</if>
|
<if test="actualLoadStart != null">actual_load_start,</if>
|
<if test="actualUnloadEnd != null">actual_unload_end,</if>
|
<if test="actualDeparture != null">actual_departure,</if>
|
<if test="actualArrival != null">actual_arrival,</if>
|
<if test="actualQuantity != null">actual_quantity,</if>
|
<if test="actualWeight != null">actual_weight,</if>
|
<if test="actualVolume != null">actual_volume,</if>
|
<if test="reweighWeight != null">reweigh_weight,</if>
|
<if test="electronicLock != null">electronic_lock,</if>
|
<if test="containerInfo != null">container_info,</if>
|
<if test="carPlate != null">car_plate,</if>
|
<if test="emptyMileage != null">empty_mileage,</if>
|
<if test="emptyFuel != null">empty_fuel,</if>
|
<if test="loadedMileage != null">loaded_mileage,</if>
|
<if test="loadedFuel != null">loaded_fuel,</if>
|
<if test="shiftNo != null">shift_no,</if>
|
<if test="lineNo != null">line_no,</if>
|
<if test="status != null">status,</if>
|
<if test="createBy != null">create_by,</if>
|
<if test="createTime != null">create_time,</if>
|
<if test="updateBy != null">update_by,</if>
|
<if test="updateTime != null">update_time,</if>
|
<if test="remark != null">remark,</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="dispatchNo != null and dispatchNo != ''">#{dispatchNo},</if>
|
<if test="customerName != null and customerName != ''">#{customerName},</if>
|
<if test="customerCode != null">#{customerCode},</if>
|
<if test="projectName != null and projectName != ''">#{projectName},</if>
|
<if test="transportPlanNo != null and transportPlanNo != ''">#{transportPlanNo},</if>
|
<if test="departureRegion != null and departureRegion != ''">#{departureRegion},</if>
|
<if test="destinationRegion != null and destinationRegion != ''">#{destinationRegion},</if>
|
<if test="transportLine != null">#{transportLine},</if>
|
<if test="vehicleProvider != null">#{vehicleProvider},</if>
|
<if test="mainDriver != null">#{mainDriver},</if>
|
<if test="assistantDriver != null">#{assistantDriver},</if>
|
<if test="requiredVehicleType != null">#{requiredVehicleType},</if>
|
<if test="vehicleNumber != null and vehicleNumber != ''">#{vehicleNumber},</if>
|
<if test="transportMode != null">#{transportMode},</if>
|
<if test="loadMode != null">#{loadMode},</if>
|
<if test="goodsName != null">#{goodsName},</if>
|
<if test="quantity != null">#{quantity},</if>
|
<if test="goodsType != null">#{goodsType},</if>
|
<if test="weight != null">#{weight},</if>
|
<if test="netWeight != null">#{netWeight},</if>
|
<if test="volume != null">#{volume},</if>
|
<if test="loosePieces != null">#{loosePieces},</if>
|
<if test="fullContainers != null">#{fullContainers},</if>
|
<if test="containerNo != null">#{containerNo},</if>
|
<if test="palletCount != null">#{palletCount},</if>
|
<if test="earliestDeparture != null">#{earliestDeparture},</if>
|
<if test="latestDeparture != null">#{latestDeparture},</if>
|
<if test="earliestArrival != null">#{earliestArrival},</if>
|
<if test="latestArrival != null">#{latestArrival},</if>
|
<if test="departureAddress != null">#{departureAddress},</if>
|
<if test="destinationAddress != null">#{destinationAddress},</if>
|
<if test="actualVehicleType != null">#{actualVehicleType},</if>
|
<if test="actualLoadStart != null">#{actualLoadStart},</if>
|
<if test="actualUnloadEnd != null">#{actualUnloadEnd},</if>
|
<if test="actualDeparture != null">#{actualDeparture},</if>
|
<if test="actualArrival != null">#{actualArrival},</if>
|
<if test="actualQuantity != null">#{actualQuantity},</if>
|
<if test="actualWeight != null">#{actualWeight},</if>
|
<if test="actualVolume != null">#{actualVolume},</if>
|
<if test="reweighWeight != null">#{reweighWeight},</if>
|
<if test="electronicLock != null">#{electronicLock},</if>
|
<if test="containerInfo != null">#{containerInfo},</if>
|
<if test="carPlate != null">#{carPlate},</if>
|
<if test="emptyMileage != null">#{emptyMileage},</if>
|
<if test="emptyFuel != null">#{emptyFuel},</if>
|
<if test="loadedMileage != null">#{loadedMileage},</if>
|
<if test="loadedFuel != null">#{loadedFuel},</if>
|
<if test="shiftNo != null">#{shiftNo},</if>
|
<if test="lineNo != null">#{lineNo},</if>
|
<if test="status != null">#{status},</if>
|
<if test="createBy != null">#{createBy},</if>
|
<if test="createTime != null">#{createTime},</if>
|
<if test="updateBy != null">#{updateBy},</if>
|
<if test="updateTime != null">#{updateTime},</if>
|
<if test="remark != null">#{remark},</if>
|
</trim>
|
</insert>
|
|
<insert id="insertTmsDispatchOrderBatch" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
|
insert into tms_dispatch_order
|
<trim prefix="(" suffix=") values" suffixOverrides=",">
|
id,dispatch_no,customer_name,customer_code,project_name,transport_plan_no,departure_region,destination_region,transport_line,vehicle_provider,main_driver,assistant_driver,required_vehicle_type,vehicle_number,transport_mode,load_mode,goods_name,quantity,goods_type,weight,net_weight,volume,loose_pieces,full_containers,container_no,pallet_count,earliest_departure,latest_departure,earliest_arrival,latest_arrival,departure_address,destination_address,actual_vehicle_type,actual_load_start,actual_unload_end,actual_departure,actual_arrival,actual_quantity,actual_weight,actual_volume,reweigh_weight,electronic_lock,container_info,car_plate,empty_mileage,empty_fuel,loaded_mileage,loaded_fuel,shift_no,line_no,status,create_by,create_time,update_by,update_time,remark,
|
</trim>
|
<foreach item="item" index="index" collection="list" separator=",">
|
<trim prefix="(" suffix=") " suffixOverrides=",">
|
#{item.id},#{item.dispatchNo},#{item.customerName},#{item.customerCode},#{item.projectName},#{item.transportPlanNo},#{item.departureRegion},#{item.destinationRegion},#{item.transportLine},#{item.vehicleProvider},#{item.mainDriver},#{item.assistantDriver},#{item.requiredVehicleType},#{item.vehicleNumber},#{item.transportMode},#{item.loadMode},#{item.goodsName},#{item.quantity},#{item.goodsType},#{item.weight},#{item.netWeight},#{item.volume},#{item.loosePieces},#{item.fullContainers},#{item.containerNo},#{item.palletCount},#{item.earliestDeparture},#{item.latestDeparture},#{item.earliestArrival},#{item.latestArrival},#{item.departureAddress},#{item.destinationAddress},#{item.actualVehicleType},#{item.actualLoadStart},#{item.actualUnloadEnd},#{item.actualDeparture},#{item.actualArrival},#{item.actualQuantity},#{item.actualWeight},#{item.actualVolume},#{item.reweighWeight},#{item.electronicLock},#{item.containerInfo},#{item.carPlate},#{item.emptyMileage},#{item.emptyFuel},#{item.loadedMileage},#{item.loadedFuel},#{item.shiftNo},#{item.lineNo},#{item.status},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.remark},
|
</trim>
|
</foreach>
|
</insert>
|
|
<!-- 修改 -->
|
<update id="updateTmsDispatchOrder" parameterType="com.ruoyi.tms.domain.TmsDispatchOrder">
|
update tms_dispatch_order
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="dispatchNo != null and dispatchNo != ''">dispatch_no = #{dispatchNo},</if>
|
<if test="customerName != null and customerName != ''">customer_name = #{customerName},</if>
|
<if test="customerCode != null">customer_code = #{customerCode},</if>
|
<if test="projectName != null and projectName != ''">project_name = #{projectName},</if>
|
<if test="transportPlanNo != null and transportPlanNo != ''">transport_plan_no = #{transportPlanNo},</if>
|
<if test="departureRegion != null and departureRegion != ''">departure_region = #{departureRegion},</if>
|
<if test="destinationRegion != null and destinationRegion != ''">destination_region = #{destinationRegion},</if>
|
<if test="transportLine != null">transport_line = #{transportLine},</if>
|
<if test="vehicleProvider != null">vehicle_provider = #{vehicleProvider},</if>
|
<if test="mainDriver != null">main_driver = #{mainDriver},</if>
|
<if test="assistantDriver != null">assistant_driver = #{assistantDriver},</if>
|
<if test="requiredVehicleType != null">required_vehicle_type = #{requiredVehicleType},</if>
|
<if test="vehicleNumber != null and vehicleNumber != ''">vehicle_number = #{vehicleNumber},</if>
|
<if test="transportMode != null">transport_mode = #{transportMode},</if>
|
<if test="loadMode != null">load_mode = #{loadMode},</if>
|
<if test="goodsName != null">goods_name = #{goodsName},</if>
|
<if test="quantity != null">quantity = #{quantity},</if>
|
<if test="goodsType != null">goods_type = #{goodsType},</if>
|
<if test="weight != null">weight = #{weight},</if>
|
<if test="netWeight != null">net_weight = #{netWeight},</if>
|
<if test="volume != null">volume = #{volume},</if>
|
<if test="loosePieces != null">loose_pieces = #{loosePieces},</if>
|
<if test="fullContainers != null">full_containers = #{fullContainers},</if>
|
<if test="containerNo != null">container_no = #{containerNo},</if>
|
<if test="palletCount != null">pallet_count = #{palletCount},</if>
|
<if test="earliestDeparture != null">earliest_departure = #{earliestDeparture},</if>
|
<if test="latestDeparture != null">latest_departure = #{latestDeparture},</if>
|
<if test="earliestArrival != null">earliest_arrival = #{earliestArrival},</if>
|
<if test="latestArrival != null">latest_arrival = #{latestArrival},</if>
|
<if test="departureAddress != null">departure_address = #{departureAddress},</if>
|
<if test="destinationAddress != null">destination_address = #{destinationAddress},</if>
|
<if test="actualVehicleType != null">actual_vehicle_type = #{actualVehicleType},</if>
|
<if test="actualLoadStart != null">actual_load_start = #{actualLoadStart},</if>
|
<if test="actualUnloadEnd != null">actual_unload_end = #{actualUnloadEnd},</if>
|
<if test="actualDeparture != null">actual_departure = #{actualDeparture},</if>
|
<if test="actualArrival != null">actual_arrival = #{actualArrival},</if>
|
<if test="actualQuantity != null">actual_quantity = #{actualQuantity},</if>
|
<if test="actualWeight != null">actual_weight = #{actualWeight},</if>
|
<if test="actualVolume != null">actual_volume = #{actualVolume},</if>
|
<if test="reweighWeight != null">reweigh_weight = #{reweighWeight},</if>
|
<if test="electronicLock != null">electronic_lock = #{electronicLock},</if>
|
<if test="containerInfo != null">container_info = #{containerInfo},</if>
|
<if test="carPlate != null">car_plate = #{carPlate},</if>
|
<if test="emptyMileage != null">empty_mileage = #{emptyMileage},</if>
|
<if test="emptyFuel != null">empty_fuel = #{emptyFuel},</if>
|
<if test="loadedMileage != null">loaded_mileage = #{loadedMileage},</if>
|
<if test="loadedFuel != null">loaded_fuel = #{loadedFuel},</if>
|
<if test="shiftNo != null">shift_no = #{shiftNo},</if>
|
<if test="lineNo != null">line_no = #{lineNo},</if>
|
<if test="status != null">status = #{status},</if>
|
<if test="createBy != null">create_by = #{createBy},</if>
|
<if test="createTime != null">create_time = #{createTime},</if>
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
<if test="remark != null">remark = #{remark},</if>
|
</trim>
|
where id = #{id}
|
</update>
|
<!-- 修改 -->
|
<update id="updateTmsDispatchOrderBatch" parameterType="java.util.List">
|
<foreach collection="list" item="item" index="index" separator=";">
|
update tms_dispatch_order
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="item.dispatchNo != null and item.dispatchNo != ''">dispatch_no = #{item.dispatchNo},</if>
|
<if test="item.customerName != null and item.customerName != ''">customer_name = #{item.customerName},</if>
|
<if test="item.customerCode != null">customer_code = #{item.customerCode},</if>
|
<if test="item.projectName != null and item.projectName != ''">project_name = #{item.projectName},</if>
|
<if test="item.transportPlanNo != null and item.transportPlanNo != ''">transport_plan_no = #{item.transportPlanNo},</if>
|
<if test="item.departureRegion != null and item.departureRegion != ''">departure_region = #{item.departureRegion},</if>
|
<if test="item.destinationRegion != null and item.destinationRegion != ''">destination_region = #{item.destinationRegion},</if>
|
<if test="item.transportLine != null">transport_line = #{item.transportLine},</if>
|
<if test="item.vehicleProvider != null">vehicle_provider = #{item.vehicleProvider},</if>
|
<if test="item.mainDriver != null">main_driver = #{item.mainDriver},</if>
|
<if test="item.assistantDriver != null">assistant_driver = #{item.assistantDriver},</if>
|
<if test="item.requiredVehicleType != null">required_vehicle_type = #{item.requiredVehicleType},</if>
|
<if test="item.vehicleNumber != null and item.vehicleNumber != ''">vehicle_number = #{item.vehicleNumber},</if>
|
<if test="item.transportMode != null">transport_mode = #{item.transportMode},</if>
|
<if test="item.loadMode != null">load_mode = #{item.loadMode},</if>
|
<if test="item.goodsName != null">goods_name = #{item.goodsName},</if>
|
<if test="item.quantity != null">quantity = #{item.quantity},</if>
|
<if test="item.goodsType != null">goods_type = #{item.goodsType},</if>
|
<if test="item.weight != null">weight = #{item.weight},</if>
|
<if test="item.netWeight != null">net_weight = #{item.netWeight},</if>
|
<if test="item.volume != null">volume = #{item.volume},</if>
|
<if test="item.loosePieces != null">loose_pieces = #{item.loosePieces},</if>
|
<if test="item.fullContainers != null">full_containers = #{item.fullContainers},</if>
|
<if test="item.containerNo != null">container_no = #{item.containerNo},</if>
|
<if test="item.palletCount != null">pallet_count = #{item.palletCount},</if>
|
<if test="item.earliestDeparture != null">earliest_departure = #{item.earliestDeparture},</if>
|
<if test="item.latestDeparture != null">latest_departure = #{item.latestDeparture},</if>
|
<if test="item.earliestArrival != null">earliest_arrival = #{item.earliestArrival},</if>
|
<if test="item.latestArrival != null">latest_arrival = #{item.latestArrival},</if>
|
<if test="item.departureAddress != null">departure_address = #{item.departureAddress},</if>
|
<if test="item.destinationAddress != null">destination_address = #{item.destinationAddress},</if>
|
<if test="item.actualVehicleType != null">actual_vehicle_type = #{item.actualVehicleType},</if>
|
<if test="item.actualLoadStart != null">actual_load_start = #{item.actualLoadStart},</if>
|
<if test="item.actualUnloadEnd != null">actual_unload_end = #{item.actualUnloadEnd},</if>
|
<if test="item.actualDeparture != null">actual_departure = #{item.actualDeparture},</if>
|
<if test="item.actualArrival != null">actual_arrival = #{item.actualArrival},</if>
|
<if test="item.actualQuantity != null">actual_quantity = #{item.actualQuantity},</if>
|
<if test="item.actualWeight != null">actual_weight = #{item.actualWeight},</if>
|
<if test="item.actualVolume != null">actual_volume = #{item.actualVolume},</if>
|
<if test="item.reweighWeight != null">reweigh_weight = #{item.reweighWeight},</if>
|
<if test="item.electronicLock != null">electronic_lock = #{item.electronicLock},</if>
|
<if test="item.containerInfo != null">container_info = #{item.containerInfo},</if>
|
<if test="item.carPlate != null">car_plate = #{item.carPlate},</if>
|
<if test="item.emptyMileage != null">empty_mileage = #{item.emptyMileage},</if>
|
<if test="item.emptyFuel != null">empty_fuel = #{item.emptyFuel},</if>
|
<if test="item.loadedMileage != null">loaded_mileage = #{item.loadedMileage},</if>
|
<if test="item.loadedFuel != null">loaded_fuel = #{item.loadedFuel},</if>
|
<if test="item.shiftNo != null">shift_no = #{item.shiftNo},</if>
|
<if test="item.lineNo != null">line_no = #{item.lineNo},</if>
|
<if test="item.status != null">status = #{item.status},</if>
|
<if test="item.createBy != null">create_by = #{item.createBy},</if>
|
<if test="item.createTime != null">create_time = #{item.createTime},</if>
|
<if test="item.updateBy != null">update_by = #{item.updateBy},</if>
|
<if test="item.updateTime != null">update_time = #{item.updateTime},</if>
|
<if test="item.remark != null">remark = #{item.remark},</if>
|
</trim>
|
where id = #{item.id}
|
</foreach>
|
</update>
|
|
<!--删除-->
|
<delete id="deleteTmsDispatchOrderById" parameterType="Integer">
|
delete from tms_dispatch_order where id = #{id}
|
</delete>
|
<delete id="deleteTmsDispatchOrderByIds" parameterType="Integer">
|
delete from tms_dispatch_order where id in
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
#{id}
|
</foreach>
|
</delete>
|
|
</mapper>
|