update HS_SchoolRelated set IsAllPush = 1 where SchoolId_XX = #{schoolId} update HS_TeaGroupUpdate set yxy_is_new = 1 where ID = #{id} update HS_StudentUpdateCard set yxy_is_new = 1 where ID = #{id} insert into SZ_DeptRelation (hxyDeptId,yxyDeptId,usertype,updateTime,createTime,state) values (#{hxyDeptId},#{yxyDeptId},#{userType},GETDATE(),GETDATE(),#{state}) update SZ_DeptRelation set updateTime = GETDATE() where state = #{state} and hxyDeptId = #{hxyDeptId} insert into SZ_UserRelation (hxyCustomerId,yxyUserId,userType,updateTime,createTime,state) values (#{hxyCustomerId},#{yxyUserId},#{userType},GETDATE(),GETDATE(),#{state}) update SZ_UserRelation set updateTime = GETDATE() where state = #{state} and hxyCustomerId = #{hxyCustomerId}