From ae04c5d925b0094e1a1ba1f2ce0bf6da0a6fee04 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 22 一月 2026 17:27:55 +0800
Subject: [PATCH] 2026.1.22 1. 新增台账上传office文档功能; 2. 新增office文档存储原始文档名字功能
---
src/main/kotlin/cn/flightfeather/supervision/lightshare/service/Impl/NotificationServiceImpl.kt | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/Impl/NotificationServiceImpl.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/Impl/NotificationServiceImpl.kt
index fde3160..baffd61 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/Impl/NotificationServiceImpl.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/service/Impl/NotificationServiceImpl.kt
@@ -32,6 +32,7 @@
val noticeReadStateMapper: NoticeReadStateMapper,
val noticeTemplateMapper: NoticeTemplateMapper,
val userinfoMapper: UserinfoMapper,
+ val baseInfoMapper: BaseInfoMapper,
val meetingParticipantRepository: MeetingParticipantRepository,
val templateManager: TemplateManager,
) : NotificationService {
@@ -65,9 +66,10 @@
response: HttpServletResponse,
): List<NotificationVo> {
val userInfo = userinfoMapper.selectByPrimaryKey(userId) ?: return emptyList()
+ val baseInfo = baseInfoMapper.selectByPrimaryKey(userId)
val userTypeId = userInfo.usertypeid
val district = userInfo.extension1
- var districtCode = DistrictType.getCode(district)
+ var districtCode = DistrictType.getCode(district) ?: baseInfo?.biDistrictCode
var sceneTypeId = userInfo.extension2
when (userTypeId?.toInt()) {
@@ -162,9 +164,10 @@
override fun getUnReadNoticeNum(userId: String): Int {
val userInfo = userinfoMapper.selectByPrimaryKey(userId) ?: return 0
+ val baseInfo = baseInfoMapper.selectByPrimaryKey(userId)
val userTypeId = userInfo.usertypeid
val district = userInfo.extension1
- var districtCode = DistrictType.getCode(district)
+ var districtCode = DistrictType.getCode(district) ?: baseInfo?.biDistrictCode
var sceneTypeId = userInfo.extension2
when (userTypeId?.toInt()) {
--
Gitblit v1.9.3