定时任务发送人发送人名给固定值
This commit is contained in:
@ -122,7 +122,7 @@ public class BizSendMsgTemplateServiceImpl extends ServiceImpl<BizSendMsgTemplat
|
|||||||
//发送短信
|
//发送短信
|
||||||
result = msgService.sendMsg(msgVO);
|
result = msgService.sendMsg(msgVO);
|
||||||
//保存日志
|
//保存日志
|
||||||
savaLog(msgInfo, result, receiver, magContent);
|
savaLog(msgInfo, result, receiver, magContent, taskForm);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -132,10 +132,14 @@ public class BizSendMsgTemplateServiceImpl extends ServiceImpl<BizSendMsgTemplat
|
|||||||
* @param result
|
* @param result
|
||||||
* @param receiverVO
|
* @param receiverVO
|
||||||
*/
|
*/
|
||||||
public void savaLog(BizSendMsgInfo msgInfo, boolean result, BizReceiverVO receiverVO, String magContent) {
|
public void savaLog(BizSendMsgInfo msgInfo, boolean result, BizReceiverVO receiverVO, String magContent, String taskForm) {
|
||||||
//当前用户userId
|
//当前用户userId
|
||||||
String userId = cacheUserService.getCacheUser().getUserId();//"ex-wanghy623";
|
String userId = cacheUserService.getCacheUser().getUserId();//"ex-wanghy623";
|
||||||
String userName = cacheUserService.getCacheUser().getFullName();//"曹鹏";
|
String userName = cacheUserService.getCacheUser().getFullName();//"曹鹏";
|
||||||
|
if (StringUtils.equals("timing", taskForm)) {
|
||||||
|
userId = "system-timing-task";
|
||||||
|
userName = "系统定时任务";
|
||||||
|
}
|
||||||
BizSendMsgLog msgLog = new BizSendMsgLog();
|
BizSendMsgLog msgLog = new BizSendMsgLog();
|
||||||
String id = PropertyUtils.getSnowflakeId();
|
String id = PropertyUtils.getSnowflakeId();
|
||||||
msgLog.setId(id)
|
msgLog.setId(id)
|
||||||
|
Reference in New Issue
Block a user