fix:日志链路号不显示问题
This commit is contained in:
@@ -3,6 +3,7 @@ package org.nl.wms.dispatch_manage.task.controller;
|
|||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import org.nl.common.TableDataInfo;
|
import org.nl.common.TableDataInfo;
|
||||||
|
import org.nl.common.anno.Log;
|
||||||
import org.nl.common.domain.entity.PageQuery;
|
import org.nl.common.domain.entity.PageQuery;
|
||||||
import org.nl.common.domain.exception.BadRequestException;
|
import org.nl.common.domain.exception.BadRequestException;
|
||||||
import org.nl.wms.dispatch_manage.task.service.ISchBaseTaskService;
|
import org.nl.wms.dispatch_manage.task.service.ISchBaseTaskService;
|
||||||
@@ -61,6 +62,7 @@ public class SchBaseTaskController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping
|
@PutMapping
|
||||||
|
@Log("修改任务")
|
||||||
public ResponseEntity<Object> update(@Validated @RequestBody SchBaseTask entity){
|
public ResponseEntity<Object> update(@Validated @RequestBody SchBaseTask entity){
|
||||||
iSchBaseTaskService.update(entity);
|
iSchBaseTaskService.update(entity);
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
@@ -68,18 +70,21 @@ public class SchBaseTaskController {
|
|||||||
|
|
||||||
|
|
||||||
@DeleteMapping
|
@DeleteMapping
|
||||||
|
@Log("删除任务")
|
||||||
public ResponseEntity<Object> delete(@RequestBody Set<String> ids) {
|
public ResponseEntity<Object> delete(@RequestBody Set<String> ids) {
|
||||||
iSchBaseTaskService.deleteAll(ids);
|
iSchBaseTaskService.deleteAll(ids);
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/operation")
|
@PutMapping("/operation")
|
||||||
|
@Log("手动更新任务状态")
|
||||||
public ResponseEntity<Object> update(@RequestBody JSONObject map) {
|
public ResponseEntity<Object> update(@RequestBody JSONObject map) {
|
||||||
iSchBaseTaskService.operation(map);
|
iSchBaseTaskService.operation(map);
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/taskSchedule")
|
@GetMapping("/taskSchedule")
|
||||||
|
@Log("任务调度")
|
||||||
public ResponseEntity<Object> taskSchedule() {
|
public ResponseEntity<Object> taskSchedule() {
|
||||||
taskScheduleService.taskPublish();
|
taskScheduleService.taskPublish();
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
|
|||||||
@@ -79,8 +79,8 @@
|
|||||||
<!--开发环境:打印控制台-->
|
<!--开发环境:打印控制台-->
|
||||||
<springProfile name="dev3">
|
<springProfile name="dev3">
|
||||||
<root level="info">
|
<root level="info">
|
||||||
<appender-ref ref="CONSOLE"/>
|
|
||||||
<appender-ref ref="asyncLuceneAppender"/>
|
<appender-ref ref="asyncLuceneAppender"/>
|
||||||
|
<appender-ref ref="CONSOLE"/>
|
||||||
</root>
|
</root>
|
||||||
<logger name="jdbc" level="ERROR" additivity="true">
|
<logger name="jdbc" level="ERROR" additivity="true">
|
||||||
<appender-ref ref="asyncFileAppender"/>
|
<appender-ref ref="asyncFileAppender"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user