|
@@ -1,11 +1,13 @@
|
|
|
package com.caimei.modules.hehe.service;
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.util.List;
|
|
|
|
|
|
import com.caimei.modules.hehe.dao.CmHeheActivityProductDao;
|
|
|
import com.caimei.modules.hehe.entity.CmHeheActivityProduct;
|
|
|
import com.caimei.modules.hehe.entity.CmHeheProduct;
|
|
|
import com.caimei.utils.AppUtils;
|
|
|
+import com.caimei.utils.MathUtil;
|
|
|
import com.caimei.utils.StringUtil;
|
|
|
import com.thinkgem.jeesite.common.config.Global;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -39,7 +41,11 @@ public class HeheHomeTypeProductService extends CrudService<HeheHomeTypeProductD
|
|
|
}
|
|
|
|
|
|
public Page<HeheHomeTypeProduct> findPage(Page<HeheHomeTypeProduct> page, HeheHomeTypeProduct heheHomeTypeProduct) {
|
|
|
- return super.findPage(page, heheHomeTypeProduct);
|
|
|
+ Page<HeheHomeTypeProduct> productPage = super.findPage(page, heheHomeTypeProduct);
|
|
|
+ List<HeheHomeTypeProduct> list = productPage.getList();
|
|
|
+ String wwwServer = Global.getConfig("wwwServer");
|
|
|
+ list.forEach(p -> p.setMainImage(AppUtils.getImageURL("product", p.getMainImage(), 0, wwwServer)));
|
|
|
+ return productPage;
|
|
|
}
|
|
|
|
|
|
@Transactional(readOnly = false)
|