| | |
| | | package com.example.erp.controller.pp; |
| | | |
| | | import cn.dev33.satoken.annotation.SaCheckPermission; |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.exception.ServiceException; |
| | |
| | | DeviceMaintenanceService deviceMaintenanceService; |
| | | |
| | | @ApiOperation("设备新增接口") |
| | | @SaCheckPermission("addMachine.add") |
| | | @PostMapping("/saveMachine") |
| | | public Result saveTeamGroup( @RequestBody Map<String,Object> object){ |
| | | if(deviceMaintenanceService.saveMachineSv(object)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("保养维修新增接口") |
| | | @SaCheckPermission("addMaintenanceAndRepair.add") |
| | | @PostMapping("/saveMaintenanceAndRepair") |
| | | public Result saveMaintenanceAndRepair( @RequestBody Map<String,Object> object){ |
| | | if(deviceMaintenanceService.saveMaintenanceAndRepairSv(object)){ |
| | |
| | | |
| | | |
| | | @ApiOperation("删除维修保养记录接口") |
| | | @SaCheckPermission("maintenanceAndRepair.delete") |
| | | @PostMapping("/deleteMaintenance/{id}") |
| | | public Result deleteMaintenance(@PathVariable String id){ |
| | | if(deviceMaintenanceService.deleteMaintenanceSv(id)){ |
| | |
| | | } |
| | | |
| | | @ApiOperation("查询设备管理接口") |
| | | @SaCheckPermission("selectMachine.search") |
| | | @PostMapping ("/selectMachine") |
| | | public Result selectMachine() { |
| | | return Result.seccess(deviceMaintenanceService.selectMachineSv()); |
| | |
| | | return Result.seccess(deviceMaintenanceService.openSelectIdSv(id)); |
| | | |
| | | } |
| | | |
| | | @ApiOperation("设备保养维修修改接口") |
| | | @PostMapping("/updateMaintenance") |
| | | public Result deleteOrderWork( |
| | | @RequestBody Map<String,Object> object |
| | | ){ |
| | | return Result.seccess(deviceMaintenanceService.updateMaintenance(object)); |
| | | } |
| | | } |