fixing response object
This commit is contained in:
parent
ba612f1b2b
commit
fd76c6ee09
3 changed files with 11 additions and 13 deletions
|
|
@ -179,12 +179,12 @@ export class ReportController extends Controller {
|
|||
*/
|
||||
@Get("expand")
|
||||
async GetDataExpand() {
|
||||
const lists = await this.personalRepository.find({
|
||||
const data = await this.personalRepository.find({
|
||||
select: ["personal_id"],
|
||||
where: { probation_status: 7 },
|
||||
});
|
||||
|
||||
return new HttpSuccess(lists);
|
||||
return new HttpSuccess(data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -556,7 +556,7 @@ export class ReportController extends Controller {
|
|||
*
|
||||
*/
|
||||
@Get("evaluate-commander")
|
||||
async GetDataEvaluateCommander(@Query() id: string) {
|
||||
async GetDataEvaluateCommander(@Query() id: string, @Request() request: RequestWithUser) {
|
||||
const evaluate = await this.evaluateCommanderRepository.findOne({
|
||||
where: { id },
|
||||
});
|
||||
|
|
@ -810,7 +810,7 @@ export class ReportController extends Controller {
|
|||
*
|
||||
*/
|
||||
@Get("evaluate-chairman")
|
||||
async GetDataEvaluateChairman(@Query() id: string) {
|
||||
async GetDataEvaluateChairman(@Query() id: string, @Request() request: RequestWithUser) {
|
||||
const evaluate = await this.evaluateChairmanRepository.findOne({
|
||||
where: { id },
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue