Browse Source

云发单

master
huangjiajun 4 months ago
parent
commit
d78f50990a
2 changed files with 14 additions and 1 deletions
  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 View File

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


type SuperCloudIssuanceUserRobotBindSourceFollowGroupDao interface { type SuperCloudIssuanceUserRobotBindSourceFollowGroupDao interface {
BatchAddSuperCloudIssuanceUserRobotBindSourceFollowGroups(data []*models.SuperCloudIssuanceUserRobotBindSourceFollowGroup) (int64, error) 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 View File

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


import ( import (
"code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/dao" "code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/dao"
"code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/models" "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" "xorm.io/xorm"
) )


@@ -22,3 +23,14 @@ func (s SuperCloudIssuanceUserRobotBindSourceFollowGroupDb) BatchAddSuperCloudIs
} }
return affected, nil 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
}

Loading…
Cancel
Save