|
@@ -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) {
|