|
|
|
@ -29,6 +29,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
|
import com.zsw.base.R; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
|
@ -55,6 +56,7 @@ import static cn.iocoder.yudao.module.farm.enums.ErrorCodeConstants.*;
|
|
|
|
|
*/ |
|
|
|
|
@Service |
|
|
|
|
@Validated |
|
|
|
|
@Slf4j |
|
|
|
|
public class ProjectServiceImpl implements ProjectService { |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
@ -151,6 +153,10 @@ public class ProjectServiceImpl implements ProjectService {
|
|
|
|
|
queryWrapperX.eqIfPresent(ProjectDO::getCreator, getLoginUserId()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(pageDTO.getMyProject()) && pageDTO.getMyProject()){ |
|
|
|
|
//查看我参与的项目
|
|
|
|
|
queryWrapperX.last(" and JSON_CONTAINS(members, '"+ getLoginUserId()+"')"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
List<ProjectDO> list = projectMapper.selectList(queryWrapperX); |
|
|
|
|
if (ObjectUtil.isEmpty(list)){ |
|
|
|
|