审核门店

This commit is contained in:
苏尹岚
2020-09-24 10:04:58 +08:00
parent 3466a5fccd
commit 3995b3705b
2 changed files with 3 additions and 2 deletions

View File

@@ -3635,6 +3635,7 @@ func StoreAudit(ctx *jxcontext.Context, storeAudits []*model.StoreAudit, status
if data, err := json.Marshal(&storeAudits[0]); err == nil {
utils.UnmarshalUseNumber(data, &storeExt)
}
storeExt.ID = 0
storeID, err := CreateStore(ctx, storeExt, ctx.GetUserName())
if err != nil {
return retVal, fmt.Errorf(err.Error())

View File

@@ -711,8 +711,8 @@ type StoreAudit struct {
CloseTime1 int16 `json:"closeTime1" validate:"max=2359,min=1` // 格式同上
OpenTime2 int16 `json:"openTime2" validate:"max=2359,min=1,ltfield=CloseTime2"` // 格式同上
CloseTime2 int16 `json:"closeTime2" validate:"max=2359,min=1` // 格式同上
Lng int `json:"-"` // 乘了10的6次方
Lat int `json:"-"` // 乘了10的6次方
Lng int `json:"lng"` // 乘了10的6次方
Lat int `json:"lat"` // 乘了10的6次方
DeliveryRangeType int8 `json:"deliveryRangeType"` // 参见相关常量定义
DeliveryRange string `orm:"type(text)" json:"deliveryRange"` // 如果DeliveryRangeType为DeliveryRangeTypePolygon则为逗号分隔坐标分号分隔的坐标点坐标与Lng和Lat一样都是整数比如 121361504,31189308;121420555,31150238。否则为半径单位为米
Status int `json:"status"`