1
This commit is contained in:
@@ -283,7 +283,14 @@ func AddVendorOrgCode(ctx *jxcontext.Context, vendorOrgCode *model.VendorOrgCode
|
||||
if len(list) > 0 {
|
||||
return fmt.Errorf("库里有这个账号了,[%v]", vendorOrgCode.VendorOrgCode)
|
||||
}
|
||||
dao.WrapAddIDCULDEntity(vendorOrgCode, ctx.GetUserName())
|
||||
|
||||
var userName string
|
||||
if ctx != nil {
|
||||
userName = ctx.GetUserName()
|
||||
} else {
|
||||
userName = "system"
|
||||
}
|
||||
dao.WrapAddIDCULDEntity(vendorOrgCode, userName)
|
||||
dao.CreateEntity(db, vendorOrgCode)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user