Search in sources :

Example 1 with BatchResourceVO

use of com.dtstack.taier.develop.dto.devlop.BatchResourceVO in project Taier by DTStack.

the class BatchResourceService method getResourceById.

/**
 * 获取资源详情
 */
public BatchResourceVO getResourceById(long resourceId) {
    BatchResource batchResource = this.getResource(resourceId);
    if (Objects.nonNull(batchResource)) {
        BatchResourceVO vo = BatchResourceVO.toVO(batchResource);
        vo.setCreateUser(userService.getById(batchResource.getCreateUserId()));
        // 是否是该项目成员
        return vo;
    }
    return null;
}
Also used : BatchResourceVO(com.dtstack.taier.develop.dto.devlop.BatchResourceVO) BatchResource(com.dtstack.taier.dao.domain.BatchResource)

Aggregations

BatchResource (com.dtstack.taier.dao.domain.BatchResource)1 BatchResourceVO (com.dtstack.taier.develop.dto.devlop.BatchResourceVO)1