| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill 庄骞 (smallchill@163.com) |
| | | */ |
| | | package org.springblade.modules.task.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 报事报修任务表 控制器 |
| | |
| | | @GetMapping("/detail") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "详情", notes = "传入taskReportForRepairs") |
| | | public R<TaskReportForRepairsVO> detail(TaskReportForRepairsEntity taskReportForRepairs) { |
| | | public R detail(TaskReportForRepairsEntity taskReportForRepairs) { |
| | | TaskReportForRepairsEntity detail = taskReportForRepairsService.getOne(Condition.getQueryWrapper(taskReportForRepairs)); |
| | | return R.data(TaskReportForRepairsWrapper.build().entityVO(detail)); |
| | | return R.data(detail); |
| | | } |
| | | /** |
| | | * 报事报修任务表 分页 |
| | |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "修改", notes = "传入taskReportForRepairs") |
| | | public R update(@Valid @RequestBody TaskReportForRepairsEntity taskReportForRepairs) { |
| | | taskReportForRepairs.setConfirmTime(new Date()); |
| | | return R.status(taskReportForRepairsService.updateById(taskReportForRepairs)); |
| | | } |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/getStatisticsCount") |
| | | public R statisticsCount() { |
| | | return R.data(taskReportForRepairsService.getStatisticsCount()); |
| | | public R statisticsCount(@RequestParam(value = "houseCode",required = false) String houseCode) { |
| | | return R.data(taskReportForRepairsService.getStatisticsCount(houseCode)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @GetMapping("/getStatistics") |
| | | @ApiOperation(value = "w网格员查询报事报修统计" ) |
| | | public R getStatistics() { |
| | | return R.data(taskReportForRepairsService.getStatistics(AuthUtil.getUserId())); |
| | | return R.data(taskReportForRepairsService.getStatistics(AuthUtil.getUserId(),"")); |
| | | } |
| | | |
| | | /** |
| | |
| | | public R updateView(@Valid @RequestBody GridmanEntity gridman) { |
| | | return R.status(taskReportForRepairsService.updateView(gridman)); |
| | | } |
| | | |
| | | |
| | | } |