Commit b67d986f authored by 李硕's avatar 李硕

try 提交

parent 10462678
......@@ -44,6 +44,7 @@ const findWinnerInfoList = async (context) => {
if (!activityId) {
return resultsModel.error(CODE_TYPES.PARAMS_ERROR, `缺少activityId`);
}
try {
let rankopenprizeService = new RankopenprizeService(context);
let total = await rankopenprizeService.getAwardslistCount(activityId);
console.log("totle=========", total);
......@@ -74,7 +75,7 @@ const findWinnerInfoList = async (context) => {
item.shipNum = type0 == 3 ? (item.shipNum || '/') : '/';
})
// console.log(`xlsxData: ${JSON.stringify(xlsxData)}`);
try {
return resultsModel.success({ list: awardslist, total });
} catch (e) {
console.log("上传文件出错", e);
......@@ -315,6 +316,7 @@ const findWinnerInfoListBySearch = async (context) => {
if (!prizeId && !userNick && !timeStart && !timeEnd && !shipStatus && !prizeType && !prizeDataType) {
return resultsModel.error(CODE_TYPES.PARAMS_ERROR, `未填写筛选信息`);
}
try {
let rankopenprizeService = new RankopenprizeService(context);
console.log("activityId----", activityId, "prizeId---", prizeId, "userNick---", userNick, "timeStart---", timeStart, "timeEnd---", timeEnd, shipStatus);
// 获取活动中奖列表
......@@ -368,7 +370,7 @@ const findWinnerInfoListBySearch = async (context) => {
item.shipNum = type0 == 3 ? (item.shipNum || '/') : '/';
})
// console.log(`xlsxData: ${JSON.stringify(xlsxData)}`);
try {
return resultsModel.success({ list: awardslist, total });
} catch (e) {
console.log("上传文件出错", e);
......
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