| | |
| | | <if test="curYear != null and curYear != ''"> |
| | | and DATE_FORMAT(DATE_SUB(t.end_time,INTERVAL 1 DAY),'%Y') = #{curYear} |
| | | </if> |
| | | <if test="createTime != null and createTime != ''"> |
| | | and #{createTime} = t.create_time |
| | | </if> |
| | | <if test="payOrderId != null and payOrderId != ''"> |
| | | and #{payOrderId} = t.pay_order_id |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | <!-- 保存费用明细信息至 instance表中 add by wuxw 2018-07-03 --> |
| | | <insert id="saveFeeDetail" parameterType="Map"> |
| | | insert into |
| | | pay_fee_detail( |
| | | pay_fee_detail(b_id,pay_order_id, |
| | | prime_rate,detail_id,receivable_amount,cycles,remark,received_amount,community_id, |
| | | fee_id,state,start_time,end_time,payable_amount,cashier_name,cashier_id,open_invoice, |
| | | acct_amount,discount_amount,deduction_amount,late_amount,gift_amount,invoice_no,transferor_name |
| | |
| | | ,create_time |
| | | </if> |
| | | ) |
| | | values(#{primeRate},#{detailId},#{receivableAmount},#{cycles},#{remark},#{receivedAmount},#{communityId},#{feeId},#{state}, |
| | | values(#{bId},#{payOrderId},#{primeRate},#{detailId},#{receivableAmount},#{cycles},#{remark},#{receivedAmount},#{communityId},#{feeId},#{state}, |
| | | #{startTime},#{endTime},#{payableAmount},#{cashierName},#{cashierId},#{openInvoice}, |
| | | #{acctAmount},#{discountAmount},#{deductionAmount},#{lateAmount},#{giftAmount},#{invoiceNo},#{transferorName} |
| | | <if test="createTime != null and createTime != ''"> |