我已将此代码编写到项目但它无效,我想在db.PartPrice中获取列版本的最大值:
return db.JobPartMaster.findAll({
where: filters,
include: [{
model: db.PartMaster,
include: [{
model: db.PartPrice.max('version',{
include: [{
model: db.PartPriceDetail,
}]})
},
{
model: db.PDCategory,
}]
},
{
model: db.JobMaster,
}]
});
有人能发现错误吗?