|
@@ -9,7 +9,6 @@ import com.usky.common.core.exception.BusinessException;
|
|
import com.usky.common.security.utils.SecurityUtils;
|
|
import com.usky.common.security.utils.SecurityUtils;
|
|
import com.usky.iot.domain.PmProject;
|
|
import com.usky.iot.domain.PmProject;
|
|
import com.usky.iot.domain.PmWorkContent;
|
|
import com.usky.iot.domain.PmWorkContent;
|
|
-import com.usky.iot.domain.PmWorkReport;
|
|
|
|
import com.usky.iot.mapper.PmProjectMapper;
|
|
import com.usky.iot.mapper.PmProjectMapper;
|
|
import com.usky.iot.mapper.PmWorkContentMapper;
|
|
import com.usky.iot.mapper.PmWorkContentMapper;
|
|
import com.usky.iot.service.PmProjectService;
|
|
import com.usky.iot.service.PmProjectService;
|
|
@@ -17,6 +16,7 @@ import com.usky.common.mybatis.core.AbstractCrudService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
+import java.time.LocalDate;
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
|
|
|
@@ -128,8 +128,8 @@ public class PmProjectServiceImpl extends AbstractCrudService<PmProjectMapper, P
|
|
.orderByDesc(PmProject::getCreateTime);
|
|
.orderByDesc(PmProject::getCreateTime);
|
|
if (projectAscription == 0) {
|
|
if (projectAscription == 0) {
|
|
lambdaQuery.and(q -> q.eq(PmProject::getProjectHead, SecurityUtils.getUserId())
|
|
lambdaQuery.and(q -> q.eq(PmProject::getProjectHead, SecurityUtils.getUserId())
|
|
- .or().apply("FIND_IN_SET('" + SecurityUtils.getUserId() + "', project_member) > 0")
|
|
|
|
- .or().eq(PmProject::getCreateBy, SecurityUtils.getUsername()));
|
|
|
|
|
|
+ .or().apply("FIND_IN_SET('" + SecurityUtils.getUserId() + "', project_member) > 0")
|
|
|
|
+ .or().eq(PmProject::getCreateBy, SecurityUtils.getUsername()));
|
|
} else if (projectAscription == 1) {
|
|
} else if (projectAscription == 1) {
|
|
lambdaQuery.eq(PmProject::getProjectHead, SecurityUtils.getUserId());
|
|
lambdaQuery.eq(PmProject::getProjectHead, SecurityUtils.getUserId());
|
|
} else if (projectAscription == 2) {
|
|
} else if (projectAscription == 2) {
|
|
@@ -176,7 +176,7 @@ public class PmProjectServiceImpl extends AbstractCrudService<PmProjectMapper, P
|
|
lambdaQuery.eq(PmProject::getTenantId, SecurityUtils.getTenantId())
|
|
lambdaQuery.eq(PmProject::getTenantId, SecurityUtils.getTenantId())
|
|
.and(q -> q.eq(PmProject::getProjectHead, SecurityUtils.getUserId())
|
|
.and(q -> q.eq(PmProject::getProjectHead, SecurityUtils.getUserId())
|
|
.or().apply("FIND_IN_SET('" + SecurityUtils.getUserId() + "', project_member) > 0")
|
|
.or().apply("FIND_IN_SET('" + SecurityUtils.getUserId() + "', project_member) > 0")
|
|
- .or().eq(PmProject::getCreateBy, SecurityUtils.getUsername()))
|
|
|
|
|
|
+ .or().eq(PmProject::getCreateBy, SecurityUtils.getUsername()))
|
|
.eq(PmProject::getDelFlag, 0);
|
|
.eq(PmProject::getDelFlag, 0);
|
|
Integer all = this.count(lambdaQuery);
|
|
Integer all = this.count(lambdaQuery);
|
|
|
|
|