소스 검색

修改sql 语法错误

金隅分支
liangkun 3 년 전
부모
커밋
cd1223d182
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs
  2. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/UserController.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Organization/User/UserService.cs 파일 보기

@@ -262,7 +262,7 @@ namespace Learun.Application.Organization
try try
{ {
var fieldStr = @"t.F_CompanyId,t.F_DepartmentId,t.F_RealName,t.F_Mobile,t.F_HeadIcon, var fieldStr = @"t.F_CompanyId,t.F_DepartmentId,t.F_RealName,t.F_Mobile,t.F_HeadIcon,
t.F_UserId,t.F_Gender,t.F_Password, ";
t.F_UserId,t.F_Gender ";
var strSql = new StringBuilder(); var strSql = new StringBuilder();
strSql.Append("SELECT "); strSql.Append("SELECT ");
strSql.Append(fieldStr.Replace("t.F_Password,", "").Replace("t.F_Secretkey,", "")); strSql.Append(fieldStr.Replace("t.F_Password,", "").Replace("t.F_Secretkey,", ""));


+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Controllers/UserController.cs 파일 보기

@@ -27,8 +27,8 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers


private Sys_DefaultPwdConfigIBLL sys_DefaultPwdConfigIBLL = new Sys_DefaultPwdConfigBLL(); private Sys_DefaultPwdConfigIBLL sys_DefaultPwdConfigIBLL = new Sys_DefaultPwdConfigBLL();


private static UserIBLL userIBLL_static = new UserBLL();
private static Dictionary<string, UserModel> mapData = userIBLL_static.GetModelMap();
private UserIBLL userIBLL_static = new UserBLL();
private Dictionary<string, UserModel> mapData = null;


#region 获取视图 #region 获取视图


@@ -236,7 +236,7 @@ namespace Learun.Application.Web.Areas.LR_OrganizationModule.Controllers
[AjaxOnly] [AjaxOnly]
public ActionResult GetMap(string ver) public ActionResult GetMap(string ver)
{ {
var data = mapData;//userIBLL.GetModelMap();
var data = userIBLL_static.GetModelMap();
string md5 = Md5Helper.Encrypt(data.ToJson(), 32); string md5 = Md5Helper.Encrypt(data.ToJson(), 32);
if (md5 == ver) if (md5 == ver)
{ {


불러오는 중...
취소
저장