瀏覽代碼

Merge branch 'master' of http://192.168.1.222:3000/zhoufan/SQ12345_Api

duhongyu 5 年之前
父節點
當前提交
b96727a3f2

+ 1 - 1
CallCenterApi/CallCenterApi.DAL/T_SMS_InternalMessages.cs

@@ -197,7 +197,7 @@ namespace CallCenterApi.DAL
197 197
         {
198 198
 
199 199
             StringBuilder strSql = new StringBuilder();
200
-            strSql.Append("select  top 1 * from T_SMS_InternalMessages ");
200
+            strSql.Append("select  top 1 * from T_SMS_InternalMessages  WITH(NOLOCK) ");
201 201
             strSql.Append(" where SMS_Id=@SMS_Id");
202 202
             SqlParameter[] parameters = {
203 203
                     new SqlParameter("@SMS_Id", SqlDbType.Int,4)

+ 1 - 1
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Login/LoginController.cs

@@ -222,7 +222,7 @@ namespace CallCenterApi.Interface.Controllers
222 222
                         string rid = dt.Rows[0]["F_RoleID"].ToString();
223 223
                         var role = new BLL.T_Sys_RoleInfo().GetModel(Int32.Parse(rid));
224 224
                         if (role.F_RoleCode == "EJWLDW" || role.F_RoleCode == "WLDW" || role.F_RoleCode=="DBZY"
225
-                            || role.F_RoleCode == "ZXLD" || role.F_RoleCode == "ZXLDGLY" || role.F_RoleCode == "GLY")
225
+                            || role.F_RoleCode == "ZXLD" || role.F_RoleCode == "ZXLDGLY" || role.F_RoleCode == "GLY" || role.F_RoleCode== "DDZG")
226 226
                         {
227 227
                             Dictionary<string, string> Dic = new Dictionary<string, string>();
228 228
                             Dic.Add("F_UserID", dt.Rows[0]["F_UserId"].ToString());

+ 3 - 3
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/weixin/WxLoginController.cs

@@ -475,7 +475,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
475 475
             {
476 476
                 sqltype += " and F_WorkState=9";
477 477
             }
478
-            sqltype += " and  F_InfoType=F_ValueId and " + where + ") Count from  dbo.T_Sys_DictionaryValue where F_ItemId=2 and F_State=0 ";
478
+            sqltype += " and  F_InfoType=F_ValueId and " + where + ") Count from  dbo.T_Sys_DictionaryValue where (F_PrentId=37 or F_ItemId=2) and F_State=0 ";
479 479
 
480 480
             DataTable dt = DbHelperSQL.Query(sqltype).Tables[0];
481 481
 
@@ -499,7 +499,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
499 499
         [WechatActionFilter]
500 500
         public ActionResult GetTypeList()
501 501
         {
502
-            string sql = "select * from T_Sys_DictionaryValue where F_ItemId=2 and F_State=0 ";
502
+            string sql = "select * from T_Sys_DictionaryValue where (F_PrentId=37 or F_ItemId=2) and F_State=0 ";
503 503
             var dt = DbHelperSQL.Query(sql).Tables[0];
504 504
             return Success("列表加载成功", dt);
505 505
         }
@@ -523,7 +523,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
523 523
         [WechatActionFilter]
524 524
         public ActionResult GetKeyList()
525 525
         {
526
-            string sql = "select * from T_Sys_DictionaryValue where F_ItemId=3 and F_State=0 ";
526
+            string sql = "select * from T_Sys_DictionaryValue where (F_PrentId=38 or F_ItemId=3) and F_State=0 ";
527 527
             var dt = DbHelperSQL.Query(sql).Tables[0];
528 528
             return Success("列表加载成功", dt);
529 529
         }