fix(产品):添加原始需求公开接口
This commit is contained in:
parent
759922b3db
commit
99d58df966
|
|
@ -79,7 +79,7 @@ public class ProductUserReqInputVo {
|
|||
record.setProductRequirementId(pmsProductRequirement.getId());
|
||||
record.setType(ProductReqOperationType.CONTENT_MODIFY.getKey());
|
||||
record.setOperation(ProductContentModifyOperation.CREATE.getKey());
|
||||
record.setOperator(pmsProductRequirement.getCreateBy());
|
||||
record.setOperator(pmsProductRequirement.getCreateBy().isEmpty() ? pmsProductRequirement.getSourceUser() : pmsProductRequirement.getCreateBy());
|
||||
record.setOperatingTime(pmsProductRequirement.getCreateTime());
|
||||
return record;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,6 +56,8 @@ public interface IPmsProductService
|
|||
*/
|
||||
public int updatePmsProductChange(String productIdentifier);
|
||||
|
||||
int updatePmsProductChangeWithoutAuth(String productIdentifier);
|
||||
|
||||
/**
|
||||
* 批量删除产品
|
||||
*
|
||||
|
|
|
|||
|
|
@ -167,7 +167,7 @@ public class PmsProductRequirementServiceImpl implements IPmsProductRequirementS
|
|||
|
||||
pmsProductRequirement.setCreateAndUpdate(SecurityUtils.getUsername());
|
||||
|
||||
pmsProductService.updatePmsProductChange(pmsProductRequirement.getPmsProductIdentifier());
|
||||
pmsProductService.updatePmsProductChangeWithoutAuth(pmsProductRequirement.getPmsProductIdentifier());
|
||||
pmsProductRequirementMapper.insertPmsProductRequirement(pmsProductRequirement);
|
||||
pmsProductReqOperationRecordService.insertPmsProductReqOperationRecord(
|
||||
productUserReqInputVo.toPmsProductReqOperationRecord(pmsProductRequirement));
|
||||
|
|
|
|||
|
|
@ -223,6 +223,14 @@ public class PmsProductServiceImpl implements IPmsProductService
|
|||
return pmsProductMapper.updatePmsProduct(pmsProduct);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updatePmsProductChangeWithoutAuth(String productIdentifier) {
|
||||
PmsProduct pmsProduct = selectPmsProductByIdentifierWithoutAuth(productIdentifier);
|
||||
pmsProduct.setUpdateBy(SecurityUtils.getUsername());
|
||||
pmsProduct.setUpdateTime(DateUtils.getNowDate());
|
||||
return pmsProductMapper.updatePmsProduct(pmsProduct);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除产品
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue