GroupRepository.cs 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using AutoMapper;
  4. using Dapper;
  5. using GxPress.Common.AppOptions;
  6. using GxPress.Common.Exceptions;
  7. using GxPress.Common.Page;
  8. using GxPress.Common.Tools;
  9. using GxPress.Entity;
  10. using GxPress.EnumConst;
  11. using GxPress.Repository.Interface;
  12. using GxPress.Request.App.Group;
  13. using GxPress.Result.App.Group;
  14. using GxPress.Result.App.GroupUser;
  15. using Microsoft.AspNetCore.Hosting;
  16. using Microsoft.Extensions.Options;
  17. using Newtonsoft.Json;
  18. using Datory;
  19. using GxPress.Request.App.Topic;
  20. using SqlKata;
  21. using GxPress.Result.Job;
  22. using System.Linq;
  23. namespace GxPress.Repository.Implement
  24. {
  25. public class GroupRepository : IGroupRepository
  26. {
  27. private readonly Repository<Entity.Group> _repository;
  28. private readonly IMapper _mapper;
  29. private readonly IWebHostEnvironment _environment;
  30. private readonly string _connectionString;
  31. private readonly string _databaseTypeStr;
  32. private readonly Repository<GroupUser> _groupUserRepository;
  33. public GroupRepository(IOptionsMonitor<DatabaseOptions> dbOptionsAccessor, IMapper mapper,
  34. IWebHostEnvironment environment)
  35. {
  36. _databaseTypeStr = dbOptionsAccessor.CurrentValue.DatabaseType;
  37. _connectionString = dbOptionsAccessor.CurrentValue.ConnectionString;
  38. var databaseType =
  39. StringUtils.ToEnum<DatabaseType>(dbOptionsAccessor.CurrentValue.DatabaseType, DatabaseType.MySql);
  40. var database = new Database(databaseType, dbOptionsAccessor.CurrentValue.ConnectionString);
  41. _repository = new Repository<Entity.Group>(database);
  42. _groupUserRepository = new Repository<GroupUser>(database);
  43. _environment = environment;
  44. _mapper = mapper;
  45. }
  46. public IDatabase Database => _repository.Database;
  47. public string TableName => _repository.TableName;
  48. public List<TableColumn> TableColumns => _repository.TableColumns;
  49. public async Task<int> InsertAsync(GroupInRequest request)
  50. {
  51. if (string.IsNullOrEmpty(request.Name))
  52. throw new BusinessException("小组名称不能为空");
  53. var group = new Entity.Group
  54. {
  55. Name = request.Name,
  56. AvatarUrl = request.AvatarUrl,
  57. Introduce = request.Introduce,
  58. IsAdmin = false,
  59. IsUDisturb = false,
  60. QRCoder = request.QRCoder,
  61. IsWords = false,
  62. UserId = request.UserId,
  63. GroupCategroyId = request.GroupCategroyId,
  64. LabelName = request.LabelName,
  65. IsShow = request.IsShow
  66. };
  67. if (!string.IsNullOrEmpty(group.AvatarUrl))
  68. group.AvatarUrl = StringUtils.RemoveDomain(group.AvatarUrl);
  69. var id = await _repository.InsertAsync(group);
  70. //生成二维码
  71. var groupDto = await _repository.GetAsync(id);
  72. var qrCodeData = new { key = QRCodeTypeConst.GroupInfo, value = groupDto.Guid };
  73. var resultPath =
  74. FileHelper.SaveQRCodeFile(StringUtils.GetWebRootPath(_environment.WebRootPath),
  75. JsonConvert.SerializeObject(qrCodeData));
  76. groupDto.QRCoder = resultPath.RelativePath;
  77. await _repository.UpdateAsync(groupDto);
  78. return id;
  79. }
  80. public async Task<IEnumerable<GroupUser>> GetAllAsync(SqlKata.Query query)
  81. {
  82. return await _groupUserRepository.GetAllAsync(query);
  83. }
  84. /// <summary>
  85. /// 修改小组
  86. /// </summary>
  87. /// <param name="request"></param>
  88. /// <returns></returns>
  89. public async Task<bool> UpdateAsync(GroupUpRequest request)
  90. {
  91. var group = await _repository.GetAsync(request.Id);
  92. if (!string.IsNullOrEmpty(request.Name))
  93. group.Name = request.Name;
  94. if (!string.IsNullOrEmpty(request.AvatarUrl))
  95. group.AvatarUrl = StringUtils.RemoveDomain(request.AvatarUrl);
  96. if (!string.IsNullOrEmpty(request.Introduce))
  97. group.Introduce = request.Introduce;
  98. if (!string.IsNullOrEmpty(request.LabelName))
  99. group.LabelName = request.LabelName;
  100. if (request.IsShow > 0)
  101. group.IsShow = request.IsShow == 1;
  102. if (request.IsAdmin > 0)
  103. group.IsAdmin = request.IsAdmin == 1;
  104. if (request.IsWords > 0)
  105. group.IsWords = request.IsWords == 1;
  106. return await _repository.UpdateAsync(group);
  107. }
  108. /// <summary>
  109. /// 删除小组
  110. /// </summary>
  111. /// <param name="id"></param>
  112. /// <returns></returns>
  113. public async Task<bool> DeleteAsync(int id)
  114. {
  115. return await _repository.DeleteAsync(id);
  116. }
  117. public async Task<bool> DeleteAsync(Query query)
  118. {
  119. return await _repository.DeleteAsync(query) > 0;
  120. }
  121. /// <summary>
  122. /// 查询小组
  123. /// </summary>
  124. /// <param name="request"></param>
  125. /// <returns></returns>
  126. public async Task<PagedList<GroupUserFindResult>> FindGroupByGroupFolderId(GroupSearchRequest request)
  127. {
  128. var pagedList = new PagedList<GroupUserFindResult>();
  129. var groupConst = AllTypeConst.Group.GetHashCode();
  130. //根据文件夹ID查询成员
  131. var sqlValue = "";
  132. // if (!string.IsNullOrEmpty(request.Key))
  133. // sqlValue += $"and b.Name like '%{request.Key}%'";
  134. //共享数量
  135. var topicSharingCount = "(select count(1) from tede_group_user where GroupId=a.MiddleId) as TopicSharingCount";
  136. //总话题数量
  137. var topicAllCount = "(select count(1) from tede_topic where GroupId=a.MiddleId) as TopicAllCount";
  138. //未读话题数量
  139. var uReadTopicCount = $"(select count(1) from tede_topic_addressee where TopicId in (select Id from tede_topic where GroupId=a.MiddleId) and UserId={request.UserId} and IsRead=0) as UReadTopicCount";
  140. var categoryName = "(select FolderName from tede_middle where id=a.ParentId) as CategoryName";
  141. var sql =
  142. $@"SELECT a.*,{topicSharingCount},{topicAllCount},{uReadTopicCount},{categoryName},
  143. (SELECT
  144. COUNT(1)
  145. FROM
  146. tede_group
  147. WHERE
  148. id IN (SELECT
  149. MiddleId
  150. FROM
  151. tede_middle
  152. WHERE
  153. ParentId = a.Id)) AS FileCount,b.Id, b.AvatarUrl, b.Name FROM tede_Middle a LEFT JOIN tede_group b ON a.MiddleId = b.Id WHERE 1=1 ";
  154. if (request.GroupFolderId == 0 && string.IsNullOrEmpty(request.Key))
  155. sql += $"and a.ParentId = @groupFolderId ";
  156. else if (request.GroupFolderId > 0 && !string.IsNullOrEmpty(request.Key))
  157. sql += $"and a.ParentId = @groupFolderId and (a.FolderName like '%{request.Key}%' or b.Name like '%{request.Key}%')";
  158. else if (request.GroupFolderId > 0 && string.IsNullOrEmpty(request.Key))
  159. sql += $"and a.ParentId = @groupFolderId ";
  160. else
  161. sql += $" and (a.FolderName like '%{request.Key}%' or b.Name like '%{request.Key}%')";
  162. sql +=
  163. $@" and a.UserId=@userId and a.FolderType={groupConst} and a.IsDelete=0 {sqlValue} and (b.id>0 or a.AttributeValue=2) ORDER BY a.IsTop DESC, a.LastModifiedDate DESC ,a.AttributeValue DESC LIMIT @page , @pageSize";
  164. var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
  165. var database = new Database(databaseType, _connectionString);
  166. var connection = database.GetConnection();
  167. var result =
  168. await connection
  169. .QueryAsync<GroupUserFindResult, Entity.Group, GroupUserFindResult>(sql,
  170. (groupUserFindResult, group) =>
  171. {
  172. groupUserFindResult.GroupName = group == null ? "" : group.Name;
  173. groupUserFindResult.AvatarUrl = group == null ? "" : StringUtils.AddDomainMin(group.AvatarUrl);
  174. groupUserFindResult.GroupId = group?.Id ?? 0;
  175. return groupUserFindResult;
  176. },
  177. new
  178. {
  179. groupFolderId = request.GroupFolderId,
  180. userId = request.UserId,
  181. page = (request.Page - 1) * request.PerPage,
  182. pageSize = request.PerPage * request.Page
  183. }, splitOn: "Id");
  184. pagedList.Items = result;
  185. var sqlCount =
  186. @"SELECT count(1) FROM tede_Middle a LEFT JOIN tede_group b ON a.MiddleId = b.Id WHERE 1=1 ";
  187. if (request.GroupFolderId == 0 && string.IsNullOrEmpty(request.Key))
  188. sqlCount += $"and a.ParentId = {request.GroupFolderId} ";
  189. else if (request.GroupFolderId > 0 && !string.IsNullOrEmpty(request.Key))
  190. sqlCount += $"and a.ParentId = {request.GroupFolderId} and (a.FolderName like '%{request.Key}%' or b.Name like '%{request.Key}%')";
  191. else if (request.GroupFolderId > 0 && string.IsNullOrEmpty(request.Key))
  192. sqlCount += $"and a.ParentId = {request.GroupFolderId} ";
  193. else
  194. sql += $" and (a.FolderName like '%{request.Key}%' or b.Name like '%{request.Key}%')";
  195. sqlCount +=
  196. $" and a.UserId={request.UserId} and a.FolderType={groupConst} and a.IsDelete=0 {sqlValue} and (b.id>0 or a.AttributeValue=2)";
  197. pagedList.Total = await FindGroupByGroupFolderIdCountAsync(sqlCount);
  198. return pagedList;
  199. }
  200. /// <summary>
  201. /// 条数
  202. /// </summary>
  203. /// <param name="sql"></param>
  204. /// <returns></returns>
  205. public async Task<int> FindGroupByGroupFolderIdCountAsync(string sql)
  206. {
  207. var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
  208. var database = new Database(databaseType, _connectionString);
  209. var connection = database.GetConnection();
  210. var result = await connection.ExecuteScalarAsync<int>(sql);
  211. return result;
  212. }
  213. /// <summary>
  214. /// 获取小组详情
  215. /// </summary>
  216. /// <param name="request"></param>
  217. /// <returns></returns>
  218. public async Task<GroupDetailResult> GroupDetailAsync(GroupDetailRequest request)
  219. {
  220. var groupDetail = await _repository.GetAsync(request.GroupId);
  221. if (groupDetail == null)
  222. throw new BusinessException("小组不存在");
  223. if (!string.IsNullOrEmpty(groupDetail.AvatarUrl))
  224. groupDetail.AvatarUrl = StringUtils.AddDomain(groupDetail.AvatarUrl);
  225. if (!string.IsNullOrEmpty(groupDetail.QRCoder))
  226. groupDetail.QRCoder = StringUtils.AddDomain(groupDetail.QRCoder);
  227. var sql =
  228. "SELECT a.*,b.Name,b.AvatarUrl,c.Name FROM tede_group_user a inner join tede_user b on a.UserId=b.Id inner join tede_department c on b.DepartmentId=c.Id where a.GroupId=@groupId order by a.GroupUserRoleId";
  229. var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
  230. var database = new Database(databaseType, _connectionString);
  231. var connection = database.GetConnection();
  232. var result =
  233. await connection
  234. .QueryAsync<GroupUserListResult, User, Department, GroupUserListResult>(sql,
  235. (groupUserListResult, user, department) =>
  236. {
  237. groupUserListResult.DepartmentName = department.Name;
  238. groupUserListResult.Name = user.Name;
  239. groupUserListResult.AvatarUrl = StringUtils.AddDomainMin(user.AvatarUrl);
  240. return groupUserListResult;
  241. }, new { groupId = request.GroupId }, splitOn: "Name");
  242. var groupDetailResult = _mapper.Map<GroupDetailResult>(groupDetail);
  243. groupDetailResult.GroupUserListResult = result;
  244. var groupUser = await _groupUserRepository.GetAsync(Q.Where(nameof(GroupUser.UserId), request.UserId)
  245. .Where(nameof(GroupUser.GroupId), request.GroupId));
  246. //获取当前用户的权限
  247. groupDetailResult.GroupUserRoleId = groupUser != null ? groupUser.GroupUserRoleId : 0;
  248. groupDetailResult.IsUDisturb = groupUser != null ? groupUser.IsUDisturb : false;
  249. //groupDetailResult.IsAdmin = groupUser != null ? groupUser.UserId == groupDetailResult.UserId : false;
  250. groupDetailResult.IsUser = groupUser != null ? groupUser.UserId == request.UserId : false;
  251. groupDetailResult.CreatedDate = groupDetail.CreatedDate;
  252. return groupDetailResult;
  253. }
  254. /// <summary>
  255. /// 搜索小组成员
  256. /// </summary>
  257. /// <param name="request"></param>
  258. /// <returns></returns>
  259. public async Task<IEnumerable<GroupUserListResult>> SearchGroupUserAsync(TopicDetailListRequest request)
  260. {
  261. string sql =
  262. $@"SELECT a.*, b.Name, b.AvatarUrl, c.Name FROM tede_group_user a INNER JOIN tede_user b ON a.UserId = b.Id INNER JOIN
  263. tede_department c ON b.DepartmentId = c.Id
  264. WHERE a.GroupId = {request.GroupId} and b.Name like '%{request.Key}%'";
  265. var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
  266. var database = new Database(databaseType, _connectionString);
  267. var connection = database.GetConnection();
  268. var result =
  269. await connection
  270. .QueryAsync<GroupUserListResult, User, Department, GroupUserListResult>(sql,
  271. (groupUserListResult, user, department) =>
  272. {
  273. groupUserListResult.DepartmentName = department.Name;
  274. groupUserListResult.Name = user.Name;
  275. groupUserListResult.AvatarUrl = StringUtils.AddDomainMin(user.AvatarUrl);
  276. return groupUserListResult;
  277. }, splitOn: "Name");
  278. return result;
  279. }
  280. /// <summary>
  281. /// 获取小组详情
  282. /// </summary>
  283. /// <param name="guId"></param>
  284. /// <param name="userId"></param>
  285. /// <returns></returns>
  286. public async Task<GroupDetailResult> GroupDetailByGuIdAsync(string guId, int userId)
  287. {
  288. var groupDetail = await _repository.GetAsync(Q.Where(nameof(Entity.Group.Guid), guId));
  289. if (groupDetail == null)
  290. throw new BusinessException("小组不存在");
  291. if (!string.IsNullOrEmpty(groupDetail.AvatarUrl))
  292. groupDetail.AvatarUrl = StringUtils.AddDomainMin(groupDetail.AvatarUrl);
  293. if (!string.IsNullOrEmpty(groupDetail.QRCoder))
  294. groupDetail.QRCoder = StringUtils.AddDomain(groupDetail.QRCoder);
  295. var sql =
  296. "SELECT a.*,b.Name,b.AvatarUrl,c.Name FROM tede_group_user a inner join tede_user b on a.UserId=b.Id inner join tede_department c on b.DepartmentId=c.Id where a.GroupId=@groupId";
  297. var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
  298. var database = new Database(databaseType, _connectionString);
  299. var connection = database.GetConnection();
  300. var result =
  301. await connection
  302. .QueryAsync<GroupUserListResult, User, Department, GroupUserListResult>(sql,
  303. (groupUserListResult, user, department) =>
  304. {
  305. groupUserListResult.DepartmentName = department.Name;
  306. groupUserListResult.Name = user.Name;
  307. groupUserListResult.AvatarUrl = StringUtils.AddDomainMin(user.AvatarUrl);
  308. return groupUserListResult;
  309. }, new { groupId = groupDetail.Id }, splitOn: "Name");
  310. var groupDetailResult = _mapper.Map<GroupDetailResult>(groupDetail);
  311. groupDetailResult.GroupUserListResult = result;
  312. var groupUser = await _groupUserRepository.GetAsync(Q.Where(nameof(GroupUser.UserId), userId)
  313. .Where(nameof(GroupUser.Guid), guId));
  314. groupDetailResult.GroupUserRoleId = groupUser?.GroupUserRoleId ?? GroupUserRoleTyeConst.General;
  315. //获取当前用户的权限
  316. return groupDetailResult;
  317. }
  318. /// <summary>
  319. /// 获取用户未读取话题数量
  320. /// </summary>
  321. /// <param name="userId"></param>
  322. /// <param name="groupId"></param>
  323. /// <returns></returns>
  324. public async Task<int> GetUReadCountAsync(int userId, int groupId)
  325. {
  326. string sql =
  327. @"select count(1) from tede_topic a inner join tede_topic_addressee b on a.Id=b.TopicId where b.UserId=@userId and b.IsRead=0 and a.GroupId=@groupId";
  328. var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
  329. var database = new Database(databaseType, _connectionString);
  330. var connection = database.GetConnection();
  331. var result = await connection.ExecuteScalarAsync<int>(sql, new { userId, groupId });
  332. return result;
  333. }
  334. /// <summary>
  335. /// 获取小组的共享话题数量
  336. /// </summary>
  337. /// <param name="groupId"></param>
  338. /// <returns></returns>
  339. public async Task<int> SharingCountAsync(int groupId)
  340. {
  341. var sql =
  342. $"select count(1) from tede_group_user where GroupId={groupId}";
  343. var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
  344. var database = new Database(databaseType, _connectionString);
  345. var connection = database.GetConnection();
  346. var result = await connection.ExecuteScalarAsync<int>(sql, new { GroupId = groupId });
  347. return result;
  348. }
  349. public async Task<Entity.Group> GetAsync(int id)
  350. {
  351. return await _repository.GetAsync(id);
  352. }
  353. /// <summary>
  354. /// 是开启管理员同意加入
  355. /// </summary>
  356. /// <param name="groupId"></param>
  357. /// <returns></returns>
  358. public async Task<bool> SetGroupIsAdminAsync(int groupId)
  359. {
  360. var group = await GetAsync(groupId);
  361. return await _repository.UpdateAsync(Q.Set(nameof(Entity.Group.IsAdmin), !group.IsAdmin)
  362. .Where(nameof(Entity.Group.Id), groupId)) > 0;
  363. }
  364. /// <summary>
  365. /// 是否禁言
  366. /// </summary>
  367. /// <param name="groupId"></param>
  368. /// <returns></returns>
  369. public async Task<bool> SetGroupIsWordsAsync(int groupId)
  370. {
  371. var group = await GetAsync(groupId);
  372. return await _repository.UpdateAsync(Q.Set(nameof(Entity.Group.IsWords), !group.IsWords)
  373. .Where(nameof(Entity.Group.Id), groupId)) > 0;
  374. }
  375. public async Task<List<JobGroupResult>> ElasticSearchGroup()
  376. {
  377. var sql = "select a.Id,a.GuId,a.UserId,b.Id,b.Name,b.AvatarUrl,b.CreatedDate,c.Name from tede_middle a inner join tede_group b on a.MiddleId=b.Id inner join tede_user c on c.Id=b.UserId where a.FolderType=7 and a.IsUpload=0 order by a.CreatedDate desc limit 0,100";
  378. var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
  379. var database = new Database(databaseType, _connectionString);
  380. var connection = database.GetConnection();
  381. var items = await connection
  382. .QueryAsync<JobGroupResult, Entity.Group, User, JobGroupResult>(sql,
  383. (jobGroupResult, group, user) =>
  384. {
  385. jobGroupResult.MiddleId = jobGroupResult.Id;
  386. jobGroupResult.Id = group.Id;
  387. jobGroupResult.Name = group != null ? group.Name : "";
  388. jobGroupResult.AvatarUrl = group != null ? group.AvatarUrl : "";
  389. return jobGroupResult;
  390. },
  391. splitOn: "Id,Id,Name");
  392. return items.ToList();
  393. }
  394. /// <summary>
  395. /// 根据广场类别查询小组
  396. /// </summary>
  397. /// <param name="categoryId"></param>
  398. /// <returns></returns>
  399. public async Task<IEnumerable<Entity.Group>> GetAllAsync(int categoryId)
  400. {
  401. var sql = $@"SELECT
  402. *,
  403. (SELECT
  404. COUNT(1)
  405. FROM
  406. tede_group_user
  407. WHERE
  408. GroupId = a.Id) AS UserCount,
  409. (SELECT
  410. COUNT(1)
  411. FROM
  412. tede_topic
  413. WHERE
  414. GroupId = a.Id) AS GroupArticleCount
  415. FROM
  416. tede_group a
  417. WHERE
  418. a.GroupCategroyId = {categoryId} and a.IsShow=1";
  419. var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
  420. var database = new Database(databaseType, _connectionString);
  421. var connection = database.GetConnection();
  422. var result = await connection.QueryAsync<Entity.Group>(sql);
  423. //return await _repository.GetAllAsync(Q.Where(nameof(Entity.Group.GroupCategroyId), categoryId));
  424. return result;
  425. }
  426. /// <summary>
  427. /// 用户小组列表
  428. /// </summary>
  429. /// <param name="userId"></param>
  430. /// <returns></returns>
  431. public async Task<IEnumerable<UserGroupList>> GetAllByUserIdAsync(int userId)
  432. {
  433. string sql = $@"SELECT
  434. Id,
  435. Name,
  436. AvatarUrl,
  437. (SELECT
  438. COUNT(1)
  439. FROM
  440. tede_group_user
  441. WHERE
  442. GroupId = a.Id) AS UserCount
  443. FROM
  444. tede_group a
  445. WHERE
  446. a.id IN (SELECT
  447. GroupId
  448. FROM
  449. ccpph_tede.tede_group_user
  450. WHERE
  451. UserId = {userId})";
  452. var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
  453. var database = new Database(databaseType, _connectionString);
  454. var connection = database.GetConnection();
  455. var items = await connection
  456. .QueryAsync<UserGroupList>(sql);
  457. foreach (var item in items)
  458. {
  459. item.AvatarUrl = StringUtils.AddDomain(item.AvatarUrl);
  460. }
  461. return items;
  462. }
  463. }
  464. }