Merge branch 'master' into docker_package

This commit is contained in:
wangliwen 2022-07-21 16:00:20 +08:00
commit de73c653b0
3 changed files with 9 additions and 13 deletions

View File

@ -209,8 +209,6 @@ public class ActTaskService extends BaseServiceImpl {
for (Task task : list) {
TaskDTO dto = new TaskDTO();
this.convertTaskInfo(task, dto);
//Optional<SysUserEntity> sysUserEntity = Optional.ofNullable(sysUserService.selectById(dto.getUserId()));
//dto.setUserName(sysUserEntity.get().getRealName());
Map<String, Object> processVariable = new LinkedHashMap<>();
if (dto.getBusinessKey().startsWith("{") || dto.getBusinessKey().startsWith("[")) { // 为json内容 (特殊处理批量)

View File

@ -31,6 +31,7 @@ import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
@ -141,16 +142,14 @@ public class SysNoticeServiceImpl extends CrudServiceImpl<SysNoticeDao, SysNotic
//全部用户
if (notice.getReceiverType() == ReceiverTypeEnum.ALL.value()) {
executor.execute(() -> {
CompletableFuture.runAsync(() -> {
//发送给全部用户
sendAllUser(notice);
});
executor.execute(() -> {
}, executor).thenRunAsync(() -> {
//通过WebSocket提示全部用户有新通知
MessageData<String> message = new MessageData<String>().msg(notice.getTitle());
webSocketServer.sendMessageAll(message);
});
}, executor);
} else { //选中用户
List<Long> userIdList = new ArrayList<>();
@ -167,16 +166,13 @@ public class SysNoticeServiceImpl extends CrudServiceImpl<SysNoticeDao, SysNotic
}
List<Long> finalUserIdList = userIdList;
executor.execute(() -> {
//发送给选中用户
CompletableFuture.runAsync(() -> {
sendUser(notice, finalUserIdList);
});
executor.execute(() -> {
}, executor).thenRunAsync(() -> {
//通过WebSocket提示选中用户有新通知
MessageData<String> message = new MessageData<String>().msg(notice.getTitle());
webSocketServer.sendMessage(finalUserIdList, message);
});
}, executor);
}
}

View File

@ -791,6 +791,7 @@
WHERE 1 = 1
AND del_flag = 0
AND dept_id = #{deptId}
LIMIT 30
</select>
<select id="selectDeptCountList" resultType="java.util.Map">
@ -857,6 +858,7 @@
AND su.id = taa.user_id
AND taa.resource_id = tdr.id
AND su.dept_id = #{deptId}
LIMIT 30
</select>
<select id="selectApplyDeptCountList" resultType="java.util.Map">