diff --git a/api/controller_front/apply.js b/api/controller_front/apply.js index e28bb3d..a79e092 100644 --- a/api/controller_front/apply.js +++ b/api/controller_front/apply.js @@ -148,10 +148,10 @@ module.exports = { * 200: * description: 获取成功 */ - 'GET /apply/statistics': async (ctx) => { + 'POST /apply/statistics': async (ctx) => { const models = Framework.getModels(); const { apply_records, op } = models; - const { sn_code, startTime, endTime } = ctx.query; + const { sn_code, startTime, endTime } = ctx.getBody(); console.log(startTime, endTime); const final_sn_code = sn_code;