|
@@ -1,42 +1,26 @@
|
|
|
package org.jeecg.modules.flowpath.controller;
|
|
|
|
|
|
-import java.util.Arrays;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-import java.util.stream.Collectors;
|
|
|
-import java.io.IOException;
|
|
|
-import java.io.UnsupportedEncodingException;
|
|
|
-import java.net.URLDecoder;
|
|
|
-import javax.servlet.http.HttpServletRequest;
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
-import org.jeecg.common.api.vo.Result;
|
|
|
-import org.jeecg.common.system.query.QueryGenerator;
|
|
|
-import org.jeecg.common.util.oConvertUtils;
|
|
|
-import org.jeecg.modules.flowpath.entity.ItdmFlowPathStep;
|
|
|
-import org.jeecg.modules.flowpath.service.IItdmFlowPathStepService;
|
|
|
-
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-
|
|
|
-import org.jeecgframework.poi.excel.ExcelImportUtil;
|
|
|
-import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
|
|
-import org.jeecgframework.poi.excel.entity.ExportParams;
|
|
|
-import org.jeecgframework.poi.excel.entity.ImportParams;
|
|
|
-import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
|
|
+import org.jeecg.common.api.vo.Result;
|
|
|
+import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
|
+import org.jeecg.common.system.query.QueryGenerator;
|
|
|
+import org.jeecg.modules.flowpath.entity.ItdmFlowPathStep;
|
|
|
+import org.jeecg.modules.flowpath.service.IItdmFlowPathStepService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
-import org.springframework.web.multipart.MultipartFile;
|
|
|
-import org.springframework.web.multipart.MultipartHttpServletRequest;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
-import com.alibaba.fastjson.JSON;
|
|
|
-import io.swagger.annotations.Api;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
-import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
|
|
|
- /**
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.util.Arrays;
|
|
|
+
|
|
|
+/**
|
|
|
* @Description: 流程步骤表
|
|
|
* @Author: jeecg-boot
|
|
|
* @Date: 2023-07-20
|
|
@@ -49,7 +33,15 @@ import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
public class ItdmFlowPathStepController extends JeecgController<ItdmFlowPathStep, IItdmFlowPathStepService> {
|
|
|
@Autowired
|
|
|
private IItdmFlowPathStepService itdmFlowPathStepService;
|
|
|
-
|
|
|
+
|
|
|
+ /**根据运行流程表的流程步骤id查对应流程步骤表的步骤顺序*/
|
|
|
+ @GetMapping("/getSortByFlowPathId")
|
|
|
+ public Integer getSortByFlowPathStepId(String dqStep){
|
|
|
+ String sort = itdmFlowPathStepService.getSortByFlowPathStepId(dqStep);
|
|
|
+ if("12".equals(sort)) return 0; //当前步骤是最后一步,无需选择下一步的人
|
|
|
+ else return 1;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 分页列表查询
|
|
|
*
|
|
@@ -71,7 +63,7 @@ public class ItdmFlowPathStepController extends JeecgController<ItdmFlowPathStep
|
|
|
IPage<ItdmFlowPathStep> pageList = itdmFlowPathStepService.page(page, queryWrapper);
|
|
|
return Result.OK(pageList);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 添加
|
|
|
*
|
|
@@ -86,7 +78,7 @@ public class ItdmFlowPathStepController extends JeecgController<ItdmFlowPathStep
|
|
|
itdmFlowPathStepService.save(itdmFlowPathStep);
|
|
|
return Result.OK("添加成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 编辑
|
|
|
*
|
|
@@ -101,7 +93,7 @@ public class ItdmFlowPathStepController extends JeecgController<ItdmFlowPathStep
|
|
|
itdmFlowPathStepService.updateById(itdmFlowPathStep);
|
|
|
return Result.OK("编辑成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 通过id删除
|
|
|
*
|
|
@@ -116,7 +108,7 @@ public class ItdmFlowPathStepController extends JeecgController<ItdmFlowPathStep
|
|
|
itdmFlowPathStepService.removeById(id);
|
|
|
return Result.OK("删除成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 批量删除
|
|
|
*
|
|
@@ -131,7 +123,7 @@ public class ItdmFlowPathStepController extends JeecgController<ItdmFlowPathStep
|
|
|
this.itdmFlowPathStepService.removeByIds(Arrays.asList(ids.split(",")));
|
|
|
return Result.OK("批量删除成功!");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 通过id查询
|
|
|
*
|