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,create_time)
values
(#{agreementId},#{taskId},#{unitId},#{projectId},#{month},#{costBearingParty},now())
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,create_time)
values
(#{typeId},#{maId},#{unit},#{startTime},#{endTime},#{sltDays},#{sltCosts},#{monthTemporarilyCosts},#{proMonthCostId},#{num},#{leasePrice},now())
update project_month_costs set costs = #{costs},update_time = now() 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}
delete from project_month_costs
where project_id = #{projectId} and month = #{month}
delete from project_month_detail
where pro_month_cost_id = #{proMonthCostId}