<?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.TmsFinanceMapper">
|
|
<resultMap type="com.ruoyi.tms.domain.TmsFinance" id="TmsFinanceResult">
|
<result property="id" column="id" />
|
<result property="systemCode" column="system_code" />
|
<result property="planName" column="plan_name" />
|
<result property="dispatchId" column="dispatch_id" />
|
<result property="dispatchNo" column="dispatch_no" />
|
<result property="customerId" column="customer_id" />
|
<result property="customerCode" column="customer_code" />
|
<result property="projectId" column="project_id" />
|
<result property="customerName" column="customer_name" />
|
<result property="projectName" column="project_name" />
|
<result property="vehicleProviderId" column="vehicle_provider_id" />
|
<result property="vehicleProviderName" column="vehicle_provider_name" />
|
<result property="requiredVehicleTypes" column="required_vehicle_types" />
|
<result property="actualVehicleType" column="actual_vehicle_type" />
|
<result property="mainDriverId" column="main_driver_id" />
|
<result property="mainDriverName" column="main_driver_name" />
|
<result property="vehicleId" column="vehicle_id" />
|
<result property="assistantDriverId" column="assistant_driver_id" />
|
<result property="assistantDriverName" column="assistant_driver_name" />
|
<result property="licensePlate" column="license_plate" />
|
<result property="totalAmount" column="total_amount" />
|
<result property="shipperId" column="shipper_id" />
|
<result property="shipperName" column="shipper_name" />
|
<result property="transportLine" column="transport_line" />
|
<result property="shipperMobile" column="shipper_mobile" />
|
<result property="shipperAddress" column="shipper_address" />
|
<result property="shipperRegionCode" column="shipper_region_code" />
|
<result property="receiverId" column="receiver_id" />
|
<result property="receiverName" column="receiver_name" />
|
<result property="shipperRegionLabel" column="shipper_region_label" />
|
<result property="receiverMobile" column="receiver_mobile" />
|
<result property="receiverAddress" column="receiver_address" />
|
<result property="receiverRegionCode" column="receiver_region_code" />
|
<result property="status" column="status" />
|
<result property="receiverRegionLabel" column="receiver_region_label" />
|
<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" />
|
<result property="recordStatus" column="record_status" />
|
<result property="planId" column="plan_id" />
|
<result property="confirmBy" column="confirm_by" />
|
<result property="type" column="type" />
|
<result property="confirmTime" column="confirm_time" />
|
</resultMap>
|
|
<sql id="selectTmsFinanceVo">
|
select thisTab.id, thisTab.system_code, thisTab.plan_name, thisTab.dispatch_id, thisTab.dispatch_no, thisTab.customer_id, thisTab.customer_code, thisTab.project_id, thisTab.customer_name, thisTab.project_name, thisTab.vehicle_provider_id, thisTab.vehicle_provider_name, thisTab.required_vehicle_types, thisTab.actual_vehicle_type, thisTab.main_driver_id, thisTab.main_driver_name, thisTab.vehicle_id, thisTab.assistant_driver_id, thisTab.assistant_driver_name, thisTab.license_plate, thisTab.total_amount, thisTab.shipper_id, thisTab.shipper_name, thisTab.transport_line, thisTab.shipper_mobile, thisTab.shipper_address, thisTab.shipper_region_code, thisTab.receiver_id, thisTab.receiver_name, thisTab.shipper_region_label, thisTab.receiver_mobile, thisTab.receiver_address, thisTab.receiver_region_code, thisTab.status, thisTab.receiver_region_label, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.remark, thisTab.record_status, thisTab.plan_id, thisTab.confirm_by, thisTab.type, thisTab.confirm_time from tms_finance AS thisTab
|
</sql>
|
<sql id="selectTmsFinanceVoCount">
|
select count(0) from tms_finance as thisTab
|
</sql>
|
|
<sql id="whereCondition">
|
<if test="systemCode != null and systemCode != ''"> and thisTab.system_code = #{systemCode}</if>
|
<if test="planName != null and planName != ''"> and thisTab.plan_name like concat('%', #{planName}, '%')</if>
|
<if test="dispatchId != null "> and thisTab.dispatch_id = #{dispatchId}</if>
|
<if test="dispatchNo != null and dispatchNo != ''"> and thisTab.dispatch_no = #{dispatchNo}</if>
|
<if test="customerId != null "> and thisTab.customer_id = #{customerId}</if>
|
<if test="customerCode != null and customerCode != ''"> and thisTab.customer_code = #{customerCode}</if>
|
<if test="projectId != null "> and thisTab.project_id = #{projectId}</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="vehicleProviderId != null "> and thisTab.vehicle_provider_id = #{vehicleProviderId}</if>
|
<if test="vehicleProviderName != null and vehicleProviderName != ''"> and thisTab.vehicle_provider_name like concat('%', #{vehicleProviderName}, '%')</if>
|
<if test="requiredVehicleTypes != null and requiredVehicleTypes != ''"> and thisTab.required_vehicle_types = #{requiredVehicleTypes}</if>
|
<if test="actualVehicleType != null "> and thisTab.actual_vehicle_type = #{actualVehicleType}</if>
|
<if test="mainDriverId != null "> and thisTab.main_driver_id = #{mainDriverId}</if>
|
<if test="mainDriverName != null and mainDriverName != ''"> and thisTab.main_driver_name like concat('%', #{mainDriverName}, '%')</if>
|
<if test="vehicleId != null "> and thisTab.vehicle_id = #{vehicleId}</if>
|
<if test="assistantDriverId != null "> and thisTab.assistant_driver_id = #{assistantDriverId}</if>
|
<if test="assistantDriverName != null and assistantDriverName != ''"> and thisTab.assistant_driver_name like concat('%', #{assistantDriverName}, '%')</if>
|
<if test="licensePlate != null and licensePlate != ''"> and thisTab.license_plate = #{licensePlate}</if>
|
<if test="totalAmount != null "> and thisTab.total_amount = #{totalAmount}</if>
|
<if test="shipperId != null "> and thisTab.shipper_id = #{shipperId}</if>
|
<if test="shipperName != null and shipperName != ''"> and thisTab.shipper_name like concat('%', #{shipperName}, '%')</if>
|
<if test="transportLine != null and transportLine != ''"> and thisTab.transport_line = #{transportLine}</if>
|
<if test="shipperMobile != null and shipperMobile != ''"> and thisTab.shipper_mobile = #{shipperMobile}</if>
|
<if test="shipperAddress != null and shipperAddress != ''"> and thisTab.shipper_address = #{shipperAddress}</if>
|
<if test="shipperRegionCode != null and shipperRegionCode != ''"> and thisTab.shipper_region_code = #{shipperRegionCode}</if>
|
<if test="receiverId != null "> and thisTab.receiver_id = #{receiverId}</if>
|
<if test="receiverName != null and receiverName != ''"> and thisTab.receiver_name like concat('%', #{receiverName}, '%')</if>
|
<if test="shipperRegionLabel != null and shipperRegionLabel != ''"> and thisTab.shipper_region_label = #{shipperRegionLabel}</if>
|
<if test="receiverMobile != null and receiverMobile != ''"> and thisTab.receiver_mobile = #{receiverMobile}</if>
|
<if test="receiverAddress != null and receiverAddress != ''"> and thisTab.receiver_address = #{receiverAddress}</if>
|
<if test="receiverRegionCode != null and receiverRegionCode != ''"> and thisTab.receiver_region_code = #{receiverRegionCode}</if>
|
<if test="status != null "> and thisTab.status = #{status}</if>
|
<if test="receiverRegionLabel != null and receiverRegionLabel != ''"> and thisTab.receiver_region_label = #{receiverRegionLabel}</if>
|
<if test="recordStatus != null "> and thisTab.record_status = #{recordStatus}</if>
|
<if test="planId != null "> and thisTab.plan_id = #{planId}</if>
|
<if test="confirmBy != null and confirmBy != ''"> and thisTab.confirm_by = #{confirmBy}</if>
|
<if test="type != null "> and thisTab.type = #{type}</if>
|
<if test="confirmTime != null "> and thisTab.confirm_time = #{confirmTime}</if>
|
</sql>
|
|
<!--查询-->
|
<select id="selectTmsFinanceById" parameterType="Integer" resultMap="TmsFinanceResult">
|
<include refid="selectTmsFinanceVo"/>
|
where id = #{id}
|
</select>
|
|
<select id="selectTmsFinanceCount" parameterType="com.ruoyi.tms.domain.TmsFinance" resultType="int">
|
<include refid="selectTmsFinanceVoCount"/>
|
<where>
|
<include refid="whereCondition"/>
|
</where>
|
</select>
|
|
<select id="selectTmsFinanceList" parameterType="com.ruoyi.tms.domain.TmsFinance" resultMap="TmsFinanceResult">
|
<include refid="selectTmsFinanceVo"/>
|
<where>
|
<include refid="whereCondition"/>
|
</where>
|
order by thisTab.id desc
|
</select>
|
|
<!-- 新增 -->
|
<insert id="insertTmsFinance" parameterType="com.ruoyi.tms.domain.TmsFinance" useGeneratedKeys="true" keyProperty="id">
|
insert into tms_finance
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="systemCode != null and systemCode != ''">system_code,</if>
|
<if test="planName != null and planName != ''">plan_name,</if>
|
<if test="dispatchId != null">dispatch_id,</if>
|
<if test="dispatchNo != null and dispatchNo != ''">dispatch_no,</if>
|
<if test="customerId != null">customer_id,</if>
|
<if test="customerCode != null">customer_code,</if>
|
<if test="projectId != null">project_id,</if>
|
<if test="customerName != null">customer_name,</if>
|
<if test="projectName != null and projectName != ''">project_name,</if>
|
<if test="vehicleProviderId != null">vehicle_provider_id,</if>
|
<if test="vehicleProviderName != null and vehicleProviderName != ''">vehicle_provider_name,</if>
|
<if test="requiredVehicleTypes != null and requiredVehicleTypes != ''">required_vehicle_types,</if>
|
<if test="actualVehicleType != null">actual_vehicle_type,</if>
|
<if test="mainDriverId != null">main_driver_id,</if>
|
<if test="mainDriverName != null and mainDriverName != ''">main_driver_name,</if>
|
<if test="vehicleId != null">vehicle_id,</if>
|
<if test="assistantDriverId != null">assistant_driver_id,</if>
|
<if test="assistantDriverName != null">assistant_driver_name,</if>
|
<if test="licensePlate != null and licensePlate != ''">license_plate,</if>
|
<if test="totalAmount != null">total_amount,</if>
|
<if test="shipperId != null">shipper_id,</if>
|
<if test="shipperName != null">shipper_name,</if>
|
<if test="transportLine != null and transportLine != ''">transport_line,</if>
|
<if test="shipperMobile != null">shipper_mobile,</if>
|
<if test="shipperAddress != null">shipper_address,</if>
|
<if test="shipperRegionCode != null">shipper_region_code,</if>
|
<if test="receiverId != null">receiver_id,</if>
|
<if test="receiverName != null">receiver_name,</if>
|
<if test="shipperRegionLabel != null">shipper_region_label,</if>
|
<if test="receiverMobile != null">receiver_mobile,</if>
|
<if test="receiverAddress != null">receiver_address,</if>
|
<if test="receiverRegionCode != null">receiver_region_code,</if>
|
<if test="status != null">status,</if>
|
<if test="receiverRegionLabel != null">receiver_region_label,</if>
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
<if test="createTime != null">create_time,</if>
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
<if test="updateTime != null">update_time,</if>
|
<if test="remark != null">remark,</if>
|
<if test="recordStatus != null">record_status,</if>
|
<if test="planId != null">plan_id,</if>
|
<if test="confirmBy != null">confirm_by,</if>
|
<if test="type != null">type,</if>
|
<if test="confirmTime != null">confirm_time,</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="systemCode != null and systemCode != ''">#{systemCode},</if>
|
<if test="planName != null and planName != ''">#{planName},</if>
|
<if test="dispatchId != null">#{dispatchId},</if>
|
<if test="dispatchNo != null and dispatchNo != ''">#{dispatchNo},</if>
|
<if test="customerId != null">#{customerId},</if>
|
<if test="customerCode != null">#{customerCode},</if>
|
<if test="projectId != null">#{projectId},</if>
|
<if test="customerName != null">#{customerName},</if>
|
<if test="projectName != null and projectName != ''">#{projectName},</if>
|
<if test="vehicleProviderId != null">#{vehicleProviderId},</if>
|
<if test="vehicleProviderName != null and vehicleProviderName != ''">#{vehicleProviderName},</if>
|
<if test="requiredVehicleTypes != null and requiredVehicleTypes != ''">#{requiredVehicleTypes},</if>
|
<if test="actualVehicleType != null">#{actualVehicleType},</if>
|
<if test="mainDriverId != null">#{mainDriverId},</if>
|
<if test="mainDriverName != null and mainDriverName != ''">#{mainDriverName},</if>
|
<if test="vehicleId != null">#{vehicleId},</if>
|
<if test="assistantDriverId != null">#{assistantDriverId},</if>
|
<if test="assistantDriverName != null">#{assistantDriverName},</if>
|
<if test="licensePlate != null and licensePlate != ''">#{licensePlate},</if>
|
<if test="totalAmount != null">#{totalAmount},</if>
|
<if test="shipperId != null">#{shipperId},</if>
|
<if test="shipperName != null">#{shipperName},</if>
|
<if test="transportLine != null and transportLine != ''">#{transportLine},</if>
|
<if test="shipperMobile != null">#{shipperMobile},</if>
|
<if test="shipperAddress != null">#{shipperAddress},</if>
|
<if test="shipperRegionCode != null">#{shipperRegionCode},</if>
|
<if test="receiverId != null">#{receiverId},</if>
|
<if test="receiverName != null">#{receiverName},</if>
|
<if test="shipperRegionLabel != null">#{shipperRegionLabel},</if>
|
<if test="receiverMobile != null">#{receiverMobile},</if>
|
<if test="receiverAddress != null">#{receiverAddress},</if>
|
<if test="receiverRegionCode != null">#{receiverRegionCode},</if>
|
<if test="status != null">#{status},</if>
|
<if test="receiverRegionLabel != null">#{receiverRegionLabel},</if>
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
<if test="createTime != null">#{createTime},</if>
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
<if test="updateTime != null">#{updateTime},</if>
|
<if test="remark != null">#{remark},</if>
|
<if test="recordStatus != null">#{recordStatus},</if>
|
<if test="planId != null">#{planId},</if>
|
<if test="confirmBy != null">#{confirmBy},</if>
|
<if test="type != null">#{type},</if>
|
<if test="confirmTime != null">#{confirmTime},</if>
|
</trim>
|
</insert>
|
|
<insert id="insertTmsFinanceBatch" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
|
insert into tms_finance
|
<trim prefix="(" suffix=") values" suffixOverrides=",">
|
system_code,plan_name,dispatch_id,dispatch_no,customer_id,customer_code,project_id,customer_name,project_name,vehicle_provider_id,vehicle_provider_name,required_vehicle_types,actual_vehicle_type,main_driver_id,main_driver_name,vehicle_id,assistant_driver_id,assistant_driver_name,license_plate,total_amount,shipper_id,shipper_name,transport_line,shipper_mobile,shipper_address,shipper_region_code,receiver_id,receiver_name,shipper_region_label,receiver_mobile,receiver_address,receiver_region_code,status,receiver_region_label,create_by,create_time,remark,plan_id,confirm_by,type,confirm_time,
|
</trim>
|
<foreach item="item" index="index" collection="list" separator=",">
|
<trim prefix="(" suffix=") " suffixOverrides=",">
|
#{item.systemCode},#{item.planName},#{item.dispatchId},#{item.dispatchNo},#{item.customerId},#{item.customerCode},#{item.projectId},#{item.customerName},#{item.projectName},#{item.vehicleProviderId},#{item.vehicleProviderName},#{item.requiredVehicleTypes},#{item.actualVehicleType},#{item.mainDriverId},#{item.mainDriverName},#{item.vehicleId},#{item.assistantDriverId},#{item.assistantDriverName},#{item.licensePlate},#{item.totalAmount},#{item.shipperId},#{item.shipperName},#{item.transportLine},#{item.shipperMobile},#{item.shipperAddress},#{item.shipperRegionCode},#{item.receiverId},#{item.receiverName},#{item.shipperRegionLabel},#{item.receiverMobile},#{item.receiverAddress},#{item.receiverRegionCode},#{item.status},#{item.receiverRegionLabel},#{item.createBy},#{item.createTime},#{item.remark},#{item.planId},#{item.confirmBy},#{item.type},#{item.confirmTime},
|
</trim>
|
</foreach>
|
</insert>
|
|
<!-- 修改 -->
|
<update id="updateTmsFinance" parameterType="com.ruoyi.tms.domain.TmsFinance">
|
update tms_finance
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="systemCode != null and systemCode != ''">system_code = #{systemCode},</if>
|
<if test="planName != null and planName != ''">plan_name = #{planName},</if>
|
<if test="dispatchId != null">dispatch_id = #{dispatchId},</if>
|
<if test="dispatchNo != null and dispatchNo != ''">dispatch_no = #{dispatchNo},</if>
|
<if test="customerId != null">customer_id = #{customerId},</if>
|
<if test="customerCode != null">customer_code = #{customerCode},</if>
|
<if test="projectId != null">project_id = #{projectId},</if>
|
<if test="customerName != null">customer_name = #{customerName},</if>
|
<if test="projectName != null and projectName != ''">project_name = #{projectName},</if>
|
<if test="vehicleProviderId != null">vehicle_provider_id = #{vehicleProviderId},</if>
|
<if test="vehicleProviderName != null and vehicleProviderName != ''">vehicle_provider_name = #{vehicleProviderName},</if>
|
<if test="requiredVehicleTypes != null and requiredVehicleTypes != ''">required_vehicle_types = #{requiredVehicleTypes},</if>
|
<if test="actualVehicleType != null">actual_vehicle_type = #{actualVehicleType},</if>
|
<if test="mainDriverId != null">main_driver_id = #{mainDriverId},</if>
|
<if test="mainDriverName != null and mainDriverName != ''">main_driver_name = #{mainDriverName},</if>
|
<if test="vehicleId != null">vehicle_id = #{vehicleId},</if>
|
<if test="assistantDriverId != null">assistant_driver_id = #{assistantDriverId},</if>
|
<if test="assistantDriverName != null">assistant_driver_name = #{assistantDriverName},</if>
|
<if test="licensePlate != null and licensePlate != ''">license_plate = #{licensePlate},</if>
|
<if test="totalAmount != null">total_amount = #{totalAmount},</if>
|
<if test="shipperId != null">shipper_id = #{shipperId},</if>
|
<if test="shipperName != null">shipper_name = #{shipperName},</if>
|
<if test="transportLine != null and transportLine != ''">transport_line = #{transportLine},</if>
|
<if test="shipperMobile != null">shipper_mobile = #{shipperMobile},</if>
|
<if test="shipperAddress != null">shipper_address = #{shipperAddress},</if>
|
<if test="shipperRegionCode != null">shipper_region_code = #{shipperRegionCode},</if>
|
<if test="receiverId != null">receiver_id = #{receiverId},</if>
|
<if test="receiverName != null">receiver_name = #{receiverName},</if>
|
<if test="shipperRegionLabel != null">shipper_region_label = #{shipperRegionLabel},</if>
|
<if test="receiverMobile != null">receiver_mobile = #{receiverMobile},</if>
|
<if test="receiverAddress != null">receiver_address = #{receiverAddress},</if>
|
<if test="receiverRegionCode != null">receiver_region_code = #{receiverRegionCode},</if>
|
<if test="status != null">status = #{status},</if>
|
<if test="receiverRegionLabel != null">receiver_region_label = #{receiverRegionLabel},</if>
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
<if test="createTime != null">create_time = #{createTime},</if>
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
<if test="remark != null">remark = #{remark},</if>
|
<if test="recordStatus != null">record_status = #{recordStatus},</if>
|
<if test="planId != null">plan_id = #{planId},</if>
|
<if test="confirmBy != null">confirm_by = #{confirmBy},</if>
|
<if test="type != null">type = #{type},</if>
|
<if test="confirmTime != null">confirm_time = #{confirmTime},</if>
|
</trim>
|
where id = #{id}
|
</update>
|
<!-- 修改 -->
|
<update id="updateTmsFinanceBatch" parameterType="java.util.List">
|
<foreach collection="list" item="item" index="index" separator=";">
|
update tms_finance
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="item.systemCode != null and item.systemCode != ''">system_code = #{item.systemCode},</if>
|
<if test="item.planName != null and item.planName != ''">plan_name = #{item.planName},</if>
|
<if test="item.dispatchId != null">dispatch_id = #{item.dispatchId},</if>
|
<if test="item.dispatchNo != null and item.dispatchNo != ''">dispatch_no = #{item.dispatchNo},</if>
|
<if test="item.customerId != null">customer_id = #{item.customerId},</if>
|
<if test="item.customerCode != null">customer_code = #{item.customerCode},</if>
|
<if test="item.projectId != null">project_id = #{item.projectId},</if>
|
<if test="item.customerName != null">customer_name = #{item.customerName},</if>
|
<if test="item.projectName != null and item.projectName != ''">project_name = #{item.projectName},</if>
|
<if test="item.vehicleProviderId != null">vehicle_provider_id = #{item.vehicleProviderId},</if>
|
<if test="item.vehicleProviderName != null and item.vehicleProviderName != ''">vehicle_provider_name = #{item.vehicleProviderName},</if>
|
<if test="item.requiredVehicleTypes != null and item.requiredVehicleTypes != ''">required_vehicle_types = #{item.requiredVehicleTypes},</if>
|
<if test="item.actualVehicleType != null">actual_vehicle_type = #{item.actualVehicleType},</if>
|
<if test="item.mainDriverId != null">main_driver_id = #{item.mainDriverId},</if>
|
<if test="item.mainDriverName != null and item.mainDriverName != ''">main_driver_name = #{item.mainDriverName},</if>
|
<if test="item.vehicleId != null">vehicle_id = #{item.vehicleId},</if>
|
<if test="item.assistantDriverId != null">assistant_driver_id = #{item.assistantDriverId},</if>
|
<if test="item.assistantDriverName != null">assistant_driver_name = #{item.assistantDriverName},</if>
|
<if test="item.licensePlate != null and item.licensePlate != ''">license_plate = #{item.licensePlate},</if>
|
<if test="item.totalAmount != null">total_amount = #{item.totalAmount},</if>
|
<if test="item.shipperId != null">shipper_id = #{item.shipperId},</if>
|
<if test="item.shipperName != null">shipper_name = #{item.shipperName},</if>
|
<if test="item.transportLine != null and item.transportLine != ''">transport_line = #{item.transportLine},</if>
|
<if test="item.shipperMobile != null">shipper_mobile = #{item.shipperMobile},</if>
|
<if test="item.shipperAddress != null">shipper_address = #{item.shipperAddress},</if>
|
<if test="item.shipperRegionCode != null">shipper_region_code = #{item.shipperRegionCode},</if>
|
<if test="item.receiverId != null">receiver_id = #{item.receiverId},</if>
|
<if test="item.receiverName != null">receiver_name = #{item.receiverName},</if>
|
<if test="item.shipperRegionLabel != null">shipper_region_label = #{item.shipperRegionLabel},</if>
|
<if test="item.receiverMobile != null">receiver_mobile = #{item.receiverMobile},</if>
|
<if test="item.receiverAddress != null">receiver_address = #{item.receiverAddress},</if>
|
<if test="item.receiverRegionCode != null">receiver_region_code = #{item.receiverRegionCode},</if>
|
<if test="item.status != null">status = #{item.status},</if>
|
<if test="item.receiverRegionLabel != null">receiver_region_label = #{item.receiverRegionLabel},</if>
|
<if test="item.createBy != null and item.createBy != ''">create_by = #{item.createBy},</if>
|
<if test="item.createTime != null">create_time = #{item.createTime},</if>
|
<if test="item.updateBy != null and item.updateBy != ''">update_by = #{item.updateBy},</if>
|
<if test="item.updateTime != null">update_time = #{item.updateTime},</if>
|
<if test="item.remark != null">remark = #{item.remark},</if>
|
<if test="item.recordStatus != null">record_status = #{item.recordStatus},</if>
|
<if test="item.planId != null">plan_id = #{item.planId},</if>
|
<if test="item.confirmBy != null">confirm_by = #{item.confirmBy},</if>
|
<if test="item.type != null">type = #{item.type},</if>
|
<if test="item.confirmTime != null">confirm_time = #{item.confirmTime},</if>
|
</trim>
|
where id = #{item.id}
|
</foreach>
|
</update>
|
|
<!--删除-->
|
<delete id="deleteTmsFinanceById" parameterType="Integer">
|
delete from tms_finance where id = #{id}
|
</delete>
|
<delete id="deleteTmsFinanceByIds" parameterType="Integer">
|
delete from tms_finance where id in
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
#{id}
|
</foreach>
|
</delete>
|
|
</mapper>
|