| | |
| | | shoppingGoods.setAssembleProj(shoppingGoodsAssembleDao.selectGoodsByShoppingGoodsIdAndType(shoppingGoods.getId(), ShoppingGoods.SHOPPING_GOODS_TYPE_XM)); |
| | | } else if ( |
| | | Dictionary.SHOPPING_GOODS_TYPE_XM.equals(shoppingGoods.getGoodType()) |
| | | || Dictionary.SHOPPING_GOODS_TYPE_ZHK.equals(shoppingGoods.getGoodType()) |
| | | ) { |
| | | shoppingGoods.setAssembleGoods(shoppingGoodsAssembleDao.selectGoodsByShoppingGoodsIdAndType(shoppingGoods.getId(), null)); |
| | | } else if (Dictionary.SHOPPING_GOODS_TYPE_CZK.equals(shoppingGoods.getGoodType())) { |
| | |
| | | } |
| | | } |
| | | shoppingGoods.setIsDel(ShoppingGoods.NORMAL); |
| | | shoppingGoods.setStaus(Dictionary.BUSINESS_STATE_UP); |
| | | List<ShoppingGoods> dataList = shoppingGoodsService.findInPage(shoppingGoods, pageVo); |
| | | AjaxResult result = new AjaxResult(AjaxResult.STATUS_SUCCESS, dataList, shoppingGoodsService.findTotal(shoppingGoods)); |
| | | return result; |
| | |
| | | shoppingGoods.setAssembleGoods(assembleListGoods); |
| | | List<ShoppingGoodsAssemble> assembleListProj = shoppingGoodsAssembleDao.selectProjByShoppingGoodsId(shoppingGoods.getId()); |
| | | shoppingGoods.setAssembleProj(assembleListProj); |
| | | } else if (Dictionary.SHOPPING_GOODS_TYPE_ZHK.equals(shoppingGoods.getGoodType())) { |
| | | List<ShoppingGoodsAssemble> assembleList = shoppingGoodsAssembleDao.selectAssembleShoppingGoodsByShoppingGoodsId(shoppingGoods.getId()); |
| | | shoppingGoods.setZongheCarGoods(assembleList); |
| | | } |
| | | |
| | | |
| | |
| | | // 返回充值卡编辑界面 |
| | | WebUtil.getRequest().setAttribute("obj", shoppingGoods); |
| | | return "admin/hive/products/money-card-form"; |
| | | } else if (shoppingGoods.getGoodType().equals(Dictionary.SHOPPING_GOODS_TYPE_ZHK)) { |
| | | WebUtil.getRequest().setAttribute("obj", shoppingGoods); |
| | | return "admin/hive/products/zonghe-card-form"; |
| | | } |
| | | |
| | | |
| | |
| | | String title = "商品资料"; |
| | | orderSheet.setSheetName(title); |
| | | orderSheet.setTitle(title); |
| | | String[] header = {"商品名称", "商品编号", "售价/(本金)", "参考价/(赠送金额)", "真实销量", "状态", "是否赠送", "类型", "分类", "是否固定套餐", "产品归属"}; |
| | | String[] header = {"商品名称", "商品编号", "售价/(本金)", "参考价/(赠送金额)", "真实销量", "状态", "是否赠送", "类型", "分类", "是否固定套餐", "产品归属","时长"}; |
| | | orderSheet.setHeaders(header); |
| | | List<ShoppingGoods> dataList = shoppingGoodsService.findAll(shoppingGoods); |
| | | List<List<Object>> list = new ArrayList<>(); |
| | |
| | | temp.add(item.getCateName()); |
| | | temp.add(item.getIsCourse()); |
| | | temp.add(item.getHeadquarters() == 1 ? "总部产品" : "本店产品"); |
| | | temp.add(item.getTimeLength()); |
| | | list.add(temp); |
| | | } |
| | | } |