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
) values (
#{remark},#{isViolation},#{rId},#{roomId},#{roomName},#{personName},#{violationDesc},#{startTime},#{endTime},#{state},#{communityId},#{personTel}
)
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}
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}