From 46978de9f07324f6ba29daa864990b6c24320725 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sat, 6 Jul 2024 09:48:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E5=8F=91=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ce_user_group_manage_black_list_with_wx_user_dao.go | 8 ++++++-- ...nce_user_group_manage_black_list_with_wx_user_db.go | 10 ++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/dao/super_cloud_issuance_user_group_manage_black_list_with_wx_user_dao.go b/src/dao/super_cloud_issuance_user_group_manage_black_list_with_wx_user_dao.go index 4718928..e8b3a7b 100644 --- a/src/dao/super_cloud_issuance_user_group_manage_black_list_with_wx_user_dao.go +++ b/src/dao/super_cloud_issuance_user_group_manage_black_list_with_wx_user_dao.go @@ -1,10 +1,14 @@ -package dao +package dao -import "code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/models" +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/models" + "xorm.io/xorm" +) type SuperCloudIssuanceUserGroupManageBlackListWithWxUserDao interface { FindAndCountSuperCloudIssuanceUserGroupManageBlackListWithWxUser(activateGroupId int) (m []*models.SuperCloudIssuanceUserGroupManageBlackListWithWxUser, total int64, err error) SaveSuperCloudIssuanceUserGroupManageBlackListWithWxUser(id interface{}, m *models.SuperCloudIssuanceUserGroupManageBlackListWithWxUser, forceColums ...string) (affected int64, err error) BatchSuperCloudIssuanceUserGroupManageBlackListWithWxUser(list []*models.SuperCloudIssuanceUserGroupManageBlackListWithWxUser) (int64, error) + BatchSuperCloudIssuanceUserGroupManageBlackListWithWxUserSess(sess *xorm.Session, list []*models.SuperCloudIssuanceUserGroupManageBlackListWithWxUser) (int64, error) SuperCloudIssuanceUserGroupManageBlackListWithWxUserDelete(id interface{}) (int64, error) } diff --git a/src/implement/super_cloud_issuance_user_group_manage_black_list_with_wx_user_db.go b/src/implement/super_cloud_issuance_user_group_manage_black_list_with_wx_user_db.go index 4cd71b4..f055c5f 100644 --- a/src/implement/super_cloud_issuance_user_group_manage_black_list_with_wx_user_db.go +++ b/src/implement/super_cloud_issuance_user_group_manage_black_list_with_wx_user_db.go @@ -1,4 +1,4 @@ -package implement +package implement import ( "code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/dao" @@ -36,7 +36,13 @@ func (s SuperCloudIssuanceUserGroupManageBlackListWithWxUserDb) BatchSuperCloudI } return affected, nil } - +func (s SuperCloudIssuanceUserGroupManageBlackListWithWxUserDb) BatchSuperCloudIssuanceUserGroupManageBlackListWithWxUserSess(sess *xorm.Session, list []*models.SuperCloudIssuanceUserGroupManageBlackListWithWxUser) (int64, error) { + affected, err := sess.Insert(list) + if err != nil { + return 0, err + } + return affected, nil +} func (s SuperCloudIssuanceUserGroupManageBlackListWithWxUserDb) SuperCloudIssuanceUserGroupManageBlackListWithWxUserDelete(id interface{}) (int64, error) { if reflect.TypeOf(id).Kind() == reflect.Slice { return s.Db.In("id", id).Delete(models.SuperCloudIssuanceUserGroupManageBlackList{})