多规格返回使用新排序方法
This commit is contained in:
1 parent
4d9b2cd377
commit
98b2e858cb
1 file changed
+4
-2
+4
-2
@@ -8,6 +8,7 @@ import cn.hutool.core.util.ArrayUtil;
|
|||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import co.yixiang.yshop.framework.common.enums.ShopCommonEnum;
|
import co.yixiang.yshop.framework.common.enums.ShopCommonEnum;
|
||||||
|
import co.yixiang.yshop.framework.common.util.string.StrUtils;
|
||||||
import co.yixiang.yshop.module.product.convert.storeproductrule.StoreProductRuleConvert;
|
import co.yixiang.yshop.module.product.convert.storeproductrule.StoreProductRuleConvert;
|
||||||
import co.yixiang.yshop.module.product.dal.dataobject.category.ProductCategoryDO;
|
import co.yixiang.yshop.module.product.dal.dataobject.category.ProductCategoryDO;
|
||||||
import co.yixiang.yshop.module.product.dal.dataobject.storeproductattrresult.StoreProductAttrResultDO;
|
import co.yixiang.yshop.module.product.dal.dataobject.storeproductattrresult.StoreProductAttrResultDO;
|
||||||
@@ -171,9 +172,10 @@ public class StoreProductServiceImpl extends ServiceImpl<StoreProductMapper,Stor
|
|||||||
for (Map<String, Map<String, String>> map : detailDto.getRes()) {
|
for (Map<String, Map<String, String>> map : detailDto.getRes()) {
|
||||||
Map<String, String> detail = map.get("detail");
|
Map<String, String> detail = map.get("detail");
|
||||||
String[] detailArr = detail.values().toArray(new String[]{});
|
String[] detailArr = detail.values().toArray(new String[]{});
|
||||||
Arrays.sort(detailArr);
|
//Arrays.sort(detailArr);
|
||||||
|
|
||||||
String sku = String.join(",", detailArr);
|
// String sku = String.join(",", detailArr);
|
||||||
|
String sku = String.join(",", StrUtils.compareTo(CollUtil.toList(detailArr)));
|
||||||
|
|
||||||
Map<String, Object> valueMap = new LinkedHashMap<>();
|
Map<String, Object> valueMap = new LinkedHashMap<>();
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user