|
@@ -737,10 +737,12 @@ export class shellServer {
|
|
|
let queryProcs = new Parse.Query('EduProcess');
|
|
|
queryProcs.include('profileSubmitted', 'profileSubmitted.user');
|
|
|
queryProcs.select('name', 'profileSubmitted');
|
|
|
- queryProcs.notEqualTo('branch','66865d66ad23a23355b12aa7')
|
|
|
+ // queryProcs.notEqualTo('branch','66865d66ad23a23355b12aa7')
|
|
|
queryProcs.notEqualTo('isDeleted',true)
|
|
|
+ queryProcs.greaterThan('num',0)
|
|
|
queryProcs.limit(300)
|
|
|
let resEduProcess = await queryProcs.find();
|
|
|
+ console.log(resEduProcess.length);
|
|
|
for (let index = 0; index < resEduProcess.length; index++) {
|
|
|
const r = resEduProcess[index];
|
|
|
// let query = new Parse.Query('EduTextbook');
|
|
@@ -749,6 +751,8 @@ export class shellServer {
|
|
|
query.notEqualTo('discard', true);
|
|
|
query.equalTo('eduProcess', r.id);
|
|
|
query.equalTo('render', true);
|
|
|
+ query.containedIn('status', ['400']);
|
|
|
+ query.ascending('createdAt');
|
|
|
query.select(
|
|
|
'title',
|
|
|
'childrens.ISBN',
|