| | |
| | | import com.dsh.course.feignClient.account.model.QueryByNamePhone; |
| | | import com.dsh.course.feignClient.account.model.TAppUser; |
| | | import com.dsh.course.feignClient.activity.CouponClient; |
| | | import com.dsh.course.feignClient.activity.model.Coupon; |
| | | import com.dsh.course.feignClient.activity.model.CouponCity; |
| | | import com.dsh.course.feignClient.activity.model.CouponListOfSearch; |
| | | import com.dsh.course.feignClient.activity.model.CouponRecordQuery; |
| | | import com.dsh.course.feignClient.activity.model.*; |
| | | import com.dsh.guns.config.UserExt; |
| | | import com.dsh.guns.core.base.tips.SuccessTip; |
| | | import com.dsh.guns.core.common.constant.factory.PageFactory; |
| | |
| | | public String memberCouponAdd(Model model) { |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | System.out.println(objectType); |
| | | List<PointsMerchandise> pointsMerchandises = client.goodsList(); |
| | | model.addAttribute("userType",objectType); |
| | | model.addAttribute("goods",pointsMerchandises); |
| | | return PREFIX + "TCouponAdd.html"; |
| | | } |
| | | |
| | |
| | | return PREFIX + "TCouponInfo.html"; |
| | | } |
| | | |
| | | |
| | | // 积分商品活动状态 未开始和已开始状态 上架 |
| | | @RequestMapping("/goodsList") |
| | | @ResponseBody |
| | | public Object goodsList() { |
| | | return client.goodsList(); |
| | | } |
| | | |
| | | /** |
| | | * 跳转到门店管理列表页 |
| | |
| | | |
| | | return couponListOfSearch; |
| | | } |
| | | /** |
| | | * 根据运营商ID 获取运营商管理的省市 |
| | | */ |
| | | @RequestMapping(value = "/listSelect") |
| | | @ResponseBody |
| | | public Object listOfDatas(String name, Integer type, Integer status, Integer state) { |
| | | Page<Map<String, Object>> page = new PageFactory<Map<String, Object>>().defaultPage(); |
| | | CouponListOfSearch ofSearch = new CouponListOfSearch(); |
| | | ofSearch.setPage(page); |
| | | ofSearch.setName(name); |
| | | ofSearch.setType(type); |
| | | ofSearch.setStatus(status); |
| | | ofSearch.setState(state); |
| | | List<Map<String, Object>> couponListOfSearch = client.getCouponListAllOfSearch(ofSearch); |
| | | return couponListOfSearch; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取 优惠券管理 |