|
|
|
@ -28,7 +28,9 @@ import com.hnac.hzims.ticket.areamonthly.vo.*;
|
|
|
|
|
import com.hnac.hzinfo.inspect.areamonthly.vo.TaskListQuery; |
|
|
|
|
import com.hnac.hzinfo.inspect.areamonthly.vo.TaskVo; |
|
|
|
|
import com.hnac.hzinfo.inspect.task.entity.TaskEntity; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
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; |
|
|
|
@ -49,6 +51,7 @@ import java.util.List;
|
|
|
|
|
* @Serial 1.0 |
|
|
|
|
* @Date 2023/4/10 11:21 |
|
|
|
|
*/ |
|
|
|
|
@Api(tags = "水电生成报告详情数据") |
|
|
|
|
@Slf4j |
|
|
|
|
@RequiredArgsConstructor |
|
|
|
|
@RestController |
|
|
|
@ -70,8 +73,12 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@ApiOperation("操作票 根据月份,区域 获取操作详情数据") |
|
|
|
|
@GetMapping("/areaMonthlyWithOperation/{page}/{size}") |
|
|
|
|
public R areaMonthlyWithOperation(@PathVariable("page") Long page, @PathVariable("size") Long size, StandardTicketWithAreaVo areaMonthly) { |
|
|
|
|
public R areaMonthlyWithOperation( |
|
|
|
|
@ApiParam(name = "page", value = "当前页", required = true) @PathVariable("page") Long page, |
|
|
|
|
@ApiParam(name = "size", value = "每页记录数", required = true) @PathVariable("size") Long size, |
|
|
|
|
StandardTicketWithAreaVo areaMonthly) { |
|
|
|
|
BladePage<StandardTicketVo> standardTicketInfoVoIPage = areaMonthlyDetailsService.areaMonthlyWithOperation(page, size, areaMonthly); |
|
|
|
|
return R.data(standardTicketInfoVoIPage); |
|
|
|
|
} |
|
|
|
@ -82,6 +89,7 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
* |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@ApiOperation("操作票 根据月份,区域 获取操作详情数据") |
|
|
|
|
@GetMapping("/areaMonthlyWithOperation/detail/{id}") |
|
|
|
|
public R areaMonthlyWithOperationDetail(@PathVariable("id") Long id) { |
|
|
|
|
StandardTicketInfoVO standardTicketInfoVoIPage = areaMonthlyDetailsService.areaMonthlyWithOperationDetail(id); |
|
|
|
@ -92,6 +100,7 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
/** |
|
|
|
|
* 查询工作票评论 |
|
|
|
|
*/ |
|
|
|
|
@ApiOperation("查询工作票评论") |
|
|
|
|
@GetMapping("/areaMonthlyWithOperation/workTicketCommentList") |
|
|
|
|
public R<List<TicketInfoEvaluateVO>> workTicketCommentList(TicketInfoEvaluateEntity req) { |
|
|
|
|
List<TicketInfoEvaluateVO> ticketInfoEvaluateVOS = areaMonthlyDetailsService.workTicketCommentList(req); |
|
|
|
@ -102,6 +111,7 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
/** |
|
|
|
|
* 保存评论信息 |
|
|
|
|
*/ |
|
|
|
|
@ApiOperation("保存评论信息") |
|
|
|
|
@PostMapping("/saveComment") |
|
|
|
|
public R saveComment(@RequestBody TicketInfoEvaluateDto req) { |
|
|
|
|
return R.data(areaMonthlyDetailsService.saveComment(req)); |
|
|
|
@ -110,8 +120,12 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
/** |
|
|
|
|
* 根据月份和区域查询工作票列表详情 |
|
|
|
|
*/ |
|
|
|
|
@ApiOperation("根据月份和区域查询工作票列表详情") |
|
|
|
|
@GetMapping("/workTicketListByMonthAndArea/{page}/{size}") |
|
|
|
|
R<BladePage<StandardWorkVo>> workTicketListByMonthAndArea(@PathVariable Long page, @PathVariable Long size, @SpringQueryMap StandardTicketWithAreaVo areaMonthlyVo) { |
|
|
|
|
R<BladePage<StandardWorkVo>> workTicketListByMonthAndArea( |
|
|
|
|
@ApiParam(name = "page", value = "当前页", required = true) @PathVariable("page") Long page, |
|
|
|
|
@ApiParam(name = "size", value = "每页记录数", required = true) @PathVariable("size") Long size, |
|
|
|
|
@SpringQueryMap StandardTicketWithAreaVo areaMonthlyVo) { |
|
|
|
|
BladePage<StandardWorkVo> standardWorkVoIPage = areaMonthlyDetailsService.workTicketListByMonthAndArea(page, size, areaMonthlyVo); |
|
|
|
|
return R.data(standardWorkVoIPage); |
|
|
|
|
} |
|
|
|
@ -121,9 +135,12 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
* 根据区域和月份分页查询日志维护列表 |
|
|
|
|
*/ |
|
|
|
|
@ApiOperationSupport(order = 100) |
|
|
|
|
@ApiOperation(value = "日志维护列表分页查询") |
|
|
|
|
@ApiOperation(value = "根据区域和月份分页查询日志维护列表") |
|
|
|
|
@GetMapping("/queryLogMaintenancePageList/{page}/{size}") |
|
|
|
|
public R<IPage<MaintenanceTaskVo>> queryLogMaintenancePageList(@PathVariable Long page, @PathVariable Long size, MaintenanceTaskWithAreaVo maintenanceTaskVo) { |
|
|
|
|
public R<IPage<MaintenanceTaskVo>> queryLogMaintenancePageList( |
|
|
|
|
@ApiParam(name = "page", value = "当前页", required = true) @PathVariable("page") Long page, |
|
|
|
|
@ApiParam(name = "size", value = "每页记录数", required = true) @PathVariable("size") Long size, |
|
|
|
|
MaintenanceTaskWithAreaVo maintenanceTaskVo) { |
|
|
|
|
Page<OperMaintenanceTaskEntity> pageParam = new Page<>(page, size); |
|
|
|
|
IPage<MaintenanceTaskVo> taskList = taskService.queryLogMaintenancePageList(pageParam, maintenanceTaskVo); |
|
|
|
|
return R.data(taskList); |
|
|
|
@ -135,7 +152,7 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/queryLogMaintenancePageList/detail/{id}") |
|
|
|
|
@ApiOperationSupport(order = 40) |
|
|
|
|
@ApiOperation(value = "详情") |
|
|
|
|
@ApiOperation(value = "根据区域和月份分页查询日志维护 根据id获取详情") |
|
|
|
|
public R<OperMaintenanceTaskEntity> detail(@PathVariable Long id) { |
|
|
|
|
return taskService.detail(id); |
|
|
|
|
} |
|
|
|
@ -145,7 +162,7 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
* 根据区域和月份分页查询巡检任务 |
|
|
|
|
*/ |
|
|
|
|
@ApiOperationSupport(order = 50) |
|
|
|
|
@ApiOperation(value = "分页查询") |
|
|
|
|
@ApiOperation(value = "根据区域和月份分页查询巡检任务") |
|
|
|
|
@GetMapping("/queryCheckTaskPageList") |
|
|
|
|
public R<BladePage<TaskVo>> queryCheckTaskPageList(TaskListQuery task, Query query) { |
|
|
|
|
BladePage<TaskVo> taskVoIPage = areaMonthlyDetailsService.queryCheckTaskPageList(task, query); |
|
|
|
@ -156,9 +173,9 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
/** |
|
|
|
|
* 根据id查询巡检任务 |
|
|
|
|
*/ |
|
|
|
|
@ApiOperation(value = "根据id查询巡检任务") |
|
|
|
|
@GetMapping("/queryCheckTaskById/{id}") |
|
|
|
|
@ApiOperationSupport(order = 60) |
|
|
|
|
@ApiOperation(value = "详情") |
|
|
|
|
public R<TaskEntity> queryCheckTaskById(@PathVariable Long id) { |
|
|
|
|
TaskEntity task = areaMonthlyDetailsService.queryCheckTaskById(id); |
|
|
|
|
return R.data(task); |
|
|
|
@ -169,11 +186,11 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
* 根据区域和月份分页查询缺陷库 |
|
|
|
|
*/ |
|
|
|
|
@ApiOperationSupport(order = 70) |
|
|
|
|
@ApiOperation(value = "分页查询") |
|
|
|
|
@ApiOperation(value = "根据区域和月份分页查询缺陷库") |
|
|
|
|
@GetMapping("/queryDefectPageList/{page}/{size}") |
|
|
|
|
public R<IPage<OperDefectVO>> queryDefectPageList( |
|
|
|
|
@PathVariable Long page, |
|
|
|
|
@PathVariable Long size, |
|
|
|
|
@ApiParam(name = "page", value = "当前页", required = true) @PathVariable("page") Long page, |
|
|
|
|
@ApiParam(name = "size", value = "每页记录数", required = true) @PathVariable("size") Long size, |
|
|
|
|
OperDefectEntity defect) { |
|
|
|
|
Page<OperDefectEntity> operDefectEntityPage = new Page<>(page, size); |
|
|
|
|
IPage<OperDefectEntity> pages = defectService.selectPage(operDefectEntityPage, defect); |
|
|
|
@ -187,7 +204,7 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
*/ |
|
|
|
|
@GetMapping("queryDefectPageDetail/detail") |
|
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
|
@ApiOperation(value = "详情", notes = "传入defect") |
|
|
|
|
@ApiOperation(value = "根据区域和月份分页查询缺陷库 详情", notes = "传入defect") |
|
|
|
|
public R<OperDefectVO> queryDefectPageDetail(OperDefectEntity defect) { |
|
|
|
|
return defectService.detail(defect); |
|
|
|
|
} |
|
|
|
@ -200,7 +217,8 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
@ApiOperation(value = "根据区域和月份分页查询检修任务") |
|
|
|
|
@GetMapping("/queryReconditionPageList/{page}/{size}") |
|
|
|
|
public R<IPage<OperAccessStatisticsVO>> queryReconditionPageList( |
|
|
|
|
@PathVariable Long page, @PathVariable Long size, |
|
|
|
|
@ApiParam(name = "page", value = "当前页", required = true) @PathVariable("page") Long page, |
|
|
|
|
@ApiParam(name = "size", value = "每页记录数", required = true) @PathVariable("size") Long size, |
|
|
|
|
OperAccessStatisticsDTO result) { |
|
|
|
|
Page<OperAccessStatisticsVO> dbPage = new Page<>(page, size); |
|
|
|
|
R<IPage<OperAccessStatisticsVO>> r = accessStatisticsService.list(result, dbPage); |
|
|
|
@ -226,7 +244,9 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
@GetMapping("/queryProduceNumByAreaCode/{page}/{size}") |
|
|
|
|
@ApiOperationSupport(order = 90) |
|
|
|
|
@ApiOperation(value = "根据区域编号查询安全生产会议次数") |
|
|
|
|
public R<BladePage<CheckMonthVo>> queryProduceNumByAreaCode(@PathVariable Long page, @PathVariable Long size, |
|
|
|
|
public R<BladePage<CheckMonthVo>> queryProduceNumByAreaCode( |
|
|
|
|
@ApiParam(name = "page", value = "当前页", required = true) @PathVariable("page") Long page, |
|
|
|
|
@ApiParam(name = "size", value = "每页记录数", required = true) @PathVariable("size") Long size, |
|
|
|
|
CheckMonthEntity req) { |
|
|
|
|
req.setItemName("现场每月1次安全生产会议"); |
|
|
|
|
BladePage<CheckMonthVo> checkMonthVoBladePage = areaMonthlyDetailsService.queryProduceByAreaCode(page, size, |
|
|
|
@ -240,7 +260,10 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
@GetMapping("/querySkillByAreaCode/{page}/{size}") |
|
|
|
|
@ApiOperationSupport(order = 100) |
|
|
|
|
@ApiOperation(value = "根据区域编号查询技能培训") |
|
|
|
|
public R<BladePage<CheckMonthVo>> querySkillByAreaCode(@PathVariable Long page, @PathVariable Long size, CheckMonthEntity req) { |
|
|
|
|
public R<BladePage<CheckMonthVo>> querySkillByAreaCode( |
|
|
|
|
@ApiParam(name = "page", value = "当前页", required = true) @PathVariable("page") Long page, |
|
|
|
|
@ApiParam(name = "size", value = "每页记录数", required = true) @PathVariable("size") Long size, |
|
|
|
|
CheckMonthEntity req) { |
|
|
|
|
req.setItemName("每月开展1次技能培训"); |
|
|
|
|
BladePage<CheckMonthVo> checkMonthVoBladePage = areaMonthlyDetailsService.queryProduceByAreaCode(page, size, |
|
|
|
|
req); |
|
|
|
@ -254,20 +277,22 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
@GetMapping("/queryProduceByAreaCode/{page}/{size}") |
|
|
|
|
@ApiOperationSupport(order = 100) |
|
|
|
|
@ApiOperation(value = "根据区域编号查询技能培训") |
|
|
|
|
public R<BladePage<CheckMonthVo>> queryProduceByAreaCode(@PathVariable Long page, @PathVariable Long size, CheckMonthEntity req) { |
|
|
|
|
public R<BladePage<CheckMonthVo>> queryProduceByAreaCode( |
|
|
|
|
@ApiParam(name = "page", value = "当前页", required = true) @PathVariable("page") Long page, |
|
|
|
|
@ApiParam(name = "size", value = "每页记录数", required = true) @PathVariable("size") Long size, |
|
|
|
|
CheckMonthEntity req) { |
|
|
|
|
BladePage<CheckMonthVo> checkMonthVoBladePage = areaMonthlyDetailsService.queryProduceByAreaCode(page, size, |
|
|
|
|
req); |
|
|
|
|
return R.data(checkMonthVoBladePage); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 根据区域编号查询 月度自查 技能培训 安全生产会议次数 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/queryProduceByAreaCodeDetail/detail/{id}") |
|
|
|
|
@ApiOperationSupport(order = 40) |
|
|
|
|
@ApiOperation(value = "详情", notes = "传入id") |
|
|
|
|
@ApiOperation(value = "根据区域编号查询 月度自查 技能培训 安全生产会议次数", notes = "传入id") |
|
|
|
|
public R<CheckMonthVo> queryProduceByAreaCodeDetail(@PathVariable Long id) { |
|
|
|
|
CheckMonthVo checkMonthVo = areaMonthlyDetailsService.queryProduceByAreaCodeDetail(id); |
|
|
|
|
return R.data(checkMonthVo); |
|
|
|
@ -280,8 +305,9 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
@GetMapping("/querySecurityAreaCode/{page}/{size}") |
|
|
|
|
@ApiOperationSupport(order = 100) |
|
|
|
|
@ApiOperation(value = "根据区域编号查询安全检查") |
|
|
|
|
public R<BladePage<CheckCompanyVo>> querySecurityAreaCode(@PathVariable Long page, |
|
|
|
|
@PathVariable Long size, |
|
|
|
|
public R<BladePage<CheckCompanyVo>> querySecurityAreaCode( |
|
|
|
|
@ApiParam(name = "page", value = "当前页", required = true) @PathVariable("page") Long page, |
|
|
|
|
@ApiParam(name = "size", value = "每页记录数", required = true) @PathVariable("size") Long size, |
|
|
|
|
CheckCompanyEntity req) { |
|
|
|
|
BladePage<CheckCompanyVo> checkMonthVoBladePage = areaMonthlyDetailsService.querySecurityAreaCode(page, size, |
|
|
|
|
req); |
|
|
|
@ -301,7 +327,6 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 根据区域编号查询设备试验 |
|
|
|
|
*/ |
|
|
|
@ -309,8 +334,8 @@ public class AreaMonthlyDetailsController {
|
|
|
|
|
@ApiOperationSupport(order = 100) |
|
|
|
|
@ApiOperation(value = "根据区域编号查询设备试验") |
|
|
|
|
public R<BladePage<SafeEquipmentTrialVO>> queryEquipmentAreaCode( |
|
|
|
|
@PathVariable Long page, |
|
|
|
|
@PathVariable Long size, |
|
|
|
|
@ApiParam(name = "page",value = "当前页",required = true) @PathVariable("page") Long page, |
|
|
|
|
@ApiParam(name = "size",value = "每页记录数",required = true) @PathVariable("size") Long size, |
|
|
|
|
SafeEquipmentTrialDTO safeEquipmentTrialDTO) { |
|
|
|
|
BladePage<SafeEquipmentTrialVO> checkMonthVoBladePage = areaMonthlyDetailsService.queryEquipmentAreaCode(page |
|
|
|
|
, size, safeEquipmentTrialDTO); |
|
|
|
|