insert into floor_share_reading(
fsm_id,remark,reading_id,title,cur_reading_time,create_staff_name,cur_degrees,
pre_degrees,audit_staff_name,pre_reading_time,state,community_id
) values (
#{fsmId},#{remark},#{readingId},#{title},#{curReadingTime},#{createStaffName},
#{curDegrees},#{preDegrees},#{auditStaffName},#{preReadingTime},#{state},#{communityId}
)
update floor_share_reading t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.fsm_id= #{fsmId}
, t.remark= #{remark}
, t.title= #{title}
, t.cur_reading_time= #{curReadingTime}
, t.create_staff_name= #{createStaffName}
, t.cur_degrees= #{curDegrees}
, t.pre_degrees= #{preDegrees}
, t.audit_staff_name= #{auditStaffName}
, t.pre_reading_time= #{preReadingTime}
, t.state= #{state}
, t.state_msg= #{stateMsg}
, t.share_msg= #{shareMsg}
where 1=1
and t.reading_id= #{readingId}
and t.community_id= #{communityId}