|
@@ -9,6 +9,7 @@ import com.alibaba.fastjson.JSONObject; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
|
|
import com.google.common.collect.Lists; |
|
|
import com.google.common.collect.Maps; |
|
|
import com.google.common.collect.Maps; |
|
|
import com.ningdatech.basic.function.VUtils; |
|
|
import com.ningdatech.basic.function.VUtils; |
|
|
import com.ningdatech.basic.model.PageVo; |
|
|
import com.ningdatech.basic.model.PageVo; |
|
@@ -25,6 +26,8 @@ import com.ningdatech.pmapi.gov.model.req.ProjectPushReq; |
|
|
import com.ningdatech.pmapi.gov.model.vo.*; |
|
|
import com.ningdatech.pmapi.gov.model.vo.*; |
|
|
import com.ningdatech.pmapi.gov.service.*; |
|
|
import com.ningdatech.pmapi.gov.service.*; |
|
|
import com.ningdatech.pmapi.projectdeclared.utils.GenerateProjectCodeUtil; |
|
|
import com.ningdatech.pmapi.projectdeclared.utils.GenerateProjectCodeUtil; |
|
|
|
|
|
import com.ningdatech.pmapi.projectlib.enumeration.ProjectTypeEnum; |
|
|
|
|
|
import com.ningdatech.pmapi.projectlib.enumeration.ProjectTypeNewEnum; |
|
|
import com.ningdatech.pmapi.projectlib.model.req.ProjectListReq; |
|
|
import com.ningdatech.pmapi.projectlib.model.req.ProjectListReq; |
|
|
import com.ningdatech.pmapi.provincial.manage.ProvincialManage; |
|
|
import com.ningdatech.pmapi.provincial.manage.ProvincialManage; |
|
|
import com.ningdatech.pmapi.sys.model.entity.Role; |
|
|
import com.ningdatech.pmapi.sys.model.entity.Role; |
|
@@ -134,6 +137,13 @@ public class GovProjectCollectionManage { |
|
|
.eq(StringUtils.isNotBlank(req.getRegionCode()),GovBizProjectBaseinfo::getBaseAreaCode,req.getRegionCode() + BizConst.NINE_AREA_CODE_LAST) |
|
|
.eq(StringUtils.isNotBlank(req.getRegionCode()),GovBizProjectBaseinfo::getBaseAreaCode,req.getRegionCode() + BizConst.NINE_AREA_CODE_LAST) |
|
|
.gt(Objects.nonNull(req.getCreateOnMin()),GovBizProjectBaseinfo::getTongTime,req.getCreateOnMin()) |
|
|
.gt(Objects.nonNull(req.getCreateOnMin()),GovBizProjectBaseinfo::getTongTime,req.getCreateOnMin()) |
|
|
.le(Objects.nonNull(req.getCreateOnMax()),GovBizProjectBaseinfo::getTongTime,req.getCreateOnMax()) |
|
|
.le(Objects.nonNull(req.getCreateOnMax()),GovBizProjectBaseinfo::getTongTime,req.getCreateOnMax()) |
|
|
|
|
|
.eq(StringUtils.isNotBlank(req.getProjectType()),GovBizProjectBaseinfo::getBaseProjType,req.getProjectType()) |
|
|
|
|
|
.in(Objects.nonNull(req.getOldProjectType()) && ProjectTypeEnum.BUILD.getCode().equals(req.getOldProjectType()), |
|
|
|
|
|
GovBizProjectBaseinfo::getBaseProjType, Lists.newArrayList(ProjectTypeNewEnum.FIRST_BUILD.getCode(), |
|
|
|
|
|
ProjectTypeNewEnum.SJ_BUILD.getCode(),ProjectTypeNewEnum.SZ_BUILD.getCode())) |
|
|
|
|
|
.in(Objects.nonNull(req.getOldProjectType()) && ProjectTypeEnum.DEV_OPS.getCode().equals(req.getOldProjectType()), |
|
|
|
|
|
GovBizProjectBaseinfo::getBaseProjType, Lists.newArrayList(ProjectTypeNewEnum.NEW_OPERA.getCode(), |
|
|
|
|
|
ProjectTypeNewEnum.XU_OPERA.getCode())) |
|
|
.eq(GovBizProjectBaseinfo::getDeleted,Boolean.FALSE) |
|
|
.eq(GovBizProjectBaseinfo::getDeleted,Boolean.FALSE) |
|
|
.orderByDesc(GovBizProjectBaseinfo::getBizTime); |
|
|
.orderByDesc(GovBizProjectBaseinfo::getBizTime); |
|
|
// permissions(wrapper); |
|
|
// permissions(wrapper); |
|
@@ -191,6 +201,13 @@ public class GovProjectCollectionManage { |
|
|
.eq(StringUtils.isNotBlank(req.getRegionCode()),GovBizProjectDraft::getBaseAreaCode,req.getRegionCode() + BizConst.NINE_AREA_CODE_LAST) |
|
|
.eq(StringUtils.isNotBlank(req.getRegionCode()),GovBizProjectDraft::getBaseAreaCode,req.getRegionCode() + BizConst.NINE_AREA_CODE_LAST) |
|
|
.gt(Objects.nonNull(req.getCreateOnMin()),GovBizProjectDraft::getTongTime,req.getCreateOnMin()) |
|
|
.gt(Objects.nonNull(req.getCreateOnMin()),GovBizProjectDraft::getTongTime,req.getCreateOnMin()) |
|
|
.le(Objects.nonNull(req.getCreateOnMax()),GovBizProjectDraft::getTongTime,req.getCreateOnMax()) |
|
|
.le(Objects.nonNull(req.getCreateOnMax()),GovBizProjectDraft::getTongTime,req.getCreateOnMax()) |
|
|
|
|
|
.eq(StringUtils.isNotBlank(req.getProjectType()),GovBizProjectDraft::getBaseProjType,req.getProjectType()) |
|
|
|
|
|
.in(Objects.nonNull(req.getOldProjectType()) && ProjectTypeEnum.BUILD.getCode().equals(req.getOldProjectType()), |
|
|
|
|
|
GovBizProjectDraft::getBaseProjType, Lists.newArrayList(ProjectTypeNewEnum.FIRST_BUILD.getCode(), |
|
|
|
|
|
ProjectTypeNewEnum.SJ_BUILD.getCode(),ProjectTypeNewEnum.SZ_BUILD.getCode())) |
|
|
|
|
|
.in(Objects.nonNull(req.getOldProjectType()) && ProjectTypeEnum.DEV_OPS.getCode().equals(req.getOldProjectType()), |
|
|
|
|
|
GovBizProjectDraft::getBaseProjType, Lists.newArrayList(ProjectTypeNewEnum.NEW_OPERA.getCode(), |
|
|
|
|
|
ProjectTypeNewEnum.XU_OPERA.getCode())) |
|
|
.eq(GovBizProjectDraft::getDeleted,Boolean.FALSE) |
|
|
.eq(GovBizProjectDraft::getDeleted,Boolean.FALSE) |
|
|
.eq(GovBizProjectDraft::getCreateId,user.getUserId()) |
|
|
.eq(GovBizProjectDraft::getCreateId,user.getUserId()) |
|
|
.orderByDesc(GovBizProjectDraft::getBizTime); |
|
|
.orderByDesc(GovBizProjectDraft::getBizTime); |
|
|