BUG修改

This commit is contained in:
itheinjury@163.com
2022-03-03 16:11:08 +08:00
parent a52b672e9b
commit f14efa2612
9 changed files with 200 additions and 30 deletions

View File

@@ -253,31 +253,26 @@ public class GoodsStoreController {
if (map1.containsKey("four_category_icon") && map1.get("four_category_icon") != null) {
List<Map<String, String>> images = new ArrayList<>();
Map<String,String> map2 = new HashMap<>();
map2.put("url",map1.get("four_category_icon").toString());
Map<String, String> map2 = new HashMap<>();
map2.put("url", map1.get("four_category_icon").toString());
images.add(map2);
map.put("images", images);
i += 1;
}
mapArrayList.add(map);
goodsOperationDTO.setSkuList(mapArrayList);//sku列表
if (goodsList.size() > 0) {
GoodsOperationDTO goodsOperationDTO1 = new GoodsOperationDTO();
goodsOperationDTO1.setPrice(Double.valueOf(map1.get("purchase_price").toString()));
goodsService.editGoods(goodsOperationDTO1, goodsList.get(0).getId());
}else{
goodsService.fuLuEditGoods(goodsOperationDTO, goodsList.get(0).getId());
} else {
goodsService.fuLuAddGoods(goodsOperationDTO);
}
i += 1;
break;
}
if (i == 1) {
break;
}
// if (i == 1) {
// break;
// }
}
}
return ResultUtil.success();

View File

@@ -191,10 +191,10 @@ lili:
sk: zhNKVrJK6UPOhqIjn8AQvG37b9sz6
#域名
domain:
pc: http://zbuyer.sx1788.cn/buyer
wap: http://zshop.sx1788.cn/
store: http://zseller.sx1788.cn/login
admin: http://zmanager.sx1788.cn/login
pc: https://zbuyer.sx1788.cn
wap: https://zshop.sx1788.cn
store: https://zseller.sx1788.cn
admin: https://zmanager.sx1788.cn
#api地址
api:
buyer: https://zshop-api.sx1788.cn/buyer-api