| | |
| | | import com.matrix.core.pojo.AjaxResult; |
| | | import com.matrix.core.pojo.PaginationVO; |
| | | import com.matrix.core.tools.DateUtil; |
| | | import com.matrix.core.tools.StringUtils; |
| | | import com.matrix.core.tools.WebUtil; |
| | | import com.matrix.core.tools.excl.ExcelSheetPO; |
| | | import com.matrix.core.tools.excl.ExcelVersion; |
| | |
| | | @RequestMapping(value = "/showList") |
| | | public @ResponseBody |
| | | AjaxResult showList(ShoppingGoods shoppingGoods, PaginationVO pageVo) { |
| | | pageVo.setOrder("desc"); |
| | | pageVo.setSort("createTime"); |
| | | if(StringUtils.isBlank(pageVo.getSort())){ |
| | | pageVo.setOrder("desc"); |
| | | pageVo.setSort("createTime"); |
| | | } |
| | | QueryUtil.setQueryLimitCom(shoppingGoods); |
| | | shoppingGoods.setIsDel(ShoppingGoods.NORMAL); |
| | | List<ShoppingGoods> dataList = shoppingGoodsService.findInPage(shoppingGoods, pageVo); |
| | |
| | | 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-erp/products/money-card-form"; |
| | | } else if (shoppingGoods.getGoodType().equals(Dictionary.SHOPPING_GOODS_TYPE_ZHK)) { |
| | | WebUtil.getRequest().setAttribute("obj", shoppingGoods); |
| | | return "admin/hive-erp/products/zonghe-card-form"; |
| | | } |
| | | |
| | | |