v3.4.6
This commit is contained in:
@@ -61,7 +61,9 @@ public class FlowTaskMsgUtil
|
||||
//默认消息
|
||||
if (msgConfig.on == 3)
|
||||
{
|
||||
await _sendMessageService.SendMessageDefult(enCode, users, flowTaskParamter.flowTaskEntity.FullName, bodyDic);
|
||||
var crUser =await _usersService.GetUserName(flowTaskParamter.flowTaskEntity.CreatorUserId, false);
|
||||
var flowName = _flowTaskRepository.GetFlowTemplateJsonInfo(x => x.Id == flowTaskParamter.flowTaskEntity.FlowId).FullName;
|
||||
await _sendMessageService.SendMessageDefult(enCode, users, crUser, flowName, bodyDic);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -162,8 +164,7 @@ public class FlowTaskMsgUtil
|
||||
{
|
||||
foreach (var item in flowTaskOperatorEntities)
|
||||
{
|
||||
var value = new
|
||||
{
|
||||
var value = new {
|
||||
enCode = flowTaskParamter.flowTaskEntity.FlowCode,
|
||||
flowId = flowTaskParamter.flowTaskEntity.FlowId,
|
||||
status = type == 1 ? 0 : 1,
|
||||
@@ -183,8 +184,7 @@ public class FlowTaskMsgUtil
|
||||
}
|
||||
else
|
||||
{
|
||||
var value = new
|
||||
{
|
||||
var value = new {
|
||||
enCode = flowTaskParamter.flowTaskEntity.FlowCode,
|
||||
flowId = flowTaskParamter.flowTaskEntity.FlowId,
|
||||
status = type == 1 ? 0 : 1,
|
||||
@@ -214,5 +214,16 @@ public class FlowTaskMsgUtil
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 委托消息通知.
|
||||
/// </summary>
|
||||
/// <param name="delegateType">委托类型:发起,审批.</param>
|
||||
/// <param name="ToUserId">通知人员.</param>
|
||||
/// <param name="flowName">流程名.</param>
|
||||
/// <returns></returns>
|
||||
public async Task SendDelegateMsg(string delegateType, string ToUserId, string flowName)
|
||||
{
|
||||
await _sendMessageService.SendMessageDelegate(delegateType, ToUserId, flowName);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user