feat(商城): 首页

金刚位跳转代码优化
master
wayn 4 years ago
parent a600d1c641
commit 0139beda82

1
.gitignore vendored

@ -32,3 +32,4 @@ build/
.mvn
mvnw*
.gradle

@ -44,13 +44,11 @@ public class ColumnController extends BaseController {
ColumnVO columnVO = new ColumnVO();
try {
BeanUtils.copyProperties(columnVO, item);
Integer count = iColumnGoodsRelationService.getGoodsNum(item.getId());
columnVO.setGoodsNum(count);
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
} catch (IllegalAccessException | InvocationTargetException e) {
e.printStackTrace();
}
Integer count = iColumnGoodsRelationService.getGoodsNum(item.getId());
columnVO.setGoodsNum(count);
return columnVO;
}).collect(Collectors.toList());
return R.success().add("page", formatPage(columnIPage, columnVOS));

Loading…
Cancel
Save