|
|
|
@ -1,8 +1,6 @@
|
|
|
|
|
package com.hnac.hzims.operational.main.controller.web; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
|
import com.hnac.hzims.operational.access.dto.OperAccessStatisticsDTO; |
|
|
|
@ -33,9 +31,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import io.swagger.annotations.ApiParam; |
|
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.core.mp.base.BaseEntity; |
|
|
|
|
import org.springblade.core.mp.support.BladePage; |
|
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springframework.cloud.openfeign.SpringQueryMap; |
|
|
|
@ -132,10 +128,10 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 根据区域和月份分页查询日志维护列表 |
|
|
|
|
* 根据区域和月份分页查询日常维护列表 |
|
|
|
|
*/ |
|
|
|
|
@ApiOperationSupport(order = 100) |
|
|
|
|
@ApiOperation(value = "根据区域和月份分页查询日志维护列表") |
|
|
|
|
@ApiOperation(value = "根据区域和月份分页查询日常维护列表") |
|
|
|
|
@GetMapping("/queryLogMaintenancePageList/{page}/{size}") |
|
|
|
|
public R<IPage<MaintenanceTaskVo>> queryLogMaintenancePageList( |
|
|
|
|
@ApiParam(name = "page", value = "当前页", required = true) @PathVariable("page") Long page, |
|
|
|
@ -148,11 +144,11 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 根据区域和月份分页查询日志维护 根据id获取详情 |
|
|
|
|
* 根据区域和月份分页查询日常维护 根据id获取详情 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/queryLogMaintenancePageList/detail/{id}") |
|
|
|
|
@ApiOperationSupport(order = 40) |
|
|
|
|
@ApiOperation(value = "根据区域和月份分页查询日志维护 根据id获取详情") |
|
|
|
|
@ApiOperation(value = "根据区域和月份分页查询日常维护 根据id获取详情") |
|
|
|
|
public R<OperMaintenanceTaskEntity> detail(@PathVariable Long id) { |
|
|
|
|
return taskService.detail(id); |
|
|
|
|
} |
|
|
|
@ -163,8 +159,14 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
*/ |
|
|
|
|
@ApiOperationSupport(order = 50) |
|
|
|
|
@ApiOperation(value = "根据区域和月份分页查询巡检任务") |
|
|
|
|
@GetMapping("/queryCheckTaskPageList") |
|
|
|
|
public R<BladePage<TaskVo>> queryCheckTaskPageList(TaskListQuery task, Query query) { |
|
|
|
|
@GetMapping("/queryCheckTaskPageList/{page}/{size}") |
|
|
|
|
public R<BladePage<TaskVo>> queryCheckTaskPageList( |
|
|
|
|
@ApiParam(name = "page", value = "当前页", required = true) @PathVariable("page") Long page, |
|
|
|
|
@ApiParam(name = "size", value = "每页记录数", required = true) @PathVariable("size") Long size, |
|
|
|
|
TaskListQuery task) { |
|
|
|
|
Query query = new Query(); |
|
|
|
|
query.setCurrent(page.intValue()); |
|
|
|
|
query.setSize(size.intValue()); |
|
|
|
|
BladePage<TaskVo> taskVoIPage = areaMonthlyDetailsService.queryCheckTaskPageList(task, query); |
|
|
|
|
return R.data(taskVoIPage); |
|
|
|
|
} |
|
|
|
|