fix:日志链路号不显示问题

This commit is contained in:
zhangzq
2024-07-17 09:33:39 +08:00
parent f4398bcd77
commit ec26e7d138
2 changed files with 6 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ package org.nl.wms.dispatch_manage.task.controller;
import com.alibaba.fastjson.JSONObject;
import org.nl.common.TableDataInfo;
import org.nl.common.anno.Log;
import org.nl.common.domain.entity.PageQuery;
import org.nl.common.domain.exception.BadRequestException;
import org.nl.wms.dispatch_manage.task.service.ISchBaseTaskService;
@@ -61,6 +62,7 @@ public class SchBaseTaskController {
}
@PutMapping
@Log("修改任务")
public ResponseEntity<Object> update(@Validated @RequestBody SchBaseTask entity){
iSchBaseTaskService.update(entity);
return new ResponseEntity<>(HttpStatus.OK);
@@ -68,18 +70,21 @@ public class SchBaseTaskController {
@DeleteMapping
@Log("删除任务")
public ResponseEntity<Object> delete(@RequestBody Set<String> ids) {
iSchBaseTaskService.deleteAll(ids);
return new ResponseEntity<>(HttpStatus.OK);
}
@PutMapping("/operation")
@Log("手动更新任务状态")
public ResponseEntity<Object> update(@RequestBody JSONObject map) {
iSchBaseTaskService.operation(map);
return new ResponseEntity<>(HttpStatus.OK);
}
@GetMapping("/taskSchedule")
@Log("任务调度")
public ResponseEntity<Object> taskSchedule() {
taskScheduleService.taskPublish();
return new ResponseEntity<>(HttpStatus.OK);

View File

@@ -79,8 +79,8 @@
<!--开发环境:打印控制台-->
<springProfile name="dev3">
<root level="info">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="asyncLuceneAppender"/>
<appender-ref ref="CONSOLE"/>
</root>
<logger name="jdbc" level="ERROR" additivity="true">
<appender-ref ref="asyncFileAppender"/>