商品审核修改
This commit is contained in:
@@ -4,6 +4,8 @@ import (
|
||||
"math"
|
||||
"time"
|
||||
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
|
||||
"git.rosy.net.cn/baseapi/platformapi/jdapi"
|
||||
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
|
||||
@@ -825,6 +827,7 @@ func (c *StoreSkuController) SyncMatterC4ToGy() {
|
||||
// @Param nameIDs query string false "id列表对象,当前指skuname id"
|
||||
// @Param statuss query string false "审核状态"
|
||||
// @Param types query string false "改价类型,1是普通改价,2是关注"
|
||||
// @Param keyword query string false "关键字"
|
||||
// @Param offset query int false "门店列表起始序号(以0开始,缺省为0)"
|
||||
// @Param pageSize query int false "门店列表页大小(缺省为50,-1表示全部)"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
@@ -838,7 +841,7 @@ func (c *StoreSkuController) GetStoreSkuAudit() {
|
||||
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs, params.NameIDs, &nameIDs, params.Statuss, &statuss, params.Types, &types); err != nil {
|
||||
return retVal, "", err
|
||||
}
|
||||
retVal, err = cms.GetStoreSkuAudit(params.Ctx, storeIDs, nameIDs, nil, statuss, types, params.Name, params.Remark, params.ApplyTimeStart, params.ApplyTimeEnd, params.AuditTimeStart, params.AuditTimeEnd, params.PageSize, params.Offset)
|
||||
retVal, err = cms.GetStoreSkuAudit(params.Ctx, storeIDs, nameIDs, nil, statuss, types, params.Name, params.Remark, params.Keyword, params.ApplyTimeStart, params.ApplyTimeEnd, params.AuditTimeStart, params.AuditTimeEnd, params.PageSize, params.Offset)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
@@ -846,11 +849,8 @@ func (c *StoreSkuController) GetStoreSkuAudit() {
|
||||
// @Title 审核商品
|
||||
// @Description 审核商品
|
||||
// @Param token header string true "认证token"
|
||||
// @Param storeIDs formData string false "门店ID列表"
|
||||
// @Param nameIDs formData string false "id列表对象,当前指skuname id"
|
||||
// @Param auditPrice formData int false "录入的审核价格"
|
||||
// @Param payload formData string true "json数据,storeskuaudit对象"
|
||||
// @Param status formData int false "审核标志,1通过,-1 不通过"
|
||||
// @Param remark formData string false "审核不通过原因"
|
||||
// @Param isAsync formData bool false "是否异步,缺省是同步"
|
||||
// @Param isContinueWhenError formData bool false "单个同步失败是否继续,缺省false"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
@@ -858,11 +858,11 @@ func (c *StoreSkuController) GetStoreSkuAudit() {
|
||||
// @router /StoreSkuPriceAudit [post]
|
||||
func (c *StoreSkuController) StoreSkuPriceAudit() {
|
||||
c.callStoreSkuPriceAudit(func(params *tStoreSkuStoreSkuPriceAuditParams) (retVal interface{}, errCode string, err error) {
|
||||
var storeIDs, nameIDs []int
|
||||
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs, params.NameIDs, &nameIDs); err != nil {
|
||||
var storeSkuAudits []*model.StoreSkuAudit
|
||||
if err = jxutils.Strings2Objs(params.Payload, &storeSkuAudits); err != nil {
|
||||
return retVal, "", err
|
||||
}
|
||||
retVal, err = cms.StoreSkuPriceAudit(params.Ctx, storeIDs, nameIDs, params.Status, params.AuditPrice, params.Remark, params.IsAsync, params.IsContinueWhenError)
|
||||
retVal, err = cms.StoreSkuPriceAudit(params.Ctx, storeSkuAudits, params.Status, params.IsAsync, params.IsContinueWhenError)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user