| | |
| | | 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"; |
| | | } |
| | | |
| | | |