Merge pull request #8825 from ulleo/dev

fix(X-Pack): 修复数据填报表单管理-重命名可以重名的问题
This commit is contained in:
ulleo 2024-04-01 14:24:52 +08:00 committed by GitHub
commit b5f882ac72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -158,6 +158,10 @@ public class DataFillService {
Assert.notNull(dataFillForm.getId(), "id cannot be null");
DataFillFormWithBLOBs form = dataFillFormMapper.selectByPrimaryKey(dataFillForm.getId());
//todo 改变文件夹位置
checkName(dataFillForm.getId(), dataFillForm.getName(), form.getPid(), form.getLevel(), form.getNodeType(), DataFillConstants.OPT_TYPE_UPDATE);
dataFillForm.setUpdateTime(new Date());
dataFillFormMapper.updateByPrimaryKeySelective(dataFillForm);