Commit eaebca8f authored by qinhaitao's avatar qinhaitao

feat: 🎸 更新模板

parent 01fbccfa
......@@ -260,3 +260,8 @@ export declare const TEMPLATE_INFO: {
template_id: number;
template_version: string;
};
export declare const SHIP_STATUS: {
NO_ADDRESS: number;
NO_SHIP: number;
HAS_SHIP: number;
};
"use strict";
/** @format */
Object.defineProperty(exports, "__esModule", { value: true });
exports.TEMPLATE_INFO = exports.APP_SUB_CODE = exports.PASS_URL_LIST = exports.TASK_CHECK_TYPE = exports.TASK_TYPE_TEXT = exports.DELETE_STATUS = exports._48_HOURS = exports.EIGHT_HOURS = exports.GOODSINFO = exports.B_APP_NAME = exports.errorCode = exports.CODE_TYPES = exports.PRIZE_TYPE = exports.LOGGER_TYPE = exports.DRAW_STATUS = exports.OPEN_PRIZE_STATUS = exports.BusinessError = void 0;
exports.SHIP_STATUS = exports.TEMPLATE_INFO = exports.APP_SUB_CODE = exports.PASS_URL_LIST = exports.TASK_CHECK_TYPE = exports.TASK_TYPE_TEXT = exports.DELETE_STATUS = exports._48_HOURS = exports.EIGHT_HOURS = exports.GOODSINFO = exports.B_APP_NAME = exports.errorCode = exports.CODE_TYPES = exports.PRIZE_TYPE = exports.LOGGER_TYPE = exports.DRAW_STATUS = exports.OPEN_PRIZE_STATUS = exports.BusinessError = void 0;
var sdk_1 = require("./sdk");
exports.BusinessError = {
// 更新重试失败(用于并发更新)
......@@ -257,4 +257,10 @@ exports.TEMPLATE_INFO = {
template_id: 3000000002590532,
template_version: '0.0.3'
};
//物流状态
exports.SHIP_STATUS = {
NO_ADDRESS: 1,
NO_SHIP: 2,
HAS_SHIP: 3
};
//# sourceMappingURL=constants.js.map
\ No newline at end of file
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,6BAA0C;AAE7B,QAAA,aAAa,GAAG;IAC3B,iBAAiB;IACjB,kBAAkB,EAAE;QAClB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,0BA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IACvB,WAAW,EAAE,gBAAgB;IAC7B,gBAAgB,EAAE,OAAO;CAC1B,CAAA"}
\ No newline at end of file
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,6BAA0C;AAE7B,QAAA,aAAa,GAAG;IAC3B,iBAAiB;IACjB,kBAAkB,EAAE;QAClB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,0BAAM;KACnB;IACD,QAAQ;IACR,iBAAiB,EAAE;QACjB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,gCAAO;KACpB;IACD,QAAQ;IACR,sBAAsB,EAAE;QACtB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,gCAAO;KACpB;IACD,QAAQ;IACR,mBAAmB,EAAE;QACnB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,gCAAO;KACpB;IACD,QAAQ;IACR,aAAa,EAAE;QACb,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,gCAAO;KACpB;IACD,cAAc;IACd,uBAAuB,EAAE;QACvB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,aAAa;KAC1B;IACD,QAAQ;IACR,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,OAAO;KACpB;IACD,UAAU;IACV,yBAAyB,EAAE;QACzB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,4CAAS;KACtB;IACD,QAAQ;IACR,mBAAmB,EAAE;QACnB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,gCAAO;KACpB;IACD,UAAU;IACV,oBAAoB,EAAE;QACpB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,4CAAS;KACtB;IACD,uBAAuB,EAAE;QACvB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,gCAAO;KACpB;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,0BAAM;KACnB;IACD,gBAAgB,EAAE;QAChB,IA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OAAO;IACP,WAAW;IACX,gBAAgB;IAChB,mBAAmB;IACnB,WAAW;IACX,aAAa;IACb,aAAa;IACb,iBAAiB;IACjB,WAAW;IACX,WAAW;IACX,gBAAgB;IAChB,YAAY;IACZ,YAAY;IACZ,WAAW;CACZ,CAAA;AAED,gBAAgB;AACH,QAAA,YAAY,GAAW,qBAAqB,CAAA;AAE5C,QAAA,aAAa,GAAG;IAC3B,OAAO,EAAE,cAAc;IACvB,WAAW,EAAE,gBAAgB;IAC7B,gBAAgB,EAAE,OAAO;CAC1B,CAAA;AAED,MAAM;AACO,QAAA,WAAW,GAAG;IACzB,UAAU,EAAE,CAAC;IACb,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,CAAC;CACZ,CAAA"}
\ No newline at end of file
......@@ -79,7 +79,7 @@ var ActivityController = /** @class */ (function () {
case 1:
result = _c.sent();
if (result) {
result = result.list.map(function (item) {
result.list = result.list.map(function (item) {
return __assign(__assign({}, item), { activityId: item._id });
});
return [2 /*return*/, sdk_1.resultsModel.success(result)];
......
{"version":3,"file":"activity.controller.js","sourceRoot":"","sources":["../../src/controller/activity.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,4CAA2C;AAC3C,0CAAoD;AACpD,8BAAqC;AACrC,sCAAkD;AAElD;IAAA;IA6DA,CAAC;IA5DC;;OAEG;IAEG,4CAAe,GAArB,UAAsB,OAAgB,EAAE,EAAE,EAAE,EAAgD;YAA/C,qBAAqB,QAAA;;;;;;wBACxD,MAAM,GAAK,OAAO,OAAZ,CAAY;wBAEb,qBAAM,qBAAqB,CAAC,uBAAuB,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,EAAA;;wBAAlF,MAAM,GAAG,SAAyE;wBACtF,IAAI,MAAM,EAAE;4BACV,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,UAAC,IAAqB;gCAC7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,IAAI,CAAC,EAAA;yBAClC;6BAAM;4BACL,sBAAO,kBAAY,CAAC,KAAK,CAAC,sBAAU,CAAC,YAAY,EAAE,QAAQ,CAAC,EAAA;yBAC7D;;;;;KACF;IAvDD;QADC,oBAAQ,CAAC,CAAC,+BAAqB,CAAC,CAAC;;;;6DAejC;IAOD;QAFC,uBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,oBAAQ,CAAC,CAAC,+BAAqB,CAAC,CAAC;;;;+DAkBjC;IAOD;QAFC,uBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,oBAAQ,CAAC,CAAC,+BAAqB,CAAC,CAAC;;;;yDAWjC;IACH,yBAAC;CAAA,AA7DD,IA6DC;kBA7DoB,kBAAkB"}
\ No newline at end of file
{"version":3,"file":"activity.controller.js","sourceRoot":"","sources":["../../src/controller/activity.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,4CAA2C;AAC3C,0CAAoD;AACpD,8BAAqC;AACrC,sCAAkD;AAElD;IAAA;IA6DA,CAAC;IA5DC;;OAEG;IAEG,4CAAe,GAArB,UAAsB,OAAgB,EAAE,EAAE,EAAE,EAAgD;YAA/C,qBAAqB,QAAA;;;;;;wBACxD,MAAM,GAAK,OAAO,OAAZ,CAAY;wBAEb,qBAAM,qBAAqB,CAAC,uBAAuB,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,EAAA;;wBAAlF,MAAM,GAAG,SAAyE;wBACtF,IAAI,MAAM,EAAE;4BACV,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,UAAC,IAAqB;gCAClD,6BACK,IAAI,KACP,UAAU,EAAE,IAAI,CAAC,GAAG,IACrB;4BACH,CAAC,CAAC,CAAA;4BACF,sBAAO,kBAAY,CAAC,OAAO,CAAC,MAAM,CAAC,EAAA;yBACpC;wBACD,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AAQ,CAAC,CAAC,+BAAqB,CAAC,CAAC;;;;6DAejC;IAOD;QAFC,uBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,oBAAQ,CAAC,CAAC,+BAAqB,CAAC,CAAC;;;;+DAkBjC;IAOD;QAFC,uBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,oBAAQ,CAAC,CAAC,+BAAqB,CAAC,CAAC;;;;yDAWjC;IACH,yBAAC;CAAA,AA7DD,IA6DC;kBA7DoB,kBAAkB"}
\ No newline at end of file
......@@ -13,4 +13,13 @@ export default class BaseController {
exportAwardsList(context: Context, { session }: {
session: any;
}, [awardsService]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
exportAwardsInfoBySearch(context: Context, { session }: {
session: any;
}, [awardsService]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
findWinnerInfoListBySearch(context: Context, { session }: {
session: any;
}, [awardsService]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
downloadFile(context: Context, { session }: {
session: any;
}, [awardsService]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
}
......@@ -11,6 +11,15 @@ declare const _default: {
exportAwardsList: (context: Context, { session }: {
session: any;
}, [awardsService]: [import("./service").AwardsService]) => Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
findWinnerInfoListBySearch: (context: Context, { session }: {
session: any;
}, [awardsService]: [import("./service").AwardsService]) => Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
downloadFile: (context: Context, { session }: {
session: any;
}, [awardsService]: [import("./service").AwardsService]) => Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
exportAwardsInfoBySearch: (context: Context, { session }: {
session: any;
}, [awardsService]: [import("./service").AwardsService]) => Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
findItemListByStatus: (context: Context, { session }: {
session: any;
}, [taobaoTopService]: [import("./service").TaobaoTopService]) => Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
......
......@@ -9,7 +9,7 @@ var taobaoItem_controller_1 = require("./controller/taobaoItem.controller");
var save_controller_1 = require("./controller/save.controller");
var _a = new activity_controller_1.default(), getActivityList = _a.getActivityList, getActivityDetail = _a.getActivityDetail, delActivity = _a.delActivity;
var _b = new seller_controller_1.default(), sellerSaasSave = _b.sellerSaasSave, sellerSave = _b.sellerSave;
var _c = new awards_controller_1.default(), findWinnerInfoList = _c.findWinnerInfoList, exportAwardsList = _c.exportAwardsList;
var _c = new awards_controller_1.default(), findWinnerInfoList = _c.findWinnerInfoList, exportAwardsList = _c.exportAwardsList, findWinnerInfoListBySearch = _c.findWinnerInfoListBySearch, downloadFile = _c.downloadFile, exportAwardsInfoBySearch = _c.exportAwardsInfoBySearch;
var generateRule = new rule_controller_1.default().generateRule;
var _d = new taobaoItem_controller_1.default(), findItemListByStatus = _d.findItemListByStatus, findItemListByIds = _d.findItemListByIds, queryBenefitByEname = _d.queryBenefitByEname;
var saveActivityInfo = new save_controller_1.default().saveActivityInfo;
......@@ -21,6 +21,9 @@ exports.default = {
sellerSave: sellerSave,
findWinnerInfoList: findWinnerInfoList,
exportAwardsList: exportAwardsList,
findWinnerInfoListBySearch: findWinnerInfoListBySearch,
downloadFile: downloadFile,
exportAwardsInfoBySearch: exportAwardsInfoBySearch,
findItemListByStatus: findItemListByStatus,
findItemListByIds: findItemListByIds,
queryBenefitByEname: queryBenefitByEname
......
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,cAAc;;AAEd,wEAAiE;AACjE,oEAA6D;AAC7D,oEAA6D;AAC7D,gEAAyD;AACzD,4EAAqE;AACrE,gEAAyD;AAEnD,IAAA,KAAsD,IAAI,6BAAkB,EAAE,EAA5E,eAAe,qBAAA,EAAE,iBAAiB,uBAAA,EAAE,WAAW,iBAA6B,CAAA;AAC9E,IAAA,KAAiC,IAAI,2BAAgB,EAAE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B,0BAAA,EAAE,iBAAiB,uBAAA,EAAE,mBAAmB,yBAA+B,CAAA;AAC3F,IAAA,gBAAgB,GAAK,IAAI,yBAAc,EAAE,iBAAzB,CAAyB;AAEjD,kBAAe;IACb,eAAe,iBAAA;IACf,iBAAiB,mBAAA;IACjB,WAAW,aAAA;IACX,gBAAgB,kBAAA;IAChB,UAAU,YAAA;IACV,kBAAkB,oBAAA;IAClB,gBAAgB,kBAAA;IAChB,0BAA0B,4BAAA;IAC1B,YAAY,cAAA;IACZ,wBAAwB,0BAAA;IACxB,oBAAoB,sBAAA;IACpB,iBAAiB,mBAAA;IACjB,mBAAmB,qBAAA;CACpB,CAAA"}
\ No newline at end of file
......@@ -5,4 +5,8 @@ export default class AwardsService {
constructor(context: Context);
addWaitAwardsList(list: any): Promise<boolean>;
getAwardslistByActivityId(activityId: string, pageNo?: number, pageSize?: number): Promise<any>;
getAwardslistCount(activityId: string): Promise<any>;
getUserPrizeByActivityId(activityId: string, pageNo: number, pageSize: number, prizeId: string, userNick: string, timeStart: number, timeEnd: number, shipStatus: number, type: number): Promise<any>;
getTotalObjectCount(activityId: string, prizeId: string, userNick: string, timeStart: number, timeEnd: number, shipStatus: number, type: number): Promise<any>;
setUserShipStatus(activityId: string, prizeId: string, shipCompany: string, shipNum: number | string): Promise<any>;
}
......@@ -100,13 +100,132 @@ var AwardsService = /** @class */ (function () {
rankTime: -1
},
limit: pageSize,
skip: (pageNo - 1) * pageSize,
skip: (pageNo - 1) * pageSize
})];
case 1: return [2 /*return*/, _a.sent()];
}
});
});
};
//获取中奖名单长度
AwardsService.prototype.getAwardslistCount = function (activityId) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
if (!activityId) {
return [2 /*return*/, false];
}
return [4 /*yield*/, this.awardsdao.count({
activityId: activityId
})];
case 1: return [2 /*return*/, _a.sent()];
}
});
});
};
// 条件搜索--查询中奖信息
AwardsService.prototype.getUserPrizeByActivityId = function (activityId, pageNo, pageSize, prizeId, userNick, timeStart, timeEnd, shipStatus, type) {
return __awaiter(this, void 0, void 0, function () {
var p, u, c, s, t, arr;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
p = prizeId ? { _id: prizeId } : '';
u = userNick ? { userNick: { $regex: '.*' + userNick + '.*' } } : '';
c = timeStart > 0 && timeEnd > 0 ? { createTime: { $gt: timeStart, $lt: timeEnd } } : '';
s = shipStatus
? shipStatus == 1
? { shipStatus: { $in: [constants_1.SHIP_STATUS.NO_ADDRESS, constants_1.SHIP_STATUS.NO_SHIP, constants_1.SHIP_STATUS.HAS_SHIP] } }
: shipStatus == 2
? { shipStatus: { $in: [constants_1.SHIP_STATUS.NO_ADDRESS, constants_1.SHIP_STATUS.NO_SHIP] } }
: { shipStatus: constants_1.SHIP_STATUS.HAS_SHIP }
: '';
t = type ? { type: +type } : '';
arr = [p, u, c, s, t];
arr = arr.filter(function (i) {
return i;
});
console.log('arr--222---', arr);
return [4 /*yield*/, this.awardsdao.find({
activityId: activityId,
$and: arr
}, {
limit: pageSize,
skip: (pageNo - 1) * pageSize
})];
case 1: return [2 /*return*/, _a.sent()];
}
});
});
};
//《条件搜索》获取中奖名单长度
AwardsService.prototype.getTotalObjectCount = function (activityId, prizeId, userNick, timeStart, timeEnd, shipStatus, type) {
return __awaiter(this, void 0, void 0, function () {
var p, u, c, s, t, arr;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
p = prizeId ? { _id: prizeId } : '';
u = userNick ? { userNick: { $regex: '.*' + userNick + '.*' } } : '';
c = timeStart > 0 && timeEnd > 0 ? { createTime: { $gt: timeStart, $lt: timeEnd } } : '';
s = shipStatus
? shipStatus == 1
? { shipStatus: { $in: [constants_1.SHIP_STATUS.NO_ADDRESS, constants_1.SHIP_STATUS.NO_SHIP, constants_1.SHIP_STATUS.HAS_SHIP] } }
: shipStatus == 2
? { shipStatus: { $in: [constants_1.SHIP_STATUS.NO_ADDRESS, constants_1.SHIP_STATUS.NO_SHIP] } }
: { shipStatus: constants_1.SHIP_STATUS.HAS_SHIP }
: '';
t = type ? { type: +type } : '';
arr = [p, u, c, s, t];
arr = arr.filter(function (i) {
return i;
});
console.log('arr--111---', arr, 's>>>', s);
return [4 /*yield*/, this.awardsdao.count({
activityId: activityId,
$and: arr
})];
case 1: return [2 /*return*/, _a.sent()];
}
});
});
};
//《条件搜索》导入发货状态
AwardsService.prototype.setUserShipStatus = function (activityId, prizeId, shipCompany, shipNum) {
return __awaiter(this, void 0, void 0, function () {
var status;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
prizeId = prizeId ? prizeId : '/';
shipCompany = shipCompany ? shipCompany : '';
shipNum = shipNum !== null ? shipNum : '';
status = 0;
if (shipCompany && shipNum) {
status = constants_1.SHIP_STATUS.HAS_SHIP;
}
else {
status = constants_1.SHIP_STATUS.NO_SHIP;
}
if (!(status == constants_1.SHIP_STATUS.HAS_SHIP)) return [3 /*break*/, 2];
return [4 /*yield*/, this.awardsdao.update({
activityId: activityId,
_id: prizeId,
shipStatus: constants_1.SHIP_STATUS.NO_SHIP
}, {
$set: {
shipCompany: shipCompany,
shipNum: shipNum,
shipStatus: constants_1.SHIP_STATUS.HAS_SHIP
}
})];
case 1: return [2 /*return*/, _a.sent()];
case 2: return [2 /*return*/, 0];
}
});
});
};
return AwardsService;
}());
exports.default = AwardsService;
......
{"version":3,"file":"awards.service.js","sourceRoot":"","sources":["../../src/service/awards.service.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,UAAU;AAEV,8BAAgC;AAChC,4BAAsC;AAEtC,0CAA0C;AAC1C;IAGE,uBAAY,OAAgB;QAC1B,IAAI,CAAC,SAAS,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,mBAAc,CAAC,CAAA;IACvD,CAAC;IAED,aAAa;IACP,yCAAiB,GAAvB,UAAwB,IAAI;;;;;;wBAC1B,IAAI,CAAC,IAAI,CAAC,MAAM;4BAAE,sBAAO,IAAI,EAAA;wBAC7B,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,UAAA,CAAC;4BACf,6BACK,CAAC,KACJ,UAAU,EAAE,uBAAW,CAAC,SAAS,EACjC,OAAO,EAAE,EAAE,IACZ;wBACH,CAAC,CAAC,CAAA;;;;wBAEA,qBAAM,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,EAAA;;wBAArC,SAAqC,CAAA;wBACrC,sBAAO,IAAI,EAAA;;;wBAEX,OAAO,CAAC,GAAG,CAAC,mFAAgB,GAAG,CAAC,CAAA;wBAChC,sBAAO,KAAK,EAAA;;;;;KAEf;IAED,eAAe;IACT,iDAAyB,GAA/B,UAAgC,UAAkB,EAAE,MAAU,EAAE,QAAc;QAA1B,uBAAA,EAAA,UAAU;QAAE,yBAAA,EAAA,cAAc;;;;;wBAC5E,IAAI,CAAC,UAAU;4BAAE,sBAAO,KAAK,EAAA;wBACtB,qBAAM,IAAI,CAAC,SAAS,CAAC,IAAI,CAC9B,EAAE,UAAU,YAAA,EAAE,EACd;gCACE,IAAI,EAAE;oCACJ,KAAK,EAAE,CAAC,CAAC;oCACT,QAAQ,EAAE,CAAC,CAAC;iCACb;gCACD,KAAK,EAAE,QAAQ;gCACf,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,QAAQ;6BAC9B,CACF,EAAA;4BAVD,sBAAO,SAUN,EAAA;;;;KACF;IACH,oBAAC;AAAD,CAAC,AAzCD,IAyCC"}
\ No newline at end of file
{"version":3,"file":"awards.service.js","sourceRoot":"","sources":["../../src/service/awards.service.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,UAAU;AAEV,8BAAgC;AAChC,4BAAsC;AAEtC,0CAAuD;AACvD;IAGE,uBAAY,OAAgB;QAC1B,IAAI,CAAC,SAAS,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,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M,GAAG,uBAAW,CAAC,QAAQ,CAAA;yBAC9B;6BAAM;4BACL,MAAM,GAAG,uBAAW,CAAC,OAAO,CAAA;yBAC7B;6BACG,CAAA,MAAM,IAAI,uBAAW,CAAC,QAAQ,CAAA,EAA9B,wBAA8B;wBACzB,qBAAM,IAAI,CAAC,SAAS,CAAC,MAAM,CAChC;gCACE,UAAU,YAAA;gCACV,GAAG,EAAE,OAAO;gCACZ,UAAU,EAAE,uBAAW,CAAC,OAAO;6BAChC,EACD;gCACE,IAAI,EAAE;oCACJ,WAAW,aAAA;oCACX,OAAO,SAAA;oCACP,UAAU,EAAE,uBAAW,CAAC,QAAQ;iCACjC;6BACF,CACF,EAAA;4BAbD,sBAAO,SAaN,EAAA;4BAED,sBAAO,CAAC,EAAA;;;;KAEX;IACH,oBAAC;AAAD,CAAC,AA1JD,IA0JC"}
\ No newline at end of file
......@@ -271,3 +271,10 @@ export const TEMPLATE_INFO = {
template_id: 3000000002590532,
template_version: '0.0.3'
}
//物流状态
export const SHIP_STATUS = {
NO_ADDRESS: 1,
NO_SHIP: 2,
HAS_SHIP: 3
}
......@@ -9,7 +9,13 @@ import SaveController from './controller/save.controller'
const { getActivityList, getActivityDetail, delActivity } = new ActivityController()
const { sellerSaasSave, sellerSave } = new SellerController()
const { findWinnerInfoList, exportAwardsList } = new AwardsController()
const {
findWinnerInfoList,
exportAwardsList,
findWinnerInfoListBySearch,
downloadFile,
exportAwardsInfoBySearch
} = new AwardsController()
const { generateRule } = new RuleController()
const { findItemListByStatus, findItemListByIds, queryBenefitByEname } = new RaobaoItemController()
const { saveActivityInfo } = new SaveController()
......@@ -22,6 +28,9 @@ export default {
sellerSave,
findWinnerInfoList,
exportAwardsList,
findWinnerInfoListBySearch,
downloadFile,
exportAwardsInfoBySearch,
findItemListByStatus,
findItemListByIds,
queryBenefitByEname
......
......@@ -5,7 +5,7 @@
import { BaseDao } from '../sdk'
import { AWARDS_DB_NAME } from '../db'
import { DRAW_STATUS } from '../constants'
import { DRAW_STATUS, SHIP_STATUS } from '../constants'
export default class AwardsService {
context: Context
awardsdao: IBaseDao
......@@ -43,8 +43,121 @@ export default class AwardsService {
rankTime: -1
},
limit: pageSize,
skip: (pageNo - 1) * pageSize,
skip: (pageNo - 1) * pageSize
}
)
}
//获取中奖名单长度
async getAwardslistCount(activityId: string) {
if (!activityId) {
return false
}
return await this.awardsdao.count({
activityId: activityId
})
}
// 条件搜索--查询中奖信息
async getUserPrizeByActivityId(
activityId: string,
pageNo: number,
pageSize: number,
prizeId: string,
userNick: string,
timeStart: number,
timeEnd: number,
shipStatus: number,
type: number
) {
let p = prizeId ? { _id: prizeId } : ''
let u = userNick ? { userNick: { $regex: '.*' + userNick + '.*' } } : ''
let c = timeStart > 0 && timeEnd > 0 ? { createTime: { $gt: timeStart, $lt: timeEnd } } : ''
let s = shipStatus
? shipStatus == 1
? { shipStatus: { $in: [SHIP_STATUS.NO_ADDRESS, SHIP_STATUS.NO_SHIP, SHIP_STATUS.HAS_SHIP] } }
: shipStatus == 2
? { shipStatus: { $in: [SHIP_STATUS.NO_ADDRESS, SHIP_STATUS.NO_SHIP] } }
: { shipStatus: SHIP_STATUS.HAS_SHIP }
: ''
let t = type ? { type: +type } : ''
let arr = [p, u, c, s, t]
arr = arr.filter(i => {
return i
})
console.log('arr--222---', arr)
return await this.awardsdao.find(
{
activityId,
$and: arr
},
{
limit: pageSize,
skip: (pageNo - 1) * pageSize
}
)
}
//《条件搜索》获取中奖名单长度
async getTotalObjectCount(
activityId: string,
prizeId: string,
userNick: string,
timeStart: number,
timeEnd: number,
shipStatus: number,
type: number
) {
let p = prizeId ? { _id: prizeId } : ''
let u = userNick ? { userNick: { $regex: '.*' + userNick + '.*' } } : ''
let c = timeStart > 0 && timeEnd > 0 ? { createTime: { $gt: timeStart, $lt: timeEnd } } : ''
let s = shipStatus
? shipStatus == 1
? { shipStatus: { $in: [SHIP_STATUS.NO_ADDRESS, SHIP_STATUS.NO_SHIP, SHIP_STATUS.HAS_SHIP] } }
: shipStatus == 2
? { shipStatus: { $in: [SHIP_STATUS.NO_ADDRESS, SHIP_STATUS.NO_SHIP] } }
: { shipStatus: SHIP_STATUS.HAS_SHIP }
: ''
let t = type ? { type: +type } : ''
let arr = [p, u, c, s, t]
arr = arr.filter(i => {
return i
})
console.log('arr--111---', arr, 's>>>', s)
return await this.awardsdao.count({
activityId,
$and: arr
})
}
//《条件搜索》导入发货状态
async setUserShipStatus(activityId: string, prizeId: string, shipCompany: string, shipNum: number | string) {
prizeId = prizeId ? prizeId : '/'
shipCompany = shipCompany ? shipCompany : ''
shipNum = shipNum !== null ? shipNum : ''
let status = 0
if (shipCompany && shipNum) {
status = SHIP_STATUS.HAS_SHIP
} else {
status = SHIP_STATUS.NO_SHIP
}
if (status == SHIP_STATUS.HAS_SHIP) {
return await this.awardsdao.update(
{
activityId,
_id: prizeId,
shipStatus: SHIP_STATUS.NO_SHIP
},
{
$set: {
shipCompany,
shipNum,
shipStatus: SHIP_STATUS.HAS_SHIP
}
}
)
} else {
return 0
}
}
}
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