feat(项目管理产品需求重构): 完善产品中的需求规格功能开发

需规变更评审通过时应取消项目计划不允许修改的限制条件

Signed-off-by: OTTO <731554297@qq.com>
This commit is contained in:
OTTO 2024-12-11 16:04:42 +08:00
parent 87de8b7f90
commit cd68826944
2 changed files with 7 additions and 0 deletions

View File

@ -335,6 +335,7 @@ public class PmsProductRequirementServiceImpl implements IPmsProductRequirementS
issue.setDescription(reqSpecs.getContent());
issue.setAttachmentIds(forgeFileIdentifierList);
issue.setPmProjectId(fromReqSpecs.getPmsProjectId());
issue.setIsProductReqSpecsChange(true);
pmsProjectIssuesService.updatePmsProjectIssues(fromReqSpecs.getProjectReqId(), issue);
}
// 变更中的需求规格通过评审后设置状态为原需规状态

View File

@ -73,7 +73,13 @@ public class PmsProjectIssuesInputVo {
@ApiModelProperty(value = "关联工作项id")
private Long linkAbleId;
@ApiModelProperty(value = "是否为需规调整", hidden = true)
private Boolean isProductReqSpecsChange = false;
public boolean isChangeContent(JSONObject issueJson) {
if (isProductReqSpecsChange) {
return false;
}
if (StringUtils.isNotEmpty(subject) && !issueJson.getString("subject").equals(subject)) {
return true;
}