| | |
| | | package com.dsh.guns.modular.system.controller.code; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.dsh.course.feignClient.other.model.Banner; |
| | | import com.dsh.guns.modular.system.model.AdvertisementQuery; |
| | | import com.dsh.guns.modular.system.model.IntroduceQuery; |
| | | import com.dsh.guns.modular.system.model.TCity; |
| | | import com.dsh.guns.modular.system.service.ICityService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.Model; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 介绍有礼 控制器 |
| | | */ |
| | | |
| | | @Controller |
| | | @RequestMapping("/tIntroductionCourtesy") |
| | | @RequestMapping("/introduce") |
| | | public class TIntroductionCourtesyController { |
| | | |
| | | private String PREFIX = "/system/tIntroductionCourtesy/"; |
| | | private String PREFIX = "/system/introduce/"; |
| | | |
| | | @Autowired |
| | | private ICityService cityService; |
| | | |
| | | /** |
| | | * 优惠券审核列表页 |
| | | * 介绍有礼列表页 |
| | | */ |
| | | @RequestMapping("") |
| | | public String index(Model model) { |
| | | return PREFIX + "tIntroductionCourtesy.html"; |
| | | List<TCity> list = cityService.list(new LambdaQueryWrapper<TCity>().eq(TCity::getParentId, 0)); |
| | | model.addAttribute("list",list); |
| | | return PREFIX + "introduce.html"; |
| | | } |
| | | /** |
| | | * 介绍有礼添加页 |
| | | */ |
| | | @RequestMapping("/add") |
| | | public String add(Model model) { |
| | | List<TCity> list = cityService.list(new LambdaQueryWrapper<TCity>().eq(TCity::getParentId, 0)); |
| | | model.addAttribute("list",list); |
| | | return PREFIX + "introduce_add.html"; |
| | | } |
| | | /** |
| | | * 介绍有礼编辑页 |
| | | */ |
| | | @RequestMapping("/update") |
| | | public String update(Model model) { |
| | | return PREFIX + "introduce_update.html"; |
| | | } |
| | | /** |
| | | * 介绍有礼-参与用户页 |
| | | */ |
| | | @RequestMapping("/joinUser") |
| | | public String joinUser(Model model) { |
| | | return PREFIX + "introduce_user.html"; |
| | | } |
| | | |
| | | /** |
| | | * 获取介绍有利记录列表 |
| | | */ |
| | | @RequestMapping(value = "/listAll") |
| | | @ResponseBody |
| | | public List<Banner> listAll(IntroduceQuery query) { |
| | | |
| | | return null; |
| | | } |
| | | } |