| | |
| | | @TableField("error_type") |
| | | private String errorType; |
| | | |
| | | @ApiModelProperty("点位") |
| | | @TableField("point_id") |
| | | private Integer pointId; |
| | | |
| | | @ApiModelProperty("工单来源") |
| | | @TableField("source") |
| | | private String source; |
| | |
| | | @ApiModelProperty("工单来源") |
| | | private String source; |
| | | |
| | | @NotNull(message = "点位不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("点位") |
| | | private Integer pointId; |
| | | |
| | | @NotNull(message = "故障类型不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("故障类型") |
| | | private String errorType; |
| | |
| | | package com.ycl.platform.domain.query; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.annotation.JsonProperty; |
| | | import com.ycl.platform.base.AbsQuery; |
| | | import enumeration.general.FastDistributeTypeEnum; |
| | | import io.swagger.annotations.ApiModel; |
| | |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 下发工单查询 |
| | |
| | | /** |
| | | * 运维单位 |
| | | */ |
| | | @JsonProperty("unitId") |
| | | private Integer unitId; |
| | | |
| | | /** |
| | | * 工单id |
| | | */ |
| | | @JsonProperty("ids") |
| | | private List<Integer> ids; |
| | | |
| | | } |
| | | |
| | |
| | | /** 工单来源 */ |
| | | private String source; |
| | | |
| | | /** |
| | | * 点位 |
| | | */ |
| | | private Integer pointId; |
| | | |
| | | /** 故障类型 */ |
| | | private String errorType; |
| | | |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 工单 前端控制器 |
| | |
| | | |
| | | @PostMapping("/distribute/ids") |
| | | @ApiOperation(value = "下发选择", notes = "下发选择") |
| | | public Result selectedIdsDistribute(@RequestBody List<Integer> ids, @RequestParam("unitId") Integer unitId) { |
| | | return workOrderService.selectedIdsDistribute(ids, unitId); |
| | | public Result selectedIdsDistribute(@RequestBody DistributeWorkOrderQuery query) { |
| | | return workOrderService.selectedIdsDistribute(query.getIds(), query.getUnitId()); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | |
| | | workOrderAuditingRecord.setRemark(form.getAuditingRemark()); |
| | | workOrderAuditingRecordMapper.insert(workOrderAuditingRecord); |
| | | // 添加新通知 |
| | | try { |
| | | Notify notify = new Notify(NotifyTypeEnum.WORK_ORDER, form.getAuditingResult().getDesc(), workOrder.getYwPeopleId(), "0", "0", workOrder.getId()); |
| | | notifyService.save(notify); |
| | | } catch (Exception e) { |
| | | return Result.error("审核成功,通知运维人员失败"); |
| | | } |
| | | return Result.ok("操作成功"); |
| | | } |
| | | |