作者 yangfu

合约更新修改

... ... @@ -885,6 +885,7 @@ func (repository *CooperationContractRepository) UpdateOne(cooperationContract *
CreatedAt: cooperationContract.CreatedAt,
DeletedAt: cooperationContract.DeletedAt,
UpdatedAt: time.Now(),
CooperationProjectId: cooperationContract.CooperationProjectId,
}
if _, err := tx.Model(cooperationContractModel).WherePK().Update(); err != nil {
return nil, err
... ... @@ -915,6 +916,7 @@ func (repository *CooperationContractRepository) UpdateMany(cooperationContracts
CreatedAt: cooperationContract.CreatedAt,
DeletedAt: cooperationContract.DeletedAt,
UpdatedAt: time.Now(),
CooperationProjectId: cooperationContract.CooperationProjectId,
})
}
if _, err := tx.Model(&cooperationContractModels).WherePK().Update(); err != nil {
... ...