Merge remote-tracking branch 'origin/jihan_0920_护理服务、商城、积分兑换、在线问诊功能分支' into jihan_0920_护理服务、商城、积分兑换、在线问诊功能分支
This commit is contained in:
commit
5171209fb4
@ -76,7 +76,7 @@ public interface ChatRecordMapper {
|
||||
*/
|
||||
int deleteChatRecordByIds(Long[] ids);
|
||||
|
||||
Integer updateReadStatus(MarkReadDto markReadDto);
|
||||
Integer updateReadStatus(ChatRecord chatRecord);
|
||||
|
||||
int deleteMegs(@Param("ids") List<Long> ids);
|
||||
|
||||
|
||||
@ -125,7 +125,7 @@ public class ChatRecordServiceImpl implements IChatRecordService {
|
||||
//更新已读时间
|
||||
chatRecord.setReadTime(DateUtils.getNowDate());
|
||||
chatRecord.setReadStatus("1");
|
||||
return chatRecordMapper.updateChatRecord(chatRecord);
|
||||
return chatRecordMapper.updateReadStatus(chatRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -372,17 +372,17 @@
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="updateReadStatus" parameterType="com.xinelu.manage.dto.chatrecord.MarkReadDto">
|
||||
<update id="updateReadStatus" parameterType="ChatRecord">
|
||||
update chat_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="readStatus != null and readStatus != ''">
|
||||
read_status = =#{readStatus},
|
||||
read_status = #{readStatus},
|
||||
</if>
|
||||
<if test="readTime != null">
|
||||
read_time = #{readTime},
|
||||
</if>
|
||||
</trim>
|
||||
where del_flag = 0 and read_status = '0' and recipient_id = #{recipientId}
|
||||
where del_flag = 0 and read_status = '0' and consultation_id = #{consultationId} and recipient_id = #{recipientId}
|
||||
</update>
|
||||
|
||||
<!-- 更新通知 -->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user