fix(product-model): 修复指标名称唯一性校验使用错误字段
- 将参数校验中指标名称从 indexName 修改为 newIndexName - 避免校验时误判导致无法正确验证新名称 - 确保新增或修改模型参数时名称唯一性检查准确生效
This commit is contained in:
parent
db29185014
commit
6f8aac9caa
|
|
@ -379,7 +379,7 @@ public class ProductModelController extends ControllerBase {
|
|||
&& productModelParamsDataService.lambdaQuery()
|
||||
.eq(ProductModelParamsData::getParamsId, request.getModelParamsId())
|
||||
.eq(ProductModelParamsData::getParentId, 0)
|
||||
.eq(ProductModelParamsData::getName, request.getIndexName())
|
||||
.eq(ProductModelParamsData::getName, request.getNewIndexName())
|
||||
.exists()
|
||||
).throwMessage("指标名称已存在");
|
||||
if (Objects.equals(info.getState(), PublishState.Published.getState())) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue