Selaa lähdekoodia

modify:

1. 终验列表查询修改;
tags/24090601
WendyYang 2 kuukautta sitten
vanhempi
commit
6cf87f2c3a
2 muutettua tiedostoa jossa 11 lisäystä ja 4 poistoa
  1. +2
    -4
      hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/FinalAcceptanceManage.java
  2. +9
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/req/ProjectListReq.java

+ 2
- 4
hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/FinalAcceptanceManage.java Näytä tiedosto

@@ -108,8 +108,7 @@ public class FinalAcceptanceManage {
*/
public FinalAcceptProgressStatisticsVO finalAcceptProgressStatistics(ProjectListReq req) {
UserInfoDetails user = LoginUserUtil.loginUserDetail();
String buildOrgCode = req.getBuildOrgCode();
req.setBuildOrgCode(null);
String buildOrgCode = req.clearBuildOrgCode();
Long buildOrgCodeNum = NumberUtil.parseLong(buildOrgCode, null);
UnitQueryState queryState = mhUnitQueryHelper.listCanViewUnitIds(buildOrgCodeNum, user);
if (!queryState.isState()) {
@@ -156,8 +155,7 @@ public class FinalAcceptanceManage {
*/
public PageVo<ProjectLibListItemVO> projectLibList(ProjectListReq req) {
UserInfoDetails user = LoginUserUtil.loginUserDetail();
String buildOrgCode = req.getBuildOrgCode();
req.setBuildOrgCode(null);
String buildOrgCode = req.clearBuildOrgCode();
Long buildOrgCodeNum = NumberUtil.parseLong(buildOrgCode, null);
UnitQueryState queryState = mhUnitQueryHelper.listCanViewUnitIds(buildOrgCodeNum, user);
if (!queryState.isState()) {


+ 9
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/model/req/ProjectListReq.java Näytä tiedosto

@@ -1,5 +1,6 @@
package com.hz.pm.api.projectlib.model.req;

import cn.hutool.core.util.StrUtil;
import com.hz.pm.api.common.enumeration.ExportOptionEnum;
import com.ningdatech.basic.model.PagePo;
import io.swagger.annotations.ApiModel;
@@ -130,4 +131,12 @@ public class ProjectListReq extends PagePo {
@ApiModelProperty("tab状态")
private Integer tabStatus;

public String clearBuildOrgCode() {
String tmpBuildOrgCode = this.getBuildOrgCode();
if (StrUtil.isNotBlank(tmpBuildOrgCode)) {
this.setBuildOrgCode(null);
}
return tmpBuildOrgCode;
}

}

Loading…
Peruuta
Tallenna