wujianwei
2026-01-13 486b62e149dab20c2bbfcdd6f262dd8f88a317d9
service/src/main/resources/mapper/cwgl/FundFlowMapper.xml
@@ -19,6 +19,7 @@
        <result property="purpose"    column="purpose"    />
        <result property="summary"    column="summary"    />
        <result property="remarks"    column="remarks"    />
        <result property="status"    column="status"    />
        <result property="createBy"    column="create_by"    />
        <result property="createTime"    column="create_time"    />
        <result property="updateBy"    column="update_by"    />
@@ -27,7 +28,7 @@
    </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.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.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.del_flag from fund_flow AS thisTab
    </sql>
    <sql id="selectFundFlowVoCount">
        select count(0) from fund_flow as thisTab
@@ -47,6 +48,7 @@
        <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="status != null  and status != ''"> and thisTab.status = #{status}</if>
    </sql>
    <!--查询-->
@@ -87,6 +89,7 @@
            <if test="purpose != null">purpose,</if>
            <if test="summary != null">summary,</if>
            <if test="remarks != null">remarks,</if>
            <if test="status != null">status,</if>
            <if test="createBy != null">create_by,</if>
            <if test="createTime != null">create_time,</if>
            <if test="updateBy != null">update_by,</if>
@@ -107,6 +110,7 @@
            <if test="purpose != null">#{purpose},</if>
            <if test="summary != null">#{summary},</if>
            <if test="remarks != null">#{remarks},</if>
            <if test="status != null">#{status},</if>
            <if test="createBy != null">#{createBy},</if>
            <if test="createTime != null">#{createTime},</if>
            <if test="updateBy != null">#{updateBy},</if>
@@ -118,11 +122,11 @@
    <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,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,create_by,create_time,update_by,update_time,del_flag,
        </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.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.delFlag},
            <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},
            </trim>
        </foreach>
    </insert>
@@ -144,6 +148,7 @@
            <if test="purpose != null">purpose = #{purpose},</if>
            <if test="summary != null">summary = #{summary},</if>
            <if test="remarks != null">remarks = #{remarks},</if>
            <if test="status != null">status = #{status},</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>
@@ -170,6 +175,7 @@
                <if test="item.purpose != null">purpose = #{item.purpose},</if>
                <if test="item.summary != null">summary = #{item.summary},</if>
                <if test="item.remarks != null">remarks = #{item.remarks},</if>
                <if test="item.status != null">status = #{item.status},</if>
                <if test="item.createBy != null">create_by = #{item.createBy},</if>
                <if test="item.createTime != null">create_time = #{item.createTime},</if>
                <if test="item.updateBy != null">update_by = #{item.updateBy},</if>