mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 12:07:42 +00:00
[Fix] cannot save schema-mapping and semantic-S2SQL modification. (#2210)
This commit is contained in:
@@ -91,6 +91,12 @@ public class MemoryServiceImpl implements MemoryService, CommandLineRunner {
|
||||
updateWrapper.set(ChatMemoryDO::getHumanReviewCmt,
|
||||
chatMemoryUpdateReq.getHumanReviewCmt());
|
||||
}
|
||||
if (Objects.nonNull(chatMemoryUpdateReq.getDbSchema())) {
|
||||
updateWrapper.set(ChatMemoryDO::getDbSchema, chatMemoryUpdateReq.getDbSchema());
|
||||
}
|
||||
if (Objects.nonNull(chatMemoryUpdateReq.getS2sql())) {
|
||||
updateWrapper.set(ChatMemoryDO::getS2sql, chatMemoryUpdateReq.getS2sql());
|
||||
}
|
||||
updateWrapper.set(ChatMemoryDO::getUpdatedAt, new Date());
|
||||
updateWrapper.set(ChatMemoryDO::getUpdatedBy, user.getName());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user