INSERT INTO slt_project_month (month,create_time) VALUES (#{month},now()) insert into project_month_costs(agreement_id,task_id,unit_id,project_id,month,cost_bearing_party) values (#{agreementId},#{taskId},#{unitId},#{projectId},#{month},#{costBearingParty}) insert into project_month_detail (type_id,ma_id,unit,start_time,end_time,slt_days,slt_costs,month_temporarily_costs,pro_month_cost_id,num,lease_price) values (#{typeId},#{maId},#{unit},#{startTime},#{endTime},#{sltDays},#{sltCosts},#{monthTemporarilyCosts},#{proMonthCostId},#{num},#{leasePrice}) update project_month_costs set costs = #{costs} where id = #{id} delete from slt_project_month where id = #{id} delete from project_month_detail where pro_month_cost_id in (select id from project_month_costs where task_id = #{id}) delete from project_month_costs where task_id = #{id}