VisaDeleClientRepository.cs 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  1. 
  2. using AutoMapper;
  3. using Newtonsoft.Json;
  4. using OASystem.Domain;
  5. using OASystem.Domain.AesEncryption;
  6. using OASystem.Domain.Dtos;
  7. using OASystem.Domain.Dtos.CRM;
  8. using OASystem.Domain.Dtos.UserDto;
  9. using OASystem.Domain.Entities.Customer;
  10. using OASystem.Domain.Entities.Groups;
  11. using OASystem.Domain.Entities.Resource;
  12. using OASystem.Domain.ViewModels.CRM;
  13. using OASystem.Domain.ViewModels.Groups;
  14. using System;
  15. using System.Collections.Generic;
  16. using System.Linq;
  17. using System.Runtime.Intrinsics.X86;
  18. using System.Text;
  19. using System.Threading.Tasks;
  20. namespace OASystem.Infrastructure.Repositories.CRM
  21. {
  22. /// <summary>
  23. /// 签证客户 仓库
  24. /// </summary>
  25. public class VisaDeleClientRepository : BaseRepository<Crm_DeleClient, VisaDeleClientView>
  26. {
  27. private readonly IMapper _mapper;
  28. private readonly JsonView _jv = new() { Code = StatusCodes.Status400BadRequest, Msg = "操作失败!" };
  29. public VisaDeleClientRepository(SqlSugarClient sqlSugar,IMapper mapper) :
  30. base(sqlSugar)
  31. {
  32. this._mapper = mapper;
  33. }
  34. /// <summary>
  35. /// 签证客户list
  36. /// </summary>
  37. /// <param name="loginDto"></param>
  38. /// <returns></returns>
  39. public async Task<Result> GetCrmList(DtoBase dto)
  40. {
  41. Result result = new Result() { Code = -2 };
  42. if (dto.PortType == 1 || dto.PortType == 2 || dto.PortType == 3)
  43. {
  44. string sql = string.Format(@"Select cdc.Id,cdc.LastName,cdc.FirstName,ccc.CompanyFullName,Sex,Marriage,
  45. Phone LandlinePhone,Tel,crmCard1.CertNo IDNo,crmCard2.CertNo PassportNo
  46. From Crm_DeleClient cdc
  47. Left Join Crm_CustomerCompany ccc On cdc.crmCompanyId = ccc.Id
  48. Left Join Crm_CustomerCert crmCard1 On crmCard1.SdId = 773 And cdc.Id = crmCard1.DcId And crmCard1.Isdel=0
  49. Left Join Crm_CustomerCert crmCard2 On crmCard2.SdId = 774 And cdc.Id = crmCard2.DcId And crmCard2.IsDel=0 where cdc.IsDel='0' order By cdc.CreateTime desc");
  50. var clientList = await _sqlSugar.SqlQueryable<VisaDeleClientListView>(sql).ToListAsync();
  51. foreach (var item in clientList)
  52. {
  53. EncryptionProcessor.DecryptProperties(item);
  54. }
  55. if (clientList.Count > 0)
  56. {
  57. result.Code = 0;
  58. result.Msg = "成功!";
  59. result.Data = clientList;
  60. }
  61. else
  62. {
  63. result.Msg = "暂无数据!";
  64. }
  65. }
  66. return result;
  67. }
  68. /// <summary>
  69. /// 签证客户操作
  70. /// </summary>
  71. /// <param name="loginDto"></param>
  72. /// <returns></returns>
  73. public async Task<Result> CrmClinetoperation(LoginDto loginDto)
  74. {
  75. Result result = new Result() { Code = -2 };
  76. return result;
  77. }
  78. /// <summary>
  79. /// 签证客户 新增
  80. /// </summary>
  81. /// <param name="loginDto"></param>
  82. /// <returns></returns>
  83. public async Task<int> CrmClinetAdd(Crm_DeleClient client)
  84. {
  85. int addId = -1;
  86. return addId;
  87. }
  88. /// <summary>
  89. /// 根据身份证识别修改ocr添加
  90. /// </summary>
  91. /// <param name="client"></param>
  92. /// <returns></returns>
  93. public async Task<bool> SetCrmUpdPassIdCardOCR(SetCrmUpdPassIdCardOCRDto client)
  94. {
  95. string clientSql = string.Format(@"Select * From Crm_DeleClient Where LastName+FirstName='{0}' And Sex = {1}",
  96. client.ClientName, client.Sex);
  97. var clientInfo = await _sqlSugar.SqlQueryable<VisaDeleClientListView>(clientSql).FirstAsync();
  98. if(clientInfo == null) return false;
  99. string cardSql = string.Format(@"Select * From Crm_CustomerCert Where SdId=773 And DcId={0}", clientInfo.Id);
  100. var cardInfo = await _sqlSugar.SqlQueryable<CustomerCertView>(cardSql).FirstAsync();
  101. if (cardInfo == null) //添加
  102. {
  103. int cerdAdd = await _sqlSugar.Insertable<Crm_CustomerCert>(new Crm_CustomerCert
  104. {
  105. DcId = clientInfo.Id,
  106. SdId = 773,
  107. Country = "中国",
  108. CertNo = client.CerdNo,
  109. TargetCountry = "",
  110. IssueDt = new DateTime(1990, 1, 1),
  111. ExpiryDt = new DateTime(1990, 1, 1),
  112. CreateUserId = client.UserId,
  113. CreateTime = DateTime.Now,
  114. DeleteUserId = null,
  115. DeleteTime = "1990-01-01 00:00:00.000",
  116. Remark = "",
  117. IsDel = 0
  118. }).ExecuteReturnIdentityAsync();
  119. if (cerdAdd > 0) return true;
  120. }
  121. else //修改
  122. {
  123. var cerdStatus = await _sqlSugar.Updateable<Crm_CustomerCert>()
  124. .Where(c => c.Id == cardInfo.Id)
  125. .SetColumns(c => new Crm_CustomerCert
  126. {
  127. CertNo = cardInfo.CertNo,
  128. IDCardAddress = cardInfo.IDCardAddress
  129. }).ExecuteCommandAsync();
  130. if (cerdStatus > 0) return true;
  131. }
  132. return false;
  133. }
  134. public async Task<Result> OpCustomer(DeleClientOpDto dto)
  135. {
  136. Result result = new Result() { Code = -2, Msg = "未知错误" };
  137. try
  138. {
  139. EncryptionProcessor.EncryptProperties(dto.DeleClient);
  140. BeginTran();
  141. int deleId = 0;
  142. if (dto.Status==1)//添加
  143. {
  144. string selectSql = string.Format(@"select * from Crm_DeleClient where LastName+FirstName='{0}' and Phone='{1}' and IsDel='{2}'"
  145. , dto.DeleClient.LastName+dto.DeleClient.FirstName, dto.DeleClient.Phone, 0);
  146. var DeleClient = await _sqlSugar.SqlQueryable<Crm_DeleClient>(selectSql).FirstAsync();//查询是否存在
  147. if (DeleClient != null)
  148. {
  149. result = new Result() { Code = -1, Msg = "该客户已存在,请勿重复添加!" };
  150. }
  151. else//不存在,可添加
  152. {
  153. Crm_DeleClient _CountryFeeCost = _mapper.Map<Crm_DeleClient>(dto.DeleClient);
  154. int id = await AddAsyncReturnId(_CountryFeeCost);
  155. if (id == 0)
  156. {
  157. result = new Result() { Code = -1, Msg = "添加失败!" };
  158. }
  159. result = new Result() { Code = 0, Msg = "添加成功!" };
  160. deleId = id;
  161. }
  162. }
  163. else if (dto.Status == 2)//修改
  164. {
  165. deleId=dto.DeleClient.Id;
  166. DateTime? dateTime = null;
  167. bool isDt = DateTime.TryParse(dto.DeleClient.BirthDay, out DateTime dt);
  168. if (isDt) dateTime = dt;
  169. bool res = await UpdateAsync(a => a.Id == dto.DeleClient.Id, a => new Crm_DeleClient
  170. {
  171. DiId = dto.DeleClient.DiId,
  172. LastName = dto.DeleClient.LastName,
  173. FirstName = dto.DeleClient.FirstName,
  174. OldName = dto.DeleClient.OldName,
  175. Pinyin = dto.DeleClient.Pinyin,
  176. Sex = dto.DeleClient.Sex,
  177. Marriage = dto.DeleClient.Marriage,
  178. Phone = dto.DeleClient.Phone,
  179. BirthProvince = dto.DeleClient.BirthProvince,
  180. BirthCity = dto.DeleClient.BirthCity,
  181. BirthDay = dateTime,
  182. AirType = dto.DeleClient.AirType,
  183. SeatPref = dto.DeleClient.SeatPref,
  184. AirRemark = dto.DeleClient.AirRemark,
  185. RoomType = dto.DeleClient.RoomType,
  186. RoomPref = dto.DeleClient.RoomPref,
  187. Tel = dto.DeleClient.Tel,
  188. Email = dto.DeleClient.Email,
  189. Address = dto.DeleClient.Address,
  190. HighestEducation = dto.DeleClient.HighestEducation,
  191. PostCodes = dto.DeleClient.PostCodes,
  192. CrmCompanyId = dto.DeleClient.CrmCompanyId,
  193. Job = dto.DeleClient.Job,
  194. WorkState = dto.DeleClient.WorkState,
  195. WorkDate = dto.DeleClient.WorkDate,
  196. Wage = dto.DeleClient.Wage,
  197. ClientPhone = dto.DeleClient.ClientPhone,
  198. ClientFax = dto.DeleClient.ClientFax,
  199. ClientEmail = dto.DeleClient.ClientEmail,
  200. ClientLeader = dto.DeleClient.ClientLeader,
  201. ClientLeaderJob = dto.DeleClient.ClientLeaderJob,
  202. IsGetSchengen = dto.DeleClient.IsGetSchengen,
  203. StartTime = dto.DeleClient.StartTime,
  204. EndTime = dto.DeleClient.EndTime,
  205. IsFinger = dto.DeleClient.IsFinger,
  206. FingerDate = dto.DeleClient.FingerDate,
  207. IsVisitUC = dto.DeleClient.IsVisitUC,
  208. USADate = dto.DeleClient.USADate,
  209. USADays = dto.DeleClient.USADays,
  210. CanDate = dto.DeleClient.CanDate,
  211. CanDays = dto.DeleClient.CanDays,
  212. IsUSAVia = dto.DeleClient.IsUSAVia,
  213. GetUSAVisaDate = dto.DeleClient.GetUSAVisaDate,
  214. GetUPPlace = dto.DeleClient.GetUPPlace,
  215. USAVisaCate = dto.DeleClient.USAVisaCate,
  216. USAVisaCode = dto.DeleClient.USAVisaCode,
  217. USAFinger = dto.DeleClient.USAFinger,
  218. IsRejected = dto.DeleClient.IsRejected,
  219. RejectedDate = dto.DeleClient.RejectedDate,
  220. RejectedPlace = dto.DeleClient.RejectedPlace,
  221. RejectedVisa = dto.DeleClient.RejectedVisa,
  222. IsRevoke = dto.DeleClient.IsRevoke,
  223. IsLose = dto.DeleClient.IsLose,
  224. LoseDate = dto.DeleClient.LoseDate,
  225. LoseCode = dto.DeleClient.LoseCode,
  226. IsUSAVisa = dto.DeleClient.IsUSAVisa,
  227. MateUSA = dto.DeleClient.MateUSA,
  228. MateIden = dto.DeleClient.MateIden,
  229. WHUSA = dto.DeleClient.WHUSA,
  230. WHIden = dto.DeleClient.WHIden,
  231. ParentUSA = dto.DeleClient.ParentUSA,
  232. ParentIden = dto.DeleClient.ParentIden,
  233. ChildUSA = dto.DeleClient.ChildUSA,
  234. ChildIden = dto.DeleClient.ChildIden,
  235. BroUSA = dto.DeleClient.BroUSA,
  236. BroIden = dto.DeleClient.BroIden,
  237. Social = dto.DeleClient.Social,
  238. IsArmy = dto.DeleClient.IsArmy,
  239. ArmyState = dto.DeleClient.ArmyState,
  240. CostBearers = dto.DeleClient.CostBearers,
  241. TableOpName = dto.DeleClient.TableOpName,
  242. TableOpTel = dto.DeleClient.TableOpTel,
  243. TableDate = dto.DeleClient.TableDate,
  244. Party = dto.DeleClient.Party,
  245. Nationality = dto.DeleClient.Nationality,
  246. WeddingDate = dto.DeleClient.WeddingDate,
  247. DivorceDate = dto.DeleClient.DivorceDate,
  248. MateName = dto.DeleClient.MateName,
  249. MateBirthDay = dto.DeleClient.MateBirthDay,
  250. MateBirthCity = dto.DeleClient.MateBirthCity,
  251. MateBirthCountry = dto.DeleClient.MateBirthCountry,
  252. MateAddress = dto.DeleClient.MateAddress,
  253. MateClient = dto.DeleClient.MateClient,
  254. MateClientAddress = dto.DeleClient.MateClientAddress,
  255. MateJob = dto.DeleClient.MateJob,
  256. VisitCountry = dto.DeleClient.VisitCountry,
  257. Paper = dto.DeleClient.Paper,
  258. Papent = dto.DeleClient.Papent,
  259. PhD = dto.DeleClient.PhD,
  260. CreateUserId = dto.DeleClient.CreateUserId,
  261. Remark = dto.DeleClient.Remark,
  262. });
  263. if (!res)
  264. {
  265. result = new Result() { Code = -1, Msg = "修改失败!" };
  266. }
  267. result = new Result() { Code = 0, Msg = "修改成功!" };
  268. }
  269. //进行其他表
  270. if (result.Code == 0)
  271. {//家庭成员信息
  272. foreach (CustomerFamily item in dto.CustomerFamily)
  273. {
  274. Crm_VisaCustomerFamily Crm_VisaCustomerFamily = _mapper.Map<Crm_VisaCustomerFamily>(item);
  275. Crm_VisaCustomerFamily.DcId = deleId;
  276. if (item.Id != 0)//修改
  277. {
  278. int res = await _sqlSugar.Updateable<Crm_VisaCustomerFamily>().Where(a => a.Id == Crm_VisaCustomerFamily.Id).SetColumns(a => new Crm_VisaCustomerFamily
  279. {
  280. Appellation = Crm_VisaCustomerFamily.Appellation,
  281. Name = Crm_VisaCustomerFamily.Name,
  282. BirthDay = Crm_VisaCustomerFamily.BirthDay,
  283. BirthPlace = Crm_VisaCustomerFamily.BirthPlace,
  284. Politics = Crm_VisaCustomerFamily.Politics,
  285. Client = Crm_VisaCustomerFamily.Client,
  286. Address = Crm_VisaCustomerFamily.Address,
  287. IsEu = Crm_VisaCustomerFamily.IsEu,
  288. NameSnd = Crm_VisaCustomerFamily.NameSnd,
  289. BirthDaySnd = Crm_VisaCustomerFamily.BirthDaySnd,
  290. Nationality = Crm_VisaCustomerFamily.Nationality,
  291. IDCard = Crm_VisaCustomerFamily.IDCard,
  292. Reletionship = Crm_VisaCustomerFamily.Reletionship,
  293. IsUSA = Crm_VisaCustomerFamily.IsUSA,
  294. Remark = Crm_VisaCustomerFamily.Remark,
  295. }).ExecuteCommandAsync();
  296. if (res==0)
  297. {
  298. result = new Result() { Code = -1, Msg = "家庭成员信息保存失败!" };
  299. RollbackTran();
  300. }
  301. }
  302. else if (item.Id == 0)//添加
  303. {
  304. int sss= await _sqlSugar.Insertable(Crm_VisaCustomerFamily).ExecuteReturnIdentityAsync();
  305. if (sss == 0)
  306. {
  307. result = new Result() { Code = -1, Msg = "家庭成员信息保存失败!" };
  308. RollbackTran();
  309. }
  310. }
  311. }
  312. //证件表信息
  313. foreach (CustomerCerts item in dto.CustomerCert)
  314. {
  315. Crm_CustomerCert CustomerCert = _mapper.Map<Crm_CustomerCert>(item);
  316. CustomerCert.DcId = deleId;
  317. if (item.Id != 0)//修改
  318. {
  319. int res = await _sqlSugar.Updateable<Crm_CustomerCert>().Where(a => a.Id == CustomerCert.Id).SetColumns(a => new Crm_CustomerCert
  320. {
  321. DcId=CustomerCert.DcId,
  322. SdId = CustomerCert.SdId,
  323. CertNo = CustomerCert.CertNo,
  324. Country = CustomerCert.Country,
  325. Area = CustomerCert.Area,
  326. TargetCountry = CustomerCert.TargetCountry,
  327. IssueDt = CustomerCert.IssueDt,
  328. ExpiryDt = CustomerCert.ExpiryDt,
  329. IDCardAddress = CustomerCert.IDCardAddress,
  330. CreateUserId = CustomerCert.CreateUserId,
  331. Remark = CustomerCert.Remark,
  332. }).ExecuteCommandAsync();
  333. if (res == 0)
  334. {
  335. result = new Result() { Code = -1, Msg = "证件信息保存失败!" };
  336. RollbackTran();
  337. }
  338. }
  339. else if (item.Id == 0)//添加
  340. {
  341. int sss = await _sqlSugar.Insertable(CustomerCert).ExecuteReturnIdentityAsync();
  342. if (sss == 0)
  343. {
  344. result = new Result() { Code = -1, Msg = "证件信息保存失败!" };
  345. RollbackTran();
  346. }
  347. }
  348. }
  349. //客户工作经历表
  350. foreach (VisaCustomerCompany item in dto.WorkExperience)
  351. {
  352. Crm_VisaCustomerCompany VisaCustomerCompany = _mapper.Map<Crm_VisaCustomerCompany>(item);
  353. VisaCustomerCompany.DcId = deleId;
  354. if (item.Id != 0)//修改
  355. {
  356. int res = await _sqlSugar.Updateable<Crm_VisaCustomerCompany>().Where(a => a.Id == VisaCustomerCompany.Id).SetColumns(a => new Crm_VisaCustomerCompany
  357. {
  358. DcId=VisaCustomerCompany.DcId,
  359. Company = VisaCustomerCompany.Company,
  360. CompanyAddress = VisaCustomerCompany.CompanyAddress,
  361. Phone = VisaCustomerCompany.Phone,
  362. Job = VisaCustomerCompany.Job,
  363. LeaderName = VisaCustomerCompany.LeaderName,
  364. WorkStart = VisaCustomerCompany.WorkStart,
  365. WorkEnd = VisaCustomerCompany.WorkEnd,
  366. WorkState = VisaCustomerCompany.WorkState,
  367. CreateUserId = VisaCustomerCompany.CreateUserId,
  368. Remark = VisaCustomerCompany.Remark,
  369. }).ExecuteCommandAsync();
  370. if (res == 0)
  371. {
  372. result = new Result() { Code = -1, Msg = "客户工作经历保存失败!" };
  373. RollbackTran();
  374. }
  375. }
  376. else if (item.Id == 0)//添加
  377. {
  378. int sss = await _sqlSugar.Insertable(VisaCustomerCompany).ExecuteReturnIdentityAsync();
  379. if (sss == 0)
  380. {
  381. result = new Result() { Code = -1, Msg = "客户工作经历保存失败!" };
  382. RollbackTran();
  383. }
  384. }
  385. }
  386. //客户学历表
  387. foreach (VisaCustomerSchool item in dto.CustomerSchool)
  388. {
  389. Crm_VisaCustomerSchool VisaCustomerSchool = _mapper.Map<Crm_VisaCustomerSchool>(item);
  390. VisaCustomerSchool.DcId = deleId;
  391. if (item.Id != 0)//修改
  392. {
  393. int res = await _sqlSugar.Updateable<Crm_VisaCustomerSchool>().Where(a => a.Id == VisaCustomerSchool.Id).SetColumns(a => new Crm_VisaCustomerSchool
  394. {
  395. DcId = VisaCustomerSchool.DcId,
  396. School = VisaCustomerSchool.School,
  397. Address = VisaCustomerSchool.Address,
  398. Teacher = VisaCustomerSchool.Teacher,
  399. Education = VisaCustomerSchool.Education,
  400. Subject = VisaCustomerSchool.Subject,
  401. StudyStart = VisaCustomerSchool.StudyStart,
  402. StudyEnd = VisaCustomerSchool.StudyEnd,
  403. CreateUserId = VisaCustomerSchool.CreateUserId,
  404. Remark = VisaCustomerSchool.Remark,
  405. }).ExecuteCommandAsync();
  406. if (res == 0)
  407. {
  408. result = new Result() { Code = -1, Msg = "客户学历信息保存失败!" };
  409. RollbackTran();
  410. }
  411. }
  412. else if (item.Id == 0)//添加
  413. {
  414. int sss = await _sqlSugar.Insertable(VisaCustomerSchool).ExecuteReturnIdentityAsync();
  415. if (sss == 0)
  416. {
  417. result = new Result() { Code = -1, Msg = "客户学历信息保存失败!" };
  418. RollbackTran();
  419. }
  420. }
  421. }
  422. CommitTran();
  423. }
  424. }
  425. catch (Exception ex)
  426. {
  427. return result = new Result() { Code = -2, Msg = "程序错误!" };
  428. throw;
  429. }
  430. return result;
  431. }
  432. public async Task<Result> DelCustomer(DeleClientDelDto dto)
  433. {
  434. Result result = new Result() { Code = -2, Msg = "未知错误" };
  435. try
  436. {
  437. bool isOk=await SoftDeleteByIdAsync<Crm_DeleClient>(dto.Id.ToString(),dto.DeleteUserId);
  438. if (isOk)//删除其他表数据
  439. {
  440. //客户工作经历
  441. await _sqlSugar.Updateable<Crm_VisaCustomerCompany>().Where(a => a.DcId==dto.Id).SetColumns(a => new Crm_VisaCustomerCompany()
  442. {
  443. IsDel = 1,
  444. DeleteUserId = dto.DeleteUserId,
  445. DeleteTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
  446. }).ExecuteCommandAsync();
  447. //客户学历
  448. await _sqlSugar.Updateable<Crm_VisaCustomerSchool>().Where(a => a.DcId == dto.Id).SetColumns(a => new Crm_VisaCustomerSchool()
  449. {
  450. IsDel = 1,
  451. DeleteUserId = dto.DeleteUserId,
  452. DeleteTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
  453. }).ExecuteCommandAsync();
  454. //客户家庭成员信息
  455. await _sqlSugar.Updateable<Crm_VisaCustomerFamily>().Where(a => a.DcId == dto.Id).SetColumns(a => new Crm_VisaCustomerFamily()
  456. {
  457. IsDel = 1,
  458. DeleteUserId = dto.DeleteUserId,
  459. DeleteTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
  460. }).ExecuteCommandAsync();
  461. //客户证件表
  462. await _sqlSugar.Updateable<Crm_CustomerCert>().Where(a => a.DcId == dto.Id).SetColumns(a => new Crm_CustomerCert()
  463. {
  464. IsDel = 1,
  465. DeleteUserId = dto.DeleteUserId,
  466. DeleteTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
  467. }).ExecuteCommandAsync();
  468. return result = new Result() { Code = 0, Msg = "删除成功!" };
  469. }
  470. }
  471. catch (Exception ex)
  472. {
  473. return result = new Result() { Code = -2, Msg = "程序错误!" };
  474. throw;
  475. }
  476. return result;
  477. }
  478. #region 签证客户资料 New 2025-06-04
  479. #region 新西兰、澳大利亚签证申请
  480. /// <summary>
  481. /// 新西兰、澳大利亚签证申请资料表 Add
  482. /// </summary>
  483. /// <returns></returns>
  484. public async Task<JsonView> AddTemp1()
  485. {
  486. return _jv;
  487. }
  488. #endregion
  489. /// <summary>
  490. /// 通过kimi api 获取签证申请资料并操作
  491. /// </summary>
  492. /// <returns></returns>
  493. public async Task<JsonView> KIMIAPIOP()
  494. {
  495. return _jv;
  496. }
  497. #endregion
  498. }
  499. }