use of com.cdeledu.common.base.AjaxJson in project wechat by dllwh.
the class GlobalExceptionHandler method request406.
/**
* 406 - Not Acceptable
*/
@ResponseBody
@ExceptionHandler(HttpMediaTypeNotAcceptableException.class)
public AjaxJson request406(HttpMediaTypeNotAcceptableException e) {
AjaxJson result = new AjaxJson();
if (logger.isDebugEnabled()) {
logger.error(HttpStatus.METHOD_NOT_ALLOWED.getReasonPhrase(), e);
}
result.setSuccess(false);
result.setMsg(e.getMessage());
result.setResultCode(406);
return result;
}
use of com.cdeledu.common.base.AjaxJson in project wechat by dllwh.
the class ScheduledController method run.
@ResponseBody
@RequestMapping("run")
@SystemLog(desc = "创建定时任务", opType = SysOpType.UPDATE, tableName = "sys_schedule_job")
public AjaxJson run(@RequestBody Long[] jobIds) {
AjaxJson ajaxJson = new AjaxJson();
scheduleJobService.run(jobIds);
return ajaxJson;
}
use of com.cdeledu.common.base.AjaxJson in project wechat by dllwh.
the class ScheduledController method delete.
@ResponseBody
@RequestMapping("delete")
@SystemLog(desc = "删除定时任务", opType = SysOpType.DEL, tableName = "sys_schedule_job")
public AjaxJson delete(@RequestBody Long[] jobIds) {
AjaxJson ajaxJson = new AjaxJson();
scheduleJobService.deleteBatch(jobIds);
return ajaxJson;
}
use of com.cdeledu.common.base.AjaxJson in project wechat by dllwh.
the class ScheduledController method update.
@ResponseBody
@RequestMapping("update")
@SystemLog(desc = "修改定时任务", opType = SysOpType.UPDATE, tableName = "sys_schedule_job")
public AjaxJson update(@RequestBody ScheduleJob scheduleJob) {
AjaxJson ajaxJson = new AjaxJson();
scheduleJobService.update(scheduleJob);
return ajaxJson;
}
use of com.cdeledu.common.base.AjaxJson in project wechat by dllwh.
the class ScheduledController method resume.
@ResponseBody
@RequestMapping("resume")
@SystemLog(desc = "恢复定时任务", opType = SysOpType.UPDATE, tableName = "sys_schedule_job")
public AjaxJson resume(@RequestBody Long[] jobIds) {
AjaxJson ajaxJson = new AjaxJson();
scheduleJobService.resume(jobIds);
return ajaxJson;
}
Aggregations