| | |
| | | package cn.flightfeather.supervision.lightshare.service.Impl |
| | | |
| | | import cn.flightfeather.supervision.common.net.WXHttpService |
| | | import cn.flightfeather.supervision.common.wx.MessageWxVo |
| | | import cn.flightfeather.supervision.common.wx.TemplateManager |
| | | import cn.flightfeather.supervision.common.wx.WxTokenManager |
| | | 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.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.alibaba.fastjson.JSON |
| | | import com.flightfeather.taizhang.model.enumeration.NotificationType |
| | | import com.flightfeather.taizhang.model.enumeration.WorkSubType |
| | | import com.github.pagehelper.PageHelper |
| | |
| | | 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> { |
| | |
| | | } |
| | | 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" |
| | | } |
| | | } |