DailyFeePaymentRepository.cs 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. using AutoMapper;
  2. using NPOI.SS.Formula.Functions;
  3. using OASystem.Domain;
  4. using OASystem.Domain.Dtos;
  5. using OASystem.Domain.Dtos.Financial;
  6. using OASystem.Domain.Entities.Financial;
  7. using OASystem.Domain.ViewModels.Financial;
  8. using OASystem.Infrastructure.Repositories.System;
  9. using System;
  10. using System.Collections.Generic;
  11. using System.ComponentModel.Design;
  12. using System.Linq;
  13. using System.Runtime.Intrinsics.Arm;
  14. using System.Text;
  15. using System.Threading.Tasks;
  16. namespace OASystem.Infrastructure.Repositories.Financial
  17. {
  18. /// <summary>
  19. /// 财务 - 日付申请
  20. /// </summary>
  21. public class DailyFeePaymentRepository : BaseRepository<Fin_DailyFeePayment, Fin_DailyFeePaymentView>
  22. {
  23. private readonly IMapper _mapper;
  24. private readonly System.SetDataTypeRepository _setDataTypeRep;
  25. private readonly System.UsersRepository _UsersRep;
  26. private readonly System.CompanyRepository _CompanyRep;
  27. public DailyFeePaymentRepository(SqlSugarClient sqlSugar, IMapper mapper, System.SetDataTypeRepository setDataTypeRep,
  28. UsersRepository usersRep, CompanyRepository companyRep)
  29. : base(sqlSugar)
  30. {
  31. this._mapper = mapper;
  32. this._setDataTypeRep = setDataTypeRep;
  33. this._UsersRep = usersRep;
  34. this._CompanyRep = companyRep;
  35. }
  36. /// <summary>
  37. /// 日付申请查询 使用的数据源
  38. /// </summary>
  39. /// <param name="dto"></param>
  40. /// <returns></returns>
  41. public async Task<Result> GetPagePriceTypeData(PortDtoBase dto, int currUserId = 0)
  42. {
  43. Result result = new Result() { Code = -2 };
  44. dynamic? DailyFeePaymentList = null;
  45. var setTypeData = _setDataTypeRep.QueryDto<Sys_SetDataType, Fin_DailyFeePaymentPagePriceTypeView>().ToList();
  46. var setData = _setDataTypeRep.QueryDto<Sys_SetData, Fin_DailyFeePaymentPagePriceSubTypeView>().ToList();
  47. //48人员费用 49办公费用 50 销售费用 51 其他费用 55 大运会
  48. var typeIds = new List<int>() {
  49. 48, //人员费用
  50. 49, //办公费用
  51. 50, //销售费用
  52. 51, //其他费用
  53. 55, //大运会
  54. 90, //各部门基础固定费用明细
  55. 104, //团组费用
  56. };
  57. var priceTypeData = setTypeData.Where(s => typeIds.Contains(s.Id)).ToList();
  58. var priceSubTypeData = setData.Where(s => typeIds.Contains(s.STid)).ToList();
  59. //var isEnable = false;
  60. //员工姓名列表
  61. var userData = _sqlSugar.Queryable<Sys_Users>()
  62. .LeftJoin<Sys_Department>((u, d) => u.DepId == d.Id)
  63. .LeftJoin<Sys_JobPost>((u, d, jp) => u.JobPostId == jp.Id)
  64. .Where((u, d, jp) => u.IsDel == 0)
  65. .Select((u, d, jp) => new
  66. {
  67. u.Id,
  68. u.CnName,
  69. u.DepId,
  70. d.DepName,
  71. u.JobPostId,
  72. jp.JobName
  73. })
  74. .ToList();
  75. //1 经理职位 查看该部门下所有人员
  76. if (currUserId > 0)
  77. {
  78. //42
  79. var auditUserIds = _sqlSugar.Queryable<Sys_UserAuthority>().Where(x => x.IsDel == 0 && x.SmId == 42 && x.FId == 12).Select(x => x.UId).ToList();
  80. if (!auditUserIds.Contains(currUserId))
  81. {
  82. var screenWheres = new List<string>() { "经理", "主管" };
  83. var userInfo = userData.Find(x => x.Id == currUserId && screenWheres.Contains(x.JobName));
  84. if (userInfo != null)
  85. {
  86. userData = userData.Where(x => x.DepName.Equals(userInfo.DepName)).ToList();
  87. }
  88. else
  89. {
  90. userData = userData.Where(x => x.Id == currUserId).ToList();
  91. }
  92. }
  93. else
  94. {
  95. userData.Insert(0, new { Id = -1, CnName = "全部", DepId = 0, DepName = "", JobPostId = 0, JobName = "" });
  96. }
  97. }
  98. var userData1 = userData.Select(x => new { x.Id, x.CnName }).ToList();
  99. //62 公转 63 私转
  100. var feeMarkTypeData = setTypeData.Where(s => s.Id == 62 || s.Id == 63).ToList();
  101. var feeMarkSubTypeData = setData.Where(s => s.STid == 62 || s.STid == 63).ToList();
  102. var companyNameData = await _CompanyRep.GetCompanyNameData();
  103. if (dto.PortType == 1) //web
  104. {
  105. DailyFeePaymentList = new
  106. {
  107. FeeTypeData = priceTypeData,
  108. FeeSubTypeData = priceSubTypeData,
  109. UserNameData = userData1,
  110. FeeMarkTypeData = feeMarkTypeData,
  111. FeeMarkSubTypeData = feeMarkSubTypeData,
  112. CompanyNameData = companyNameData.Data
  113. };
  114. }
  115. else if (dto.PortType == 2) //安卓
  116. {
  117. DailyFeePaymentList = new
  118. {
  119. UserNameData = userData1,
  120. FeeTypeData = priceTypeData,
  121. FeeTypeSubData = priceSubTypeData
  122. };
  123. }
  124. result.Code = 0;
  125. result.Msg = "查询成功!";
  126. result.Data = DailyFeePaymentList;
  127. return result;
  128. }
  129. /// <summary>
  130. /// 日付申请查询 使用的数据源
  131. /// </summary>
  132. /// <param name="dto"></param>
  133. /// <returns></returns>
  134. public async Task<Result> GetPriceTypeAddData(PortDtoBase dto)
  135. {
  136. Result result = new Result() { Code = -2 };
  137. dynamic? DailyFeePaymentList = null;
  138. var setTypeData = _setDataTypeRep.QueryDto<Sys_SetDataType, Fin_DailyFeePaymentPagePriceTypeView>().ToList();
  139. var setData = _setDataTypeRep.QueryDto<Sys_SetData, Fin_DailyFeePaymentPagePriceSubTypeView>().ToList();
  140. //48人员费用 49办公费用 50 销售费用 51 其他费用 55 大运会
  141. var priceTypeData = setTypeData.Where(s => s.Id == 48 || s.Id == 49 || s.Id == 50 || s.Id == 51 || s.Id == 55).ToList();
  142. var priceSubTypeData = setData.Where(s => s.STid == 48 || s.STid == 49 || s.STid == 50 || s.STid == 51 || s.STid == 55).ToList();
  143. //员工姓名列表
  144. var userNameData = await _UsersRep.GetUserNameList(dto.PortType);
  145. //62 公转 63 私转
  146. var feeMarkTypeData = setTypeData.Where(s => s.Id == 62 || s.Id == 63).ToList();
  147. var feeMarkSubTypeData = setData.Where(s => s.STid == 62 || s.STid == 63).ToList();
  148. var companyNameData = await _CompanyRep.GetCompanyNameData();
  149. if (dto.PortType == 1) //web
  150. {
  151. DailyFeePaymentList = new Fin_DailyFeePaymentPagePriceTypeDataView
  152. {
  153. FeeTypeData = priceTypeData,
  154. FeeSubTypeData = priceSubTypeData,
  155. UserNameData = userNameData.Data,
  156. FeeMarkTypeData = feeMarkTypeData,
  157. FeeMarkSubTypeData = feeMarkSubTypeData,
  158. CompanyNameData = companyNameData.Data
  159. };
  160. }
  161. else if (dto.PortType == 2) //安卓
  162. {
  163. DailyFeePaymentList = new
  164. {
  165. CompanyNameData = companyNameData.Data,
  166. FeeTypeData = feeMarkTypeData,
  167. FeeTypeSubData = feeMarkSubTypeData
  168. };
  169. }
  170. result.Code = 0;
  171. result.Msg = "查询成功!";
  172. result.Data = DailyFeePaymentList;
  173. return result;
  174. }
  175. /// <summary>
  176. /// 日付申请 page 查询
  177. /// </summary>
  178. /// <param name="dto"></param>
  179. /// <returns></returns>
  180. public async Task<Result> GetPageSearchAll(PageDailyFeePaymentDto dto)
  181. {
  182. Result result = new Result() { Code = -2 };
  183. ListViewBase<Fin_DailyFeePaymentPageListView> dailyFeePaymentPageList = new ListViewBase<Fin_DailyFeePaymentPageListView>()
  184. {
  185. ReceiveDt = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
  186. };
  187. #region sql条件处理
  188. string sqlWhere = "";
  189. if (dto.CompanyId != -1) //公司
  190. sqlWhere += string.Format(" And dfp.CompanyId = {0}", dto.CompanyId);
  191. if (dto.FinancialAuditStatus != -1) //财务审核
  192. sqlWhere += string.Format(" And dfp.FAudit = {0}", dto.FinancialAuditStatus);
  193. if (dto.ManagerAuditStatus != -1) //总经理审核
  194. sqlWhere += string.Format(" And dfp.MAudit = {0}", dto.ManagerAuditStatus);
  195. if (dto.IsPaySign != -1) //付款状态
  196. {
  197. sqlWhere += string.Format(" And dfp.IsPay = {0}", dto.IsPaySign);
  198. }
  199. if (dto.FeeTypeId != -1) //费用类型
  200. {
  201. if (dto.FeeSubTypeId != -1) //子类处理
  202. {
  203. sqlWhere += string.Format(" And dfp.PriceTypeId = {0}", dto.FeeSubTypeId);
  204. }
  205. else
  206. {
  207. var setData = _setDataTypeRep.QueryDto<Sys_SetData, SetDataView>(s => s.STid == dto.FeeTypeId).ToList();
  208. if (setData.Count > 0)
  209. {
  210. string setDataIds = "";
  211. foreach (var item in setData)
  212. {
  213. setDataIds += item.Id + ",";
  214. }
  215. if (setDataIds.Length > 0)
  216. {
  217. setDataIds = setDataIds.Substring(0, setDataIds.Length - 1);
  218. sqlWhere += string.Format(" And dfp.PriceTypeId In ({0})", setDataIds);
  219. }
  220. }
  221. }
  222. }
  223. if (!string.IsNullOrEmpty(dto.FeeDesc))
  224. sqlWhere += string.Format(" And dfp.Instructions Like '%{0}%'", dto.FeeDesc);
  225. if (dto.CreateUserId != -1)
  226. sqlWhere += string.Format(" And dfp.CreateUserId = {0}", dto.CreateUserId);
  227. int startIndex = (dto.PageIndex - 1) * dto.PageSize + 1;
  228. int endIndex = startIndex + dto.PageSize - 1;
  229. string sqlPage = string.Format(@"Select * From (
  230. Select row_number() over (order by dfp.Id Desc) as RowNumber,
  231. dfp.Id,dfp.CompanyId,c.CompanyName,dfp.Instructions,dfp.SumPrice,
  232. dfp.CreateUserId,u.CnName CreateUser,dfp.CreateTime,dfp.FAudit,dfp.MAudit,
  233. dfp.PriceTypeId,dfp.IsPay
  234. From Fin_DailyFeePayment dfp
  235. Inner Join Sys_Company c On dfp.CompanyId = c.Id
  236. Left Join Sys_Users u On dfp.CreateUserId = u.Id
  237. Where dfp.IsDel=0 {0}
  238. ) temp Where RowNumber Between {1} and {2}", sqlWhere, startIndex, endIndex);
  239. string sqlCount = string.Format(@"Select COUNT(1) as Count From (
  240. Select dfp.Id,dfp.CompanyId,c.CompanyName,dfp.Instructions,dfp.SumPrice,
  241. dfp.CreateUserId,u.CnName CreateUser,dfp.CreateTime,dfp.FAudit,dfp.MAudit,
  242. dfp.PriceTypeId
  243. From Fin_DailyFeePayment dfp
  244. Inner Join Sys_Company c On dfp.CompanyId = c.Id
  245. Left Join Sys_Users u On dfp.CreateUserId = u.Id
  246. Where dfp.IsDel=0 {0}
  247. ) temp ", sqlWhere);
  248. #endregion
  249. if (dto.PortType == 1 || dto.PortType == 2 || dto.PortType == 3) //web
  250. {
  251. //Fin_DailyFeePaymentPageCount
  252. var dailyFeePaymentCount = await _sqlSugar.SqlQueryable<Fin_DailyFeePaymentPageCount>(sqlCount).FirstAsync();
  253. var DailyFeePaymentData = await _sqlSugar.SqlQueryable<Fin_DailyFeePaymentPageListView>(sqlPage).ToListAsync();
  254. int totalCount = dailyFeePaymentCount.Count;
  255. dailyFeePaymentPageList = new ListViewBase<Fin_DailyFeePaymentPageListView>
  256. {
  257. CurrPageIndex = dto.PageIndex,
  258. CurrPageSize = dto.PageSize,
  259. DataCount = totalCount,
  260. DataList = DailyFeePaymentData
  261. };
  262. }
  263. result.Code = 0;
  264. result.Msg = "查询成功!";
  265. result.Data = dailyFeePaymentPageList;
  266. return result;
  267. }
  268. /// <summary>
  269. /// 日付申请 single 查询 By Id
  270. /// </summary>
  271. /// <param name="dto"></param>
  272. /// <returns></returns>
  273. public async Task<Result> GetSearchById(SearchDailyFeePaymentDto dto)
  274. {
  275. Result result = new Result() { Code = -2 };
  276. if (dto.PortType == 1) //web
  277. {
  278. Fin_DailyFeePaymentInfolView feeData = new Fin_DailyFeePaymentInfolView();
  279. string feeSql = string.Format(@"Select * From Fin_DailyFeePayment
  280. Where IsDel=0 And Id = {0} ", dto.Id);
  281. feeData = await _sqlSugar.SqlQueryable<Fin_DailyFeePaymentInfolView>(feeSql).FirstAsync();
  282. string feeContentSql = string.Format(@"Select * From Fin_DailyFeePaymentContent
  283. Where IsDel=0 And DFPId = {0} ", dto.Id);
  284. feeData.FeeContents = await _sqlSugar.SqlQueryable<Fin_DailyFeePaymentContentInfolView>(feeContentSql).ToListAsync();
  285. result.Code = 0;
  286. result.Msg = "查询成功!";
  287. result.Data = feeData;
  288. }
  289. else if (dto.PortType == 2 || dto.PortType == 3) //android And ios
  290. {
  291. Fin_DailyFeePaymentInfoAndroidlView feeData = new Fin_DailyFeePaymentInfoAndroidlView();
  292. string feeSql = string.Format(@"Select * From Fin_DailyFeePayment
  293. Where IsDel=0 And Id = {0} ", dto.Id);
  294. feeData = await _sqlSugar.SqlQueryable<Fin_DailyFeePaymentInfoAndroidlView>(feeSql).FirstAsync();
  295. //feeData.TransferTypeId = feeData.TransferTypeId == 0 ? 62 : feeData.TransferTypeId == 1 ? 63 : 0;
  296. string feeContentSql = string.Format(@"Select * From Fin_DailyFeePaymentContent
  297. Where IsDel=0 And DFPId = {0} ", dto.Id);
  298. feeData.FeeContents = await _sqlSugar.SqlQueryable<Fin_DailyFeePaymentContentInfolView>(feeContentSql).ToListAsync();
  299. result.Code = 0;
  300. result.Msg = "查询成功!";
  301. result.Data = feeData;
  302. }
  303. return result;
  304. }
  305. /// <summary>
  306. /// 日付申请 添加
  307. /// </summary>
  308. /// <param name="dto"></param>
  309. /// <returns></returns>
  310. public async Task<Result> Add(AddDailyFeePaymentDto dto)
  311. {
  312. Result result = new Result() { Code = -2 };
  313. _sqlSugar.BeginTran();
  314. try
  315. {
  316. var _fee = _mapper.Map<Fin_DailyFeePayment>(dto);
  317. _fee.CreateUserId = dto.UserId;
  318. /*
  319. * 2024-10-29
  320. * 各部门基础固定费用明细”里的费用数据新增后,财务和总经理审核都默认直接通过isAudit=1),并且可编辑,如果ispay=1的话将不可编辑
  321. */
  322. var priceTypeInfo = await _sqlSugar.Queryable<Sys_SetData>().Where(x => x.IsDel == 0 && x.Id == dto.PriceTypeId).FirstAsync();
  323. if (priceTypeInfo != null && priceTypeInfo.STid == 90)
  324. {
  325. _fee.FAudit = 1;
  326. _fee.FAuditDate = DateTime.Now;
  327. _fee.MAudit = 1;
  328. _fee.MAuditDate = DateTime.Now;
  329. }
  330. int? feeId = await _sqlSugar.Insertable(_fee).ExecuteReturnIdentityAsync();
  331. if (dto.FeeContents.Any())
  332. {
  333. var _feeContents = _mapper.Map<List<Fin_DailyFeePaymentContent>>(dto.FeeContents);
  334. foreach (var item in _feeContents)
  335. {
  336. item.DFPId = feeId == null ? -1 : Convert.ToInt32(feeId);
  337. item.CreateUserId = dto.UserId;
  338. }
  339. await _sqlSugar.Insertable(_feeContents).ExecuteCommandAsync();
  340. }
  341. _sqlSugar.CommitTran();
  342. result.Code = 0;
  343. var data = new { dailyId = feeId, sign = 1 };
  344. result.Data = data;
  345. }
  346. catch (Exception ex)
  347. {
  348. _sqlSugar.RollbackTran();
  349. result.Msg = ex.Message;
  350. }
  351. return result;
  352. }
  353. /// <summary>
  354. /// 日付申请 编辑
  355. /// </summary>
  356. /// <param name="dto"></param>
  357. /// <returns></returns>
  358. public async Task<Result> Edit(EditDailyFeePaymentDto dto)
  359. {
  360. Result result = new Result() { Code = -2 };
  361. #region 已审核的数据不可编辑
  362. var dailyFeePayment = await _sqlSugar.Queryable<Fin_DailyFeePayment>().Where(it => it.Id == dto.Id && it.IsDel == 0).FirstAsync();
  363. if (dailyFeePayment != null)
  364. {
  365. if (dailyFeePayment.FAudit == 1 || dailyFeePayment.MAudit == 1)
  366. {
  367. var setData = await _sqlSugar.Queryable<Sys_SetData>().Where(x => x.IsDel == 0 && x.Id == dto.PriceTypeId).FirstAsync();
  368. if (setData != null)
  369. {
  370. if (setData.STid == 90)
  371. {
  372. if (dailyFeePayment.IsPay == 1)
  373. {
  374. result.Msg = "该笔费用已付款,不可修改!";
  375. return result;
  376. }
  377. }
  378. else
  379. {
  380. result.Msg = "审核已通过,不可修改!";
  381. return result;
  382. }
  383. }
  384. else
  385. {
  386. result.Msg = "审核已通过,不可修改!";
  387. return result;
  388. }
  389. }
  390. }
  391. #endregion
  392. _sqlSugar.BeginTran();
  393. try
  394. {
  395. Fin_DailyFeePayment _fee = _mapper.Map<Fin_DailyFeePayment>(dto);
  396. _fee.CreateUserId = dto.UserId;
  397. int? editFeeStatus = await _sqlSugar.Updateable<Fin_DailyFeePayment>()
  398. .Where(a => a.Id == dto.Id)
  399. .SetColumns(a => new Fin_DailyFeePayment
  400. {
  401. Instructions = dto.Instructions,
  402. SumPrice = dto.SumPrice,
  403. TransferTypeId = dto.TransferTypeId,
  404. PriceTypeId = dto.PriceTypeId,
  405. CompanyId = dto.CompanyId,
  406. GroupId = dto.GroupId,
  407. }).ExecuteCommandAsync();
  408. var _feeContents = _mapper.Map<List<Fin_DailyFeePaymentContent>>(dto.FeeContents);
  409. await _sqlSugar.Updateable<Fin_DailyFeePaymentContent>()
  410. .Where(a => a.DFPId == _fee.Id)
  411. .SetColumns(a => new Fin_DailyFeePaymentContent
  412. {
  413. IsDel = 1,
  414. DeleteUserId = _fee.CreateUserId,
  415. DeleteTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"),
  416. }).ExecuteCommandAsync();
  417. if (_feeContents.Any())
  418. {
  419. foreach (var item in _feeContents)
  420. {
  421. item.DFPId = _fee.Id;
  422. item.CreateUserId = dto.UserId;
  423. }
  424. await _sqlSugar.Insertable(_feeContents).ExecuteCommandAsync();
  425. }
  426. _sqlSugar.CommitTran();
  427. result.Code = 0;
  428. var data = new { dailyId = dto.Id, sign = 2 };
  429. result.Data = data;
  430. }
  431. catch (Exception ex)
  432. {
  433. _sqlSugar.RollbackTran();
  434. result.Msg = ex.Message;
  435. }
  436. return result;
  437. }
  438. /// <summary>
  439. /// 日付申请 删除
  440. /// </summary>
  441. /// <param name="dto"></param>
  442. /// <returns></returns>
  443. public async Task<Result> Del(DelDailyFeePaymentDto dto)
  444. {
  445. Result result = new Result() { Code = -2 };
  446. int? delFeeStatus = await _sqlSugar.Updateable<Fin_DailyFeePayment>()
  447. .Where(a => a.Id == dto.Id)
  448. .SetColumns(a => new Fin_DailyFeePayment
  449. {
  450. IsDel = 1,
  451. DeleteUserId = dto.Id,
  452. DeleteTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"),
  453. }).ExecuteCommandAsync();
  454. result.Code = 0;
  455. return result;
  456. }
  457. /// <summary>
  458. /// 日付申请 审核
  459. /// </summary>
  460. /// <param name="dto"></param>
  461. /// <returns></returns>
  462. public async Task<Result> DailyPaymentAudit(DP_AuditStatusDto dto)
  463. {
  464. Result result = new Result() { Code = -2 };
  465. if (dto.AuditType == 1) //财务审核
  466. {
  467. int? auditStatus = await _sqlSugar.Updateable<Fin_DailyFeePayment>()
  468. .Where(a => a.Id == dto.Id)
  469. .SetColumns(a => new Fin_DailyFeePayment
  470. {
  471. FAudit = dto.AuditStatus,
  472. FAuditDate = DateTime.Now,
  473. }).ExecuteCommandAsync();
  474. if (auditStatus != null && auditStatus > 0)
  475. result.Code = 0;
  476. else
  477. result.Msg = "财务审核操作失败";
  478. }
  479. else if (dto.AuditType == 2) //总经理
  480. {
  481. int? auditStatus = await _sqlSugar.Updateable<Fin_DailyFeePayment>()
  482. .Where(a => a.Id == dto.Id)
  483. .SetColumns(a => new Fin_DailyFeePayment
  484. {
  485. MAudit = dto.AuditStatus,
  486. MAuditDate = DateTime.Now,
  487. }).ExecuteCommandAsync();
  488. if (auditStatus != null && auditStatus > 0)
  489. result.Code = 0;
  490. else
  491. result.Msg = "总经理审核操作失败";
  492. }
  493. return result;
  494. }
  495. }
  496. }