huwhois 4 years ago
parent
commit
0b176d2f53

+ 25 - 0
src/main/java/io/renren/modules/admin/controller/ReportController.java

@ -176,4 +176,29 @@ public class ReportController {
176 176
177 177
        return R.ok().put("list", list);
178 178
    }
179
180
    /**
181
     * 修改报告时间
182
     */
183
    @PostMapping("/time")
184
    @RequiresPermissions("admin:report:update")
185
    public R update(@RequestBody ScheduleEntity schedule){
186
        scheduleService.updateById(schedule);
187
        
188
        return R.ok();
189
    }
190
191
    /**
192
     * 根据索引排序
193
     */
194
    @PostMapping("/sort")
195
    @RequiresPermissions("admin:report:update")
196
    public R update(@RequestBody List<ScheduleEntity> scheduleList){
197
        // scheduleService.updateById(schedule);
198
        for (ScheduleEntity schedule : scheduleList) {
199
            scheduleService.updateById(schedule);
200
        }
201
202
        return R.ok();
203
    }
179 204
}