Commit e2f3fd5e authored by 成旭东's avatar 成旭东

预约看房关联字段修改

parent d2e45a48
Pipeline #28014 passed with stage
in 3 minutes 41 seconds
......@@ -73,7 +73,7 @@ module.exports = app => {
});
model.associate = function() {
app.wafangModel.WafangAppointment.belongsTo(app.wafangModel.WafangProject, { as: 'project', sourceKey: 'project_id', foreignKey: 'id' });
app.wafangModel.WafangAppointment.belongsTo(app.wafangModel.WafangProject, { as: 'project', foreignKey: 'project_id', targetKey: 'id' });
};
return model;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment