作者 yangfu

合约更新修改

@@ -885,6 +885,7 @@ func (repository *CooperationContractRepository) UpdateOne(cooperationContract * @@ -885,6 +885,7 @@ func (repository *CooperationContractRepository) UpdateOne(cooperationContract *
885 CreatedAt: cooperationContract.CreatedAt, 885 CreatedAt: cooperationContract.CreatedAt,
886 DeletedAt: cooperationContract.DeletedAt, 886 DeletedAt: cooperationContract.DeletedAt,
887 UpdatedAt: time.Now(), 887 UpdatedAt: time.Now(),
  888 + CooperationProjectId: cooperationContract.CooperationProjectId,
888 } 889 }
889 if _, err := tx.Model(cooperationContractModel).WherePK().Update(); err != nil { 890 if _, err := tx.Model(cooperationContractModel).WherePK().Update(); err != nil {
890 return nil, err 891 return nil, err
@@ -915,6 +916,7 @@ func (repository *CooperationContractRepository) UpdateMany(cooperationContracts @@ -915,6 +916,7 @@ func (repository *CooperationContractRepository) UpdateMany(cooperationContracts
915 CreatedAt: cooperationContract.CreatedAt, 916 CreatedAt: cooperationContract.CreatedAt,
916 DeletedAt: cooperationContract.DeletedAt, 917 DeletedAt: cooperationContract.DeletedAt,
917 UpdatedAt: time.Now(), 918 UpdatedAt: time.Now(),
  919 + CooperationProjectId: cooperationContract.CooperationProjectId,
918 }) 920 })
919 } 921 }
920 if _, err := tx.Model(&cooperationContractModels).WherePK().Update(); err != nil { 922 if _, err := tx.Model(&cooperationContractModels).WherePK().Update(); err != nil {