This commit is contained in:
邹宗楠
2022-10-06 11:36:19 +08:00
30 changed files with 1609 additions and 504 deletions

View File

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