From 23bd719cebe5feeff4e48fde925b0b39755eea93 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期二, 15 十一月 2022 10:59:50 +0800 Subject: [PATCH] 2022.11.15 --- src/main/kotlin/cn/flightfeather/supervision/lightshare/service/Impl/NotificationServiceImpl.kt | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 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 78a5550..b74776f 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 @@ -1,19 +1,17 @@ package cn.flightfeather.supervision.lightshare.service.Impl +import cn.flightfeather.supervision.common.wx.TemplateManager import cn.flightfeather.supervision.domain.entity.* import cn.flightfeather.supervision.domain.enumeration.DistrictType import cn.flightfeather.supervision.domain.enumeration.UserType -import cn.flightfeather.supervision.domain.mapper.NoticeMapper -import cn.flightfeather.supervision.domain.mapper.NoticeReadStateMapper -import cn.flightfeather.supervision.domain.mapper.NotificationMapper -import cn.flightfeather.supervision.domain.mapper.UserinfoMapper import cn.flightfeather.supervision.lightshare.repository.MeetingParticipantRepository import cn.flightfeather.supervision.lightshare.service.NotificationService import cn.flightfeather.supervision.lightshare.vo.NoticeReadStateVo import cn.flightfeather.supervision.lightshare.vo.NotificationVo -import cn.flightfeather.supervision.push.PushService +import cn.flightfeather.supervision.common.push.PushService import cn.flightfeather.supervision.domain.enumeration.ParticipantType import cn.flightfeather.supervision.domain.enumeration.SceneType +import cn.flightfeather.supervision.domain.mapper.* import cn.flightfeather.supervision.infrastructure.utils.UUIDGenerator import com.flightfeather.taizhang.model.enumeration.NotificationType import com.flightfeather.taizhang.model.enumeration.WorkSubType @@ -31,7 +29,8 @@ val noticeMapper: NoticeMapper, val noticeReadStateMapper: NoticeReadStateMapper, val userinfoMapper: UserinfoMapper, - val meetingParticipantRepository: MeetingParticipantRepository + val meetingParticipantRepository: MeetingParticipantRepository, + val templateManager: TemplateManager ) : NotificationService { override fun getNotificationUnRead(userId: String, page: Int, per_page: Int, response: HttpServletResponse): List<NotificationVo> { @@ -288,4 +287,9 @@ } return noticeMapper.insert(notice) == 1 } + + override fun pushMsgWx(templateId: Int): String { + val res = templateManager.sendMsg(templateId, "otZkc5VRlwauEMPqMluQYdVa4zuE", listOf("鍙拌处涓婁紶", "2022骞�10鏈�10鏃�", "3", "璇烽噸鐐瑰叧娉ㄧ幇鍦鸿嚜瀵绘煡閮ㄥ垎")) + return if (res) "success" else "fail" + } } \ No newline at end of file -- Gitblit v1.9.3