浏览代码

云发单

master
huangjiajun 4 个月前
父节点
当前提交
d78f50990a
共有 2 个文件被更改,包括 14 次插入1 次删除
  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 查看文件

@@ -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 查看文件

@@ -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
}

正在加载...
取消
保存