|
|
|
@ -31,6 +31,7 @@ import org.springblade.core.log.exception.ServiceException;
|
|
|
|
|
import org.springblade.core.tool.utils.CollectionUtil; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
|
import org.springblade.system.user.cache.UserCache; |
|
|
|
|
import org.springblade.system.user.entity.User; |
|
|
|
|
import org.springblade.system.user.feign.IUserClient; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@ -104,6 +105,12 @@ public class TaskJobService {
|
|
|
|
|
TaskUserEntity taskUserEntity = TaskUserEntity.builder().taskId(taskId).userId(planUserId) |
|
|
|
|
.claimStatus(ClaimStatusEnum.UN_COLLECT.getStatus()).build(); |
|
|
|
|
taskUserEntity.setTenantId(tenantId); |
|
|
|
|
User user = UserCache.getUser(planUserId); |
|
|
|
|
if (ObjectUtil.isNotEmpty(user)&&StringUtils.isNotBlank(user.getName())) { |
|
|
|
|
taskUserEntity.setUserName(user.getName()); |
|
|
|
|
}else { |
|
|
|
|
taskUserEntity.setUserName(""); |
|
|
|
|
} |
|
|
|
|
return taskUserEntity; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|