Parcourir la source

部门领导人+权限问题

qzyReal il y a 2 ans
Parent
commit
3d3cb7a7e7

+ 1 - 1
sp-admin/sa-view/tb-fee-statistics/tb-fee-statistics-list.html

@@ -89,7 +89,7 @@
 					<sa-td name="开单员" prop="kaiDanPerson"></sa-td>
 					<sa-td name="复核员" prop="diaoDuPerson"></sa-td>
 					<sa-td name="统计稽查员" prop="jiChaPerson"></sa-td>
-					<sa-td name="审核员" prop="judgeBy"></sa-td>
+					<sa-td name="部门负责人" prop="judgeBy"></sa-td>
 					<sa-td name="审核时间" prop="judgeTime" width="140"></sa-td>
 					<el-table-column label="操作" fixed="right" width="120px" v-if="sa.isAuth('tb-fee-statistics-judge')">
 						<template slot-scope="s">

+ 0 - 21
sp-server/src/main/java/com/pj/project/tb_fee_details/TbFeeDetailsService.java

@@ -570,13 +570,6 @@ public class TbFeeDetailsService extends ServiceImpl<TbFeeDetailsMapper, TbFeeDe
 
     public void jiChaConfirm(List<Long> ids) {
         SpAdmin admin = StpUserUtil.getAdmin();
-        List<String> roleIds = StrUtil.splitTrim(admin.getRoleId(), ",");
-        for (String roleId : roleIds) {
-            SpRole role = spRoleMapper.getById(Long.valueOf(roleId));
-            if (!StrUtil.equals(PersonEnum.JICHA.getDesc(), role.getName()) && !StrUtil.equals("admin", role.getType())) {
-                throw new BusinessException("无操作权限");
-            }
-        }
         List<TbFeeDetails> detailsList = this.listByIds(ids);
         Set<String> days = new HashSet<>();
         for (TbFeeDetails detail : detailsList) {
@@ -594,10 +587,6 @@ public class TbFeeDetailsService extends ServiceImpl<TbFeeDetailsMapper, TbFeeDe
 
     public void kaiDanConfirm(List<Long> ids) {
         SpAdmin admin = StpUserUtil.getAdmin();
-        SpRole role = spRoleMapper.getById(Long.valueOf(admin.getRoleId()));
-        if (!StrUtil.equals(PersonEnum.KAIDAN.getDesc(), role.getName()) && !StrUtil.equals("admin", role.getType())) {
-            throw new BusinessException("无操作权限");
-        }
         List<TbFeeDetails> detailsList = this.listByIds(ids);
         Set<String> days = new HashSet<>();
         for (TbFeeDetails detail : detailsList) {
@@ -615,16 +604,6 @@ public class TbFeeDetailsService extends ServiceImpl<TbFeeDetailsMapper, TbFeeDe
 
     public void diaoDuConfirm(List<Long> ids) {
         SpAdmin admin = StpUserUtil.getAdmin();
-        AtomicBoolean hasPermission = new AtomicBoolean(false);
-        StrUtil.splitTrim(admin.getRoleId(), ",").forEach(roleId -> {
-            SpRole role = spRoleMapper.getById(Long.valueOf(roleId));
-            if (StrUtil.equals(PersonEnum.FUHE.getDesc(), role.getName()) || StrUtil.equals("admin", role.getType())) {
-                hasPermission.set(true);
-            }
-        });
-        if (!hasPermission.get()) {
-            throw new BusinessException("无操作权限");
-        }
         List<TbFeeDetails> detailsList = this.listByIds(ids);
         Set<String> days = new HashSet<>();
         for (TbFeeDetails detail : detailsList) {