Parcourir la source

续建项目 能关联的项目

tags/24080901
PoffyZhang il y a 1 an
Parent
révision
b6ab4fd2b2
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. +4
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ConstructionManage.java

+ 4
- 2
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/ConstructionManage.java Voir le fichier

@@ -135,11 +135,13 @@ public class ConstructionManage {
VUtils.isTrue(Objects.isNull(user)).throwMessage("获取登录用户失败!");
LambdaQueryWrapper<Project> query = ProjectHelper.projectQuery(req);
//建设中状态以后的 都是
query.gt(Project::getStatus, ProjectStatusEnum.UNDER_CONSTRUCTION.getCode());
query.and(q1 -> q1.gt(Project::getStatus, ProjectStatusEnum.UNDER_CONSTRUCTION.getCode())
.or(q2 -> q2.eq(Project::getStatus, ProjectStatusEnum.UNDER_CONSTRUCTION.getCode())
.isNotNull(Project::getContractAmount)));
query.eq(Project::getNewest, Boolean.TRUE);
//只能看自己单位的
query.eq(Project::getBuildOrgCode,user.getEmpPosUnitCode());
query.orderByAsc(Project::getTransactionTime);
query.orderByAsc(Project::getUpdateOn);
Page<Project> page = projectService.page(req.page(), query);

if (CollUtil.isEmpty(page.getRecords())) {


Chargement…
Annuler
Enregistrer