save篇
contract_id设置了主键,save不支持赋值更改
1 | let contractGood = yield models.ContractGood.findOne({ |
正确使用方式update或delete contractGood.contract_id 再赋值,save操作
1 | yield models.ContractGood.update({ contract_id: '22222' }, {where: {GUID: 1333170}, transaction: t}) |