没有别名
const extendPoint = await this.pointExtendRecordRepository.createQueryBuilder('per')
.select('per.*')
.innerJoin(PointActionConfig, 'pac', 'per.action_id = pac.id')
.where('per.user_id = :userId', { userId: userId })
.andWhere('per.effect_end > NOW()')
.andWhere('per.current_use_number < per.cycle_count_number')
.orderBy('per.effect_end', 'DESC')
.addOrderBy('pac.level')
.getRawMany();
带有别名
const result = await this.multiCategoryPromptInfo.createQueryBuilder('info')
.leftJoin('info.multiCategoryPromptRelation', 'relation', 'relation.categoryId = :categoryId', { categoryId: categoryId })
.getMany();
好吧查不到数据干。。。。