This commit is contained in:
邹宗楠
2022-11-21 14:17:10 +08:00
parent 93a032b931
commit d7f4e8ca62
2 changed files with 67 additions and 55 deletions

View File

@@ -435,11 +435,11 @@ func (p *PurchaseHandler) UpdateStoreSkusSpecTag(ctx *jxcontext.Context, vendorO
return err
}
func GetProductAuditList(vendorOrgCode string, page, pageSize int64) map[string]string {
func GetProductAuditList(vendorOrgCode string, page, pageSize int64) (map[string]string, int64) {
updateCategory := make(map[string]string, 100) // 修改分类的Map
data, _, err := getAPI(vendorOrgCode, 0, "").GetProductAuditList(page, pageSize, 2)
data, total, err := getAPI(vendorOrgCode, 0, "").GetProductAuditList(page, pageSize, 2)
if err != nil || len(data) == 0 {
return nil
return nil, 0
}
for _, v := range data {
if _, ok := v.AuditReason["综合原因"]; ok {
@@ -451,5 +451,5 @@ func GetProductAuditList(vendorOrgCode string, page, pageSize int64) map[string]
}
}
}
return updateCategory
return updateCategory, total
}