|
@@ -55,11 +55,15 @@ namespace OASystem.Infrastructure.Repositories.Resource
|
|
|
foreach (var temp in OfficialActivities)
|
|
|
{
|
|
|
//2024年4月1日 11:55:44 -蒋金辰 -日期处理
|
|
|
+
|
|
|
DateTime dt;
|
|
|
bool b_dt = DateTime.TryParse(temp.Date, out dt);
|
|
|
if (b_dt)
|
|
|
{
|
|
|
- temp.Date = dt.ToString("yyyy-MM-dd HH:mm");
|
|
|
+
|
|
|
+ if (!string.IsNullOrEmpty(temp.Time)) temp.Date = dt.ToString("yyyy-MM-dd") + " " + temp.Time;
|
|
|
+ else temp.Date = dt.ToString("yyyy-MM-dd HH:mm:ss");
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//2024年4月26日 17:43 -蒋金辰 -出访形式
|
|
@@ -174,6 +178,18 @@ namespace OASystem.Infrastructure.Repositories.Resource
|
|
|
Result result = new Result() { Code = -2, Msg = "未知错误" };
|
|
|
try
|
|
|
{
|
|
|
+ #region 特殊字符转码 037 - 4.28 15:17
|
|
|
+
|
|
|
+ if (!string.IsNullOrEmpty(dto.Contact))
|
|
|
+ {
|
|
|
+ byte[] utf8Bytes = Encoding.UTF8.GetBytes(dto.Contact);
|
|
|
+ byte[] utf16Bytes = Encoding.Convert(Encoding.UTF8, Encoding.Unicode, utf8Bytes);
|
|
|
+ dto.Contact = Encoding.Unicode.GetString(utf16Bytes);
|
|
|
+ }
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+
|
|
|
if (dto.Status == 1)//添加
|
|
|
{
|
|
|
_sqlSugar.BeginTran();
|