|
@@ -4214,7 +4214,7 @@ FROM
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> VisaFileDownload(int groupId, int fileTypeId)
|
|
public async Task<IActionResult> VisaFileDownload(int groupId, int fileTypeId)
|
|
|
{
|
|
{
|
|
|
- if(!_visaTypeInit.TryGetValue(fileTypeId, out _))
|
|
|
|
|
|
|
+ if (!_visaTypeInit.TryGetValue(fileTypeId, out _))
|
|
|
{
|
|
{
|
|
|
return Ok(JsonView(false, "请选择正确的文件类型!"));
|
|
return Ok(JsonView(false, "请选择正确的文件类型!"));
|
|
|
}
|
|
}
|
|
@@ -4251,7 +4251,7 @@ FROM
|
|
|
|
|
|
|
|
//团组客户详细信息
|
|
//团组客户详细信息
|
|
|
var groupCustInfos = _sqlSugar.Queryable<Crm_DeleClient>().Where(x => x.IsDel == 0 && groupClients.Contains(x.Id)).ToList();
|
|
var groupCustInfos = _sqlSugar.Queryable<Crm_DeleClient>().Where(x => x.IsDel == 0 && groupClients.Contains(x.Id)).ToList();
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
//家庭成员资料
|
|
//家庭成员资料
|
|
|
var familyInfos = _sqlSugar.Queryable<Crm_VisaCustomerFamily>().Where(x => x.IsDel == 0 && groupClients.Contains(x.DcId)).ToList();
|
|
var familyInfos = _sqlSugar.Queryable<Crm_VisaCustomerFamily>().Where(x => x.IsDel == 0 && groupClients.Contains(x.DcId)).ToList();
|
|
|
|
|
|
|
@@ -4281,7 +4281,7 @@ FROM
|
|
|
var certInfos = _sqlSugar.Queryable<Crm_CustomerCert>().Where(x => x.IsDel == 0 && groupClients.Contains(x.DcId)).ToList();
|
|
var certInfos = _sqlSugar.Queryable<Crm_CustomerCert>().Where(x => x.IsDel == 0 && groupClients.Contains(x.DcId)).ToList();
|
|
|
|
|
|
|
|
//利用字典创建书签与书签的值的键值对,第一个string为键,第二个string为值
|
|
//利用字典创建书签与书签的值的键值对,第一个string为键,第二个string为值
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
var applyDate = DateTime.Now.ToString("yyyy-MM-dd");
|
|
var applyDate = DateTime.Now.ToString("yyyy-MM-dd");
|
|
|
|
|
|
|
|
var filePaths = new List<string>();
|
|
var filePaths = new List<string>();
|
|
@@ -4322,7 +4322,8 @@ FROM
|
|
|
dics.Add("OldName", custInfo?.FirstName ?? "");//曾用姓名
|
|
dics.Add("OldName", custInfo?.FirstName ?? "");//曾用姓名
|
|
|
|
|
|
|
|
//未设置、未婚、已婚、离异、丧偶
|
|
//未设置、未婚、已婚、离异、丧偶
|
|
|
- var marriage = custInfo.Marriage switch {
|
|
|
|
|
|
|
+ var marriage = custInfo.Marriage switch
|
|
|
|
|
+ {
|
|
|
0 => "未设置",
|
|
0 => "未设置",
|
|
|
1 => "未婚",
|
|
1 => "未婚",
|
|
|
2 => "已婚",
|
|
2 => "已婚",
|
|
@@ -4345,7 +4346,7 @@ FROM
|
|
|
string m_day = m_idCard.Substring(12, 2);
|
|
string m_day = m_idCard.Substring(12, 2);
|
|
|
m_birthday = m_year + "." + m_month + "." + m_day;
|
|
m_birthday = m_year + "." + m_month + "." + m_day;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
dics.Add("BirthDay", m_birthday);//出生日期
|
|
dics.Add("BirthDay", m_birthday);//出生日期
|
|
|
dics.Add("Tel", custInfo?.Tel ?? "");//移动电话
|
|
dics.Add("Tel", custInfo?.Tel ?? "");//移动电话
|
|
|
dics.Add("Email", custInfo?.Email ?? "");//电子信箱
|
|
dics.Add("Email", custInfo?.Email ?? "");//电子信箱
|
|
@@ -4637,7 +4638,7 @@ FROM
|
|
|
var ac = _sqlSugar.Queryable<Res_AirCompany>().Where(x => x.ShortCode == threeCodeTwo).First();
|
|
var ac = _sqlSugar.Queryable<Res_AirCompany>().Where(x => x.ShortCode == threeCodeTwo).First();
|
|
|
if (ac != null)
|
|
if (ac != null)
|
|
|
{
|
|
{
|
|
|
- dics.Add("AirName",$"{ac?.EnName ?? ""} {three}"); //入境口岸
|
|
|
|
|
|
|
+ dics.Add("AirName", $"{ac?.EnName ?? ""} {three}"); //入境口岸
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
var tc = _sqlSugar.Queryable<Res_ThreeCode>().Where(x => x.Three == threeCodeTwo).First();
|
|
var tc = _sqlSugar.Queryable<Res_ThreeCode>().Where(x => x.Three == threeCodeTwo).First();
|
|
@@ -4654,7 +4655,7 @@ FROM
|
|
|
if (groupInfo != null)
|
|
if (groupInfo != null)
|
|
|
{
|
|
{
|
|
|
dics.Add("Destination", groupInfo?.VisitPurpose ?? ""); //出访目的 Destination2
|
|
dics.Add("Destination", groupInfo?.VisitPurpose ?? ""); //出访目的 Destination2
|
|
|
- //DickeyValue.Add("Destination2", dgi.VisitCountry); //出访目的地
|
|
|
|
|
|
|
+ //DickeyValue.Add("Destination2", dgi.VisitCountry); //出访目的地
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(city))
|
|
if (!string.IsNullOrEmpty(city))
|
|
@@ -4764,7 +4765,7 @@ FROM
|
|
|
foreach (var custInfo in groupCustInfos)
|
|
foreach (var custInfo in groupCustInfos)
|
|
|
{
|
|
{
|
|
|
EncryptionProcessor.DecryptProperties(custInfo);
|
|
EncryptionProcessor.DecryptProperties(custInfo);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
Dictionary<string, string> dics = new();
|
|
Dictionary<string, string> dics = new();
|
|
|
|
|
|
|
|
var idInfo = certInfos.FirstOrDefault(x => x.DcId == custInfo.Id && x.PassportType == 773);
|
|
var idInfo = certInfos.FirstOrDefault(x => x.DcId == custInfo.Id && x.PassportType == 773);
|
|
@@ -4794,7 +4795,7 @@ FROM
|
|
|
string year = idCard.Substring(6, 4);
|
|
string year = idCard.Substring(6, 4);
|
|
|
string month = idCard.Substring(10, 2);
|
|
string month = idCard.Substring(10, 2);
|
|
|
string day = idCard.Substring(12, 2);
|
|
string day = idCard.Substring(12, 2);
|
|
|
- birthday = year + "/" + month + "/" + day;
|
|
|
|
|
|
|
+ birthday = year + "/" + month + "/" + day;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
dics.Add("BirthDay", birthday);//出生日期
|
|
dics.Add("BirthDay", birthday);//出生日期
|
|
@@ -4833,12 +4834,12 @@ FROM
|
|
|
|
|
|
|
|
dics.Add("Address", custInfo?.Address ?? "");//现居家庭地址
|
|
dics.Add("Address", custInfo?.Address ?? "");//现居家庭地址
|
|
|
dics.Add("Tel1", custInfo?.Tel ?? "");//移动电话 /家庭电话 /电子信箱
|
|
dics.Add("Tel1", custInfo?.Tel ?? "");//移动电话 /家庭电话 /电子信箱
|
|
|
- //dics.Add("Tel2", );//电子信箱
|
|
|
|
|
|
|
+ //dics.Add("Tel2", );//电子信箱
|
|
|
dics.Add("Email", custInfo?.Email ?? "");//电子信箱
|
|
dics.Add("Email", custInfo?.Email ?? "");//电子信箱
|
|
|
|
|
|
|
|
//判断婚姻状况
|
|
//判断婚姻状况
|
|
|
var marriage = custInfo.Marriage switch
|
|
var marriage = custInfo.Marriage switch
|
|
|
- {
|
|
|
|
|
|
|
+ {
|
|
|
1 => "未婚",
|
|
1 => "未婚",
|
|
|
2 => "已婚",
|
|
2 => "已婚",
|
|
|
3 => "离异",
|
|
3 => "离异",
|
|
@@ -4865,8 +4866,8 @@ FROM
|
|
|
string mateFirstName = mateName.Remove(0, 1);
|
|
string mateFirstName = mateName.Remove(0, 1);
|
|
|
dics.Add("MateLastName", mateName.Substring(0, 1)); //配偶姓
|
|
dics.Add("MateLastName", mateName.Substring(0, 1)); //配偶姓
|
|
|
dics.Add("MateFirstName", mateFirstName); //配偶名
|
|
dics.Add("MateFirstName", mateFirstName); //配偶名
|
|
|
- //dics.Add("MateLastName", MateName.Substring(0, 1)); //配偶姓
|
|
|
|
|
- //dics.Add("MateFirstName", MateName.Substring(1, MateName.Length - 1)); //配偶名
|
|
|
|
|
|
|
+ //dics.Add("MateLastName", MateName.Substring(0, 1)); //配偶姓
|
|
|
|
|
+ //dics.Add("MateFirstName", MateName.Substring(1, MateName.Length - 1)); //配偶名
|
|
|
}
|
|
}
|
|
|
catch { }
|
|
catch { }
|
|
|
dics.Add("MateBirthDay", custInfo?.MateBirthDay.ToString("yyyy-MM-dd")); //配偶生日
|
|
dics.Add("MateBirthDay", custInfo?.MateBirthDay.ToString("yyyy-MM-dd")); //配偶生日
|
|
@@ -5007,7 +5008,7 @@ FROM
|
|
|
else
|
|
else
|
|
|
dics.Add("IsNo", "√");
|
|
dics.Add("IsNo", "√");
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
//费用信息
|
|
//费用信息
|
|
|
if (groupInfo != null)
|
|
if (groupInfo != null)
|
|
|
{
|
|
{
|
|
@@ -5025,7 +5026,7 @@ FROM
|
|
|
{
|
|
{
|
|
|
dics.Add("WirteTableYes", "√");
|
|
dics.Add("WirteTableYes", "√");
|
|
|
dics.Add("OpTableName", custInfo.TableOpName.ToString()); //协助填表人姓名
|
|
dics.Add("OpTableName", custInfo.TableOpName.ToString()); //协助填表人姓名
|
|
|
- //dics.Add("OpTableDateTime",custInfo.OpDate.ToString()); //填表时间
|
|
|
|
|
|
|
+ //dics.Add("OpTableDateTime",custInfo.OpDate.ToString()); //填表时间
|
|
|
dics.Add("OpTableTel", custInfo.TableOpTel.ToString()); //协助人联系电话
|
|
dics.Add("OpTableTel", custInfo.TableOpTel.ToString()); //协助人联系电话
|
|
|
dics.Add("OpTableGuanXi", "雇佣"); //和协助人关系
|
|
dics.Add("OpTableGuanXi", "雇佣"); //和协助人关系
|
|
|
}
|
|
}
|
|
@@ -9306,6 +9307,52 @@ FROM
|
|
|
|
|
|
|
|
#region 共享文件上传
|
|
#region 共享文件上传
|
|
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// 超支通知推送
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ /// <param name="dto"></param>
|
|
|
|
|
+ /// <returns></returns>
|
|
|
|
|
+ [HttpPost]
|
|
|
|
|
+ public async Task<IActionResult> qyWeChatNotification(qyWeChatNotificationDto dto)
|
|
|
|
|
+ {
|
|
|
|
|
+ //81 邀请/公务活动
|
|
|
|
|
+ var syCTable = new List<int> { 81 };
|
|
|
|
|
+ //76 酒店预订
|
|
|
|
|
+ //79 车/导游地接
|
|
|
|
|
+ //85 机票预订
|
|
|
|
|
+ var gjCTable = new List<int> { 76, 79, 85 };
|
|
|
|
|
+ var jw = JsonView(false);
|
|
|
|
|
+ var di = _sqlSugar.Queryable<Grp_DelegationInfo>().First(x => x.IsDel == 0 && x.Id == dto.Diid);
|
|
|
|
|
+ if (di == null)
|
|
|
|
|
+ {
|
|
|
|
|
+ jw.Msg = "团组信息不存在!";
|
|
|
|
|
+ return Ok(jw);
|
|
|
|
|
+ }
|
|
|
|
|
+ var user = _sqlSugar.Queryable<Sys_Users>().First(x => x.IsDel == 0 && x.Id == dto.UserId);
|
|
|
|
|
+ if (user == null)
|
|
|
|
|
+ {
|
|
|
|
|
+ jw.Msg = "用户信息不存在!";
|
|
|
|
|
+ return Ok(jw);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (syCTable.Contains(dto.CTable))
|
|
|
|
|
+ {
|
|
|
|
|
+ await AppNoticeLibrary.SendChatMsg_ExpenseOverrunsChat(dto.Diid, dto.UserId, dto.CTable, QiyeWeChatEnum.ExpenseOverrunsChat02);
|
|
|
|
|
+ }
|
|
|
|
|
+ else if (gjCTable.Contains(dto.CTable))
|
|
|
|
|
+ {
|
|
|
|
|
+ await AppNoticeLibrary.SendChatMsg_ExpenseOverrunsChat(dto.Diid, dto.UserId, dto.CTable, QiyeWeChatEnum.ExpenseOverrunsChat01);
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ jw.Msg = "CTABLE类型有误!";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ jw = JsonView(true, "推送成功!", "");
|
|
|
|
|
+
|
|
|
|
|
+ return Ok(jw);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// 共享文件数据初始化
|
|
/// 共享文件数据初始化
|
|
|
/// </summary>
|
|
/// </summary>
|