This commit is contained in:
Carl 2022-01-30 16:04:13 +08:00
parent 36d2aaf21c
commit e75e2149dc

View File

@ -33,7 +33,7 @@ public class GoodService {
public GoodsEntity listGoodsByProductCode(String productCode){
String ip = "https://shop.royalcanin.com.cn/royalcanin/royalcanin/";
GoodsEntity goodsEntity = goodsDao.findByProductCode(productCode);
goodsEntity.setShowImgFile(ip+goodsEntity.getPicture());
goodsEntity.setShowImgFile(ip+goodsEntity.getShowImgFile());
goodsEntity.setPicture(ip+goodsEntity.getPicture());
return goodsEntity;
}
@ -42,7 +42,7 @@ public class GoodService {
String ip = "https://shop.royalcanin.com.cn/royalcanin/royalcanin/";
List<GoodsEntity> goodsList = goodsDao.selectRoleIdByGoodsNameBankNameTagUsedAge(title,petType);
for (GoodsEntity goodsEntity:goodsList) {
goodsEntity.setShowImgFile(ip+goodsEntity.getPicture());
goodsEntity.setShowImgFile(ip+goodsEntity.getShowImgFile());
goodsEntity.setPicture(ip+goodsEntity.getPicture());
}
return goodsList;