正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -477,7 +477,7 @@ func (repository *DividendsOrderRepository) BatchRemove(dividendsOrders []*domai | @@ -477,7 +477,7 @@ func (repository *DividendsOrderRepository) BatchRemove(dividendsOrders []*domai | ||
477 | if _, err := tx.Model(&orderGoodModels). | 477 | if _, err := tx.Model(&orderGoodModels). |
478 | Where("company_id = ?", dividendsOrder.Company.CompanyId). | 478 | Where("company_id = ?", dividendsOrder.Company.CompanyId). |
479 | Where("org_id = ?", dividendsOrder.Org.OrgId). | 479 | Where("org_id = ?", dividendsOrder.Org.OrgId). |
480 | - Where("dividends_order_number = ?", dividendsOrder.DividendsOrderNumber).Delete(); err != nil { | 480 | + Where("dividends_order_number = ?", dividendsOrder.DividendsOrderNumber).WherePK().Delete(); err != nil { |
481 | return nil, err | 481 | return nil, err |
482 | } | 482 | } |
483 | } | 483 | } |
-
请 注册 或 登录 后发表评论