wujianwei
2026-01-14 7733884bbd7717c4b017f5597b813bd66e1e22b4
service/src/main/resources/mapper/cwgl/FundFlowMapper.xml
@@ -26,10 +26,11 @@
        <result property="updateBy"    column="update_by"    />
        <result property="updateTime"    column="update_time"    />
        <result property="delFlag"    column="del_flag"    />
        <result property="billType"    column="bill_type"    />
    </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.claimed_amount, 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 from fund_flow AS thisTab
    </sql>
    <sql id="selectFundFlowVoCount">
        select count(0) from fund_flow as thisTab
@@ -46,6 +47,7 @@
        <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>
@@ -97,6 +99,7 @@
            <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>
         </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="bankFlowNo != null and bankFlowNo != ''">#{bankFlowNo},</if>
@@ -119,6 +122,7 @@
            <if test="updateBy != null">#{updateBy},</if>
            <if test="updateTime != null">#{updateTime},</if>
            <if test="delFlag != null">#{delFlag},</if>
            <if test="billType != null">#{billType},</if>
         </trim>
    </insert>
@@ -158,6 +162,7 @@
            <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>
        </trim>
        where id = #{id}
    </update>