update 补充发送钉钉消息时的参数
This commit is contained in:
+4
@@ -19,6 +19,10 @@ import lombok.experimental.Accessors;
|
||||
public class HiworkDingDingMsg {
|
||||
@ApiModelProperty(value = "异构系统标识")
|
||||
private String sysCode;
|
||||
@ApiModelProperty(value = "服务号消息")
|
||||
private String noticeServiceCode;
|
||||
@ApiModelProperty(value = "消息推送类型 ding | message | jpush")
|
||||
private String noticePushType;
|
||||
@ApiModelProperty(value = "发送人员Id")
|
||||
private String useridList;
|
||||
@ApiModelProperty(value = "发送部门id")
|
||||
|
||||
+4
@@ -57,6 +57,10 @@ public class HiworkMsgServiceImpl implements IHiworkMsgService {
|
||||
HiworkDingDingMsg hiworkDingDingMsg = new HiworkDingDingMsg();
|
||||
// 异步系统标识
|
||||
hiworkDingDingMsg.setSysCode(HiworkPostUtil.getSysCode());
|
||||
//服务号消息
|
||||
hiworkDingDingMsg.setNoticeServiceCode(HiworkPostUtil.getServiceCode());
|
||||
//消息推送类型
|
||||
hiworkDingDingMsg.setNoticePushType(HiworkPostUtil.Ding);
|
||||
|
||||
if (CollectionUtils.isEmpty(senderIdList)) {
|
||||
throw new JeroBootException(ResultCommon.EMPTY_COMMON, "senderIdList");
|
||||
|
||||
+12
@@ -45,6 +45,18 @@ public class HiworkPostUtil {
|
||||
public static String getSysCode() {
|
||||
return sysCode;
|
||||
}
|
||||
// 异构系统标识
|
||||
private static String serviceCode;
|
||||
|
||||
@Value("${hiwork.serviceCode}")
|
||||
public void setServiceCode(String serviceCode) {
|
||||
HiworkPostUtil.serviceCode = serviceCode;
|
||||
}
|
||||
|
||||
public static String getServiceCode() {
|
||||
return serviceCode;
|
||||
}
|
||||
public static String Ding = "ding";
|
||||
|
||||
/**
|
||||
* @Author: liao
|
||||
|
||||
Reference in New Issue
Block a user