Bladeren bron

云发单

master
huangjiajun 4 maanden geleden
bovenliggende
commit
d78f50990a
2 gewijzigde bestanden met toevoegingen van 14 en 1 verwijderingen
  1. +1
    -0
      src/dao/super_cloud_issuance_user_robot_bind_source_follow_group_dao.go
  2. +13
    -1
      src/implement/super_cloud_issuance_user_robot_bind_source_follow_group_db.go

+ 1
- 0
src/dao/super_cloud_issuance_user_robot_bind_source_follow_group_dao.go Bestand weergeven

@@ -6,4 +6,5 @@ import (

type SuperCloudIssuanceUserRobotBindSourceFollowGroupDao interface {
BatchAddSuperCloudIssuanceUserRobotBindSourceFollowGroups(data []*models.SuperCloudIssuanceUserRobotBindSourceFollowGroup) (int64, error)
GetSuperCloudIssuanceUserRobotBindSourceFollowGroupsByChatRoomId(chatRoomId string) (m *models.SuperCloudIssuanceUserRobotBindSourceFollowGroup, err error)
}

+ 13
- 1
src/implement/super_cloud_issuance_user_robot_bind_source_follow_group_db.go Bestand weergeven

@@ -1,8 +1,9 @@
package implement
package implement

import (
"code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/dao"
"code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/models"
zhios_order_relate_logx "code.fnuoos.com/go_rely_warehouse/zyos_model.git/utils/logx"
"xorm.io/xorm"
)

@@ -22,3 +23,14 @@ func (s SuperCloudIssuanceUserRobotBindSourceFollowGroupDb) BatchAddSuperCloudIs
}
return affected, nil
}
func (s SuperCloudIssuanceUserRobotBindSourceFollowGroupDb) GetSuperCloudIssuanceUserRobotBindSourceFollowGroupsByChatRoomId(chatRoomId string) (m *models.SuperCloudIssuanceUserRobotBindSourceFollowGroup, err error) {
m = new(models.SuperCloudIssuanceUserRobotBindSourceFollowGroup)
has, err := s.Db.Where("follow_chat_room_id =? ", chatRoomId).Get(m)
if err != nil {
return nil, zhios_order_relate_logx.Error(err)
}
if has == false {
return nil, nil
}
return m, nil
}

Laden…
Annuleren
Opslaan