Browse Source

云发单

master
huangjiajun 4 months ago
parent
commit
46978de9f0
2 changed files with 14 additions and 4 deletions
  1. +6
    -2
      src/dao/super_cloud_issuance_user_group_manage_black_list_with_wx_user_dao.go
  2. +8
    -2
      src/implement/super_cloud_issuance_user_group_manage_black_list_with_wx_user_db.go

+ 6
- 2
src/dao/super_cloud_issuance_user_group_manage_black_list_with_wx_user_dao.go View File

@@ -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 { type SuperCloudIssuanceUserGroupManageBlackListWithWxUserDao interface {
FindAndCountSuperCloudIssuanceUserGroupManageBlackListWithWxUser(activateGroupId int) (m []*models.SuperCloudIssuanceUserGroupManageBlackListWithWxUser, total int64, err error) FindAndCountSuperCloudIssuanceUserGroupManageBlackListWithWxUser(activateGroupId int) (m []*models.SuperCloudIssuanceUserGroupManageBlackListWithWxUser, total int64, err error)
SaveSuperCloudIssuanceUserGroupManageBlackListWithWxUser(id interface{}, m *models.SuperCloudIssuanceUserGroupManageBlackListWithWxUser, forceColums ...string) (affected int64, err error) SaveSuperCloudIssuanceUserGroupManageBlackListWithWxUser(id interface{}, m *models.SuperCloudIssuanceUserGroupManageBlackListWithWxUser, forceColums ...string) (affected int64, err error)
BatchSuperCloudIssuanceUserGroupManageBlackListWithWxUser(list []*models.SuperCloudIssuanceUserGroupManageBlackListWithWxUser) (int64, error) BatchSuperCloudIssuanceUserGroupManageBlackListWithWxUser(list []*models.SuperCloudIssuanceUserGroupManageBlackListWithWxUser) (int64, error)
BatchSuperCloudIssuanceUserGroupManageBlackListWithWxUserSess(sess *xorm.Session, list []*models.SuperCloudIssuanceUserGroupManageBlackListWithWxUser) (int64, error)
SuperCloudIssuanceUserGroupManageBlackListWithWxUserDelete(id interface{}) (int64, error) SuperCloudIssuanceUserGroupManageBlackListWithWxUserDelete(id interface{}) (int64, error)
} }

+ 8
- 2
src/implement/super_cloud_issuance_user_group_manage_black_list_with_wx_user_db.go View File

@@ -1,4 +1,4 @@
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"
@@ -36,7 +36,13 @@ func (s SuperCloudIssuanceUserGroupManageBlackListWithWxUserDb) BatchSuperCloudI
} }
return affected, nil 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) { func (s SuperCloudIssuanceUserGroupManageBlackListWithWxUserDb) SuperCloudIssuanceUserGroupManageBlackListWithWxUserDelete(id interface{}) (int64, error) {
if reflect.TypeOf(id).Kind() == reflect.Slice { if reflect.TypeOf(id).Kind() == reflect.Slice {
return s.Db.In("id", id).Delete(models.SuperCloudIssuanceUserGroupManageBlackList{}) return s.Db.In("id", id).Delete(models.SuperCloudIssuanceUserGroupManageBlackList{})


Loading…
Cancel
Save