|
@ -156,9 +156,21 @@ public class AttendersController extends AbstractController {
|
156
|
156
|
*/
|
157
|
157
|
@PostMapping("/status")
|
158
|
158
|
@RequiresPermissions("admin:attenders:satus")
|
159
|
|
public int changeColumnValue(@RequestParam("value") String column, @RequestParam("value") Integer value, @RequestParam("id") Long id) {
|
|
159
|
public R satus(@RequestBody Map<Sring, Object> params) {
|
|
160
|
String column = (String) params.get("column");
|
|
161
|
Integer value = (Integer) params.get("value");
|
|
162
|
Long value = (Long) params.get("value");
|
|
163
|
int result = changeColumnValue(column, value, id);
|
|
164
|
if (result != 0) {
|
|
165
|
return R.ok();
|
|
166
|
}
|
|
167
|
return R.error();
|
|
168
|
}
|
|
169
|
|
|
170
|
public int changeColumnValue(String column, Integer value, Long id) {
|
160
|
171
|
return attendersService.changeColumnValue(column, value, id);
|
161
|
172
|
}
|
|
173
|
|
162
|
174
|
|
163
|
175
|
/**
|
164
|
176
|
* 根据name模糊查询
|