|
@@ -79,13 +79,13 @@ export class textbookServer {
|
|
|
}
|
|
|
|
|
|
async getChild(id: string): Promise<Array<string>> {
|
|
|
- console.log(id);
|
|
|
+
|
|
|
let arr: Array<string> = [id];
|
|
|
let query = new Parse.Query('Department');
|
|
|
query.equalTo('parent', id);
|
|
|
query.notEqualTo('isDeleted', true);
|
|
|
query.select('id', 'hasChildren');
|
|
|
- query.limit(200);
|
|
|
+ query.limit(500);
|
|
|
let r = await query.find();
|
|
|
for (let index = 0; index < r.length; index++) {
|
|
|
if (r[index].get('hasChildren')) {
|
|
@@ -177,16 +177,16 @@ export class textbookServer {
|
|
|
}
|
|
|
|
|
|
|
|
|
- async getEduProcessProf(filter: Array<string>): Promise<boolean> {
|
|
|
+ async getEduProcessProf(filter: Array<string>): Promise<string|undefined> {
|
|
|
let query = new Parse.Query('EduProcess');
|
|
|
query.notEqualTo('isDeleted', true);
|
|
|
query.containedIn('profileSubmitted', filter);
|
|
|
- query.select('objectId');
|
|
|
+ query.select('objectId', 'name');
|
|
|
let res = await query.first();
|
|
|
if (res?.id) {
|
|
|
- return true;
|
|
|
+ return res.get('name');
|
|
|
}
|
|
|
- return false;
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
|