feat(项目管理产品需求重构): 完善产品中的需求规格功能开发
修复:更新需求规格时,无法正确更新模块 关联Issue:https://pm.gitlink.org.cn/Gitlink/projects/228/bug/124019 Signed-off-by: OTTO <731554297@qq.com>
This commit is contained in:
parent
e2a592a799
commit
16c14e9c44
|
|
@ -1,6 +1,7 @@
|
|||
package com.microservices.pms.product.domain.vo;
|
||||
|
||||
import com.microservices.common.core.utils.StringUtils;
|
||||
import com.microservices.common.core.utils.bean.BeanUtils;
|
||||
import com.microservices.pms.product.domain.PmsProductReqOperationRecord;
|
||||
import com.microservices.pms.product.domain.PmsProductRequirement;
|
||||
import com.microservices.pms.product.domain.enums.ProductContentModifyOperation;
|
||||
|
|
@ -56,4 +57,10 @@ public class ProductReqSpecsChangeVo {
|
|||
}
|
||||
return this.getFileIdentifiers() != null && !this.getFileIdentifiers().equals(oldPmsProductRequirement.getFileIdentifiers());
|
||||
}
|
||||
|
||||
public PmsProductRequirement toPmsProductRequirement() {
|
||||
PmsProductRequirement target = new PmsProductRequirement();
|
||||
BeanUtils.copyProperties(this, target);
|
||||
return target;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,11 +28,6 @@ public class ProductReqSpecsUpdateVo extends ProductReqSpecsChangeVo {
|
|||
@ApiModelProperty(value = "关联产品计划ID")
|
||||
private Long pmsProductPlanId;
|
||||
|
||||
public PmsProductRequirement toPmsProductRequirement() {
|
||||
PmsProductRequirement target = new PmsProductRequirement();
|
||||
BeanUtils.copyProperties(this, target);
|
||||
return target;
|
||||
}
|
||||
|
||||
public PmsProductReqOperationRecord toPmsProductReqOperationRecord(PmsProductRequirement pmsProductRequirement) {
|
||||
PmsProductReqOperationRecord record = new PmsProductReqOperationRecord();
|
||||
|
|
@ -43,4 +38,10 @@ public class ProductReqSpecsUpdateVo extends ProductReqSpecsChangeVo {
|
|||
record.setOperatingTime(pmsProductRequirement.getUpdateTime());
|
||||
return record;
|
||||
}
|
||||
|
||||
public PmsProductRequirement toPmsProductRequirement() {
|
||||
PmsProductRequirement target = super.toPmsProductRequirement();
|
||||
BeanUtils.copyProperties(this, target);
|
||||
return target;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue