insert into maintainance_plan( maintainance_day,plan_period,create_user_id,end_date,standard_id,plan_name,remark,create_user_name,maintainance_everyday,maintainance_month,plan_id,state,community_id,start_date ) values ( #{maintainanceDay},#{planPeriod},#{createUserId},#{endDate},#{standardId},#{planName},#{remark},#{createUserName},#{maintainanceEveryday},#{maintainanceMonth},#{planId},#{state},#{communityId},#{startDate} ) update maintainance_plan t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.maintainance_day= #{maintainanceDay} , t.plan_period= #{planPeriod} , t.create_user_id= #{createUserId} , t.end_date= #{endDate} , t.standard_id= #{standardId} , t.plan_name= #{planName} , t.remark= #{remark} , t.create_user_name= #{createUserName} , t.maintainance_everyday= #{maintainanceEveryday} , t.maintainance_month= #{maintainanceMonth} , t.state= #{state} , t.community_id= #{communityId} , t.start_date= #{startDate} where 1=1 and t.plan_id= #{planId}