| | |
| | | |
| | | |
| | | private String PREFIX = "/system/tGoods/"; |
| | | private String PREFIX1 = "/system/tGoodsAudit/"; |
| | | |
| | | |
| | | @Resource |
| | |
| | | public String index(Model model) { |
| | | |
| | | return PREFIX + "TGoods.html"; |
| | | } |
| | | @RequestMapping("/audit") |
| | | public String audit(Model model) { |
| | | return PREFIX1 + "TGoodsAudit.html"; |
| | | } |
| | | |
| | | /** |
| | |
| | | model.addAttribute("list",provinceList); |
| | | return PREFIX + "TStoreList.html"; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 跳转到门店管理列表页 |
| | | */ |
| | |
| | | pointsMerchandise.setInsertTime(new Date()); |
| | | pointsMerchandise.setCoursePackageConfigId(coursePackageConfigId); |
| | | // 代替storeId |
| | | pointsMerchandise.setShelves(storeId); |
| | | pointsMerchandise.setShelves(1); |
| | | Integer id = pointMercharsClient.add(pointsMerchandise); |
| | | if(typeAll!=2){ |
| | | if(useScope==2){ |
| | |
| | | System.out.println(ofSearch); |
| | | return pointMercharsClient.getIntegralGoodsListOfSearch(ofSearch); |
| | | } |
| | | @RequestMapping(value = "/listAudit") |
| | | @ResponseBody |
| | | public Object listOfIntegralGoodsAudit(String name, Integer type, Integer redemptionMethod , Integer userPopulation, Integer activeStatus) { |
| | | Page<Map<String, Object>> page = new PageFactory<Map<String, Object>>().defaultPage(); |
| | | IntegralGoodsOfSearch ofSearch = new IntegralGoodsOfSearch(); |
| | | ofSearch.setPage(page); |
| | | ofSearch.setName(name); |
| | | ofSearch.setType(type); |
| | | ofSearch.setRedemptionMethod(redemptionMethod); |
| | | ofSearch.setUserPopulation(userPopulation); |
| | | ofSearch.setActiveStatus(activeStatus); |
| | | return pointMercharsClient.getIntegralGoodsListOfSearchAudit(ofSearch); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @RequestMapping(value = "/updateTypeOne") |
| | | @ResponseBody |
| | | public Object updateTypeOne(Integer id, Integer type, String remark) { |
| | | Object o = pointMercharsClient.updateType(id + "_" + type + "_" + remark); |
| | | return SUCCESS_TIP; |
| | | } |
| | | |
| | | |
| | | |