2025-09-30
消息记录查询
This commit is contained in:
@@ -172,4 +172,31 @@ export class ProgramGroupService {
|
||||
}
|
||||
return list
|
||||
}
|
||||
|
||||
|
||||
async getGroup(groupId: number) {
|
||||
try {
|
||||
let result = await this.programGroupRepository.findOne({
|
||||
where: {
|
||||
groupId
|
||||
}
|
||||
})
|
||||
if (result != null){
|
||||
result.program = await this.programRepository.createQueryBuilder("program")
|
||||
.leftJoinAndMapOne(
|
||||
"program.linkman",
|
||||
UsersEntity,
|
||||
"linkman",
|
||||
"program.linkman_id = linkman.id"
|
||||
).where("program.id = :id", {id: result.programId})
|
||||
.getOne()
|
||||
return ResultData.success(result)
|
||||
}else {
|
||||
throw "未找到群组信息"
|
||||
}
|
||||
} catch (err) {
|
||||
return ResultData.fail(500, err);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user