Parcourir la source

核价后台:1、修复权限判断

chen_yjin il y a 2 jours
Parent
commit
c1b12d8e6a

+ 1 - 1
JLHHJSvr/BLL/UserHelper.cs

@@ -276,7 +276,7 @@ namespace JLHHJSvr.BLL
             }
 
             cmd.CommandText = "select username from u_user_jlhprice";
-            if (powerstr != "0")
+            if (powerstr != "0" && powerstr != "-1")
             {
                 cmd.CommandText += string.Format(" WHERE username IN ({0})", powerstr.Trim(','));
             }

+ 2 - 2
JLHHJSvr/DataStore/web_mattress_interfacelist.xml

@@ -79,10 +79,10 @@ FROM u_mattress
 	<when notnull="@yw_flag" yw_flag!="-1">
 		u_mattress.yw_flag = @yw_flag
 	</when>
-	<when>
+	<when $user_outrepstr!="-1">
 		u_mattress.createby in ($$user_outrepstr$$)
 	</when>
-	<when>
+	<when $user_deptstr!="-1">
 		u_mattress.deptid in ($$user_deptstr$$)
 	</when>
 	<when notnull="@arg_search">