From 21a9aa320b3eeb072bcd7d3fa883587d57b6ccbb Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期五, 31 五月 2024 14:52:33 +0800
Subject: [PATCH] 日志指定表名,试卷实体类修改

---
 src/main/java/com/ycl/jxkg/service/impl/MessageServiceImpl.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/ycl/jxkg/service/impl/MessageServiceImpl.java b/src/main/java/com/ycl/jxkg/service/impl/MessageServiceImpl.java
index e2d3136..0b5f7db 100644
--- a/src/main/java/com/ycl/jxkg/service/impl/MessageServiceImpl.java
+++ b/src/main/java/com/ycl/jxkg/service/impl/MessageServiceImpl.java
@@ -55,7 +55,7 @@
     @Override
     @Transactional
     public void sendMessage(Message message, List<MessageUser> messageUsers) {
-        messageMapper.insertSelective(message);
+        messageMapper.insert(message);
         messageUsers.forEach(d -> d.setMessageId(message.getId()));
         messageUserMapper.inserts(messageUsers);
     }
@@ -63,12 +63,12 @@
     @Override
     @Transactional
     public void read(Integer id) {
-        MessageUser messageUser = messageUserMapper.selectByPrimaryKey(id);
+        MessageUser messageUser = messageUserMapper.selectById(id);
         if (messageUser.getReaded())
             return;
         messageUser.setReaded(true);
         messageUser.setReadTime(new Date());
-        messageUserMapper.updateByPrimaryKeySelective(messageUser);
+        messageUserMapper.updateById(messageUser);
         messageMapper.readAdd(messageUser.getMessageId());
     }
 
@@ -79,8 +79,8 @@
 
     @Override
     public Message messageDetail(Integer id) {
-        MessageUser messageUser = messageUserMapper.selectByPrimaryKey(id);
-        return messageMapper.selectByPrimaryKey(messageUser.getMessageId());
+        MessageUser messageUser = messageUserMapper.selectById(id);
+        return messageMapper.selectById(messageUser.getMessageId());
     }
 
 }

--
Gitblit v1.8.0