限制无法打开他人工资单

This commit is contained in:
Harryxzy 2023-06-16 10:14:28 +08:00
parent f4b3a742f0
commit 1805726387
1 changed files with 3 additions and 0 deletions

View File

@ -453,6 +453,9 @@ public class SalarySendServiceImpl extends Service implements SalarySendService
if (CollectionUtils.isEmpty(salarySendInfos)) {
throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(100511, "工资单信息不存在"));
}
if(currentEmployeeId.compareTo(salarySendInfos.get(0).getEmployeeId()) != 0){
throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(100511, "当前账号无法查看此工资单"));
}
SalarySendInfoPO salarySendInfo = salarySendInfos.get(0);
// List<SalarySendPO> salarySends = new LambdaQueryChainWrapper<>(mapper)
// .eq(SalarySendPO::getDeleteType, 0)