java110
2021-06-18 1af4e76f8440b1efbbce3689fdcc16f4a4f2c6c3
java110-db/src/main/resources/mapper/fee/FeeReceiptDetailServiceDaoImplMapper.xml
old mode 100644 new mode 100755
@@ -15,6 +15,18 @@
    </insert>
    <!-- 批量插入费用 -->
    <insert id="saveFeeReceiptDetails" parameterType="Map">
        insert into fee_receipt_detail(
        area,amount,fee_name,detail_id,start_time,end_time,community_id,receipt_id,fee_id,cycle,square_price )
        VALUES
        <foreach collection="feeReceiptDetailPos" item="item" separator=",">
            (#{item.area},#{item.amount},#{item.feeName},#{item.detailId},#{item.startTime},#{item.endTime},
            #{item.communityId},#{item.receiptId},#{item.feeId},#{item.cycle},#{item.squarePrice})
        </foreach>
    </insert>
    <!-- 查询收据明细信息 add by wuxw 2018-07-03 -->
    <select id="getFeeReceiptDetailInfo" parameterType="Map" resultType="Map">
        select t.area,t.amount,t.fee_name,t.fee_name feeName,t.detail_id,t.detail_id detailId,t.start_time,t.start_time
@@ -39,6 +51,12 @@
        <if test="detailId !=null and detailId != ''">
            and t.detail_id= #{detailId}
        </if>
        <if test="detailIds !=null ">
            and t.detail_id in
            <foreach collection="detailIds" item="item" open="(" close=")" separator=",">
                #{item}
            </foreach>
        </if>
        <if test="startTime !=null and startTime != ''">
            and t.start_time= #{startTime}
        </if>