huwhois 5 vuotta sitten
vanhempi
commit
a23b4f6b1c

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

154
     * @param params
154
     * @param params
155
     * @return
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
        return attendersService.changeColumnValue(column, value, id);
160
        return attendersService.changeColumnValue(column, value, id);
159
    }
161
    }
160

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

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

5
import java.util.Arrays;
5
import java.util.Arrays;
6
import java.util.List;
6
import java.util.List;
7
import java.util.Map;
7
import java.util.Map;
8

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

8
import java.util.Date;
11
import java.util.Date;
9

12

10
import org.apache.shiro.authz.annotation.RequiresPermissions;
13
import org.apache.shiro.authz.annotation.RequiresPermissions;
11
import org.springframework.beans.factory.annotation.Autowired;
14
import org.springframework.beans.factory.annotation.Autowired;
15
import org.springframework.web.bind.annotation.GetMapping;
12
import org.springframework.web.bind.annotation.PathVariable;
16
import org.springframework.web.bind.annotation.PathVariable;
13
import org.springframework.web.bind.annotation.RequestBody;
17
import org.springframework.web.bind.annotation.RequestBody;
14
import org.springframework.web.bind.annotation.RequestMapping;
18
import org.springframework.web.bind.annotation.RequestMapping;
101
        return R.ok();
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
     */