2024-03-07 10:49:59 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
<!DOCTYPE mapper
|
2024-06-14 16:05:24 +00:00
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
2024-03-07 10:49:59 +00:00
|
|
|
<mapper namespace="com.xdadan.erp.emis.mapper.EmisSiteSettleRecordMapper">
|
2024-06-14 16:05:24 +00:00
|
|
|
|
2024-06-15 07:30:10 +00:00
|
|
|
<resultMap type="EmisSiteSettleRecord" id="EmisSiteSettleRecordResult" extends="com.xdadan.erp.emis.mapper.EmisBaseMapper.EmisBaseResult">
|
2024-03-07 10:49:59 +00:00
|
|
|
<result property="id" column="id" />
|
|
|
|
|
<result property="accCode" column="acc_code" />
|
|
|
|
|
<result property="billCode" column="bill_code" />
|
|
|
|
|
<result property="recPayType" column="rec_pay_type" />
|
|
|
|
|
<result property="settleType" column="settle_type" />
|
|
|
|
|
<result property="preBalance" column="pre_balance" />
|
|
|
|
|
<result property="preConfirmBalance" column="pre_confirm_balance" />
|
|
|
|
|
<result property="curMoney" column="cur_money" />
|
|
|
|
|
<result property="curConfirmMoney" column="cur_confirm_money" />
|
|
|
|
|
<result property="backBalance" column="back_balance" />
|
|
|
|
|
<result property="backConfirmBalance" column="back_confirm_balance" />
|
|
|
|
|
<result property="currency" column="currency" />
|
|
|
|
|
<result property="changeType" column="change_type" />
|
|
|
|
|
<result property="changeDate" column="change_date" />
|
2024-06-14 16:05:24 +00:00
|
|
|
<result property="centerCode" column="center_code" />
|
|
|
|
|
<result property="siteCode" column="site_code" />
|
2024-03-07 10:49:59 +00:00
|
|
|
<result property="sourceType" column="source_type" />
|
|
|
|
|
<result property="financeDate" column="finance_date" />
|
|
|
|
|
<result property="operataDate" column="operata_date" />
|
|
|
|
|
<result property="blConfirm" column="bl_confirm" />
|
|
|
|
|
<result property="confirmManCode" column="confirm_man_code" />
|
|
|
|
|
<result property="confirmSiteCode" column="confirm_site_code" />
|
|
|
|
|
<result property="settleManCode" column="settle_man_code" />
|
|
|
|
|
<result property="settleSiteCode" column="settle_site_code" />
|
|
|
|
|
<result property="blCenter" column="bl_center" />
|
|
|
|
|
<result property="centerManCode" column="center_man_code" />
|
|
|
|
|
<result property="blSite" column="bl_site" />
|
|
|
|
|
<result property="siteManCode" column="site_man_code" />
|
|
|
|
|
<result property="siteDate" column="site_date" />
|
|
|
|
|
<result property="blChargeFee" column="bl_charge_fee" />
|
|
|
|
|
<result property="transferCode" column="transfer_code" />
|
|
|
|
|
<result property="settleEbrCode" column="settle_ebr_code" />
|
|
|
|
|
<result property="settleEbrDate" column="settle_ebr_date" />
|
|
|
|
|
<result property="customerCode" column="customer_code" />
|
|
|
|
|
<result property="centerDate" column="center_date" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectEmisSiteSettleRecordVo">
|
2024-06-14 16:05:24 +00:00
|
|
|
select id, acc_code, bill_code, rec_pay_type, settle_type, pre_balance, pre_confirm_balance, cur_money, cur_confirm_money, back_balance, back_confirm_balance, currency, change_type, change_date, center_code, site_code, source_type, finance_date, operata_date, bl_confirm, confirm_man_code, confirm_site_code, settle_man_code, settle_site_code, bl_center, center_man_code, bl_site, site_man_code, site_date, bl_charge_fee, transfer_code, settle_ebr_code, settle_ebr_date, customer_code, center_date, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_site_settle_record
|
2024-03-07 10:49:59 +00:00
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectEmisSiteSettleRecordList" parameterType="EmisSiteSettleRecord" resultMap="EmisSiteSettleRecordResult">
|
|
|
|
|
<include refid="selectEmisSiteSettleRecordVo"/>
|
2024-06-14 16:05:24 +00:00
|
|
|
<where>
|
|
|
|
|
del_flag='0'
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="id != null "> and id = #{id}</if>
|
|
|
|
|
<if test="accCode != null and accCode != ''"> and acc_code like concat('%', #{accCode}, '%')</if>
|
|
|
|
|
<if test="billCode != null and billCode != ''"> and bill_code like concat('%', #{billCode}, '%')</if>
|
|
|
|
|
<if test="recPayType != null and recPayType != ''"> and rec_pay_type like concat('%', #{recPayType}, '%')</if>
|
|
|
|
|
<if test="settleType != null and settleType != ''"> and settle_type like concat('%', #{settleType}, '%')</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="preBalance != null "> and pre_balance = #{preBalance}</if>
|
|
|
|
|
<if test="preConfirmBalance != null "> and pre_confirm_balance = #{preConfirmBalance}</if>
|
|
|
|
|
<if test="curMoney != null "> and cur_money = #{curMoney}</if>
|
|
|
|
|
<if test="curConfirmMoney != null "> and cur_confirm_money = #{curConfirmMoney}</if>
|
|
|
|
|
<if test="backBalance != null "> and back_balance = #{backBalance}</if>
|
|
|
|
|
<if test="backConfirmBalance != null "> and back_confirm_balance = #{backConfirmBalance}</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="currency != null and currency != ''"> and currency like concat('%', #{currency}, '%')</if>
|
|
|
|
|
<if test="changeType != null and changeType != ''"> and change_type like concat('%', #{changeType}, '%')</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="changeDate != null "> and change_date = #{changeDate}</if>
|
|
|
|
|
<if test="centerCode != null and centerCode != ''"> and center_code like concat('%', #{centerCode}, '%')</if>
|
|
|
|
|
<if test="siteCode != null and siteCode != ''"> and site_code like concat('%', #{siteCode}, '%')</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="sourceType != null and sourceType != ''"> and source_type like concat('%', #{sourceType}, '%')</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="financeDate != null "> and finance_date = #{financeDate}</if>
|
|
|
|
|
<if test="operataDate != null "> and operata_date = #{operataDate}</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="blConfirm != null and blConfirm != ''"> and bl_confirm like concat('%', #{blConfirm}, '%')</if>
|
|
|
|
|
<if test="confirmManCode != null and confirmManCode != ''"> and confirm_man_code like concat('%', #{confirmManCode}, '%')</if>
|
|
|
|
|
<if test="confirmSiteCode != null and confirmSiteCode != ''"> and confirm_site_code like concat('%', #{confirmSiteCode}, '%')</if>
|
|
|
|
|
<if test="settleManCode != null and settleManCode != ''"> and settle_man_code like concat('%', #{settleManCode}, '%')</if>
|
|
|
|
|
<if test="settleSiteCode != null and settleSiteCode != ''"> and settle_site_code like concat('%', #{settleSiteCode}, '%')</if>
|
|
|
|
|
<if test="blCenter != null and blCenter != ''"> and bl_center like concat('%', #{blCenter}, '%')</if>
|
|
|
|
|
<if test="centerManCode != null and centerManCode != ''"> and center_man_code like concat('%', #{centerManCode}, '%')</if>
|
|
|
|
|
<if test="blSite != null and blSite != ''"> and bl_site like concat('%', #{blSite}, '%')</if>
|
|
|
|
|
<if test="siteManCode != null and siteManCode != ''"> and site_man_code like concat('%', #{siteManCode}, '%')</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="siteDate != null "> and site_date = #{siteDate}</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="blChargeFee != null and blChargeFee != ''"> and bl_charge_fee like concat('%', #{blChargeFee}, '%')</if>
|
|
|
|
|
<if test="transferCode != null and transferCode != ''"> and transfer_code like concat('%', #{transferCode}, '%')</if>
|
|
|
|
|
<if test="settleEbrCode != null and settleEbrCode != ''"> and settle_ebr_code like concat('%', #{settleEbrCode}, '%')</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="settleEbrDate != null "> and settle_ebr_date = #{settleEbrDate}</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="customerCode != null and customerCode != ''"> and customer_code like concat('%', #{customerCode}, '%')</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="centerDate != null "> and center_date = #{centerDate}</if>
|
|
|
|
|
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
|
|
|
|
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
|
|
|
|
<if test="createTime != null "> and create_time = #{createTime}</if>
|
|
|
|
|
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
|
|
|
|
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
|
|
|
|
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
</where>
|
|
|
|
|
order by create_time desc
|
|
|
|
|
</select>
|
2024-06-14 16:05:24 +00:00
|
|
|
|
|
|
|
|
<select id="checkUnique" parameterType="EmisSiteSettleRecord" resultType="int">
|
|
|
|
|
select count(1) from emis_site_settle_record
|
|
|
|
|
where del_flag='0'
|
|
|
|
|
and id = #{id}
|
|
|
|
|
and acc_code = #{accCode}
|
|
|
|
|
and bill_code = #{billCode}
|
|
|
|
|
and rec_pay_type = #{recPayType}
|
|
|
|
|
and settle_type = #{settleType}
|
|
|
|
|
and pre_balance = #{preBalance}
|
|
|
|
|
and pre_confirm_balance = #{preConfirmBalance}
|
|
|
|
|
and cur_money = #{curMoney}
|
|
|
|
|
and cur_confirm_money = #{curConfirmMoney}
|
|
|
|
|
and back_balance = #{backBalance}
|
|
|
|
|
and back_confirm_balance = #{backConfirmBalance}
|
|
|
|
|
and currency = #{currency}
|
|
|
|
|
and change_type = #{changeType}
|
|
|
|
|
and change_date = #{changeDate}
|
|
|
|
|
and center_code = #{centerCode}
|
|
|
|
|
and site_code = #{siteCode}
|
|
|
|
|
and source_type = #{sourceType}
|
|
|
|
|
and finance_date = #{financeDate}
|
|
|
|
|
and operata_date = #{operataDate}
|
|
|
|
|
and bl_confirm = #{blConfirm}
|
|
|
|
|
and confirm_man_code = #{confirmManCode}
|
|
|
|
|
and confirm_site_code = #{confirmSiteCode}
|
|
|
|
|
and settle_man_code = #{settleManCode}
|
|
|
|
|
and settle_site_code = #{settleSiteCode}
|
|
|
|
|
and bl_center = #{blCenter}
|
|
|
|
|
and center_man_code = #{centerManCode}
|
|
|
|
|
and bl_site = #{blSite}
|
|
|
|
|
and site_man_code = #{siteManCode}
|
|
|
|
|
and site_date = #{siteDate}
|
|
|
|
|
and bl_charge_fee = #{blChargeFee}
|
|
|
|
|
and transfer_code = #{transferCode}
|
|
|
|
|
and settle_ebr_code = #{settleEbrCode}
|
|
|
|
|
and settle_ebr_date = #{settleEbrDate}
|
|
|
|
|
and customer_code = #{customerCode}
|
|
|
|
|
and center_date = #{centerDate}
|
|
|
|
|
and remark = #{remark}
|
|
|
|
|
and del_flag = #{delFlag}
|
|
|
|
|
and create_by = #{createBy}
|
|
|
|
|
and create_time = #{createTime}
|
|
|
|
|
and update_by = #{updateBy}
|
|
|
|
|
and update_time = #{updateTime}
|
|
|
|
|
and create_site = #{createSite}
|
|
|
|
|
and update_site = #{updateSite}
|
|
|
|
|
limit 1
|
|
|
|
|
</select>
|
|
|
|
|
|
2024-03-07 10:49:59 +00:00
|
|
|
<select id="selectEmisSiteSettleRecordById" parameterType="Long" resultMap="EmisSiteSettleRecordResult">
|
2024-06-14 16:05:24 +00:00
|
|
|
select id, acc_code, bill_code, rec_pay_type, settle_type, pre_balance, pre_confirm_balance, cur_money, cur_confirm_money, back_balance, back_confirm_balance, currency, change_type, change_date, center_code, site_code, source_type, finance_date, operata_date, bl_confirm, confirm_man_code, confirm_site_code, settle_man_code, settle_site_code, bl_center, center_man_code, bl_site, site_man_code, site_date, bl_charge_fee, transfer_code, settle_ebr_code, settle_ebr_date, customer_code, center_date, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
2024-03-07 10:49:59 +00:00
|
|
|
from emis_site_settle_record a
|
|
|
|
|
where a.id = #{id}
|
|
|
|
|
</select>
|
2024-06-14 16:05:24 +00:00
|
|
|
|
|
|
|
|
<insert id="insertEmisSiteSettleRecord" parameterType="EmisSiteSettleRecord" useGeneratedKeys="true" keyProperty="id">
|
2024-03-07 10:49:59 +00:00
|
|
|
insert into emis_site_settle_record
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">id,</if>
|
|
|
|
|
<if test="accCode != null and accCode != ''">acc_code,</if>
|
|
|
|
|
<if test="billCode != null and billCode != ''">bill_code,</if>
|
|
|
|
|
<if test="recPayType != null and recPayType != ''">rec_pay_type,</if>
|
|
|
|
|
<if test="settleType != null and settleType != ''">settle_type,</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="preBalance != null">pre_balance,</if>
|
|
|
|
|
<if test="preConfirmBalance != null">pre_confirm_balance,</if>
|
|
|
|
|
<if test="curMoney != null">cur_money,</if>
|
|
|
|
|
<if test="curConfirmMoney != null">cur_confirm_money,</if>
|
|
|
|
|
<if test="backBalance != null">back_balance,</if>
|
|
|
|
|
<if test="backConfirmBalance != null">back_confirm_balance,</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="currency != null and currency != ''">currency,</if>
|
|
|
|
|
<if test="changeType != null and changeType != ''">change_type,</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="changeDate != null">change_date,</if>
|
|
|
|
|
<if test="centerCode != null and centerCode != ''">center_code,</if>
|
|
|
|
|
<if test="siteCode != null and siteCode != ''">site_code,</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="sourceType != null and sourceType != ''">source_type,</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="financeDate != null">finance_date,</if>
|
|
|
|
|
<if test="operataDate != null">operata_date,</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="blConfirm != null and blConfirm != ''">bl_confirm,</if>
|
|
|
|
|
<if test="confirmManCode != null and confirmManCode != ''">confirm_man_code,</if>
|
|
|
|
|
<if test="confirmSiteCode != null and confirmSiteCode != ''">confirm_site_code,</if>
|
|
|
|
|
<if test="settleManCode != null and settleManCode != ''">settle_man_code,</if>
|
|
|
|
|
<if test="settleSiteCode != null and settleSiteCode != ''">settle_site_code,</if>
|
|
|
|
|
<if test="blCenter != null and blCenter != ''">bl_center,</if>
|
|
|
|
|
<if test="centerManCode != null and centerManCode != ''">center_man_code,</if>
|
|
|
|
|
<if test="blSite != null and blSite != ''">bl_site,</if>
|
|
|
|
|
<if test="siteManCode != null and siteManCode != ''">site_man_code,</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="siteDate != null">site_date,</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="blChargeFee != null and blChargeFee != ''">bl_charge_fee,</if>
|
|
|
|
|
<if test="transferCode != null and transferCode != ''">transfer_code,</if>
|
|
|
|
|
<if test="settleEbrCode != null and settleEbrCode != ''">settle_ebr_code,</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="settleEbrDate != null">settle_ebr_date,</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="customerCode != null and customerCode != ''">customer_code,</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="centerDate != null">center_date,</if>
|
|
|
|
|
<if test="remark != null and remark != ''">remark,</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="delFlag != null and delFlag != ''">del_flag,</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>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="createSite != null and createSite != ''">create_site,</if>
|
|
|
|
|
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
|
|
|
|
</trim>
|
2024-03-07 10:49:59 +00:00
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">#{id},</if>
|
|
|
|
|
<if test="accCode != null and accCode != ''">#{accCode},</if>
|
|
|
|
|
<if test="billCode != null and billCode != ''">#{billCode},</if>
|
|
|
|
|
<if test="recPayType != null and recPayType != ''">#{recPayType},</if>
|
|
|
|
|
<if test="settleType != null and settleType != ''">#{settleType},</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="preBalance != null">#{preBalance},</if>
|
|
|
|
|
<if test="preConfirmBalance != null">#{preConfirmBalance},</if>
|
|
|
|
|
<if test="curMoney != null">#{curMoney},</if>
|
|
|
|
|
<if test="curConfirmMoney != null">#{curConfirmMoney},</if>
|
|
|
|
|
<if test="backBalance != null">#{backBalance},</if>
|
|
|
|
|
<if test="backConfirmBalance != null">#{backConfirmBalance},</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="currency != null and currency != ''">#{currency},</if>
|
|
|
|
|
<if test="changeType != null and changeType != ''">#{changeType},</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="changeDate != null">#{changeDate},</if>
|
|
|
|
|
<if test="centerCode != null and centerCode != ''">#{centerCode},</if>
|
|
|
|
|
<if test="siteCode != null and siteCode != ''">#{siteCode},</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="sourceType != null and sourceType != ''">#{sourceType},</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="financeDate != null">#{financeDate},</if>
|
|
|
|
|
<if test="operataDate != null">#{operataDate},</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="blConfirm != null and blConfirm != ''">#{blConfirm},</if>
|
|
|
|
|
<if test="confirmManCode != null and confirmManCode != ''">#{confirmManCode},</if>
|
|
|
|
|
<if test="confirmSiteCode != null and confirmSiteCode != ''">#{confirmSiteCode},</if>
|
|
|
|
|
<if test="settleManCode != null and settleManCode != ''">#{settleManCode},</if>
|
|
|
|
|
<if test="settleSiteCode != null and settleSiteCode != ''">#{settleSiteCode},</if>
|
|
|
|
|
<if test="blCenter != null and blCenter != ''">#{blCenter},</if>
|
|
|
|
|
<if test="centerManCode != null and centerManCode != ''">#{centerManCode},</if>
|
|
|
|
|
<if test="blSite != null and blSite != ''">#{blSite},</if>
|
|
|
|
|
<if test="siteManCode != null and siteManCode != ''">#{siteManCode},</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="siteDate != null">#{siteDate},</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="blChargeFee != null and blChargeFee != ''">#{blChargeFee},</if>
|
|
|
|
|
<if test="transferCode != null and transferCode != ''">#{transferCode},</if>
|
|
|
|
|
<if test="settleEbrCode != null and settleEbrCode != ''">#{settleEbrCode},</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="settleEbrDate != null">#{settleEbrDate},</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="customerCode != null and customerCode != ''">#{customerCode},</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="centerDate != null">#{centerDate},</if>
|
|
|
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="delFlag != null and delFlag != ''">#{delFlag},</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>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
|
|
|
|
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
|
|
|
|
</trim>
|
2024-03-07 10:49:59 +00:00
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<update id="updateEmisSiteSettleRecord" parameterType="EmisSiteSettleRecord">
|
|
|
|
|
update emis_site_settle_record
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="accCode != null and accCode != ''">acc_code = #{accCode},</if>
|
|
|
|
|
<if test="billCode != null and billCode != ''">bill_code = #{billCode},</if>
|
|
|
|
|
<if test="recPayType != null and recPayType != ''">rec_pay_type = #{recPayType},</if>
|
|
|
|
|
<if test="settleType != null and settleType != ''">settle_type = #{settleType},</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="preBalance != null">pre_balance = #{preBalance},</if>
|
|
|
|
|
<if test="preConfirmBalance != null">pre_confirm_balance = #{preConfirmBalance},</if>
|
|
|
|
|
<if test="curMoney != null">cur_money = #{curMoney},</if>
|
|
|
|
|
<if test="curConfirmMoney != null">cur_confirm_money = #{curConfirmMoney},</if>
|
|
|
|
|
<if test="backBalance != null">back_balance = #{backBalance},</if>
|
|
|
|
|
<if test="backConfirmBalance != null">back_confirm_balance = #{backConfirmBalance},</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="currency != null and currency != ''">currency = #{currency},</if>
|
|
|
|
|
<if test="changeType != null and changeType != ''">change_type = #{changeType},</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="changeDate != null">change_date = #{changeDate},</if>
|
|
|
|
|
<if test="centerCode != null and centerCode != ''">center_code = #{centerCode},</if>
|
|
|
|
|
<if test="siteCode != null and siteCode != ''">site_code = #{siteCode},</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="sourceType != null and sourceType != ''">source_type = #{sourceType},</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="financeDate != null">finance_date = #{financeDate},</if>
|
|
|
|
|
<if test="operataDate != null">operata_date = #{operataDate},</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="blConfirm != null and blConfirm != ''">bl_confirm = #{blConfirm},</if>
|
|
|
|
|
<if test="confirmManCode != null and confirmManCode != ''">confirm_man_code = #{confirmManCode},</if>
|
|
|
|
|
<if test="confirmSiteCode != null and confirmSiteCode != ''">confirm_site_code = #{confirmSiteCode},</if>
|
|
|
|
|
<if test="settleManCode != null and settleManCode != ''">settle_man_code = #{settleManCode},</if>
|
|
|
|
|
<if test="settleSiteCode != null and settleSiteCode != ''">settle_site_code = #{settleSiteCode},</if>
|
|
|
|
|
<if test="blCenter != null and blCenter != ''">bl_center = #{blCenter},</if>
|
|
|
|
|
<if test="centerManCode != null and centerManCode != ''">center_man_code = #{centerManCode},</if>
|
|
|
|
|
<if test="blSite != null and blSite != ''">bl_site = #{blSite},</if>
|
|
|
|
|
<if test="siteManCode != null and siteManCode != ''">site_man_code = #{siteManCode},</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="siteDate != null">site_date = #{siteDate},</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="blChargeFee != null and blChargeFee != ''">bl_charge_fee = #{blChargeFee},</if>
|
|
|
|
|
<if test="transferCode != null and transferCode != ''">transfer_code = #{transferCode},</if>
|
|
|
|
|
<if test="settleEbrCode != null and settleEbrCode != ''">settle_ebr_code = #{settleEbrCode},</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="settleEbrDate != null">settle_ebr_date = #{settleEbrDate},</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="customerCode != null and customerCode != ''">customer_code = #{customerCode},</if>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="centerDate != null">center_date = #{centerDate},</if>
|
|
|
|
|
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</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>
|
2024-06-14 16:05:24 +00:00
|
|
|
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
|
|
|
|
|
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
|
2024-03-07 10:49:59 +00:00
|
|
|
</trim>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteEmisSiteSettleRecordById" parameterType="Long">
|
|
|
|
|
delete from emis_site_settle_record where id = #{id}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteEmisSiteSettleRecordByIds" parameterType="String">
|
2024-06-14 16:05:24 +00:00
|
|
|
delete from emis_site_settle_record where id in
|
2024-03-07 10:49:59 +00:00
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
|
|
#{id}
|
|
|
|
|
</foreach>
|
|
|
|
|
</delete>
|
|
|
|
|
</mapper>
|