'use strict'; // 查询储备项目统计表 async function getCustomerContactsFollowup(ctx, next) { const { type } = ctx.params; let rslt = null; try { rslt = await ctx.fs.dc.models.ReserveItemReport.findAll({ order: [['id', 'DESC']], // where: { type: type } }) ctx.status = 200 ctx.body = rslt } catch (error) { ctx.fs.logger.error(`path:${ctx.path},error:${error}`) ctx.status = 400; ctx.body = { name: 'FindAllError', message: '获取失败' } } } module.exports = { getCustomerContactsFollowup, }