add 企业管理员权限

This commit is contained in:
lijiarao
2022-08-16 16:57:36 +08:00
parent dc73acdd1a
commit e182bbe917
@@ -187,7 +187,10 @@ public class PayPaymentCheckServiceImpl extends ServiceImpl<PayPaymentCheckMappe
*/
@Override
public void applicant(PayPaymentRecord payPaymentRecord){
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
if (sysUser.getIsCompanyManager()){
throw new JeroBootException("没有权限");
}
LambdaQueryWrapper<PayPaymentRecord> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(PayPaymentRecord::getProjectId,payPaymentRecord.getProjectId());
wrapper.and(wrapperOr -> wrapperOr.eq(PayPaymentRecord::getPaymentStatus,PaymentStatusEnum.TO_BE_REVIEWED.getCode())
@@ -249,7 +252,6 @@ public class PayPaymentCheckServiceImpl extends ServiceImpl<PayPaymentCheckMappe
}
//插入来款记录子表
LoginUser sysUser = (LoginUser)SecurityUtils.getSubject().getPrincipal();
// payPaymentRecord.setApplicantName(sysUser.getRealname());
// payPaymentRecord.setPaymentStatus(PaymentStatusEnum.TO_BE_REVIEWED.getCode());
// payPaymentRecordMapper.insert(payPaymentRecord);