| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.modules.eam.constant.BusinessCodeConst; |
| | | import org.jeecg.modules.eam.constant.MaintenanceStandardStatusEnum; |
| | | import org.jeecg.modules.eam.constant.MaintenanceStatusEnum; |
| | | import org.jeecg.modules.eam.entity.EamMaintenanceStandard; |
| | | import org.jeecg.modules.eam.entity.EamWeekMaintenanceOrder; |
| | | import org.jeecg.modules.eam.request.EamWeekMaintenanceQuery; |
| | | import org.jeecg.modules.eam.request.EamWeekMaintenanceRequest; |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "保养标准-作废") |
| | | @ApiOperation(value = "保养标准-作废", notes = "保养标准-作废") |
| | | @AutoLog(value = "周保工单-作废") |
| | | @ApiOperation(value = "周保工单-作废", notes = "周保工单-作废") |
| | | @DeleteMapping(value = "/abolish") |
| | | public Result<?> abolish(@RequestParam(name = "id", required = true) String id) { |
| | | EamWeekMaintenanceOrder entity = eamWeekMaintenanceOrderService.getById(id); |
| | |
| | | entity.setMaintenanceStatus(MaintenanceStatusEnum.ABOLISH.name()); |
| | | eamWeekMaintenanceOrderService.updateById(entity); |
| | | return Result.OK("作废成功!"); |
| | | } |
| | | |
| | | /** |
| | | * 通过id领取 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "周保工单-领取") |
| | | @ApiOperation(value = "周保工单-领取", notes = "周保工单-领取") |
| | | @GetMapping(value = "/collect") |
| | | public Result<?> collect(@RequestParam(name = "id", required = true) String id) { |
| | | boolean b = eamWeekMaintenanceOrderService.collect(id); |
| | | if(!b) { |
| | | Result.OK("领取失败!"); |
| | | } |
| | | return Result.OK("领取成功!"); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "保养标准-批量作废") |
| | | @ApiOperation(value = "保养标准-批量作废", notes = "保养标准-批量作废") |
| | | @AutoLog(value = "周保工单-批量作废") |
| | | @ApiOperation(value = "周保工单-批量作废", notes = "周保工单-批量作废") |
| | | @DeleteMapping(value = "/abolishBatch") |
| | | public Result<?> abolishBatch(@RequestParam(name = "ids", required = true) String ids) { |
| | | List<String> list = Arrays.asList(ids.split(",")); |