add 企业管理员权限
This commit is contained in:
+4
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user