fix(产品):添加原始需求公开接口

This commit is contained in:
wanjia 2025-03-26 10:32:13 +08:00
parent 759922b3db
commit 99d58df966
4 changed files with 12 additions and 2 deletions

View File

@ -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;
}

View File

@ -56,6 +56,8 @@ public interface IPmsProductService
*/
public int updatePmsProductChange(String productIdentifier);
int updatePmsProductChangeWithoutAuth(String productIdentifier);
/**
* 批量删除产品
*

View File

@ -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));

View File

@ -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);
}
/**
* 批量删除产品
*