Browse Source

(fixed)7250 业绩汇总表前端获取数据失败

master
周沫沫历险记 2 years ago
parent
commit
3aed38c25f
  1. 3
      api/app/lib/models/salePerformance.js

3
api/app/lib/models/salePerformance.js

@ -56,7 +56,8 @@ module.exports = dc => {
tableName: "sale_performance",
});
const { sale } = dc.models;
sale.hasMany(salePerformance, { foreighKey: 'saleName', targetKey: "sale" })
sale.hasMany(salePerformance, { foreignKey: 'saleName', sourceKey: "sale" })
dc.models.salePerformance = salePerformance;
return salePerformance;

Loading…
Cancel
Save