门店审核

This commit is contained in:
苏尹岚
2020-09-16 11:05:10 +08:00
parent f158420aee
commit 3d4b13eb98
2 changed files with 18 additions and 2 deletions

View File

@@ -165,7 +165,7 @@ func result2Orders(msg *jdshopapi.CallBackResult) (order *model.GoodsOrder, err
storeSkuList, _ := dao.GetStoresSkusInfo(dao.GetDB(), []int{order.StoreID}, []int{sku.SkuID})
if len(storeSkuList) > 0 && storeSkuList[0].Status == model.StoreSkuBindStatusNormal {
saleNormalSum += 1
shopPriceSum += storeSkuList[0].Price
shopPriceSum += storeSkuList[0].Price * sku.Count
}
}
//可售数小于一半就不行
@@ -190,7 +190,6 @@ func result2Orders(msg *jdshopapi.CallBackResult) (order *model.GoodsOrder, err
}
}
}
break
}
} else {

View File

@@ -840,3 +840,20 @@ func (c *StoreController) UpdateStorePushClient() {
return retVal, "", err
})
}
// @Title 用户申请门店审核
// @Description 用户申请门店审核
// @Param token header string true "认证token"
// @Param payload formData string true "json数据store对象"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /CreateStoreAudit [post]
func (c *StoreController) CreateStoreAudit() {
c.callCreateStoreAudit(func(params *tStoreCreateStoreAuditParams) (retVal interface{}, errCode string, err error) {
store := &model.StoreAudit{}
if err = utils.UnmarshalUseNumber([]byte(params.Payload), store); err == nil {
// retVal, err = cms.CreateStore(params.Ctx, store, params.Ctx.GetUserName())
}
return retVal, "", err
})
}