insert into fee_receipt_detail( area,amount,fee_name,detail_id,start_time,end_time,community_id,receipt_id,fee_id,cycle ) values ( #{area},#{amount},#{feeName},#{detailId},#{startTime},#{endTime},#{communityId},#{receiptId},#{feeId},#{cycle} ) update fee_receipt_detail t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.area= #{area} , t.amount= #{amount} , t.fee_name= #{feeName} , t.detail_id= #{detailId} , t.start_time= #{startTime} , t.end_time= #{endTime} , t.community_id= #{communityId} , t.fee_id= #{feeId} , t.cycle= #{cycle} where 1=1 and t.receipt_id= #{receiptId}