Browse Source

#缺陷、巡检统计

zhongwei
yang_shj 1 year ago
parent
commit
0413133073
  1. 2
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/defect/vo/SolveHomeVO.java
  2. 54
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/controller/DefectCheckController.java

2
hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/defect/vo/SolveHomeVO.java

@ -3,13 +3,11 @@ package com.hnac.hzims.operational.defect.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author ysj
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class SolveHomeVO {
@ApiModelProperty(value = "缺陷数量")

54
hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/controller/DefectCheckController.java

@ -9,7 +9,6 @@ import lombok.AllArgsConstructor;
import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.log.annotation.ApiLog;
import org.springblade.core.tool.api.R;
import org.springblade.flow.core.vo.ComleteTask;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@ -41,55 +40,4 @@ public class DefectCheckController extends BladeController {
return R.data(service.startCheck(phenomenon));
}
/**
* 甄别缺陷
* @param task
* @return
*/
@PostMapping("/screeDefect")
@ApiOperationSupport(order = 2)
@ApiOperation(value = "甄别缺陷", notes = "流程对象")
public R screeDefect(@RequestBody ComleteTask task) {
service.screeDefect(task);
return R.success("甄别完成");
}
/**
* 决策处理方式
* @param task
* @return
*/
@PostMapping("/treatmentMethod")
@ApiOperationSupport(order = 3)
@ApiOperation(value = "决策处理方式", notes = "流程对象")
public R treatmentMethod(@RequestBody ComleteTask task) {
service.treatmentMethod(task);
return R.data("决策处理方式完成");
}
/**
* 补开工作票
* @param task
* @return
*/
@PostMapping("/makeUpTicket")
@ApiOperationSupport(order = 4)
@ApiOperation(value = "补开工作票", notes = "流程对象")
public R makeUpTicket(@RequestBody ComleteTask task) {
service.makeUpTicket(task);
return R.data("补开工作票完成");
}
/**
* 定论
* @param task
* @return
*/
@PostMapping("/conclusion")
@ApiOperationSupport(order = 5)
@ApiOperation(value = "定论", notes = "流程对象")
public R conclusion(@RequestBody ComleteTask task) {
service.conclusion(task);
return R.data("定论完成,流程结束");
}
}
}
Loading…
Cancel
Save