mirror of
https://gitee.com/dromara/dbswitch.git
synced 2025-10-15 22:30:24 +00:00
代码格式化
This commit is contained in:
@@ -119,7 +119,7 @@ public class AssignmentController {
|
||||
@ApiOperation(value = "导出")
|
||||
@PostMapping(value = "/export")
|
||||
public void exportAssignments(@RequestParam(value = "ids") List<Long> ids, HttpServletResponse response) {
|
||||
assignmentService.exportAssignments(ids,response);
|
||||
assignmentService.exportAssignments(ids, response);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -147,7 +147,8 @@ public class AssignmentService {
|
||||
|
||||
public PageResult<AssignmentInfoResponse> listAll(AssignmentSearchRequest request) {
|
||||
Supplier<List<AssignmentInfoResponse>> method = () -> {
|
||||
List<AssignmentInfoResponse> assignmentInfoResponseList = ConverterFactory.getConverter(AssignmentInfoConverter.class)
|
||||
List<AssignmentInfoResponse> assignmentInfoResponseList = ConverterFactory.getConverter(
|
||||
AssignmentInfoConverter.class)
|
||||
.convert(assignmentTaskDAO.listAll(request.getSearchText()));
|
||||
assignmentInfoResponseList.forEach((e) -> {
|
||||
AssignmentConfigEntity assignmentConfigEntity = this.assignmentConfigDAO.getByAssignmentTaskId(e.getId());
|
||||
@@ -380,7 +381,8 @@ public class AssignmentService {
|
||||
|
||||
AssignmentJobEntity assignmentJobEntity = this.assignmentJobMapper.selectOne(
|
||||
new LambdaQueryWrapper<AssignmentJobEntity>()
|
||||
.eq(AssignmentJobEntity::getAssignmentId, assignmentsDataResponse.getId()).orderByDesc(AssignmentJobEntity::getCreateTime)
|
||||
.eq(AssignmentJobEntity::getAssignmentId, assignmentsDataResponse.getId())
|
||||
.orderByDesc(AssignmentJobEntity::getCreateTime)
|
||||
.last(" limit 1 "));
|
||||
Integer status = (assignmentJobEntity == null || assignmentJobEntity.getStatus() == null) ?
|
||||
JobStatusEnum.INIT.getValue() :
|
||||
@@ -388,6 +390,6 @@ public class AssignmentService {
|
||||
assignmentsDataResponse.setRunStatus(JobStatusEnum.of(status).getName());
|
||||
assignmentsDataResponses.add(assignmentsDataResponse);
|
||||
}
|
||||
EasyexcelUtils.write(response,AssignmentsDataResponse.class,assignmentsDataResponses,"任务管理","任务管理列表");
|
||||
EasyexcelUtils.write(response, AssignmentsDataResponse.class, assignmentsDataResponses, "任务管理", "任务管理列表");
|
||||
}
|
||||
}
|
||||
|
@@ -84,9 +84,9 @@ public final class JdbcUrlUtils {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static String getTemplateUrl(String url){
|
||||
public static String getTemplateUrl(String url) {
|
||||
return url.replaceAll("\\[(\\?|;|:)\\{params}\\]|\\[|\\]", "")
|
||||
.replace("\\?{params}","");
|
||||
.replace("\\?{params}", "");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user