审核门店

This commit is contained in:
苏尹岚
2020-09-16 14:40:15 +08:00
parent 8b1eda705c
commit 7872ab395d

View File

@@ -3568,6 +3568,9 @@ func CreateStoreAudit(ctx *jxcontext.Context, storeAudit *model.StoreAudit) (err
if len(storeAudits) > 0 {
return fmt.Errorf("您已申请过入驻,请不要重复申请!")
}
if storeAudit.UserID == "" {
storeAudit.UserID = ctx.GetUserID()
}
dao.WrapAddIDCULDEntity(storeAudit, ctx.GetUserName())
dao.CreateEntity(db, storeAudit)
return err