<?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.ssm.manage.mapper.RefundRoomCashMapper">

    <resultMap type="com.ssm.manage.entity.RefundRoomCash" id="RefundRoomCashMap">
        <result property="id" column="id" jdbcType="INTEGER"/>
        <result property="refundNum" column="refund_num" jdbcType="VARCHAR"/>
        <result property="refundDate" column="refund_date" jdbcType="TIMESTAMP"/>
        <result property="cashRefundMoney" column="cash_refund_money" jdbcType="NUMERIC"/>
        <result property="cashCompensation" column="cash_compensation" jdbcType="NUMERIC"/>
        <result property="roomCashId" column="room_cash_id" jdbcType="INTEGER"/>
        <result property="roomId" column="room_id" jdbcType="INTEGER"/>
        <result property="roomNum" column="room_num" jdbcType="VARCHAR"/>
        <result property="roomName" column="room_name" jdbcType="VARCHAR"/>
        <result property="roomHandId" column="room_hand_id" jdbcType="INTEGER"/>
        <result property="serviceStartDate" column="service_start_date" jdbcType="TIMESTAMP"/>
        <result property="cashNumber" column="cash_number" jdbcType="INTEGER"/>
        <result property="memberId" column="member_id" jdbcType="INTEGER"/>
        <result property="memberName" column="member_name" jdbcType="VARCHAR"/>
        <result property="mobilePhone" column="mobile_phone" jdbcType="VARCHAR"/>
        <result property="memberIdentityCard" column="member_identity_card" jdbcType="VARCHAR"/>
        <result property="card" column="card" jdbcType="VARCHAR"/>
        <result property="projectId" column="project_id" jdbcType="INTEGER"/>
        <result property="projectName" column="project_name" jdbcType="VARCHAR"/>
        <result property="storeId" column="store_id" jdbcType="INTEGER"/>
        <result property="storeName" column="store_name" jdbcType="VARCHAR"/>
        <result property="price" column="price" jdbcType="NUMERIC"/>
        <result property="minumumPrice" column="minumum_price" jdbcType="NUMERIC"/>
        <result property="priceMember" column="price_member" jdbcType="NUMERIC"/>
        <result property="minumumPriceMember" column="minumum_price_member" jdbcType="NUMERIC"/>
        <result property="transactionPrice" column="transaction_price" jdbcType="NUMERIC"/>
        <result property="numberTimes" column="number_times" jdbcType="INTEGER"/>
        <result property="amount" column="amount" jdbcType="NUMERIC"/>
        <result property="collectionCashAmount" column="collection_cash_amount" jdbcType="NUMERIC"/>
        <result property="collectionIntegralAmount" column="collection_integral_amount" jdbcType="NUMERIC"/>
        <result property="integral" column="integral" jdbcType="INTEGER"/>
        <result property="giveIntegral" column="give_integral" jdbcType="INTEGER"/>
        <result property="collectionRechargeAmount" column="collection_recharge_amount" jdbcType="NUMERIC"/>
        <result property="collectionGiftAmount" column="collection_gift_amount" jdbcType="DECIMAL"/>
        <result property="cashAmount" column="cash_amount" jdbcType="NUMERIC"/>
        <result property="technicianOneNumber" column="technician_one_number" jdbcType="VARCHAR"/>
        <result property="serviceTechnicianOneStaffId" column="service_technician_one_staff_id" jdbcType="INTEGER"/>
        <result property="serviceTechnicianOneStaffName" column="service_technician_one_staff_name" jdbcType="VARCHAR"/>
        <result property="serviceTechnicianOneIdentityCard" column="service_technician_one_identity_card" jdbcType="VARCHAR"/>
        <result property="serviceTechnicianOneAchievementAmount" column="service_technician_one_achievement_amount" jdbcType="NUMERIC"/>
        <result property="serviceTechnicianOneCommissionAmount" column="service_technician_one_commission_amount" jdbcType="NUMERIC"/>
        <result property="serviceTechnicianOneRatio" column="service_technician_one_ratio" jdbcType="NUMERIC"/>
        <result property="paymentAmount" column="payment_amount" jdbcType="NUMERIC"/>
        <result property="settlementNum" column="settlement_num" jdbcType="VARCHAR"/>
        <result property="settlementId" column="settlement_id" jdbcType="INTEGER"/>
        <result property="state" column="state" jdbcType="INTEGER"/>
        <result property="serviceEndDate" column="service_end_date" jdbcType="TIMESTAMP"/>
        <result property="serviceTime" column="service_time" jdbcType="VARCHAR"/>
        <result property="inputId" column="input_id" jdbcType="INTEGER"/>
        <result property="inputBy" column="input_by" jdbcType="VARCHAR"/>
        <result property="inputDate" column="input_date" jdbcType="TIMESTAMP"/>
        <result property="updateId" column="update_id" jdbcType="INTEGER"/>
        <result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
        <result property="updateDate" column="update_date" jdbcType="TIMESTAMP"/>
        <result property="docDate" column="doc_date" jdbcType="TIMESTAMP"/>
        <result property="docState" column="doc_state" jdbcType="INTEGER"/>
        <result property="practicalServicingTime" column="practical_servicing_time" jdbcType="VARCHAR"/>
        <result property="renew" column="renew" jdbcType="INTEGER"/>
        <result property="noDiscount" column="no_discount" jdbcType="INTEGER"/>
        <result property="courseAccountId" column="course_account_id" jdbcType="INTEGER"/>
        <result property="overtime" column="overtime" jdbcType="INTEGER"/>
        <result property="overtimeMoney" column="overtime_money" jdbcType="NUMERIC"/>
        <result property="projectNum" column="project_num" jdbcType="VARCHAR"/>
        <result property="servicingTime" column="servicing_time" jdbcType="VARCHAR"/>
        <result property="grade" column="grade" jdbcType="INTEGER"/>
        <result property="staffNum" column="staff_num" jdbcType="VARCHAR"/>
        <result property="staffName" column="staff_name" jdbcType="VARCHAR"/>
        <result property="brandNumber" column="brand_number" jdbcType="VARCHAR"/>
        <result property="staffId" column="staff_id" jdbcType="INTEGER"/>
        <result property="marketComm" column="market_comm" jdbcType="NUMERIC"/>
        <result property="clockComm" column="clock_comm" jdbcType="NUMERIC"/>
        <result property="roundClockComm" column="Round_clock_comm" jdbcType="NUMERIC"/>
        <result property="isClock" column="is_clock" jdbcType="INTEGER"/>
        <result property="man" column="man" jdbcType="INTEGER"/>
        <result property="woman" column="woman" jdbcType="INTEGER"/>
        <result property="projectNature" column="project_nature" jdbcType="INTEGER"/>
        <result property="cardMarketComm" column="card_market_comm" jdbcType="NUMERIC"/>
        <result property="cardClockComm" column="card_clock_comm" jdbcType="NUMERIC"/>
        <result property="cardRoundClockComm" column="card_Round_clock_comm" jdbcType="NUMERIC"/>
        <result property="commodityCash" column="commodity_cash" jdbcType="NUMERIC"/>
        <result property="commodityCard" column="commodity_card" jdbcType="NUMERIC"/>
    </resultMap>

<!--    &lt;!&ndash;查询单个&ndash;&gt;-->
<!--    <select id="queryById" resultMap="RefundRoomCashMap">-->
<!--        select-->
<!--          id, refund_num, refund_date, cash_refund_money, cash_compensation, room_cash_id, room_id, room_num, room_name, room_hand_id, service_start_date, cash_number, member_id, member_name, mobile_phone, member_identity_card, card, project_id, project_name, store_id, store_name, price, minumum_price, price_member, minumum_price_member, transaction_price, number_times, amount, collection_cash_amount, collection_integral_amount, integral, give_integral, collection_recharge_amount, collection_gift_amount, cash_amount, technician_one_number, service_technician_one_staff_id, service_technician_one_staff_name, service_technician_one_identity_card, service_technician_one_achievement_amount, service_technician_one_commission_amount, service_technician_one_ratio, payment_amount, settlement_num, settlement_id, state, order, service_end_date, service_time, input_id, input_by, input_date, update_id, update_by, update_date, doc_date, doc_state, practical_servicing_time, renew, no_discount, course_account_id, overtime, overtime_money, project_num, servicing_time, grade, staff_num, staff_name, brand_number, staff_id, market_comm, clock_comm, Round_clock_comm, is_clock, man, woman, project_nature, card_market_comm, card_clock_comm, card_Round_clock_comm, commodity_cash, commodity_card-->
<!--        from refund_room_cash-->
<!--        where id = #{id}-->
<!--    </select>-->

<!--    &lt;!&ndash;查询指定行数据&ndash;&gt;-->
<!--    <select id="queryAllByLimit" resultMap="RefundRoomCashMap">-->
<!--        select-->
<!--          id, refund_num, refund_date, cash_refund_money, cash_compensation, room_cash_id, room_id, room_num, room_name, room_hand_id, service_start_date, cash_number, member_id, member_name, mobile_phone, member_identity_card, card, project_id, project_name, store_id, store_name, price, minumum_price, price_member, minumum_price_member, transaction_price, number_times, amount, collection_cash_amount, collection_integral_amount, integral, give_integral, collection_recharge_amount, collection_gift_amount, cash_amount, technician_one_number, service_technician_one_staff_id, service_technician_one_staff_name, service_technician_one_identity_card, service_technician_one_achievement_amount, service_technician_one_commission_amount, service_technician_one_ratio, payment_amount, settlement_num, settlement_id, state, order, service_end_date, service_time, input_id, input_by, input_date, update_id, update_by, update_date, doc_date, doc_state, practical_servicing_time, renew, no_discount, course_account_id, overtime, overtime_money, project_num, servicing_time, grade, staff_num, staff_name, brand_number, staff_id, market_comm, clock_comm, Round_clock_comm, is_clock, man, woman, project_nature, card_market_comm, card_clock_comm, card_Round_clock_comm, commodity_cash, commodity_card-->
<!--        from refund_room_cash-->
<!--        <where>-->
<!--            <if test="id != null">-->
<!--                and id = #{id}-->
<!--            </if>-->
<!--            <if test="refundNum != null and refundNum != ''">-->
<!--                and refund_num = #{refundNum}-->
<!--            </if>-->
<!--            <if test="refundDate != null">-->
<!--                and refund_date = #{refundDate}-->
<!--            </if>-->
<!--            <if test="cashRefundMoney != null">-->
<!--                and cash_refund_money = #{cashRefundMoney}-->
<!--            </if>-->
<!--            <if test="cashCompensation != null">-->
<!--                and cash_compensation = #{cashCompensation}-->
<!--            </if>-->
<!--            <if test="roomCashId != null">-->
<!--                and room_cash_id = #{roomCashId}-->
<!--            </if>-->
<!--            <if test="roomId != null">-->
<!--                and room_id = #{roomId}-->
<!--            </if>-->
<!--            <if test="roomNum != null and roomNum != ''">-->
<!--                and room_num = #{roomNum}-->
<!--            </if>-->
<!--            <if test="roomName != null and roomName != ''">-->
<!--                and room_name = #{roomName}-->
<!--            </if>-->
<!--            <if test="roomHandId != null">-->
<!--                and room_hand_id = #{roomHandId}-->
<!--            </if>-->
<!--            <if test="serviceStartDate != null">-->
<!--                and service_start_date = #{serviceStartDate}-->
<!--            </if>-->
<!--            <if test="cashNumber != null">-->
<!--                and cash_number = #{cashNumber}-->
<!--            </if>-->
<!--            <if test="memberId != null">-->
<!--                and member_id = #{memberId}-->
<!--            </if>-->
<!--            <if test="memberName != null and memberName != ''">-->
<!--                and member_name = #{memberName}-->
<!--            </if>-->
<!--            <if test="mobilePhone != null and mobilePhone != ''">-->
<!--                and mobile_phone = #{mobilePhone}-->
<!--            </if>-->
<!--            <if test="memberIdentityCard != null and memberIdentityCard != ''">-->
<!--                and member_identity_card = #{memberIdentityCard}-->
<!--            </if>-->
<!--            <if test="card != null and card != ''">-->
<!--                and card = #{card}-->
<!--            </if>-->
<!--            <if test="projectId != null">-->
<!--                and project_id = #{projectId}-->
<!--            </if>-->
<!--            <if test="projectName != null and projectName != ''">-->
<!--                and project_name = #{projectName}-->
<!--            </if>-->
<!--            <if test="storeId != null">-->
<!--                and store_id = #{storeId}-->
<!--            </if>-->
<!--            <if test="storeName != null and storeName != ''">-->
<!--                and store_name = #{storeName}-->
<!--            </if>-->
<!--            <if test="price != null">-->
<!--                and price = #{price}-->
<!--            </if>-->
<!--            <if test="minumumPrice != null">-->
<!--                and minumum_price = #{minumumPrice}-->
<!--            </if>-->
<!--            <if test="priceMember != null">-->
<!--                and price_member = #{priceMember}-->
<!--            </if>-->
<!--            <if test="minumumPriceMember != null">-->
<!--                and minumum_price_member = #{minumumPriceMember}-->
<!--            </if>-->
<!--            <if test="transactionPrice != null">-->
<!--                and transaction_price = #{transactionPrice}-->
<!--            </if>-->
<!--            <if test="numberTimes != null">-->
<!--                and number_times = #{numberTimes}-->
<!--            </if>-->
<!--            <if test="amount != null">-->
<!--                and amount = #{amount}-->
<!--            </if>-->
<!--            <if test="collectionCashAmount != null">-->
<!--                and collection_cash_amount = #{collectionCashAmount}-->
<!--            </if>-->
<!--            <if test="collectionIntegralAmount != null">-->
<!--                and collection_integral_amount = #{collectionIntegralAmount}-->
<!--            </if>-->
<!--            <if test="integral != null">-->
<!--                and integral = #{integral}-->
<!--            </if>-->
<!--            <if test="giveIntegral != null">-->
<!--                and give_integral = #{giveIntegral}-->
<!--            </if>-->
<!--            <if test="collectionRechargeAmount != null">-->
<!--                and collection_recharge_amount = #{collectionRechargeAmount}-->
<!--            </if>-->
<!--            <if test="collectionGiftAmount != null">-->
<!--                and collection_gift_amount = #{collectionGiftAmount}-->
<!--            </if>-->
<!--            <if test="cashAmount != null">-->
<!--                and cash_amount = #{cashAmount}-->
<!--            </if>-->
<!--            <if test="technicianOneNumber != null and technicianOneNumber != ''">-->
<!--                and technician_one_number = #{technicianOneNumber}-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneStaffId != null">-->
<!--                and service_technician_one_staff_id = #{serviceTechnicianOneStaffId}-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneStaffName != null and serviceTechnicianOneStaffName != ''">-->
<!--                and service_technician_one_staff_name = #{serviceTechnicianOneStaffName}-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneIdentityCard != null and serviceTechnicianOneIdentityCard != ''">-->
<!--                and service_technician_one_identity_card = #{serviceTechnicianOneIdentityCard}-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneAchievementAmount != null">-->
<!--                and service_technician_one_achievement_amount = #{serviceTechnicianOneAchievementAmount}-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneCommissionAmount != null">-->
<!--                and service_technician_one_commission_amount = #{serviceTechnicianOneCommissionAmount}-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneRatio != null">-->
<!--                and service_technician_one_ratio = #{serviceTechnicianOneRatio}-->
<!--            </if>-->
<!--            <if test="paymentAmount != null">-->
<!--                and payment_amount = #{paymentAmount}-->
<!--            </if>-->
<!--            <if test="settlementNum != null and settlementNum != ''">-->
<!--                and settlement_num = #{settlementNum}-->
<!--            </if>-->
<!--            <if test="settlementId != null">-->
<!--                and settlement_id = #{settlementId}-->
<!--            </if>-->
<!--            <if test="state != null">-->
<!--                and state = #{state}-->
<!--            </if>-->
<!--            <if test="order != null">-->
<!--                and order = #{order}-->
<!--            </if>-->
<!--            <if test="serviceEndDate != null">-->
<!--                and service_end_date = #{serviceEndDate}-->
<!--            </if>-->
<!--            <if test="serviceTime != null and serviceTime != ''">-->
<!--                and service_time = #{serviceTime}-->
<!--            </if>-->
<!--            <if test="inputId != null">-->
<!--                and input_id = #{inputId}-->
<!--            </if>-->
<!--            <if test="inputBy != null and inputBy != ''">-->
<!--                and input_by = #{inputBy}-->
<!--            </if>-->
<!--            <if test="inputDate != null">-->
<!--                and input_date = #{inputDate}-->
<!--            </if>-->
<!--            <if test="updateId != null">-->
<!--                and update_id = #{updateId}-->
<!--            </if>-->
<!--            <if test="updateBy != null and updateBy != ''">-->
<!--                and update_by = #{updateBy}-->
<!--            </if>-->
<!--            <if test="updateDate != null">-->
<!--                and update_date = #{updateDate}-->
<!--            </if>-->
<!--            <if test="docDate != null">-->
<!--                and doc_date = #{docDate}-->
<!--            </if>-->
<!--            <if test="docState != null">-->
<!--                and doc_state = #{docState}-->
<!--            </if>-->
<!--            <if test="practicalServicingTime != null and practicalServicingTime != ''">-->
<!--                and practical_servicing_time = #{practicalServicingTime}-->
<!--            </if>-->
<!--            <if test="renew != null">-->
<!--                and renew = #{renew}-->
<!--            </if>-->
<!--            <if test="noDiscount != null">-->
<!--                and no_discount = #{noDiscount}-->
<!--            </if>-->
<!--            <if test="courseAccountId != null">-->
<!--                and course_account_id = #{courseAccountId}-->
<!--            </if>-->
<!--            <if test="overtime != null">-->
<!--                and overtime = #{overtime}-->
<!--            </if>-->
<!--            <if test="overtimeMoney != null">-->
<!--                and overtime_money = #{overtimeMoney}-->
<!--            </if>-->
<!--            <if test="projectNum != null and projectNum != ''">-->
<!--                and project_num = #{projectNum}-->
<!--            </if>-->
<!--            <if test="servicingTime != null and servicingTime != ''">-->
<!--                and servicing_time = #{servicingTime}-->
<!--            </if>-->
<!--            <if test="grade != null">-->
<!--                and grade = #{grade}-->
<!--            </if>-->
<!--            <if test="staffNum != null and staffNum != ''">-->
<!--                and staff_num = #{staffNum}-->
<!--            </if>-->
<!--            <if test="staffName != null and staffName != ''">-->
<!--                and staff_name = #{staffName}-->
<!--            </if>-->
<!--            <if test="brandNumber != null and brandNumber != ''">-->
<!--                and brand_number = #{brandNumber}-->
<!--            </if>-->
<!--            <if test="staffId != null">-->
<!--                and staff_id = #{staffId}-->
<!--            </if>-->
<!--            <if test="marketComm != null">-->
<!--                and market_comm = #{marketComm}-->
<!--            </if>-->
<!--            <if test="clockComm != null">-->
<!--                and clock_comm = #{clockComm}-->
<!--            </if>-->
<!--            <if test="roundClockComm != null">-->
<!--                and Round_clock_comm = #{roundClockComm}-->
<!--            </if>-->
<!--            <if test="isClock != null">-->
<!--                and is_clock = #{isClock}-->
<!--            </if>-->
<!--            <if test="man != null">-->
<!--                and man = #{man}-->
<!--            </if>-->
<!--            <if test="woman != null">-->
<!--                and woman = #{woman}-->
<!--            </if>-->
<!--            <if test="projectNature != null">-->
<!--                and project_nature = #{projectNature}-->
<!--            </if>-->
<!--            <if test="cardMarketComm != null">-->
<!--                and card_market_comm = #{cardMarketComm}-->
<!--            </if>-->
<!--            <if test="cardClockComm != null">-->
<!--                and card_clock_comm = #{cardClockComm}-->
<!--            </if>-->
<!--            <if test="cardRoundClockComm != null">-->
<!--                and card_Round_clock_comm = #{cardRoundClockComm}-->
<!--            </if>-->
<!--            <if test="commodityCash != null">-->
<!--                and commodity_cash = #{commodityCash}-->
<!--            </if>-->
<!--            <if test="commodityCard != null">-->
<!--                and commodity_card = #{commodityCard}-->
<!--            </if>-->
<!--        </where>-->
<!--        limit #{pageable.offset}, #{pageable.pageSize}-->
<!--    </select>-->

<!--    &lt;!&ndash;统计总行数&ndash;&gt;-->
<!--    <select id="count" resultType="java.lang.Long">-->
<!--        select count(1)-->
<!--        from refund_room_cash-->
<!--        <where>-->
<!--            <if test="id != null">-->
<!--                and id = #{id}-->
<!--            </if>-->
<!--            <if test="refundNum != null and refundNum != ''">-->
<!--                and refund_num = #{refundNum}-->
<!--            </if>-->
<!--            <if test="refundDate != null">-->
<!--                and refund_date = #{refundDate}-->
<!--            </if>-->
<!--            <if test="cashRefundMoney != null">-->
<!--                and cash_refund_money = #{cashRefundMoney}-->
<!--            </if>-->
<!--            <if test="cashCompensation != null">-->
<!--                and cash_compensation = #{cashCompensation}-->
<!--            </if>-->
<!--            <if test="roomCashId != null">-->
<!--                and room_cash_id = #{roomCashId}-->
<!--            </if>-->
<!--            <if test="roomId != null">-->
<!--                and room_id = #{roomId}-->
<!--            </if>-->
<!--            <if test="roomNum != null and roomNum != ''">-->
<!--                and room_num = #{roomNum}-->
<!--            </if>-->
<!--            <if test="roomName != null and roomName != ''">-->
<!--                and room_name = #{roomName}-->
<!--            </if>-->
<!--            <if test="roomHandId != null">-->
<!--                and room_hand_id = #{roomHandId}-->
<!--            </if>-->
<!--            <if test="serviceStartDate != null">-->
<!--                and service_start_date = #{serviceStartDate}-->
<!--            </if>-->
<!--            <if test="cashNumber != null">-->
<!--                and cash_number = #{cashNumber}-->
<!--            </if>-->
<!--            <if test="memberId != null">-->
<!--                and member_id = #{memberId}-->
<!--            </if>-->
<!--            <if test="memberName != null and memberName != ''">-->
<!--                and member_name = #{memberName}-->
<!--            </if>-->
<!--            <if test="mobilePhone != null and mobilePhone != ''">-->
<!--                and mobile_phone = #{mobilePhone}-->
<!--            </if>-->
<!--            <if test="memberIdentityCard != null and memberIdentityCard != ''">-->
<!--                and member_identity_card = #{memberIdentityCard}-->
<!--            </if>-->
<!--            <if test="card != null and card != ''">-->
<!--                and card = #{card}-->
<!--            </if>-->
<!--            <if test="projectId != null">-->
<!--                and project_id = #{projectId}-->
<!--            </if>-->
<!--            <if test="projectName != null and projectName != ''">-->
<!--                and project_name = #{projectName}-->
<!--            </if>-->
<!--            <if test="storeId != null">-->
<!--                and store_id = #{storeId}-->
<!--            </if>-->
<!--            <if test="storeName != null and storeName != ''">-->
<!--                and store_name = #{storeName}-->
<!--            </if>-->
<!--            <if test="price != null">-->
<!--                and price = #{price}-->
<!--            </if>-->
<!--            <if test="minumumPrice != null">-->
<!--                and minumum_price = #{minumumPrice}-->
<!--            </if>-->
<!--            <if test="priceMember != null">-->
<!--                and price_member = #{priceMember}-->
<!--            </if>-->
<!--            <if test="minumumPriceMember != null">-->
<!--                and minumum_price_member = #{minumumPriceMember}-->
<!--            </if>-->
<!--            <if test="transactionPrice != null">-->
<!--                and transaction_price = #{transactionPrice}-->
<!--            </if>-->
<!--            <if test="numberTimes != null">-->
<!--                and number_times = #{numberTimes}-->
<!--            </if>-->
<!--            <if test="amount != null">-->
<!--                and amount = #{amount}-->
<!--            </if>-->
<!--            <if test="collectionCashAmount != null">-->
<!--                and collection_cash_amount = #{collectionCashAmount}-->
<!--            </if>-->
<!--            <if test="collectionIntegralAmount != null">-->
<!--                and collection_integral_amount = #{collectionIntegralAmount}-->
<!--            </if>-->
<!--            <if test="integral != null">-->
<!--                and integral = #{integral}-->
<!--            </if>-->
<!--            <if test="giveIntegral != null">-->
<!--                and give_integral = #{giveIntegral}-->
<!--            </if>-->
<!--            <if test="collectionRechargeAmount != null">-->
<!--                and collection_recharge_amount = #{collectionRechargeAmount}-->
<!--            </if>-->
<!--            <if test="collectionGiftAmount != null">-->
<!--                and collection_gift_amount = #{collectionGiftAmount}-->
<!--            </if>-->
<!--            <if test="cashAmount != null">-->
<!--                and cash_amount = #{cashAmount}-->
<!--            </if>-->
<!--            <if test="technicianOneNumber != null and technicianOneNumber != ''">-->
<!--                and technician_one_number = #{technicianOneNumber}-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneStaffId != null">-->
<!--                and service_technician_one_staff_id = #{serviceTechnicianOneStaffId}-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneStaffName != null and serviceTechnicianOneStaffName != ''">-->
<!--                and service_technician_one_staff_name = #{serviceTechnicianOneStaffName}-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneIdentityCard != null and serviceTechnicianOneIdentityCard != ''">-->
<!--                and service_technician_one_identity_card = #{serviceTechnicianOneIdentityCard}-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneAchievementAmount != null">-->
<!--                and service_technician_one_achievement_amount = #{serviceTechnicianOneAchievementAmount}-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneCommissionAmount != null">-->
<!--                and service_technician_one_commission_amount = #{serviceTechnicianOneCommissionAmount}-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneRatio != null">-->
<!--                and service_technician_one_ratio = #{serviceTechnicianOneRatio}-->
<!--            </if>-->
<!--            <if test="paymentAmount != null">-->
<!--                and payment_amount = #{paymentAmount}-->
<!--            </if>-->
<!--            <if test="settlementNum != null and settlementNum != ''">-->
<!--                and settlement_num = #{settlementNum}-->
<!--            </if>-->
<!--            <if test="settlementId != null">-->
<!--                and settlement_id = #{settlementId}-->
<!--            </if>-->
<!--            <if test="state != null">-->
<!--                and state = #{state}-->
<!--            </if>-->
<!--            <if test="order != null">-->
<!--                and order = #{order}-->
<!--            </if>-->
<!--            <if test="serviceEndDate != null">-->
<!--                and service_end_date = #{serviceEndDate}-->
<!--            </if>-->
<!--            <if test="serviceTime != null and serviceTime != ''">-->
<!--                and service_time = #{serviceTime}-->
<!--            </if>-->
<!--            <if test="inputId != null">-->
<!--                and input_id = #{inputId}-->
<!--            </if>-->
<!--            <if test="inputBy != null and inputBy != ''">-->
<!--                and input_by = #{inputBy}-->
<!--            </if>-->
<!--            <if test="inputDate != null">-->
<!--                and input_date = #{inputDate}-->
<!--            </if>-->
<!--            <if test="updateId != null">-->
<!--                and update_id = #{updateId}-->
<!--            </if>-->
<!--            <if test="updateBy != null and updateBy != ''">-->
<!--                and update_by = #{updateBy}-->
<!--            </if>-->
<!--            <if test="updateDate != null">-->
<!--                and update_date = #{updateDate}-->
<!--            </if>-->
<!--            <if test="docDate != null">-->
<!--                and doc_date = #{docDate}-->
<!--            </if>-->
<!--            <if test="docState != null">-->
<!--                and doc_state = #{docState}-->
<!--            </if>-->
<!--            <if test="practicalServicingTime != null and practicalServicingTime != ''">-->
<!--                and practical_servicing_time = #{practicalServicingTime}-->
<!--            </if>-->
<!--            <if test="renew != null">-->
<!--                and renew = #{renew}-->
<!--            </if>-->
<!--            <if test="noDiscount != null">-->
<!--                and no_discount = #{noDiscount}-->
<!--            </if>-->
<!--            <if test="courseAccountId != null">-->
<!--                and course_account_id = #{courseAccountId}-->
<!--            </if>-->
<!--            <if test="overtime != null">-->
<!--                and overtime = #{overtime}-->
<!--            </if>-->
<!--            <if test="overtimeMoney != null">-->
<!--                and overtime_money = #{overtimeMoney}-->
<!--            </if>-->
<!--            <if test="projectNum != null and projectNum != ''">-->
<!--                and project_num = #{projectNum}-->
<!--            </if>-->
<!--            <if test="servicingTime != null and servicingTime != ''">-->
<!--                and servicing_time = #{servicingTime}-->
<!--            </if>-->
<!--            <if test="grade != null">-->
<!--                and grade = #{grade}-->
<!--            </if>-->
<!--            <if test="staffNum != null and staffNum != ''">-->
<!--                and staff_num = #{staffNum}-->
<!--            </if>-->
<!--            <if test="staffName != null and staffName != ''">-->
<!--                and staff_name = #{staffName}-->
<!--            </if>-->
<!--            <if test="brandNumber != null and brandNumber != ''">-->
<!--                and brand_number = #{brandNumber}-->
<!--            </if>-->
<!--            <if test="staffId != null">-->
<!--                and staff_id = #{staffId}-->
<!--            </if>-->
<!--            <if test="marketComm != null">-->
<!--                and market_comm = #{marketComm}-->
<!--            </if>-->
<!--            <if test="clockComm != null">-->
<!--                and clock_comm = #{clockComm}-->
<!--            </if>-->
<!--            <if test="roundClockComm != null">-->
<!--                and Round_clock_comm = #{roundClockComm}-->
<!--            </if>-->
<!--            <if test="isClock != null">-->
<!--                and is_clock = #{isClock}-->
<!--            </if>-->
<!--            <if test="man != null">-->
<!--                and man = #{man}-->
<!--            </if>-->
<!--            <if test="woman != null">-->
<!--                and woman = #{woman}-->
<!--            </if>-->
<!--            <if test="projectNature != null">-->
<!--                and project_nature = #{projectNature}-->
<!--            </if>-->
<!--            <if test="cardMarketComm != null">-->
<!--                and card_market_comm = #{cardMarketComm}-->
<!--            </if>-->
<!--            <if test="cardClockComm != null">-->
<!--                and card_clock_comm = #{cardClockComm}-->
<!--            </if>-->
<!--            <if test="cardRoundClockComm != null">-->
<!--                and card_Round_clock_comm = #{cardRoundClockComm}-->
<!--            </if>-->
<!--            <if test="commodityCash != null">-->
<!--                and commodity_cash = #{commodityCash}-->
<!--            </if>-->
<!--            <if test="commodityCard != null">-->
<!--                and commodity_card = #{commodityCard}-->
<!--            </if>-->
<!--        </where>-->
<!--    </select>-->

<!--    &lt;!&ndash;新增所有列&ndash;&gt;-->
<!--    <insert id="insert" keyProperty="id" useGeneratedKeys="true">-->
<!--        insert into refund_room_cash(refund_num, refund_date, cash_refund_money, cash_compensation, room_cash_id, room_id, room_num, room_name, room_hand_id, service_start_date, cash_number, member_id, member_name, mobile_phone, member_identity_card, card, project_id, project_name, store_id, store_name, price, minumum_price, price_member, minumum_price_member, transaction_price, number_times, amount, collection_cash_amount, collection_integral_amount, integral, give_integral, collection_recharge_amount, collection_gift_amount, cash_amount, technician_one_number, service_technician_one_staff_id, service_technician_one_staff_name, service_technician_one_identity_card, service_technician_one_achievement_amount, service_technician_one_commission_amount, service_technician_one_ratio, payment_amount, settlement_num, settlement_id, state, order, service_end_date, service_time, input_id, input_by, input_date, update_id, update_by, update_date, doc_date, doc_state, practical_servicing_time, renew, no_discount, course_account_id, overtime, overtime_money, project_num, servicing_time, grade, staff_num, staff_name, brand_number, staff_id, market_comm, clock_comm, Round_clock_comm, is_clock, man, woman, project_nature, card_market_comm, card_clock_comm, card_Round_clock_comm, commodity_cash, commodity_card)-->
<!--        values (#{refundNum}, #{refundDate}, #{cashRefundMoney}, #{cashCompensation}, #{roomCashId}, #{roomId}, #{roomNum}, #{roomName}, #{roomHandId}, #{serviceStartDate}, #{cashNumber}, #{memberId}, #{memberName}, #{mobilePhone}, #{memberIdentityCard}, #{card}, #{projectId}, #{projectName}, #{storeId}, #{storeName}, #{price}, #{minumumPrice}, #{priceMember}, #{minumumPriceMember}, #{transactionPrice}, #{numberTimes}, #{amount}, #{collectionCashAmount}, #{collectionIntegralAmount}, #{integral}, #{giveIntegral}, #{collectionRechargeAmount}, #{collectionGiftAmount}, #{cashAmount}, #{technicianOneNumber}, #{serviceTechnicianOneStaffId}, #{serviceTechnicianOneStaffName}, #{serviceTechnicianOneIdentityCard}, #{serviceTechnicianOneAchievementAmount}, #{serviceTechnicianOneCommissionAmount}, #{serviceTechnicianOneRatio}, #{paymentAmount}, #{settlementNum}, #{settlementId}, #{state}, #{order}, #{serviceEndDate}, #{serviceTime}, #{inputId}, #{inputBy}, #{inputDate}, #{updateId}, #{updateBy}, #{updateDate}, #{docDate}, #{docState}, #{practicalServicingTime}, #{renew}, #{noDiscount}, #{courseAccountId}, #{overtime}, #{overtimeMoney}, #{projectNum}, #{servicingTime}, #{grade}, #{staffNum}, #{staffName}, #{brandNumber}, #{staffId}, #{marketComm}, #{clockComm}, #{roundClockComm}, #{isClock}, #{man}, #{woman}, #{projectNature}, #{cardMarketComm}, #{cardClockComm}, #{cardRoundClockComm}, #{commodityCash}, #{commodityCard})-->
<!--    </insert>-->

<!--    <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">-->
<!--        insert into refund_room_cash(refund_num, refund_date, cash_refund_money, cash_compensation, room_cash_id, room_id, room_num, room_name, room_hand_id, service_start_date, cash_number, member_id, member_name, mobile_phone, member_identity_card, card, project_id, project_name, store_id, store_name, price, minumum_price, price_member, minumum_price_member, transaction_price, number_times, amount, collection_cash_amount, collection_integral_amount, integral, give_integral, collection_recharge_amount, collection_gift_amount, cash_amount, technician_one_number, service_technician_one_staff_id, service_technician_one_staff_name, service_technician_one_identity_card, service_technician_one_achievement_amount, service_technician_one_commission_amount, service_technician_one_ratio, payment_amount, settlement_num, settlement_id, state, order, service_end_date, service_time, input_id, input_by, input_date, update_id, update_by, update_date, doc_date, doc_state, practical_servicing_time, renew, no_discount, course_account_id, overtime, overtime_money, project_num, servicing_time, grade, staff_num, staff_name, brand_number, staff_id, market_comm, clock_comm, Round_clock_comm, is_clock, man, woman, project_nature, card_market_comm, card_clock_comm, card_Round_clock_comm, commodity_cash, commodity_card)-->
<!--        values-->
<!--        <foreach collection="entities" item="entity" separator=",">-->
<!--        (#{entity.refundNum}, #{entity.refundDate}, #{entity.cashRefundMoney}, #{entity.cashCompensation}, #{entity.roomCashId}, #{entity.roomId}, #{entity.roomNum}, #{entity.roomName}, #{entity.roomHandId}, #{entity.serviceStartDate}, #{entity.cashNumber}, #{entity.memberId}, #{entity.memberName}, #{entity.mobilePhone}, #{entity.memberIdentityCard}, #{entity.card}, #{entity.projectId}, #{entity.projectName}, #{entity.storeId}, #{entity.storeName}, #{entity.price}, #{entity.minumumPrice}, #{entity.priceMember}, #{entity.minumumPriceMember}, #{entity.transactionPrice}, #{entity.numberTimes}, #{entity.amount}, #{entity.collectionCashAmount}, #{entity.collectionIntegralAmount}, #{entity.integral}, #{entity.giveIntegral}, #{entity.collectionRechargeAmount}, #{entity.collectionGiftAmount}, #{entity.cashAmount}, #{entity.technicianOneNumber}, #{entity.serviceTechnicianOneStaffId}, #{entity.serviceTechnicianOneStaffName}, #{entity.serviceTechnicianOneIdentityCard}, #{entity.serviceTechnicianOneAchievementAmount}, #{entity.serviceTechnicianOneCommissionAmount}, #{entity.serviceTechnicianOneRatio}, #{entity.paymentAmount}, #{entity.settlementNum}, #{entity.settlementId}, #{entity.state}, #{entity.order}, #{entity.serviceEndDate}, #{entity.serviceTime}, #{entity.inputId}, #{entity.inputBy}, #{entity.inputDate}, #{entity.updateId}, #{entity.updateBy}, #{entity.updateDate}, #{entity.docDate}, #{entity.docState}, #{entity.practicalServicingTime}, #{entity.renew}, #{entity.noDiscount}, #{entity.courseAccountId}, #{entity.overtime}, #{entity.overtimeMoney}, #{entity.projectNum}, #{entity.servicingTime}, #{entity.grade}, #{entity.staffNum}, #{entity.staffName}, #{entity.brandNumber}, #{entity.staffId}, #{entity.marketComm}, #{entity.clockComm}, #{entity.roundClockComm}, #{entity.isClock}, #{entity.man}, #{entity.woman}, #{entity.projectNature}, #{entity.cardMarketComm}, #{entity.cardClockComm}, #{entity.cardRoundClockComm}, #{entity.commodityCash}, #{entity.commodityCard})-->
<!--        </foreach>-->
<!--    </insert>-->

<!--    <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">-->
<!--        insert into refund_room_cash(refund_num, refund_date, cash_refund_money, cash_compensation, room_cash_id, room_id, room_num, room_name, room_hand_id, service_start_date, cash_number, member_id, member_name, mobile_phone, member_identity_card, card, project_id, project_name, store_id, store_name, price, minumum_price, price_member, minumum_price_member, transaction_price, number_times, amount, collection_cash_amount, collection_integral_amount, integral, give_integral, collection_recharge_amount, collection_gift_amount, cash_amount, technician_one_number, service_technician_one_staff_id, service_technician_one_staff_name, service_technician_one_identity_card, service_technician_one_achievement_amount, service_technician_one_commission_amount, service_technician_one_ratio, payment_amount, settlement_num, settlement_id, state, order, service_end_date, service_time, input_id, input_by, input_date, update_id, update_by, update_date, doc_date, doc_state, practical_servicing_time, renew, no_discount, course_account_id, overtime, overtime_money, project_num, servicing_time, grade, staff_num, staff_name, brand_number, staff_id, market_comm, clock_comm, Round_clock_comm, is_clock, man, woman, project_nature, card_market_comm, card_clock_comm, card_Round_clock_comm, commodity_cash, commodity_card)-->
<!--        values-->
<!--        <foreach collection="entities" item="entity" separator=",">-->
<!--            (#{entity.refundNum}, #{entity.refundDate}, #{entity.cashRefundMoney}, #{entity.cashCompensation}, #{entity.roomCashId}, #{entity.roomId}, #{entity.roomNum}, #{entity.roomName}, #{entity.roomHandId}, #{entity.serviceStartDate}, #{entity.cashNumber}, #{entity.memberId}, #{entity.memberName}, #{entity.mobilePhone}, #{entity.memberIdentityCard}, #{entity.card}, #{entity.projectId}, #{entity.projectName}, #{entity.storeId}, #{entity.storeName}, #{entity.price}, #{entity.minumumPrice}, #{entity.priceMember}, #{entity.minumumPriceMember}, #{entity.transactionPrice}, #{entity.numberTimes}, #{entity.amount}, #{entity.collectionCashAmount}, #{entity.collectionIntegralAmount}, #{entity.integral}, #{entity.giveIntegral}, #{entity.collectionRechargeAmount}, #{entity.collectionGiftAmount}, #{entity.cashAmount}, #{entity.technicianOneNumber}, #{entity.serviceTechnicianOneStaffId}, #{entity.serviceTechnicianOneStaffName}, #{entity.serviceTechnicianOneIdentityCard}, #{entity.serviceTechnicianOneAchievementAmount}, #{entity.serviceTechnicianOneCommissionAmount}, #{entity.serviceTechnicianOneRatio}, #{entity.paymentAmount}, #{entity.settlementNum}, #{entity.settlementId}, #{entity.state}, #{entity.order}, #{entity.serviceEndDate}, #{entity.serviceTime}, #{entity.inputId}, #{entity.inputBy}, #{entity.inputDate}, #{entity.updateId}, #{entity.updateBy}, #{entity.updateDate}, #{entity.docDate}, #{entity.docState}, #{entity.practicalServicingTime}, #{entity.renew}, #{entity.noDiscount}, #{entity.courseAccountId}, #{entity.overtime}, #{entity.overtimeMoney}, #{entity.projectNum}, #{entity.servicingTime}, #{entity.grade}, #{entity.staffNum}, #{entity.staffName}, #{entity.brandNumber}, #{entity.staffId}, #{entity.marketComm}, #{entity.clockComm}, #{entity.roundClockComm}, #{entity.isClock}, #{entity.man}, #{entity.woman}, #{entity.projectNature}, #{entity.cardMarketComm}, #{entity.cardClockComm}, #{entity.cardRoundClockComm}, #{entity.commodityCash}, #{entity.commodityCard})-->
<!--        </foreach>-->
<!--        on duplicate key update-->
<!--        refund_num = values(refund_num),-->
<!--        refund_date = values(refund_date),-->
<!--        cash_refund_money = values(cash_refund_money),-->
<!--        cash_compensation = values(cash_compensation),-->
<!--        room_cash_id = values(room_cash_id),-->
<!--        room_id = values(room_id),-->
<!--        room_num = values(room_num),-->
<!--        room_name = values(room_name),-->
<!--        room_hand_id = values(room_hand_id),-->
<!--        service_start_date = values(service_start_date),-->
<!--        cash_number = values(cash_number),-->
<!--        member_id = values(member_id),-->
<!--        member_name = values(member_name),-->
<!--        mobile_phone = values(mobile_phone),-->
<!--        member_identity_card = values(member_identity_card),-->
<!--        card = values(card),-->
<!--        project_id = values(project_id),-->
<!--        project_name = values(project_name),-->
<!--        store_id = values(store_id),-->
<!--        store_name = values(store_name),-->
<!--        price = values(price),-->
<!--        minumum_price = values(minumum_price),-->
<!--        price_member = values(price_member),-->
<!--        minumum_price_member = values(minumum_price_member),-->
<!--        transaction_price = values(transaction_price),-->
<!--        number_times = values(number_times),-->
<!--        amount = values(amount),-->
<!--        collection_cash_amount = values(collection_cash_amount),-->
<!--        collection_integral_amount = values(collection_integral_amount),-->
<!--        integral = values(integral),-->
<!--        give_integral = values(give_integral),-->
<!--        collection_recharge_amount = values(collection_recharge_amount),-->
<!--        collection_gift_amount = values(collection_gift_amount),-->
<!--        cash_amount = values(cash_amount),-->
<!--        technician_one_number = values(technician_one_number),-->
<!--        service_technician_one_staff_id = values(service_technician_one_staff_id),-->
<!--        service_technician_one_staff_name = values(service_technician_one_staff_name),-->
<!--        service_technician_one_identity_card = values(service_technician_one_identity_card),-->
<!--        service_technician_one_achievement_amount = values(service_technician_one_achievement_amount),-->
<!--        service_technician_one_commission_amount = values(service_technician_one_commission_amount),-->
<!--        service_technician_one_ratio = values(service_technician_one_ratio),-->
<!--        payment_amount = values(payment_amount),-->
<!--        settlement_num = values(settlement_num),-->
<!--        settlement_id = values(settlement_id),-->
<!--        state = values(state),-->
<!--        order = values(order),-->
<!--        service_end_date = values(service_end_date),-->
<!--        service_time = values(service_time),-->
<!--        input_id = values(input_id),-->
<!--        input_by = values(input_by),-->
<!--        input_date = values(input_date),-->
<!--        update_id = values(update_id),-->
<!--        update_by = values(update_by),-->
<!--        update_date = values(update_date),-->
<!--        doc_date = values(doc_date),-->
<!--        doc_state = values(doc_state),-->
<!--        practical_servicing_time = values(practical_servicing_time),-->
<!--        renew = values(renew),-->
<!--        no_discount = values(no_discount),-->
<!--        course_account_id = values(course_account_id),-->
<!--        overtime = values(overtime),-->
<!--        overtime_money = values(overtime_money),-->
<!--        project_num = values(project_num),-->
<!--        servicing_time = values(servicing_time),-->
<!--        grade = values(grade),-->
<!--        staff_num = values(staff_num),-->
<!--        staff_name = values(staff_name),-->
<!--        brand_number = values(brand_number),-->
<!--        staff_id = values(staff_id),-->
<!--        market_comm = values(market_comm),-->
<!--        clock_comm = values(clock_comm),-->
<!--        Round_clock_comm = values(Round_clock_comm),-->
<!--        is_clock = values(is_clock),-->
<!--        man = values(man),-->
<!--        woman = values(woman),-->
<!--        project_nature = values(project_nature),-->
<!--        card_market_comm = values(card_market_comm),-->
<!--        card_clock_comm = values(card_clock_comm),-->
<!--        card_Round_clock_comm = values(card_Round_clock_comm),-->
<!--        commodity_cash = values(commodity_cash),-->
<!--        commodity_card = values(commodity_card)-->
<!--    </insert>-->

<!--    &lt;!&ndash;通过主键修改数据&ndash;&gt;-->
<!--    <update id="update">-->
<!--        update refund_room_cash-->
<!--        <set>-->
<!--            <if test="refundNum != null and refundNum != ''">-->
<!--                refund_num = #{refundNum},-->
<!--            </if>-->
<!--            <if test="refundDate != null">-->
<!--                refund_date = #{refundDate},-->
<!--            </if>-->
<!--            <if test="cashRefundMoney != null">-->
<!--                cash_refund_money = #{cashRefundMoney},-->
<!--            </if>-->
<!--            <if test="cashCompensation != null">-->
<!--                cash_compensation = #{cashCompensation},-->
<!--            </if>-->
<!--            <if test="roomCashId != null">-->
<!--                room_cash_id = #{roomCashId},-->
<!--            </if>-->
<!--            <if test="roomId != null">-->
<!--                room_id = #{roomId},-->
<!--            </if>-->
<!--            <if test="roomNum != null and roomNum != ''">-->
<!--                room_num = #{roomNum},-->
<!--            </if>-->
<!--            <if test="roomName != null and roomName != ''">-->
<!--                room_name = #{roomName},-->
<!--            </if>-->
<!--            <if test="roomHandId != null">-->
<!--                room_hand_id = #{roomHandId},-->
<!--            </if>-->
<!--            <if test="serviceStartDate != null">-->
<!--                service_start_date = #{serviceStartDate},-->
<!--            </if>-->
<!--            <if test="cashNumber != null">-->
<!--                cash_number = #{cashNumber},-->
<!--            </if>-->
<!--            <if test="memberId != null">-->
<!--                member_id = #{memberId},-->
<!--            </if>-->
<!--            <if test="memberName != null and memberName != ''">-->
<!--                member_name = #{memberName},-->
<!--            </if>-->
<!--            <if test="mobilePhone != null and mobilePhone != ''">-->
<!--                mobile_phone = #{mobilePhone},-->
<!--            </if>-->
<!--            <if test="memberIdentityCard != null and memberIdentityCard != ''">-->
<!--                member_identity_card = #{memberIdentityCard},-->
<!--            </if>-->
<!--            <if test="card != null and card != ''">-->
<!--                card = #{card},-->
<!--            </if>-->
<!--            <if test="projectId != null">-->
<!--                project_id = #{projectId},-->
<!--            </if>-->
<!--            <if test="projectName != null and projectName != ''">-->
<!--                project_name = #{projectName},-->
<!--            </if>-->
<!--            <if test="storeId != null">-->
<!--                store_id = #{storeId},-->
<!--            </if>-->
<!--            <if test="storeName != null and storeName != ''">-->
<!--                store_name = #{storeName},-->
<!--            </if>-->
<!--            <if test="price != null">-->
<!--                price = #{price},-->
<!--            </if>-->
<!--            <if test="minumumPrice != null">-->
<!--                minumum_price = #{minumumPrice},-->
<!--            </if>-->
<!--            <if test="priceMember != null">-->
<!--                price_member = #{priceMember},-->
<!--            </if>-->
<!--            <if test="minumumPriceMember != null">-->
<!--                minumum_price_member = #{minumumPriceMember},-->
<!--            </if>-->
<!--            <if test="transactionPrice != null">-->
<!--                transaction_price = #{transactionPrice},-->
<!--            </if>-->
<!--            <if test="numberTimes != null">-->
<!--                number_times = #{numberTimes},-->
<!--            </if>-->
<!--            <if test="amount != null">-->
<!--                amount = #{amount},-->
<!--            </if>-->
<!--            <if test="collectionCashAmount != null">-->
<!--                collection_cash_amount = #{collectionCashAmount},-->
<!--            </if>-->
<!--            <if test="collectionIntegralAmount != null">-->
<!--                collection_integral_amount = #{collectionIntegralAmount},-->
<!--            </if>-->
<!--            <if test="integral != null">-->
<!--                integral = #{integral},-->
<!--            </if>-->
<!--            <if test="giveIntegral != null">-->
<!--                give_integral = #{giveIntegral},-->
<!--            </if>-->
<!--            <if test="collectionRechargeAmount != null">-->
<!--                collection_recharge_amount = #{collectionRechargeAmount},-->
<!--            </if>-->
<!--            <if test="collectionGiftAmount != null">-->
<!--                collection_gift_amount = #{collectionGiftAmount},-->
<!--            </if>-->
<!--            <if test="cashAmount != null">-->
<!--                cash_amount = #{cashAmount},-->
<!--            </if>-->
<!--            <if test="technicianOneNumber != null and technicianOneNumber != ''">-->
<!--                technician_one_number = #{technicianOneNumber},-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneStaffId != null">-->
<!--                service_technician_one_staff_id = #{serviceTechnicianOneStaffId},-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneStaffName != null and serviceTechnicianOneStaffName != ''">-->
<!--                service_technician_one_staff_name = #{serviceTechnicianOneStaffName},-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneIdentityCard != null and serviceTechnicianOneIdentityCard != ''">-->
<!--                service_technician_one_identity_card = #{serviceTechnicianOneIdentityCard},-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneAchievementAmount != null">-->
<!--                service_technician_one_achievement_amount = #{serviceTechnicianOneAchievementAmount},-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneCommissionAmount != null">-->
<!--                service_technician_one_commission_amount = #{serviceTechnicianOneCommissionAmount},-->
<!--            </if>-->
<!--            <if test="serviceTechnicianOneRatio != null">-->
<!--                service_technician_one_ratio = #{serviceTechnicianOneRatio},-->
<!--            </if>-->
<!--            <if test="paymentAmount != null">-->
<!--                payment_amount = #{paymentAmount},-->
<!--            </if>-->
<!--            <if test="settlementNum != null and settlementNum != ''">-->
<!--                settlement_num = #{settlementNum},-->
<!--            </if>-->
<!--            <if test="settlementId != null">-->
<!--                settlement_id = #{settlementId},-->
<!--            </if>-->
<!--            <if test="state != null">-->
<!--                state = #{state},-->
<!--            </if>-->
<!--            <if test="order != null">-->
<!--                order = #{order},-->
<!--            </if>-->
<!--            <if test="serviceEndDate != null">-->
<!--                service_end_date = #{serviceEndDate},-->
<!--            </if>-->
<!--            <if test="serviceTime != null and serviceTime != ''">-->
<!--                service_time = #{serviceTime},-->
<!--            </if>-->
<!--            <if test="inputId != null">-->
<!--                input_id = #{inputId},-->
<!--            </if>-->
<!--            <if test="inputBy != null and inputBy != ''">-->
<!--                input_by = #{inputBy},-->
<!--            </if>-->
<!--            <if test="inputDate != null">-->
<!--                input_date = #{inputDate},-->
<!--            </if>-->
<!--            <if test="updateId != null">-->
<!--                update_id = #{updateId},-->
<!--            </if>-->
<!--            <if test="updateBy != null and updateBy != ''">-->
<!--                update_by = #{updateBy},-->
<!--            </if>-->
<!--            <if test="updateDate != null">-->
<!--                update_date = #{updateDate},-->
<!--            </if>-->
<!--            <if test="docDate != null">-->
<!--                doc_date = #{docDate},-->
<!--            </if>-->
<!--            <if test="docState != null">-->
<!--                doc_state = #{docState},-->
<!--            </if>-->
<!--            <if test="practicalServicingTime != null and practicalServicingTime != ''">-->
<!--                practical_servicing_time = #{practicalServicingTime},-->
<!--            </if>-->
<!--            <if test="renew != null">-->
<!--                renew = #{renew},-->
<!--            </if>-->
<!--            <if test="noDiscount != null">-->
<!--                no_discount = #{noDiscount},-->
<!--            </if>-->
<!--            <if test="courseAccountId != null">-->
<!--                course_account_id = #{courseAccountId},-->
<!--            </if>-->
<!--            <if test="overtime != null">-->
<!--                overtime = #{overtime},-->
<!--            </if>-->
<!--            <if test="overtimeMoney != null">-->
<!--                overtime_money = #{overtimeMoney},-->
<!--            </if>-->
<!--            <if test="projectNum != null and projectNum != ''">-->
<!--                project_num = #{projectNum},-->
<!--            </if>-->
<!--            <if test="servicingTime != null and servicingTime != ''">-->
<!--                servicing_time = #{servicingTime},-->
<!--            </if>-->
<!--            <if test="grade != null">-->
<!--                grade = #{grade},-->
<!--            </if>-->
<!--            <if test="staffNum != null and staffNum != ''">-->
<!--                staff_num = #{staffNum},-->
<!--            </if>-->
<!--            <if test="staffName != null and staffName != ''">-->
<!--                staff_name = #{staffName},-->
<!--            </if>-->
<!--            <if test="brandNumber != null and brandNumber != ''">-->
<!--                brand_number = #{brandNumber},-->
<!--            </if>-->
<!--            <if test="staffId != null">-->
<!--                staff_id = #{staffId},-->
<!--            </if>-->
<!--            <if test="marketComm != null">-->
<!--                market_comm = #{marketComm},-->
<!--            </if>-->
<!--            <if test="clockComm != null">-->
<!--                clock_comm = #{clockComm},-->
<!--            </if>-->
<!--            <if test="roundClockComm != null">-->
<!--                Round_clock_comm = #{roundClockComm},-->
<!--            </if>-->
<!--            <if test="isClock != null">-->
<!--                is_clock = #{isClock},-->
<!--            </if>-->
<!--            <if test="man != null">-->
<!--                man = #{man},-->
<!--            </if>-->
<!--            <if test="woman != null">-->
<!--                woman = #{woman},-->
<!--            </if>-->
<!--            <if test="projectNature != null">-->
<!--                project_nature = #{projectNature},-->
<!--            </if>-->
<!--            <if test="cardMarketComm != null">-->
<!--                card_market_comm = #{cardMarketComm},-->
<!--            </if>-->
<!--            <if test="cardClockComm != null">-->
<!--                card_clock_comm = #{cardClockComm},-->
<!--            </if>-->
<!--            <if test="cardRoundClockComm != null">-->
<!--                card_Round_clock_comm = #{cardRoundClockComm},-->
<!--            </if>-->
<!--            <if test="commodityCash != null">-->
<!--                commodity_cash = #{commodityCash},-->
<!--            </if>-->
<!--            <if test="commodityCard != null">-->
<!--                commodity_card = #{commodityCard},-->
<!--            </if>-->
<!--        </set>-->
<!--        where id = #{id}-->
<!--    </update>-->

<!--    &lt;!&ndash;通过主键删除&ndash;&gt;-->
<!--    <delete id="deleteById">-->
<!--        delete from refund_room_cash where id = #{id}-->
<!--    </delete>-->

</mapper>

