You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
608 B
23 lines
608 B
'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,
|
|
}
|