2025-09-30

消息记录查询
This commit is contained in:
2025-10-09 15:15:09 +08:00
parent 86e5596aed
commit d9bbd0d922
5 changed files with 74 additions and 9 deletions

View File

@@ -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);
}
}
}