Search in sources :

Example 6 with OptAttachment

use of com.paascloud.provider.model.domain.OptAttachment in project paascloud-master by paascloud.

the class OptAttachmentServiceImpl method getById.

@Override
public OptAttachment getById(Long attachmentId) {
    Preconditions.checkArgument(attachmentId != null, "文件流水号不能为空");
    OptAttachment optAttachment = optAttachmentMapper.selectByPrimaryKey(attachmentId);
    if (PublicUtil.isEmpty(optAttachment)) {
        throw new OpcBizException(ErrorCodeEnum.OPC10040008, attachmentId);
    }
    return optAttachment;
}
Also used : OptAttachment(com.paascloud.provider.model.domain.OptAttachment) OpcBizException(com.paascloud.provider.exceptions.OpcBizException)

Aggregations

OptAttachment (com.paascloud.provider.model.domain.OptAttachment)6 LoginAuthDto (com.paascloud.base.dto.LoginAuthDto)1 OpcBizException (com.paascloud.provider.exceptions.OpcBizException)1 Transactional (org.springframework.transaction.annotation.Transactional)1