Merge branch 'develop' of gitee.com:fusenpack/fusenapi into develop
This commit is contained in:
commit
ef522551e4
|
@ -106,7 +106,7 @@ func (l *GetProductTemplateTagsLogic) GetProductTemplateTags(req *types.GetProdu
|
||||||
for templateTag, _ := range mapMaterialTemplateTagColors {
|
for templateTag, _ := range mapMaterialTemplateTagColors {
|
||||||
templateTagNameList = append(templateTagNameList, templateTag)
|
templateTagNameList = append(templateTagNameList, templateTag)
|
||||||
}
|
}
|
||||||
productTemplateTags, err = l.svcCtx.AllModels.FsProductTemplateTags.GetListByTagNames(l.ctx, templateTagNameList, req.Limit, 1, "id DESC")
|
productTemplateTags, err = l.svcCtx.AllModels.FsProductTemplateTags.GetListByTagNames(l.ctx, templateTagNameList, len(templateTagNameList), 1, "id DESC")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logx.Error(err)
|
logx.Error(err)
|
||||||
return resp.SetStatusWithMessage(basic.CodeDbSqlErr, "failed to get template tags")
|
return resp.SetStatusWithMessage(basic.CodeDbSqlErr, "failed to get template tags")
|
||||||
|
@ -135,6 +135,7 @@ func (l *GetProductTemplateTagsLogic) GetProductTemplateTags(req *types.GetProdu
|
||||||
for k, v := range productTemplateTags {
|
for k, v := range productTemplateTags {
|
||||||
if templateTagStr == *v.TemplateTag {
|
if templateTagStr == *v.TemplateTag {
|
||||||
productTemplateTags[k], productTemplateTags[index] = productTemplateTags[index], productTemplateTags[k]
|
productTemplateTags[k], productTemplateTags[index] = productTemplateTags[index], productTemplateTags[k]
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ service product {
|
||||||
//获取产品模型信息
|
//获取产品模型信息
|
||||||
@handler GetModelByPidHandler
|
@handler GetModelByPidHandler
|
||||||
get /api/product/get_model_by_pid(GetModelByPidReq) returns (response);
|
get /api/product/get_model_by_pid(GetModelByPidReq) returns (response);
|
||||||
//获取产品阶梯价格列表
|
//获取产品阶梯价格列表(即将废弃)
|
||||||
@handler GetPriceByPidHandler
|
@handler GetPriceByPidHandler
|
||||||
get /api/product/get_price_by_pid(GetPriceByPidReq) returns (response);
|
get /api/product/get_price_by_pid(GetPriceByPidReq) returns (response);
|
||||||
//获取产品阶梯价格信息
|
//获取产品阶梯价格信息
|
||||||
|
|
Loading…
Reference in New Issue
Block a user