Bladeren bron

添加采單權限

xubh 5 jaren geleden
bovenliggende
commit
ce882d24ec

+ 4 - 0
src/main/java/com/minpay/huicai/system/action/RoleManageAction.java

@@ -485,6 +485,10 @@ public class RoleManageAction implements IMINAction {
 			throws MINBusinessException {
 		MINActionResult res = new MINActionResult();
 		Map<String, String> map = new HashMap<String, String>();
+		User user = session.getUser();
+		if(!Constant.ADMINISTRATION_SYSTEM_NUMBER.equals(user.getBranchId()) ){ //超級管理員
+			map.put("authority", "00");
+		}
 		map.put("roleid", id);
 		List<Map<String, String>> ls = null;
 		if (id == null || "".equals(id)) {// 新增角色时使用

+ 4 - 1
src/main/resources/com/minpay/db/table/own/mapper/RoleMapper.xml

@@ -224,7 +224,10 @@
 				FROM im_item_auth GROUP BY TMA_ITEMID ) auth
 			ON auth.TMA_ITEMID = c.itm_id
 		WHERE
-			a.meu_parentid != 'M00000' 
+			a.meu_parentid != 'M00000'
+		<if test="authority != null and authority != ''">
+			AND c.ITM_AUTHORITY ='00'
+		</if>
 			ORDER BY  c.itm_id
 	</select>