| | |
| | | import cn.gistack.sm.sg.DTO.ApprovalDTO; |
| | | import cn.gistack.sm.sg.DTO.ProjectSearchDTO; |
| | | import cn.gistack.sm.sg.VO.SgProgressReportVO; |
| | | import cn.gistack.sm.sg.VO.SgProjectInfoVO; |
| | | import cn.gistack.sm.sg.VO.SgReportVO; |
| | | import cn.gistack.sm.sg.service.SgProgressReportService; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.core.mp.support.Condition; |
| | |
| | | @GetMapping(value = "/page") |
| | | public R queryPageList(ProjectSearchDTO searchDTO, Query query) { |
| | | IPage<SgProgressReportVO> page = sgProgressReportService.queryPageList(Condition.getPage(query), searchDTO); |
| | | return R.data(page); |
| | | } |
| | | |
| | | /** |
| | | * 分页列表查询(所有数据,管理员用) |
| | | */ |
| | | @GetMapping(value = "/page_all") |
| | | public R queryPageListAll(ProjectSearchDTO searchDTO, Query query) { |
| | | IPage<SgProgressReportVO> page = sgProgressReportService.queryPageListAll(Condition.getPage(query), searchDTO); |
| | | return R.data(page); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * APP审核列表 |
| | | * 待办列表(APP) |
| | | */ |
| | | @GetMapping(value = "/list") |
| | | public R queryList(ProjectSearchDTO searchDTO) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * APP审核列表 |
| | | * 待办列表分页 |
| | | */ |
| | | @GetMapping(value = "/project_progress_page") |
| | | public R progressPage(ProjectSearchDTO searchDTO,Query query) { |
| | | IPage<SgProgressReportVO> page = sgProgressReportService.progressPage(Condition.getPage(query),searchDTO); |
| | | return R.data(page); |
| | | } |
| | | |
| | | /** |
| | | * 待办列表统计(超级管理员) |
| | | */ |
| | | @GetMapping(value = "/approval_count_all") |
| | | public R countListAll(ProjectSearchDTO searchDTO) { |
| | | Map<String,Long> map= sgProgressReportService.countListAll( searchDTO); |
| | | return R.data(map); |
| | | } |
| | | |
| | | /** |
| | | * 待办列表统计(APP) |
| | | */ |
| | | @GetMapping(value = "/approval_count") |
| | | public R countList(ProjectSearchDTO searchDTO) { |
| | |
| | | return R.data(map); |
| | | } |
| | | |
| | | /** |
| | | * 审批状态统计 |
| | | */ |
| | | @GetMapping(value = "/status_count") |
| | | public R statusCount(ProjectSearchDTO searchDTO) { |
| | | Map<String,Long> map= sgProgressReportService.statusCount(searchDTO); |
| | | return R.data(map); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 审批情况检验(APP) |
| | | */ |
| | | @GetMapping(value = "/check_step") |
| | | public R checkStep(@RequestParam Long deviceId , @RequestParam Long stepId) { |
| | | boolean flag = sgProgressReportService.checkStep(deviceId,stepId); |
| | | return R.data(flag); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询当前设备审批记录 |
| | | */ |
| | | @GetMapping(value = "/get_device_report") |
| | | public R getDeviceReport(@RequestParam Long deviceId , @RequestParam(required = false) Long stepId) { |
| | | String reportId = sgProgressReportService.getDeviceReport(deviceId,stepId); |
| | | return R.data(reportId); |
| | | } |
| | | |
| | | /** |
| | | * 查询当前设备审批记录 |
| | | */ |
| | | @GetMapping(value = "/get_device_reportcopy") |
| | | public R getDeviceReportcopy(@RequestParam Long deviceId , @RequestParam(required = false) Long stepId) { |
| | | SgReportVO sgReportVO = sgProgressReportService.getDeviceReportcopy(deviceId, stepId); |
| | | return R.data(sgReportVO); |
| | | } |
| | | } |