Parcourir la source

modify:

1. 项目立项增加年度查询;
tags/24091901
WendyYang il y a 1 mois
Parent
révision
0918d6c06c
4 fichiers modifiés avec 10 ajouts et 1 suppressions
  1. +1
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/PurchaseManage.java
  2. +5
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/model/req/PurchaseAdaptionListReq.java
  3. +1
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/DeclaredRecordManage.java
  4. +3
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/req/DeclaredProjectListReq.java

+ 1
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/PurchaseManage.java Voir le fichier

@@ -727,6 +727,7 @@ public class PurchaseManage {
.select(Project::getId)
.ne(Project::getStage, ProjectStatus.STOPPED.getCode())
.eq(Project::getNewest, Boolean.TRUE)
.eq(req.getProjectYear() != null, Project::getProjectYear, req.getProjectYear())
.like(StrUtil.isNotBlank(req.getProjectName()), Project::getProjectName, req.getProjectName())
.like(StrUtil.isNotBlank(req.getBuildOrgName()), Project::getBuildOrgName, req.getBuildOrgName());
if (req.getBuildOrgCode() != null) {


+ 5
- 1
hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/model/req/PurchaseAdaptionListReq.java Voir le fichier

@@ -21,6 +21,9 @@ import java.time.LocalDateTime;
@EqualsAndHashCode(callSuper = true)
public class PurchaseAdaptionListReq extends PagePo {

@ApiModelProperty("项目年份")
private Integer projectYear;

private String bidName;

@ApiModelProperty("建设单位")
@@ -46,7 +49,8 @@ public class PurchaseAdaptionListReq extends PagePo {
public boolean hasProjectQuery() {
return StrUtil.isNotBlank(this.buildOrgName)
|| StrUtil.isNotBlank(this.projectName)
|| this.buildOrgCode != null;
|| this.buildOrgCode != null
|| this.projectYear != null;
}

}

+ 1
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/DeclaredRecordManage.java Voir le fichier

@@ -188,6 +188,7 @@ public class DeclaredRecordManage {

private LambdaQueryWrapper<Project> buildDeclaredRecordQuery(DeclaredProjectListReq req) {
LambdaQueryWrapper<Project> query = Wrappers.lambdaQuery(Project.class)
.eq(req.getProjectYear() != null, Project::getProjectYear, req.getProjectYear())
.like(StrUtil.isNotBlank(req.getProjectName()), Project::getProjectName, req.getProjectName())
.like(StrUtil.isNotBlank(req.getDeclaredUnit()), Project::getBuildOrgName, req.getDeclaredUnit())
.eq(req.getUnitStrip() != null, Project::getUnitStrip, req.getUnitStrip())


+ 3
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/req/DeclaredProjectListReq.java Voir le fichier

@@ -19,6 +19,9 @@ import java.time.LocalDate;
@EqualsAndHashCode(callSuper = true)
public class DeclaredProjectListReq extends PagePo {

@ApiModelProperty("项目年份")
private Integer projectYear;

@ApiModelProperty("项目名称")
private String projectName;



Chargement…
Annuler
Enregistrer