liujie
2023-09-23 3d4790111bcc3c6f2917e61ffed0f8411bdcc7ae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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("/introduce")
public class TIntroductionCourtesyController {
 
    private String PREFIX = "/system/introduce/";
 
    @Autowired
    private ICityService cityService;
 
    /**
     * 介绍有礼列表页
     */
    @RequestMapping("")
    public String index(Model model) {
        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;
    }
}