BUGFIX: 上传元素删除;
This commit is contained in:
@@ -2617,9 +2617,11 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Boolean toProductImageElementDelete(Long id) {
|
public Boolean toProductImageElementDelete(Long id) {
|
||||||
ToProductElement toProductElement = toProductElementMapper.selectById(id);
|
UpdateWrapper<ToProductElement> updateWrapper = new UpdateWrapper<>();
|
||||||
toProductElement.setProjectId(null);
|
updateWrapper
|
||||||
toProductElementMapper.updateById(toProductElement);
|
.set("project_id", null) // 显式设置 NULL
|
||||||
|
.eq("id", id); // 指定条件
|
||||||
|
toProductElementMapper.update(null, updateWrapper);
|
||||||
return Boolean.TRUE;
|
return Boolean.TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user