|
@@ -564,6 +564,7 @@ namespace OASystem.API.Controllers
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -600,7 +601,31 @@ namespace OASystem.API.Controllers
|
|
|
if (dto.Status == 1)
|
|
|
{
|
|
|
diId = groupData.Data;
|
|
|
+
|
|
|
await GeneralMethod.PostGroupRateAddInit(dto.UserId, diId);
|
|
|
+
|
|
|
+
|
|
|
+ await GeneralMethod.PostGroupAuthAddInit(dto.UserId, diId);
|
|
|
+
|
|
|
+
|
|
|
+ List<int> _managerIds = new List<int>() { 22, 32 };
|
|
|
+ var userIds = _usersRep._sqlSugar.Queryable<Sys_Users>().Where(it => it.IsDel == 0 && _managerIds.Contains(it.JobPostId)).Select(it => it.Id).ToList();
|
|
|
+ if (userIds.Count > 0)
|
|
|
+ {
|
|
|
+ userIds.Add(208);
|
|
|
+
|
|
|
+ GroupStepForDelegation.CreateWorkStep(diId);
|
|
|
+
|
|
|
+ string groupName = dto.TeamName;
|
|
|
+ string createGroupUser = string.Empty;
|
|
|
+
|
|
|
+ var userInfo = _usersRep._sqlSugar.Queryable<Sys_Users>().Where(it => it.IsDel == 0 && it.Id == dto.UserId).First();
|
|
|
+ if (userInfo != null) createGroupUser = userInfo.CnName;
|
|
|
+
|
|
|
+ string title = $"新建团组";
|
|
|
+ string content = $"团组[{groupName}(创建人:{createGroupUser})]创建成功,请前往页面进行下一步操作!";
|
|
|
+ await GeneralMethod.MessageIssueAndNotification(MessageTypeEnum.GroupBusinessOperations, title, content, userIds, diId);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
@@ -632,53 +657,6 @@ namespace OASystem.API.Controllers
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- [HttpPost]
|
|
|
- [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
- public async Task<IActionResult> PostGroupAuthAddInit(int userId, int diId)
|
|
|
- {
|
|
|
- try
|
|
|
- {
|
|
|
- GeneralMethod.PostGroupAuthAddInit(userId, diId);
|
|
|
-
|
|
|
- return Ok(JsonView(true));
|
|
|
- }
|
|
|
- catch (Exception ex)
|
|
|
- {
|
|
|
-
|
|
|
- Logs(ex.Message);
|
|
|
- return Ok(JsonView(false, ex.Message));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- [HttpPost]
|
|
|
- [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
- public async Task<IActionResult> GroupOperation11(int userId, int diId)
|
|
|
- {
|
|
|
- try
|
|
|
- {
|
|
|
- GeneralMethod.PostGroupRateAddInit(userId, diId);
|
|
|
-
|
|
|
- return Ok(JsonView(true));
|
|
|
- }
|
|
|
- catch (Exception ex)
|
|
|
- {
|
|
|
-
|
|
|
- Logs(ex.Message);
|
|
|
- return Ok(JsonView(false, ex.Message));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
@@ -1901,6 +1879,7 @@ namespace OASystem.API.Controllers
|
|
|
throw;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
|
|
|
|
|
|
|