| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.text.ParseException; |
| | | import java.util.*; |
| | | import java.util.concurrent.atomic.AtomicInteger; |
| | | |
| | |
| | | return Result.error("编辑失败!"); |
| | | } |
| | | return Result.OK("编辑成功!"); |
| | | } |
| | | |
| | | /** |
| | | * 批量打印二保工单 |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "设备二级保养-批量打印二保工单") |
| | | @ApiOperation(value = "设备二级保养-批量打印二保工单", notes = "设备二级保养-批量打印二保工单") |
| | | @GetMapping(value = "/batchExport") |
| | | public Result<?> export(String ids){ |
| | | return Result.ok(eamSecondMaintenanceOrderService.export(ids)); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiOperation(value = "二保工单-执行操作", notes = "二保工单-执行操作") |
| | | @PutMapping(value = "/approval") |
| | | public Result<?> approval(@RequestBody EamSecondMaintenanceRequest request) { |
| | | public Result<?> approval(@RequestBody EamSecondMaintenanceRequest request) throws ParseException { |
| | | if (request == null) { |
| | | return Result.error("审批的对象不能为空!"); |
| | | } |