1
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user