DelegationInfoRepository.cs 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  1. using Newtonsoft.Json;
  2. using OASystem.Domain;
  3. using OASystem.Domain.Dtos;
  4. using OASystem.Domain.Dtos.Financial;
  5. using OASystem.Domain.Dtos.Groups;
  6. using OASystem.Domain.Dtos.UserDto;
  7. using OASystem.Domain.Entities.Groups;
  8. using OASystem.Domain.ViewModels.CRM;
  9. using OASystem.Domain.ViewModels.Financial;
  10. using OASystem.Domain.ViewModels.Groups;
  11. using OASystem.Infrastructure.Repositories.System;
  12. using Org.BouncyCastle.Asn1.Cms;
  13. using Org.BouncyCastle.Utilities.Collections;
  14. using Serilog;
  15. using SqlSugar;
  16. using System;
  17. using System.Collections.Generic;
  18. using System.Linq;
  19. using System.Text;
  20. using System.Threading.Tasks;
  21. namespace OASystem.Infrastructure.Repositories.Groups
  22. {
  23. /// <summary>
  24. /// 接团信息
  25. /// </summary>
  26. public class DelegationInfoRepository : BaseRepository<Grp_DelegationInfo, DelegationInfoView>
  27. {
  28. private readonly SetDataRepository _setDataRepository;
  29. private readonly UsersRepository _usersRepository;
  30. //public readonly Logs _logs;
  31. public DelegationInfoRepository(SqlSugarClient sqlSugar, SetDataRepository setDataRepository, UsersRepository usersRepository)
  32. : base(sqlSugar)
  33. {
  34. this._setDataRepository = setDataRepository;
  35. this._usersRepository = usersRepository;
  36. }
  37. #region 团组
  38. /// <summary>
  39. /// 获取接团信息 Page List
  40. /// </summary>
  41. /// <param name="dto"></param>
  42. /// <returns></returns>
  43. public async Task<Result> GetGroupPageList(GroupListPageDto dto)
  44. {
  45. Result result = new Result() { Code = -2, Msg = "未知错误" };
  46. ListViewBase<DelegationPageListView> groupsInfoPageList = new ListViewBase<DelegationPageListView>()
  47. {
  48. ReceiveDt = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
  49. };
  50. if (dto.PortType == 1 || dto.PortType == 2) //web
  51. {
  52. int startIndex = (dto.PageIndex - 1) * dto.PageSize + 1;
  53. int endIndex = startIndex + dto.PageSize - 1;
  54. string sql = string.Format(@"Select * From(Select row_number() over (order by gdi.Id Desc) as RowNumber,
  55. gdi.Id,SalesQuoteNo,TourCode,ssd.Id TeamTypeId, ssd.Name TeamType,ssd1.Id TeamLevId,
  56. ssd1.Name TeamLev,TeamName,ClientName,ClientUnit,VisitDate,VisitDays,VisitPNumber,
  57. su.CnName JietuanOperator,IsSure
  58. From Grp_DelegationInfo gdi
  59. Inner Join Sys_SetData ssd On gdi.TeamDid = ssd.Id
  60. Inner Join Sys_SetData ssd1 On gdi.TeamLevSId = ssd1.Id
  61. Left Join Sys_Users su On gdi.JietuanOperator = su.Id
  62. Where gdi.IsDel = 0
  63. )temp Where RowNumber Between {0} and {1}", startIndex, endIndex);
  64. string sqlCount = string.Format(@"Select Count(1) as Count From Grp_DelegationInfo gdi
  65. Inner Join Sys_SetData ssd On gdi.TeamDid = ssd.Id
  66. Inner Join Sys_SetData ssd1 On gdi.TeamLevSId = ssd1.Id
  67. Left Join Sys_Users su On gdi.JietuanOperator = su.Id
  68. Where gdi.IsDel = 0 ");
  69. List<DelegationPageListView> _DeleInfoList = await _sqlSugar.SqlQueryable<DelegationPageListView>(sql).ToListAsync();
  70. DelegationPageCountView _DeleCount = await _sqlSugar.SqlQueryable<DelegationPageCountView>(sql).FirstAsync();
  71. int count = _DeleCount.Count;
  72. groupsInfoPageList = new ListViewBase<DelegationPageListView>
  73. {
  74. CurrPageIndex = dto.PageIndex,
  75. CurrPageSize = dto.PageSize,
  76. DataCount = count,
  77. DataList = _DeleInfoList
  78. };
  79. result.Code = 0;
  80. result.Msg = "成功!";
  81. result.Data = groupsInfoPageList;
  82. }
  83. return result;
  84. }
  85. /// <summary>
  86. /// 获取接团信息List
  87. /// </summary>
  88. /// <param name="dto"></param>
  89. /// <returns></returns>
  90. public async Task<Result> GetGroupList(GroupListDto dto)
  91. {
  92. Result result = new Result() { Code = -2, Msg = "未知错误" };
  93. if (dto.PortType == 1 || dto.PortType == 2) //web
  94. {
  95. string sql = string.Format(@"Select gdi.Id,SalesQuoteNo,TourCode,ssd.Id TeamTypeId, ssd.Name TeamType,ssd1.Id TeamLevId,ssd1.Name TeamLev,TeamName,ClientName,ClientUnit,VisitDate,VisitDays,VisitPNumber,su.CnName JietuanOperator,IsSure
  96. From Grp_DelegationInfo gdi
  97. Inner Join Sys_SetData ssd On gdi.TeamDid = ssd.Id
  98. Inner Join Sys_SetData ssd1 On gdi.TeamLevSId = ssd1.Id
  99. Left Join Sys_Users su On gdi.JietuanOperator = su.Id
  100. Where gdi.IsDel = 0
  101. Order By gdi.CreateTime Desc");
  102. var _DelegationList = await _sqlSugar.SqlQueryable<DelegationListView>(sql).ToListAsync();
  103. if (_DelegationList.Count > 0)
  104. {
  105. result.Code = 0;
  106. result.Msg = "成功!";
  107. result.Data = _DelegationList;
  108. }
  109. else
  110. {
  111. result.Msg = "暂无该团组信息";
  112. }
  113. }
  114. return result;
  115. }
  116. /// <summary>
  117. /// 获取接团信息Info
  118. /// </summary>
  119. /// <param name="dto"></param>
  120. /// <returns></returns>
  121. public async Task<Result> GetGroupInfo(GroupInfoDto dto)
  122. {
  123. Result result = new Result() { Code = -2, Msg = "未知错误" };
  124. if (dto.PortType == 1 || dto.PortType == 2) //web
  125. {
  126. string sql = string.Format(@"Select Id,SalesQuoteNo,JietuanOperator,TeamLevSId,TeamDid,TeamName,ClientName,
  127. ClientUnit,VisitCountry,VisitDate,VisitDays,VisitPNumber,TontractTime,
  128. PayDay,PaymentMoney,VisitPurpose,SpecialNeeds,OtherNeeds,CGRWSPBMMC,CGRWSPWH,
  129. ZZSCBMMC,ZZSCSPWH,Remark,TellPhone
  130. From Grp_DelegationInfo Where Id = {0} And IsDel = 0", dto.Id);
  131. var _DelegationInfo = await _sqlSugar.SqlQueryable<DelegationInfoWebView>(sql).FirstAsync();
  132. if (_DelegationInfo != null)
  133. {
  134. result.Code = 0;
  135. result.Msg = "成功!";
  136. result.Data = _DelegationInfo;
  137. }
  138. else
  139. {
  140. result.Msg = "暂无该团组信息";
  141. }
  142. }
  143. return result;
  144. }
  145. /// <summary>
  146. /// 获取接团信息 编辑
  147. /// 基础 数据源
  148. /// </summary>
  149. /// <param name="dto"></param>
  150. /// <returns></returns>
  151. public async Task<Result> GroupEditBasicSource(GroupListDto dto)
  152. {
  153. Result result = new Result() { Code = -2, Msg = "未知错误" };
  154. try
  155. {
  156. if (dto.PortType == 1 || dto.PortType == 2) //web
  157. {
  158. dynamic? teamTypeData1 = null;
  159. string teamTypeSql = string.Format(@"Select Id,Name From Sys_SetData Where STid = {0} And IsDel = {1}", 10, 0);
  160. var teamTypeData = await _sqlSugar.SqlQueryable<SetDataInfoView>(teamTypeSql).ToListAsync(); ; //团组分类 10
  161. if (teamTypeData.Count > 0)
  162. {
  163. teamTypeData1 = teamTypeData;
  164. }
  165. dynamic? teamLevData1 = null;
  166. string teamLevSql = string.Format(@"Select Id,Name From Sys_SetData Where STid = {0} And IsDel = {1}", 56, 0);
  167. var teamLevData = await _sqlSugar.SqlQueryable<SetDataInfoView>(teamLevSql).ToListAsync(); ; //团组等级 56
  168. if (teamLevData.Count > 0)
  169. {
  170. teamLevData1 = teamLevData;
  171. }
  172. dynamic? userData1 = null;
  173. string userSql = string.Format(@"Select Id,CnName From Sys_Users Where IsDel = {0}", 0);
  174. var userData = await _sqlSugar.SqlQueryable<UserNameView>(userSql).ToListAsync(); ;
  175. if (userData.Count > 0)
  176. {
  177. userData1 = userData;
  178. }
  179. result.Code = 0;
  180. result.Msg = "成功!";
  181. result.Data = new
  182. {
  183. teamTypeData = teamTypeData1,
  184. teamLevData = teamLevData1,
  185. userData = userData1
  186. };
  187. }
  188. }
  189. catch (Exception)
  190. {
  191. throw;
  192. }
  193. return result;
  194. }
  195. /// <summary>
  196. /// 团组信息操作
  197. /// </summary>
  198. /// <param name="dto"></param>
  199. /// <returns></returns>
  200. public async Task<Result> GroupOperation(GroupOperationDto dto)
  201. {
  202. Result result = new Result() { Code = -2, Msg = "未知错误" };
  203. if (dto.PortType == 1 || dto.PortType == 2) //web
  204. {
  205. if (dto.Status == 1) //添加
  206. {
  207. string selectSql = string.Format(@"Select * From Grp_DelegationInfo
  208. Where IsDel = 0
  209. And TeamName = '{0}'
  210. And ClientName = '{1}'
  211. And ClientUnit ='{2}'
  212. And VisitDate ='{3}'",dto.TeamName, dto.ClientName, dto.ClientUnit, dto.VisitDate);
  213. var selectGroupInfo = await _sqlSugar.SqlQueryable<Grp_DelegationInfo>(selectSql).FirstAsync();
  214. if (selectGroupInfo != null)
  215. {
  216. result.Msg = "数据已存在,请勿重复添加!";
  217. return result;
  218. }
  219. //string teamCodeSql = string.Format("Select SalesQuoteNo From Grp_DelegationInfo");
  220. //var teamCodeItem = await _sqlSugar.SqlQueryable<TeamCodeView>(teamCodeSql).ToListAsync();
  221. //string SalesQuoteNo = "";
  222. //while (true)
  223. //{
  224. // SalesQuoteNo = Tools.CommonFun.GetRandomStr(6);
  225. // if (!teamCodeItem.Equals(SalesQuoteNo))
  226. // {
  227. // break;
  228. // }
  229. //}
  230. Grp_DelegationInfo delegationInfo = new Grp_DelegationInfo()
  231. {
  232. SalesQuoteNo = dto.SalesQuoteNo,
  233. TeamLevSId = dto.TeamLevSId,
  234. ClientName = dto.ClientName,
  235. ClientUnit = dto.ClientUnit,
  236. TeamName = dto.TeamName,
  237. TeamDid = dto.TeamDid,
  238. VisitDate = Convert.ToDateTime(dto.VisitDate),
  239. VisitCountry = dto.VisitCountry,
  240. VisitPurpose = dto.VisitPurpose,
  241. VisitDays = dto.VisitDays,
  242. VisitPNumber = dto.VisitPNumber,
  243. SpecialNeeds = dto.SpecialNeeds,
  244. OtherNeeds = dto.OtherNeeds,
  245. Remark = dto.Remark,
  246. JietuanOperator = dto.UserId,
  247. TellPhone = dto.TellPhone,
  248. CGRWSPBMMC = dto.CGRWSPBMMC,
  249. CGRWSPWH = dto.CGRWSPWH,
  250. ZZSCBMMC = dto.ZZSCBMMC,
  251. ZZSCSPWH = dto.ZZSCSPWH,
  252. TontractTime = Convert.ToDateTime(dto.TontractTime),
  253. PaymentMoney = dto.PaymentMoney,
  254. PayDay = dto.PayDay,
  255. TourCode = "",
  256. SalesDate = DateTime.Now,
  257. IsState = 0, //默认团组未完成 0
  258. JietuanTime = DateTime.Now,
  259. IsDel = 0,
  260. BudgetCost = 0.00M,
  261. HotelComplain = 0,
  262. OPComplain = 0,
  263. OAComplain = 0,
  264. AirComplain = 0,
  265. VisaComplain = 0,
  266. CreateUserId = dto.UserId,
  267. CreateTime = DateTime.Now,
  268. DeleteUserId = null,
  269. DeleteTime = new DateTime(1990, 1, 1).ToString("yyyy-MM-dd HH:mm:ss")
  270. };
  271. Log.Information("添加:"+ JsonConvert.SerializeObject(delegationInfo));
  272. var addId = await _sqlSugar.Insertable(delegationInfo).ExecuteReturnIdentityAsync();
  273. if (addId > 0)
  274. {
  275. result.Code = 0;
  276. result.Msg = "添加成功!";
  277. }
  278. else
  279. {
  280. result.Msg = "添加失败!";
  281. }
  282. }
  283. else if (dto.Status == 2) //修改
  284. {
  285. var updateStatus = await UpdateAsync(a => a.Id == dto.Id, a => new Grp_DelegationInfo
  286. {
  287. SalesQuoteNo = dto.SalesQuoteNo,
  288. TeamLevSId = dto.TeamLevSId,
  289. ClientName = dto.ClientName,
  290. ClientUnit = dto.ClientUnit,
  291. TeamName = dto.TeamName,
  292. TeamDid = dto.TeamDid,
  293. VisitDate = Convert.ToDateTime(dto.VisitDate),
  294. VisitCountry = dto.VisitCountry,
  295. VisitPurpose = dto.VisitPurpose,
  296. VisitDays = dto.VisitDays,
  297. VisitPNumber = dto.VisitPNumber,
  298. SpecialNeeds = dto.SpecialNeeds,
  299. OtherNeeds = dto.OtherNeeds,
  300. Remark = dto.Remark,
  301. JietuanOperator = dto.UserId,
  302. TellPhone = dto.TellPhone,
  303. CGRWSPBMMC = dto.CGRWSPBMMC,
  304. CGRWSPWH = dto.CGRWSPWH,
  305. ZZSCBMMC = dto.ZZSCBMMC,
  306. ZZSCSPWH = dto.ZZSCSPWH,
  307. TontractTime = Convert.ToDateTime(dto.TontractTime),
  308. PaymentMoney = dto.PaymentMoney,
  309. PayDay = dto.PayDay
  310. });
  311. if (updateStatus)
  312. {
  313. result.Code = 0;
  314. result.Msg = "修改成功!";
  315. }
  316. else
  317. {
  318. result.Msg = "修改失败!";
  319. }
  320. }
  321. else if (dto.Status == 3) //删除
  322. {
  323. var deleteStatus = await UpdateAsync(a => a.Id == dto.Id, a => new Grp_DelegationInfo
  324. {
  325. DeleteUserId = dto.UserId,
  326. DeleteTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"),
  327. IsDel = 1
  328. });
  329. if (deleteStatus)
  330. {
  331. result.Code = 0;
  332. result.Msg = "删除成功!";
  333. }
  334. else
  335. {
  336. result.Msg = "删除失败!";
  337. }
  338. }
  339. }
  340. return result;
  341. }
  342. /// <summary>
  343. /// 团组信息操作 - 删除
  344. /// </summary>
  345. /// <param name="dto"></param>
  346. /// <returns></returns>
  347. public async Task<Result> GroupDel(GroupDelDto dto)
  348. {
  349. Result result = new Result() { Code = -2, Msg = "未知错误" };
  350. if (dto.PortType == 1 || dto.PortType == 2) //web
  351. {
  352. var deleteStatus = await UpdateAsync(a => a.Id == dto.Id, a => new Grp_DelegationInfo
  353. {
  354. DeleteUserId = dto.UserId,
  355. DeleteTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"),
  356. IsDel = 1
  357. });
  358. if (deleteStatus)
  359. {
  360. result.Code = 0;
  361. result.Msg = "删除成功!";
  362. }
  363. else
  364. {
  365. result.Msg = "删除失败!";
  366. }
  367. }
  368. return result;
  369. }
  370. /// <summary>
  371. /// 获取销售报价号
  372. /// </summary>
  373. /// <returns></returns>
  374. public async Task<Result> GetGroupSalesQuoteNo()
  375. {
  376. Result result = new Result() { Code = -2, Msg = "未知错误" };
  377. string teamCodeSql = string.Format("Select SalesQuoteNo From Grp_DelegationInfo");
  378. var teamCodeItem = await _sqlSugar.SqlQueryable<SalesQuoteNoView>(teamCodeSql).ToListAsync();
  379. string teamCode = "";
  380. while (true)
  381. {
  382. teamCode = Tools.CommonFun.GetRandomAllStr(6);
  383. if (!teamCodeItem.Equals(teamCode))
  384. {
  385. break;
  386. }
  387. }
  388. result.Code = 0;
  389. result.Msg = "成功!";
  390. result.Data = teamCode;
  391. return result;
  392. }
  393. /// <summary>
  394. /// 团组删除
  395. /// </summary>
  396. /// <returns></returns>
  397. public async Task<Result> GroupDeleteById()
  398. {
  399. Result result = new Result() { Code = -2, Msg = "未知错误" };
  400. string teamCodeSql = string.Format("Select TourCode From Grp_DelegationInfo");
  401. var teamCodeItem = await _sqlSugar.SqlQueryable<TeamCodeView>(teamCodeSql).ToListAsync();
  402. string teamCode = "";
  403. while (true)
  404. {
  405. teamCode = Tools.CommonFun.GetRandomAllStr(6);
  406. if (!teamCodeItem.Equals(teamCode))
  407. {
  408. break;
  409. }
  410. }
  411. result.Code = 0;
  412. result.Msg = "成功!";
  413. result.Data = teamCode;
  414. return result;
  415. }
  416. /// <summary>
  417. /// 团组确认出团
  418. /// </summary>
  419. /// <returns></returns>
  420. public async Task<Result> ConfirmationGroup(ConfirmationGroupDto dto)
  421. {
  422. Result result = new Result() { Code = -2, Msg = "未知错误" };
  423. string teamCode = "";
  424. if (dto.PortType == 1 || dto.PortType == 2) //web
  425. {
  426. string teamCodeSql = string.Format("Select TourCode From Grp_DelegationInfo");
  427. var teamCodeItem = await _sqlSugar.SqlQueryable<TeamCodeView>(teamCodeSql).ToListAsync();
  428. while (true)
  429. {
  430. teamCode = Tools.CommonFun.GetRandomAllStr(6);
  431. if (!teamCodeItem.Equals(teamCode))
  432. {
  433. break;
  434. }
  435. }
  436. var deleteStatus = await UpdateAsync(a => a.Id == dto.GroupId, a => new Grp_DelegationInfo
  437. {
  438. TourCode = teamCode,
  439. GroupsOperator = dto.GroupsOperator,
  440. GroupsTime = DateTime.Now
  441. });
  442. if (deleteStatus)
  443. {
  444. result.Code = 0;
  445. result.Msg = "确认出团成功!";
  446. }
  447. else
  448. {
  449. result.Msg = "确认出团失败!";
  450. }
  451. }
  452. result.Code = 0;
  453. result.Msg = "成功!";
  454. result.Data = teamCode;
  455. return result;
  456. }
  457. /// <summary>
  458. /// 获取接团名称List
  459. /// </summary>
  460. /// <param name="dto"></param>
  461. /// <returns></returns>
  462. public async Task<Result> GetGroupNameList(GroupNameDto dto)
  463. {
  464. Result result = new Result() { Code = -2, Msg = "未知错误" };
  465. if (dto.PortType == 1 || dto.PortType == 2) //web
  466. {
  467. string sql = string.Format(@"Select Id,TeamName GroupName From Grp_DelegationInfo
  468. Where TeamName != '' And IsDel = 0
  469. Order By Id Desc");
  470. var _groupNameList = await _sqlSugar.SqlQueryable<GroupNameView>(sql).ToListAsync();
  471. if (_groupNameList.Count > 0)
  472. {
  473. result.Code = 0;
  474. result.Msg = "成功!";
  475. result.Data = _groupNameList;
  476. }
  477. else
  478. {
  479. result.Msg = "暂无团组信息";
  480. }
  481. }
  482. return result;
  483. }
  484. /// <summary>
  485. /// 获取接团名称List And 签证国别
  486. /// </summary>
  487. /// <param name="dto"></param>
  488. /// <returns></returns>
  489. public async Task<Result> GetGroupNameAndVisaNationality(GroupNameDto dto)
  490. {
  491. Result result = new Result() { Code = -2, Msg = "未知错误" };
  492. if (dto.PortType == 1 || dto.PortType == 2) //web
  493. {
  494. string sql = string.Format(@"Select Id,TeamName GroupName From Grp_DelegationInfo
  495. Where TeamName != '' And IsDel = 0
  496. Order By Id Desc");
  497. var _groupNameList = await _sqlSugar.SqlQueryable<GroupNameView>(sql).ToListAsync();
  498. string visaSql = string.Format(@"Select Id,Name From Sys_SetData Where STid = 41 And IsDel = 0");
  499. var _setDataList = await _sqlSugar.SqlQueryable<SetDataInfoView>(visaSql).ToListAsync();
  500. var data = new {
  501. groupNameData = _groupNameList,
  502. visaNationalityData = _setDataList
  503. };
  504. result.Data = data;
  505. result.Code = 0;
  506. }
  507. return result;
  508. }
  509. #endregion
  510. #region 团组&签证
  511. /// <summary>
  512. /// 根据团组Id查询客户
  513. /// </summary>
  514. /// <param name="dto"></param>
  515. /// <returns></returns>
  516. public async Task<Result> GetCrmByGroupId(ClientByGroupIdDto dto)
  517. {
  518. Result result = new Result() { Code = -2 };
  519. if (dto.PortType == 1 || dto.PortType == 2)
  520. {
  521. string sql = string.Format(@"Select gdjc.GrpDCId grpId,cdc.Id,cdc.LastName+cdc.FirstName clientName,cdc.Tel,ccc.CertNo CerdNo
  522. From Grp_DelegationJoinCustomer gdjc
  523. Inner join Crm_DeleClient cdc On gdjc.CrmDCId = cdc.Id
  524. Left Join Crm_CustomerCert ccc On ccc.SdId = 773 And cdc.Id = ccc.DcId
  525. Where gdjc.GrpDCId = {0}", dto.GroupId);
  526. var clientList = await _sqlSugar.SqlQueryable<CrmByGroupIdView>(sql).ToListAsync();
  527. if (clientList.Count > 0)
  528. {
  529. result.Code = 0;
  530. result.Msg = "成功!";
  531. result.Data = clientList;
  532. }
  533. else
  534. {
  535. result.Msg = "暂无数据!";
  536. }
  537. }
  538. return result;
  539. }
  540. #endregion
  541. }
  542. }