|
|
@ -346,6 +346,7 @@ async function getContractDetail(ctx) { |
|
|
|
where[keywordTarget] = { $iLike: `%${keyword}%` }; |
|
|
|
} |
|
|
|
let contractDetail = await models.ContractDetail.findAndCountAll({ |
|
|
|
attributes: { exclude: ['iscopy', 'hiredate', 'regularDate'] }, |
|
|
|
where: where, |
|
|
|
offset: Number(page) * Number(limit), |
|
|
|
limit: Number(limit), |
|
|
@ -394,6 +395,7 @@ async function exportContractDetail(ctx) { |
|
|
|
try { |
|
|
|
const { models } = ctx.fs.dc; |
|
|
|
let exportData = await models.ContractDetail.findAll({ |
|
|
|
attributes: { exclude: ['iscopy', 'hiredate', 'regularDate'] }, |
|
|
|
order: [['id', 'ASC']] |
|
|
|
}); |
|
|
|
const { utils: { simpleExcelDown, contractDetailsColumnKeys } } = ctx.app.fs; |
|
|
|