huwhois 5 years ago
parent
commit
a23b4f6b1c

+ 4 - 2
src/main/java/io/renren/modules/admin/controller/AttendersController.java

@ -154,10 +154,12 @@ public class AttendersController extends AbstractController  {
154 154
     * @param params
155 155
     * @return
156 156
     */
157
    public int changeColumnValue(String column, Integer value, Long id) {
157
    @PostMapping("/status")
158
    @RequiresPermissions("admin:attenders:satus")
159
    public int changeColumnValue(@RequestParam("value") String column, @RequestParam("value") Integer value, @RequestParam("id") Long id) {
158 160
        return attendersService.changeColumnValue(column, value, id);
159 161
    }
160

162
    
161 163
    /**
162 164
     * 根据name模糊查询
163 165
     */

+ 18 - 0
src/main/java/io/renren/modules/admin/controller/TypesOfAttendersController.java

@ -5,10 +5,14 @@ import java.text.SimpleDateFormat;
5 5
import java.util.Arrays;
6 6
import java.util.List;
7 7
import java.util.Map;
8

9
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
10

8 11
import java.util.Date;
9 12

10 13
import org.apache.shiro.authz.annotation.RequiresPermissions;
11 14
import org.springframework.beans.factory.annotation.Autowired;
15
import org.springframework.web.bind.annotation.GetMapping;
12 16
import org.springframework.web.bind.annotation.PathVariable;
13 17
import org.springframework.web.bind.annotation.RequestBody;
14 18
import org.springframework.web.bind.annotation.RequestMapping;
@ -101,6 +105,20 @@ public class TypesOfAttendersController {
101 105
        return R.ok();
102 106
    }
103 107

108
    /**
109
     * 通过会议id参会人员类型列表
110
     * @param params
111
     * @return
112
     */
113
    @GetMapping("/listbymid/{mid}")
114
    @RequiresPermissions("admin:typesofattenders:list")
115
    public R listBymeetingId(@PathVariable("mid") Long mid) {
116
        List<TypesOfAttendersEntity> list = typesOfAttendersService.list(
117
            new QueryWrapper<TypesOfAttendersEntity>().eq("meeting_id", mid)
118
        );
119
        return R.ok().put("list", list);
120
    }
121

104 122
    /**
105 123
     * 通过类型进行查询
106 124
     */