insert into room_renovation_detail(
detail_type,staff_name,detail_id,remark,state,r_id,community_id,staff_id
) values (
#{detailType},#{staffName},#{detailId},#{remark},#{state},#{rId},#{communityId},#{staffId}
)
update room_renovation_detail t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.detail_type= #{detailType}
, t.staff_name= #{staffName}
, t.remark= #{remark}
, t.state= #{state}
, t.r_id= #{rId}
, t.community_id= #{communityId}
, t.staff_id= #{staffId}
where 1=1
and t.detail_id= #{detailId}