李昊 преди 4 години
родител
ревизия
64a5bb788b

+ 6 - 1
gx_api/GxPress/Model/GxPress.Result/Reply/ReplyResult.cs

@@ -53,7 +53,7 @@ namespace GxPress.Result.Reply
         /// 回复时间
         /// </summary>
         /// <value></value>
-        public DateTime ? CreatedDate { get; set; }
+        public DateTime? CreatedDate { get; set; }
         /// <summary>
         /// 回复人姓名
         /// </summary>
@@ -74,5 +74,10 @@ namespace GxPress.Result.Reply
         /// </summary>
         /// <value></value>
         public string Remark { get; set; }
+        /// <summary>
+        /// 是否阅读
+        /// </summary>
+        /// <value></value>
+        public bool IsRead { get; set; }
     }
 }

+ 2 - 2
gx_api/GxPress/Repository/GxPress.Repository.Implement/UserRepository.cs

@@ -1039,9 +1039,9 @@ namespace GxPress.Repository.Implement
             sqlStr = string.IsNullOrEmpty(sqlStr) ? "" : sqlStr.Remove(sqlStr.Length - 1, 1);
             var sql = $@"select * from tede_user where 1=1 ";
             if (!string.IsNullOrEmpty(sqlStr))
-                sql += " and id in({sqlStr})";
+                sql += $@" and id in({sqlStr})";
             if (!string.IsNullOrEmpty(keyword))
-                sql += " and (Name like '%{keyword}%' or phone like '%{keyword}%' or Email like '%{keyword}%')";
+                sql += $@" and (Name like '%{keyword}%' or phone like '%{keyword}%' or Email like '%{keyword}%')";
             var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
             var database = new Database(databaseType, _connectionString);
             var connection = database.GetConnection();