...
|
...
|
@@ -96,7 +96,7 @@ func (repository *PartnerInfoRepository) Save(dm *domain.PartnerInfo) error { |
|
|
}
|
|
|
|
|
|
func (repository *PartnerInfoRepository) FindOne(queryOptions domain.PartnerFindOneQuery) (*domain.PartnerInfo, error) {
|
|
|
tx := repository.transactionContext.PgDd
|
|
|
tx := repository.transactionContext.PgTx
|
|
|
PartnerInfoModel := new(models.PartnerInfo)
|
|
|
query := tx.Model(PartnerInfoModel)
|
|
|
if len(queryOptions.AccountEqual) > 0 {
|
...
|
...
|
@@ -116,7 +116,7 @@ func (repository *PartnerInfoRepository) FindOne(queryOptions domain.PartnerFind |
|
|
}
|
|
|
|
|
|
func (repository *PartnerInfoRepository) Find(queryOption domain.PartnerFindQuery) ([]domain.PartnerInfo, error) {
|
|
|
db := repository.transactionContext.PgDd
|
|
|
db := repository.transactionContext.PgTx
|
|
|
partnerModels := []models.PartnerInfo{}
|
|
|
query := db.Model(&partnerModels)
|
|
|
if len(queryOption.PartnerName) > 0 {
|
...
|
...
|
@@ -168,7 +168,7 @@ func (repository *PartnerInfoRepository) Find(queryOption domain.PartnerFindQuer |
|
|
}
|
|
|
|
|
|
func (repository PartnerInfoRepository) CountAll(queryOption domain.PartnerFindQuery) (int, error) {
|
|
|
db := repository.transactionContext.PgDd
|
|
|
db := repository.transactionContext.PgTx
|
|
|
partnerModels := models.PartnerInfo{}
|
|
|
query := db.Model(&partnerModels)
|
|
|
if len(queryOption.PartnerName) > 0 {
|
...
|
...
|
|