insert into report_fee_month_statistics_bill(receivable_amount, prepayment_id, update_time, remark, obj_name, received_amount, fee_id, config_id, obj_id, fee_name, owe_amount, community_id, obj_type, obj_name_num, pay_time, prepayment_state, fee_begin_time, fee_finish_time, prepayment_cycle, pay_fee_flag, detail_id, payable_amount, bill_state) values (#{receivableAmount}, #{prepaymentId}, #{updateTime}, #{remark}, #{objName}, #{receivedAmount}, #{feeId}, #{configId}, #{objId}, #{feeName}, #{oweAmount}, #{communityId}, #{objType}, #{objNameNum}, #{payTime}, #{prepaymentState}, #{feeBeginTime}, #{feeFinishTime}, #{prepaymentCycle}, #{payFeeFlag}, #{prepaymentDetailId}, #{payableAmount}, #{billState}) update report_fee_month_statistics_bill t set t.owe_amount= #{oweAmount} where 1=1 and t.prepayment_id= #{prepaymentId} and t.fee_id= #{feeId} update report_fee_month_statistics_bill t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.receivable_amount= #{receivableAmount} , t.update_time= #{updateTime} , t.remark= #{remark} , t.obj_name= #{objName} , t.obj_name_num= #{objNameNum} , t.received_amount= #{receivedAmount} , t.fee_id= #{feeId} , t.config_id= #{configId} , t.obj_id= #{objId} , t.fee_name= #{feeName} , t.owe_amount= #{oweAmount} , t.payable_amount= #{payableAmount} , t.obj_type= #{objType} , t.pay_time= #{payTime} , t.prepayment_state= #{prepaymentState} , t.bill_state= #{billState} , t.fee_begin_time= #{feeBeginTime} , t.fee_finish_time= #{feeFinishTime} , t.prepayment_cycle= #{prepaymentCycle} , t.pay_fee_flag= #{payFeeFlag} , t.detail_id= #{prepaymentDetailId} where 1=1 and t.prepayment_id= #{prepaymentId} and t.community_id= #{communityId} update report_fee_month_statistics_bill t set t.status_cd = '1' where 1=1 and t.prepayment_id= #{prepaymentId} and t.community_id= #{communityId} and t.fee_id= #{feeId} and t.config_id= #{configId} delete from report_fee_month_statistics_bill where fee_id in #{item} and community_id = #{communityId}