|
@@ -73,7 +73,7 @@ public class WorkServiceImpl extends ServiceImpl<WorkMapper, WorkEntity> impleme
|
|
|
BaseUtil.startPage(param);
|
|
|
IPage<WorkEntity> page = new Page<>(param.getPageNum() , param.getPageSize());
|
|
|
LambdaQueryWrapper<WorkEntity> wrapper = new LambdaQueryWrapper<> ();
|
|
|
- wrapper.eq(WorkEntity::getCreatorId, iBaseService.getUserId());
|
|
|
+ // wrapper.eq(WorkEntity::getCreatorId, iBaseService.getUserId());
|
|
|
String searchKey = param.getSearchKey();
|
|
|
if (StringUtils.isNotBlank(searchKey)){
|
|
|
wrapper.like(WorkEntity::getName, param.getSearchKey());
|
|
@@ -188,7 +188,7 @@ public class WorkServiceImpl extends ServiceImpl<WorkMapper, WorkEntity> impleme
|
|
|
|
|
|
Long userId = iBaseService.getUserId();
|
|
|
log.info("userId: {}", userId);
|
|
|
- BaseRuntimeException.isHas(!userId.equals(entity.getCreatorId()), null, "当前无操作权限");
|
|
|
+// BaseRuntimeException.isHas(!userId.equals(entity.getCreatorId()), null, "当前无操作权限");
|
|
|
|
|
|
redisUtil.set(RedisConstant.WORK_ID + workId, entity, 30, TimeUnit.SECONDS);
|
|
|
|
|
@@ -218,7 +218,7 @@ public class WorkServiceImpl extends ServiceImpl<WorkMapper, WorkEntity> impleme
|
|
|
}
|
|
|
|
|
|
//是否该用户作品
|
|
|
- BaseRuntimeException.isHas(!iBaseService.getUserId().equals(entity.getCreatorId()), 3005, "当前无操作权限");
|
|
|
+// BaseRuntimeException.isHas(!iBaseService.getUserId().equals(entity.getCreatorId()), 3005, "当前无操作权限");
|
|
|
|
|
|
// 更新作品信息
|
|
|
boolean isEdit = editEntity(param, entity);
|