|
@@ -18,6 +18,7 @@ import com.qmth.sop.common.util.ResultUtil;
|
|
|
import io.swagger.annotations.*;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
@@ -117,6 +118,9 @@ public class TFCustomFlowController {
|
|
|
@RequestMapping(value = "/batch/delete", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = Object.class)})
|
|
|
public Result batchDelete(@ApiParam(value = "流程id数组", required = true) @RequestBody List<Long> flowIds) {
|
|
|
+ if (CollectionUtils.isEmpty(flowIds)) {
|
|
|
+ throw ExceptionResultEnum.PARAMS_ERROR.exception("流程id数组不能为空");
|
|
|
+ }
|
|
|
return ResultUtil.ok(activitiService.flowEnd(flowIds));
|
|
|
}
|
|
|
|