| | |
| | | if(sysUser.getRoleType() == 2){ |
| | | share.setObjectId(sysUser.getObjectId().longValue()); |
| | | } |
| | | // if (sysUser.getRoleType() == 1){ |
| | | // share.setAuditStatus(ShareAuditStatus.SUCCESS.getCode()); |
| | | // }else{ |
| | | // share.setAuditStatus(ShareAuditStatus.WAIT.getCode()); |
| | | // } |
| | | share.setAuditStatus(ShareAuditStatus.WAIT.getCode()); |
| | | if (sysUser.getRoleType() == 1){ |
| | | share.setAuditStatus(ShareAuditStatus.SUCCESS.getCode()); |
| | | }else{ |
| | | share.setAuditStatus(ShareAuditStatus.WAIT.getCode()); |
| | | } |
| | | share.setDelFlag(0); |
| | | shareService.save(share); |
| | | return R.ok(); |
| | |
| | | .eq(auditStatus != null, Share::getAuditStatus, auditStatus) |
| | | .in(!CollectionUtils.isEmpty(userIds),Share::getObjectId, userIds) |
| | | .eq(Share::getDelFlag, 0) |
| | | .orderByAsc(Share::getAuditStatus) |
| | | .orderByDesc(Share::getCreateTime) |
| | | .page(Page.of(pageNum, pageSize)); |
| | | for (Share record : page.getRecords()) { |