| | |
| | | <result property="summary" column="summary" /> |
| | | <result property="remarks" column="remarks" /> |
| | | <result property="status" column="status" /> |
| | | <result property="claimedAmount" column="claimed_amount" /> |
| | | <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="delFlag" column="del_flag" /> |
| | | <result property="billType" column="bill_type" /> |
| | | <result property="subAccountNo" column="sub_account_no" /> |
| | | <result property="counterpartyBank" column="counterparty_bank" /> |
| | | <result property="accountBalance" column="account_balance" /> |
| | | <result property="transactionChannel" column="transaction_channel" /> |
| | | <result property="urid" column="urid" /> |
| | | <result property="orgNo" column="org_no" /> |
| | | <result property="payerAcctName" column="payer_acct_name" /> |
| | | <result property="valueDate" column="value_date" /> |
| | | <result property="natureNames" column="nature_names" /> |
| | | <result property="postdate" column="postdate" /> |
| | | <result property="isReturn" column="is_return" /> |
| | | <result property="customizedSerialNum" column="customized_serial_num" /> |
| | | <result property="srcNoteCode" column="src_note_code" /> |
| | | <result property="currNo" column="curr_no" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectFundFlowVo"> |
| | | select thisTab.id, thisTab.bank_flow_no, thisTab.company, thisTab.our_account, thisTab.our_bank_name, thisTab.income_expense_flag, thisTab.transaction_amount, thisTab.currency, thisTab.counterparty_account, thisTab.counterparty_name, thisTab.transaction_date, thisTab.purpose, thisTab.summary, thisTab.remarks, thisTab.status, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.del_flag from fund_flow AS thisTab |
| | | select thisTab.id, thisTab.bank_flow_no, thisTab.company, thisTab.our_account, thisTab.our_bank_name, thisTab.income_expense_flag, thisTab.transaction_amount, thisTab.currency, thisTab.counterparty_account, thisTab.counterparty_name, thisTab.transaction_date, thisTab.purpose, thisTab.summary, thisTab.remarks, thisTab.status, thisTab.claimed_amount, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.del_flag , thisTab.bill_type, thisTab.sub_account_no, thisTab.counterparty_bank, thisTab.account_balance, thisTab.transaction_channel, thisTab.urid, thisTab.org_no, thisTab.payer_acct_name, thisTab.value_date, thisTab.nature_names, thisTab.postdate, thisTab.is_return, thisTab.customized_serial_num, thisTab.src_note_code, thisTab.curr_no from fund_flow AS thisTab |
| | | </sql> |
| | | <sql id="selectFundFlowVoCount"> |
| | | select count(0) from fund_flow as thisTab |
| | |
| | | <if test="counterpartyAccount != null and counterpartyAccount != ''"> and thisTab.counterparty_account = #{counterpartyAccount}</if> |
| | | <if test="counterpartyName != null and counterpartyName != ''"> and thisTab.counterparty_name like concat('%', #{counterpartyName}, '%')</if> |
| | | <if test="transactionDate != null "> and thisTab.transaction_date = #{transactionDate}</if> |
| | | <if test="billType != null "> and thisTab.bill_type = #{billType}</if> |
| | | <if test="purpose != null and purpose != ''"> and thisTab.purpose = #{purpose}</if> |
| | | <if test="summary != null and summary != ''"> and thisTab.summary = #{summary}</if> |
| | | <if test="remarks != null and remarks != ''"> and thisTab.remarks = #{remarks}</if> |
| | |
| | | <if test="summary != null">summary,</if> |
| | | <if test="remarks != null">remarks,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="claimedAmount != null">claimed_amount,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="billType != null">bill_type,</if> |
| | | <if test="subAccountNo != null">sub_account_no,</if> |
| | | <if test="counterpartyBank != null">counterparty_bank,</if> |
| | | <if test="accountBalance != null">account_balance,</if> |
| | | <if test="transactionChannel != null">transaction_channel,</if> |
| | | <if test="urid != null">urid,</if> |
| | | <if test="orgNo != null">org_no,</if> |
| | | <if test="payerAcctName != null">payer_acct_name,</if> |
| | | <if test="valueDate != null">value_date,</if> |
| | | <if test="natureNames != null">nature_names,</if> |
| | | <if test="postdate != null">postdate,</if> |
| | | <if test="isReturn != null">is_return,</if> |
| | | <if test="customizedSerialNum != null">customized_serial_num,</if> |
| | | <if test="srcNoteCode != null">src_note_code,</if> |
| | | <if test="currNo != null">curr_no,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="bankFlowNo != null and bankFlowNo != ''">#{bankFlowNo},</if> |
| | |
| | | <if test="summary != null">#{summary},</if> |
| | | <if test="remarks != null">#{remarks},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="claimedAmount != null">#{claimedAmount},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="billType != null">#{billType},</if> |
| | | <if test="subAccountNo != null">#{subAccountNo},</if> |
| | | <if test="counterpartyBank != null">#{counterpartyBank},</if> |
| | | <if test="accountBalance != null">#{accountBalance},</if> |
| | | <if test="transactionChannel != null">#{transactionChannel},</if> |
| | | <if test="urid != null">#{urid},</if> |
| | | <if test="orgNo != null">#{orgNo},</if> |
| | | <if test="payerAcctName != null">#{payerAcctName},</if> |
| | | <if test="valueDate != null">#{valueDate},</if> |
| | | <if test="natureNames != null">#{natureNames},</if> |
| | | <if test="postdate != null">#{postdate},</if> |
| | | <if test="isReturn != null">#{isReturn},</if> |
| | | <if test="customizedSerialNum != null">#{customizedSerialNum},</if> |
| | | <if test="srcNoteCode != null">#{srcNoteCode},</if> |
| | | <if test="currNo != null">#{currNo},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <insert id="insertFundFlowBatch" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into fund_flow |
| | | <trim prefix="(" suffix=") values" suffixOverrides=","> |
| | | id,bank_flow_no,company,our_account,our_bank_name,income_expense_flag,transaction_amount,currency,counterparty_account,counterparty_name,transaction_date,purpose,summary,remarks,status,create_by,create_time,update_by,update_time,del_flag, |
| | | id,bank_flow_no,company,our_account,our_bank_name,income_expense_flag,transaction_amount,currency,counterparty_account,counterparty_name,transaction_date,purpose,summary,remarks,status,claimed_amount,create_by,create_time,update_by,update_time,del_flag,sub_account_no,counterparty_bank,account_balance,transaction_channel,urid,org_no,payer_acct_name,value_date,nature_names,postdate,is_return,customized_serial_num,src_note_code,curr_no, |
| | | </trim> |
| | | <foreach item="item" index="index" collection="list" separator=","> |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | #{item.id},#{item.bankFlowNo},#{item.company},#{item.ourAccount},#{item.ourBankName},#{item.incomeExpenseFlag},#{item.transactionAmount},#{item.currency},#{item.counterpartyAccount},#{item.counterpartyName},#{item.transactionDate},#{item.purpose},#{item.summary},#{item.remarks},#{item.status},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.delFlag}, |
| | | #{item.id},#{item.bankFlowNo},#{item.company},#{item.ourAccount},#{item.ourBankName},#{item.incomeExpenseFlag},#{item.transactionAmount},#{item.currency},#{item.counterpartyAccount},#{item.counterpartyName},#{item.transactionDate},#{item.purpose},#{item.summary},#{item.remarks},#{item.status},#{item.claimedAmount},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.delFlag},#{item.subAccountNo},#{item.counterpartyBank},#{item.accountBalance},#{item.transactionChannel},#{item.urid},#{item.orgNo},#{item.payerAcctName},#{item.valueDate},#{item.natureNames},#{item.postdate},#{item.isReturn},#{item.customizedSerialNum},#{item.srcNoteCode},#{item.currNo}, |
| | | </trim> |
| | | </foreach> |
| | | </insert> |
| | |
| | | <if test="summary != null">summary = #{summary},</if> |
| | | <if test="remarks != null">remarks = #{remarks},</if> |
| | | <if test="status != null">status = #{status},</if> |
| | | <if test="claimedAmount != null">claimed_amount = #{claimedAmount},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="billType != null">bill_type = #{billType},</if> |
| | | <if test="subAccountNo != null">sub_account_no = #{subAccountNo},</if> |
| | | <if test="counterpartyBank != null">counterparty_bank = #{counterpartyBank},</if> |
| | | <if test="accountBalance != null">account_balance = #{accountBalance},</if> |
| | | <if test="transactionChannel != null">transaction_channel = #{transactionChannel},</if> |
| | | <if test="urid != null">urid = #{urid},</if> |
| | | <if test="orgNo != null">org_no = #{orgNo},</if> |
| | | <if test="payerAcctName != null">payer_acct_name = #{payerAcctName},</if> |
| | | <if test="valueDate != null">value_date = #{valueDate},</if> |
| | | <if test="natureNames != null">nature_names = #{natureNames},</if> |
| | | <if test="postdate != null">postdate = #{postdate},</if> |
| | | <if test="isReturn != null">is_return = #{isReturn},</if> |
| | | <if test="customizedSerialNum != null">customized_serial_num = #{customizedSerialNum},</if> |
| | | <if test="srcNoteCode != null">src_note_code = #{srcNoteCode},</if> |
| | | <if test="currNo != null">curr_no = #{currNo},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <if test="item.updateBy != null">update_by = #{item.updateBy},</if> |
| | | <if test="item.updateTime != null">update_time = #{item.updateTime},</if> |
| | | <if test="item.delFlag != null">del_flag = #{item.delFlag},</if> |
| | | <if test="item.subAccountNo != null">sub_account_no = #{item.subAccountNo},</if> |
| | | <if test="item.counterpartyBank != null">counterparty_bank = #{item.counterpartyBank},</if> |
| | | <if test="item.accountBalance != null">account_balance = #{item.accountBalance},</if> |
| | | <if test="item.transactionChannel != null">transaction_channel = #{item.transactionChannel},</if> |
| | | <if test="item.urid != null">urid = #{item.urid},</if> |
| | | <if test="item.orgNo != null">org_no = #{item.orgNo},</if> |
| | | <if test="item.payerAcctName != null">payer_acct_name = #{item.payerAcctName},</if> |
| | | <if test="item.valueDate != null">value_date = #{item.valueDate},</if> |
| | | <if test="item.natureNames != null">nature_names = #{item.natureNames},</if> |
| | | <if test="item.postdate != null">postdate = #{item.postdate},</if> |
| | | <if test="item.isReturn != null">is_return = #{item.isReturn},</if> |
| | | <if test="item.customizedSerialNum != null">customized_serial_num = #{item.customizedSerialNum},</if> |
| | | <if test="item.srcNoteCode != null">src_note_code = #{item.srcNoteCode},</if> |
| | | <if test="item.currNo != null">curr_no = #{item.currNo},</if> |
| | | </trim> |
| | | where id = #{item.id} |
| | | </foreach> |
| | |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="selectFundFlowByBankFlowNo" parameterType="String" resultMap="FundFlowResult"> |
| | | <include refid="selectFundFlowVo"/> |
| | | where thisTab.bank_flow_no = #{bankFlowNo} |
| | | </select> |
| | | |
| | | <select id="selectFundFlowByUrid" parameterType="String" resultMap="FundFlowResult"> |
| | | <include refid="selectFundFlowVo"/> |
| | | where thisTab.urid = #{urid} |
| | | </select> |
| | | |
| | | </mapper> |