insert into small_wechat_attr(
attr_id,wechat_id,spec_cd,community_id,value
) values (
#{attrId},#{wechatId},#{specCd},#{communityId},#{value}
)
update small_wechat_attr t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.wechat_id= #{wechatId}
, t.spec_cd= #{specCd}
, t.community_id= #{communityId}
, t.value= #{value}
where 1=1
and t.attr_id= #{attrId}