Commit 977a236f authored by qinhaitao's avatar qinhaitao

获取活动信息

parent 693a2219
...@@ -59,7 +59,7 @@ var BaseService = /** @class */ (function () { ...@@ -59,7 +59,7 @@ var BaseService = /** @class */ (function () {
switch (_a.label) { switch (_a.label) {
case 0: case 0:
console.log(process.argv[2], 'process.argv[2]'); console.log(process.argv[2], 'process.argv[2]');
return [4 /*yield*/, this.activitydao.findOne({ _id: activityId })]; return [4 /*yield*/, this.activitydao.findOne({ _id: activityId, deleteStatus: 1 /* NORMAL */ })];
case 1: return [2 /*return*/, _a.sent()]; case 1: return [2 /*return*/, _a.sent()];
} }
}); });
......
{"version":3,"file":"base.service.js","sourceRoot":"","sources":["../../src/service/base.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8BAAgC;AAChC,4BAA+C;AAE/C;IAGE,qBAAY,OAAgB;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,WAAW,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,4BAAuB,CAAC,CAAA;IAClE,CAAC;IACD;;;;OAIG;IACG,iCAAW,GAAjB,UAAkB,UAAkB;;;;;wBAClC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAA;wBACxC,qBAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,CAAC,EAAA;4BAA1D,sBAAO,SAAmD,EAAA;;;;KAC3D;IACH,kBAAC;AAAD,CAAC,AAhBD,IAgBC"} {"version":3,"file":"base.service.js","sourceRoot":"","sources":["../../src/service/base.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8BAAgC;AAChC,4BAA+C;AAG/C;IAGE,qBAAY,OAAgB;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,WAAW,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,4BAAuB,CAAC,CAAA;IAClE,CAAC;IACD;;;;OAIG;IACG,iCAAW,GAAjB,UAAkB,UAAkB;;;;;wBAClC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAA;wBACxC,qBAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,YAAY,gBAAwB,EAAE,CAAC,EAAA;4BAAhG,sBAAO,SAAyF,EAAA;;;;KACjG;IACH,kBAAC;AAAD,CAAC,AAhBD,IAgBC"}
\ No newline at end of file \ No newline at end of file
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
import { BaseDao } from '../sdk' import { BaseDao } from '../sdk'
import { ACTIVITY_CONFIG_DB_NAME } from '../db' import { ACTIVITY_CONFIG_DB_NAME } from '../db'
import { ACTIVITY_STATUS } from '../constants'
export default class BaseService { export default class BaseService {
context: Context context: Context
...@@ -21,6 +22,6 @@ export default class BaseService { ...@@ -21,6 +22,6 @@ export default class BaseService {
*/ */
async getBaseInfo(activityId: string) { async getBaseInfo(activityId: string) {
console.log(process.argv[2], 'process.argv[2]') console.log(process.argv[2], 'process.argv[2]')
return await this.activitydao.findOne({ _id: activityId }) return await this.activitydao.findOne({ _id: activityId, deleteStatus: ACTIVITY_STATUS.NORMAL })
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment