| New file | 
|  |  |  | 
|---|
|  |  |  | package com.dy.rtuMw.server.forMs; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.dy.common.queue.NodeObj; | 
|---|
|  |  |  | import com.dy.common.springUtil.SpringContextUtil; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.config.DingTalk; | 
|---|
|  |  |  | import com.dy.rtuMw.server.ServerProperties; | 
|---|
|  |  |  | import org.apache.logging.log4j.LogManager; | 
|---|
|  |  |  | import org.apache.logging.log4j.Logger; | 
|---|
|  |  |  | import org.springframework.core.env.Environment; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @Author: liurunyu | 
|---|
|  |  |  | * @Date: 2024/7/31 18:50 | 
|---|
|  |  |  | * @Description | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public class MsObj4Ding implements NodeObj { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private static Logger log = LogManager.getLogger(MsObj4Ding.class.getName()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String ms ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public MsObj4Ding(String ms){ | 
|---|
|  |  |  | this.ms = ms ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 自己处理自己 | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public boolean dealSelf(){ | 
|---|
|  |  |  | DingTalk dingTalk = SpringContextUtil.getBean(DingTalk.class) ; | 
|---|
|  |  |  | Environment env = SpringContextUtil.getApplicationContext().getEnvironment() ; | 
|---|
|  |  |  | dingTalk.sendMessage(ServerProperties.orgTag, env, ms); | 
|---|
|  |  |  | return true ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|