Explorar el Código

修复运营中心额度变动明细查询

DuGuYang hace 2 años
padre
commit
eac511d277

+ 2 - 1
Areas/Admin/Controllers/OperateServer/AmountRecordOperateController.cs

@@ -60,7 +60,8 @@ namespace MySystem.Areas.Admin.Controllers
             //创客编号
             if (!string.IsNullOrEmpty(MakerCode))
             {
-                condition += " and UserId in (select UserId from SysAdmin where MakerCode='" + MakerCode + "')";
+                var user = db.Users.FirstOrDefault(m => m.MakerCode == MakerCode) ?? new Models.Users();
+                condition += " and UserId=" + user.Id;
             }
             //运营中心编号
             if (!string.IsNullOrEmpty(OpCode))