瀏覽代碼

前台获取会议等信息

huwhois 5 年之前
父節點
當前提交
9ab40a64ad

+ 10 - 11
src/main/java/io/renren/modules/admin/controller/EmployeeController.java

@ -6,20 +6,20 @@ import java.util.Date;
6 6
import java.util.List;
7 7
import java.util.Map;
8 8

9
import cn.hutool.core.util.StrUtil;
10
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
11
import com.baomidou.mybatisplus.core.metadata.IPage;
12
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
13
import io.renren.common.annotation.SysLog;
14
import io.renren.common.utils.Query;
15 9
import org.apache.shiro.authz.annotation.RequiresPermissions;
16 10
import org.springframework.beans.factory.annotation.Autowired;
17
import org.springframework.web.bind.annotation.*;
11
import org.springframework.web.bind.annotation.PathVariable;
12
import org.springframework.web.bind.annotation.PostMapping;
13
import org.springframework.web.bind.annotation.RequestBody;
14
import org.springframework.web.bind.annotation.RequestMapping;
15
import org.springframework.web.bind.annotation.RequestParam;
16
import org.springframework.web.bind.annotation.RestController;
18 17

19
import io.renren.modules.admin.entity.EmployeeEntity;
20
import io.renren.modules.admin.service.EmployeeService;
18
import io.renren.common.annotation.SysLog;
21 19
import io.renren.common.utils.PageUtils;
22 20
import io.renren.common.utils.R;
21
import io.renren.modules.admin.entity.EmployeeEntity;
22
import io.renren.modules.admin.service.EmployeeService;
23 23

24 24

25 25

@ -211,7 +211,7 @@ public class EmployeeController {
211 211
    @SysLog("修改密码")
212 212
    @PostMapping("/password")
213 213
    @RequiresPermissions("admin:employee:password")
214
    public R password(@RequestBody Map<String,Object> params){
214
    public R password(@RequestParam Map<String,Object> params){
215 215
        Long id = Long.valueOf(params.get("id").toString());
216 216
        boolean flag = employeeService.updatePasswordByid(id);
217 217

@ -221,5 +221,4 @@ public class EmployeeController {
221 221
        return R.ok();
222 222

223 223
    }
224

225 224
}

+ 61 - 0
src/main/java/io/renren/modules/app/controller/Lecture.java

@ -0,0 +1,61 @@
1
package io.renren.modules.app.controller;
2
3
import java.util.List;
4
5
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
6
7
import org.springframework.beans.factory.annotation.Autowired;
8
import org.springframework.web.bind.annotation.GetMapping;
9
import org.springframework.web.bind.annotation.PathVariable;
10
import org.springframework.web.bind.annotation.RequestMapping;
11
import org.springframework.web.bind.annotation.RestController;
12
13
import io.renren.common.utils.R;
14
import io.renren.modules.admin.entity.LectureEntity;
15
import io.renren.modules.admin.service.LectureService;
16
17
/**
18
 * 演讲(报告)表
19
 *
20
 * @author chenshun
21
 * @email sunlightcs@gmail.com
22
 * @date 2020-02-11 14:36:45
23
 */
24
@RestController
25
@RequestMapping("app/lecture")
26
public class Lecture {
27
    @Autowired
28
    private LectureService lectureService;
29
30
    // /**
31
    //  * 列表
32
    //  */
33
    // @GetMapping("/list")
34
    // public R list(@RequestParam Map<String, Object> params) {
35
    //     PageUtils page = lectureService.queryPage(params);
36
37
    //     return R.ok().put("page", page);
38
    // }
39
40
41
    /**
42
     * 列表
43
     */
44
    @GetMapping("/list/{mid}")
45
    public R list(@PathVariable("mid") Long mid) {     
46
         List<LectureEntity> lectureList = lectureService.list(
47
             new QueryWrapper<LectureEntity>().eq("meeting_id", mid));
48
49
        return R.ok().put("lectureList", lectureList);
50
    }
51
52
    /**
53
     * 信息
54
     */
55
    @GetMapping("/info/{id}")
56
    public R info(@PathVariable("id") Long id) {
57
        LectureEntity lecture = lectureService.getById(id);
58
59
        return R.ok().put("lecture", lecture);
60
    }
61
}

+ 34 - 0
src/main/java/io/renren/modules/app/controller/Meeting.java

@ -0,0 +1,34 @@
1
package io.renren.modules.app.controller;
2
3
import io.renren.common.utils.R;
4
import io.renren.modules.admin.entity.MeetingEntity;
5
import io.renren.modules.admin.service.MeetingService;
6
7
import org.springframework.beans.factory.annotation.Autowired;
8
import org.springframework.web.bind.annotation.GetMapping;
9
import org.springframework.web.bind.annotation.PathVariable;
10
import org.springframework.web.bind.annotation.RequestMapping;
11
import org.springframework.web.bind.annotation.RestController;
12
13
/**
14
 * APP测试接口
15
 *
16
 * @author Mark sunlightcs@gmail.com
17
 */
18
@RestController
19
@RequestMapping("/app/meeting")
20
public class Meeting {
21
    @Autowired
22
    private MeetingService meetingService;
23
24
    /**
25
     * 获取会议信息
26
     */
27
    @GetMapping("/info/{id}")
28
    public R info(@PathVariable("id") Long id){
29
		MeetingEntity meeting = meetingService.getById(id);
30
31
        return R.ok().put("meeting", meeting);
32
    }
33
34
}

+ 33 - 0
src/main/java/io/renren/modules/app/controller/PaperRequire.java

@ -0,0 +1,33 @@
1
package io.renren.modules.app.controller;
2
3
import io.renren.common.utils.R;
4
import io.renren.modules.admin.entity.PaperRequireEntity;
5
import io.renren.modules.admin.service.PaperRequireService;
6
7
import org.springframework.beans.factory.annotation.Autowired;
8
import org.springframework.web.bind.annotation.GetMapping;
9
import org.springframework.web.bind.annotation.PathVariable;
10
import org.springframework.web.bind.annotation.RequestMapping;
11
import org.springframework.web.bind.annotation.RestController;
12
13
/**
14
 * 投稿要求接口
15
 *
16
 * @author huwhois huwhois@163.com
17
 */
18
@RestController
19
@RequestMapping("/app/paperrequire")
20
public class PaperRequire {
21
    @Autowired
22
    private PaperRequireService paperRequireService;
23
    
24
    /**
25
     * 信息
26
     */
27
    @GetMapping("/info/{id}")
28
    public R info(@PathVariable("id") Long id){
29
		PaperRequireEntity paperRequire = paperRequireService.getById(id);
30
31
        return R.ok().put("paperRequire", paperRequire);
32
    }
33
}