|
|
@@ -75,7 +75,6 @@ public class GoodsLogic {
|
|
|
public IPage<GoodsSpecBean> page(String flag, String keyword, BigDecimal startPrice, BigDecimal endPrice,
|
|
|
String goodsSortJson, String categoryId, Boolean status,
|
|
|
Integer pageNum, Integer pageSize, HttpServletRequest request) {
|
|
|
- System.out.println("开始" + DateUtil.formatDateTime(DateUtil.date()));
|
|
|
//获取当前登录微信企业微信id
|
|
|
AdminUserCom adminUser = commonLogic.getAdminUser(request);
|
|
|
List<String> companyWechatIds = adminUser.getCompanyWechatIds();
|
|
|
@@ -210,6 +209,7 @@ public class GoodsLogic {
|
|
|
* @return
|
|
|
*/
|
|
|
public GoodsSpecBean detail(String goodsId, Boolean allStorageSpec) throws RemoteServiceException {
|
|
|
+ System.out.println("开始" + DateUtil.formatDateTime(DateUtil.date()));
|
|
|
Goods goods = goodsService.getById(goodsId);
|
|
|
final GoodsDetail goodsDetail = !allStorageSpec ? goodsDetailService.getById(goodsId) : null;
|
|
|
List<GoodsSpec> goodsSpecs = goodsSpecService.lambdaQuery()
|
|
|
@@ -234,6 +234,7 @@ public class GoodsLogic {
|
|
|
|
|
|
List<GoodsSpecVO> goodsSpecVOS = BeanUtil.copyToList(goodsSpecs, GoodsSpecVO.class);
|
|
|
List<GoodsSpecVO> groupGoodsSpecVOS = new ArrayList<>();
|
|
|
+ System.out.println("商品规格开始" + DateUtil.formatDateTime(DateUtil.date()));
|
|
|
for (GoodsSpecVO goodsSpecVO : goodsSpecVOS) {
|
|
|
GoodsMaterial goodsMaterial = goodsMaterialService.getById(goodsSpecVO.getGoodsCode());
|
|
|
|
|
|
@@ -277,6 +278,7 @@ public class GoodsLogic {
|
|
|
goodsBean.setTemplateId(goodsTemplates.get(0).getTemplateId());
|
|
|
}
|
|
|
//查询商品标签
|
|
|
+ System.out.println("商品标签开始" + DateUtil.formatDateTime(DateUtil.date()));
|
|
|
List<GoodsTagRela> goodsTagRela = goodsTagRelaService.lambdaQuery().eq(GoodsTagRela::getGoodsId, goodsId)
|
|
|
.eq(GoodsTagRela::getType, 1).list();
|
|
|
if (goodsTagRela.size() > 0) {
|
|
|
@@ -292,6 +294,7 @@ public class GoodsLogic {
|
|
|
}
|
|
|
|
|
|
// 文档列表
|
|
|
+ System.out.println("文档列表开始" + DateUtil.formatDateTime(DateUtil.date()));
|
|
|
final List<GoodsDocumentsRela> relaList = goodsDocumentsRelaService.lambdaQuery()
|
|
|
.eq(GoodsDocumentsRela::getGoodsId, goodsId)
|
|
|
.list();
|
|
|
@@ -314,7 +317,7 @@ public class GoodsLogic {
|
|
|
}
|
|
|
goodsBean.setGoodsDocumentsRelaList(relaBeanList);
|
|
|
}
|
|
|
-
|
|
|
+ System.out.println("结束" + DateUtil.formatDateTime(DateUtil.date()));
|
|
|
return goodsBean;
|
|
|
}
|
|
|
|