insert into room_renovation(remark, is_violation, r_id, room_id, room_name, person_name, violation_desc,
start_time, end_time, state, community_id, person_tel, is_postpone, postpone_time,
renovation_company, person_main, person_main_tel)
values (#{remark}, #{isViolation}, #{rId}, #{roomId}, #{roomName}, #{personName}, #{violationDesc},
#{startTime}, #{endTime}, #{state}, #{communityId}, #{personTel}, #{isPostpone}, #{postponeTime},
#{renovationCompany}, #{personMain}, #{personMainTel})
update room_renovation t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.remark= #{remark}
, t.is_violation= #{isViolation}
, t.room_id= #{roomId}
, t.room_name= #{roomName}
, t.person_name= #{personName}
, t.violation_desc= #{violationDesc}
, t.start_time= #{startTime}
, t.end_time= #{endTime}
, t.state= #{state}
, t.community_id= #{communityId}
, t.person_tel= #{personTel}
, t.examineRemark = #{examineRemark}
, t.is_postpone = #{isPostpone}
, t.postpone_time = #{postponeTime}
, t.renovation_company = #{renovationCompany}
, t.person_main = #{personMain}
, t.person_main_tel = #{personMainTel}
where 1=1
and t.r_id= #{rId}
update building_room t set t.status_cd = #{statusCd}
, t.state= #{state}
where 1=1
and t.room_id= #{roomId}