用户申请入驻
This commit is contained in:
@@ -3559,3 +3559,16 @@ func UpdateStorePushClient(ctx *jxcontext.Context, storeID int, cID string) (err
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func CreateStoreAudit(ctx *jxcontext.Context, storeAudit *model.StoreAudit) (err error) {
|
||||
var (
|
||||
db = dao.GetDB()
|
||||
)
|
||||
storeAudits, err := dao.GetStoreAudit(db, model.StoreAuditStatusOnline, storeAudit.UserID, "")
|
||||
if len(storeAudits) > 0 {
|
||||
return fmt.Errorf("您已申请过入驻,请不要重复申请!")
|
||||
}
|
||||
dao.WrapAddIDCULDEntity(storeAudit, ctx.GetUserName())
|
||||
dao.CreateEntity(db, storeAudit)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user