|
@@ -17,12 +17,14 @@ import com.qmth.distributed.print.business.service.TFFlowApproveLogService;
|
|
import com.qmth.distributed.print.business.service.TFFlowService;
|
|
import com.qmth.distributed.print.business.service.TFFlowService;
|
|
import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
import com.qmth.teachcloud.common.entity.BasicAttachment;
|
|
import com.qmth.teachcloud.common.entity.BasicAttachment;
|
|
|
|
+import com.qmth.teachcloud.common.entity.SysOrg;
|
|
import com.qmth.teachcloud.common.entity.SysUser;
|
|
import com.qmth.teachcloud.common.entity.SysUser;
|
|
import com.qmth.teachcloud.common.enums.ExceptionResultEnum;
|
|
import com.qmth.teachcloud.common.enums.ExceptionResultEnum;
|
|
import com.qmth.teachcloud.common.enums.FieldUniqueEnum;
|
|
import com.qmth.teachcloud.common.enums.FieldUniqueEnum;
|
|
import com.qmth.teachcloud.common.enums.FlowApprovePassEnum;
|
|
import com.qmth.teachcloud.common.enums.FlowApprovePassEnum;
|
|
import com.qmth.teachcloud.common.enums.UploadFileEnum;
|
|
import com.qmth.teachcloud.common.enums.UploadFileEnum;
|
|
import com.qmth.teachcloud.common.service.BasicAttachmentService;
|
|
import com.qmth.teachcloud.common.service.BasicAttachmentService;
|
|
|
|
+import com.qmth.teachcloud.common.service.SysOrgService;
|
|
import com.qmth.teachcloud.common.util.Result;
|
|
import com.qmth.teachcloud.common.util.Result;
|
|
import com.qmth.teachcloud.common.util.ResultUtil;
|
|
import com.qmth.teachcloud.common.util.ResultUtil;
|
|
import com.qmth.teachcloud.common.util.ServletUtil;
|
|
import com.qmth.teachcloud.common.util.ServletUtil;
|
|
@@ -37,9 +39,8 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import javax.validation.Valid;
|
|
import javax.validation.Valid;
|
|
-import java.util.HashMap;
|
|
|
|
-import java.util.Map;
|
|
|
|
-import java.util.Objects;
|
|
|
|
|
|
+import java.util.*;
|
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -136,6 +137,9 @@ public class TFFlowController {
|
|
return ResultUtil.ok(tfFlowService.list(new Page<>(pageNumber, pageSize), name, SystemConstant.getHeadOrUserSchoolId(), sysUser.getOrgId()));
|
|
return ResultUtil.ok(tfFlowService.list(new Page<>(pageNumber, pageSize), name, SystemConstant.getHeadOrUserSchoolId(), sysUser.getOrgId()));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ SysOrgService sysOrgService;
|
|
|
|
+
|
|
@ApiOperation(value = "审批流程")
|
|
@ApiOperation(value = "审批流程")
|
|
@ApiResponses({@ApiResponse(code = 200, message = "常规信息", response = ResultUtil.class)})
|
|
@ApiResponses({@ApiResponse(code = 200, message = "常规信息", response = ResultUtil.class)})
|
|
@RequestMapping(value = "/task/approve", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/task/approve", method = RequestMethod.POST)
|
|
@@ -143,12 +147,17 @@ public class TFFlowController {
|
|
@ApiParam(value = "流程审批操作", required = false) @RequestParam(required = false) FlowApprovePassEnum approvePass,
|
|
@ApiParam(value = "流程审批操作", required = false) @RequestParam(required = false) FlowApprovePassEnum approvePass,
|
|
@ApiParam(value = "流程审核意见", required = false) @RequestParam(required = false) String remark,
|
|
@ApiParam(value = "流程审核意见", required = false) @RequestParam(required = false) String remark,
|
|
@ApiParam(value = "流程驳回节点", required = false) @RequestParam(required = false) Integer setup) {
|
|
@ApiParam(value = "流程驳回节点", required = false) @RequestParam(required = false) Integer setup) {
|
|
- Map<String, Object> map = new HashMap<>();
|
|
|
|
- map.computeIfAbsent(SystemConstant.FLOW_TASK_ID, v -> taskId);
|
|
|
|
- map.computeIfAbsent(SystemConstant.APPROVE_OPERATION, v -> approvePass);
|
|
|
|
- map.computeIfAbsent(SystemConstant.APPROVE_REMARK, v -> remark);
|
|
|
|
- map.computeIfAbsent(SystemConstant.APPROVE_SETUP, v -> setup);
|
|
|
|
- activitiService.taskApprove(map);
|
|
|
|
|
|
+// Map<String, Object> map = new HashMap<>();
|
|
|
|
+// map.computeIfAbsent(SystemConstant.FLOW_TASK_ID, v -> taskId);
|
|
|
|
+// map.computeIfAbsent(SystemConstant.APPROVE_OPERATION, v -> approvePass);
|
|
|
|
+// map.computeIfAbsent(SystemConstant.APPROVE_REMARK, v -> remark);
|
|
|
|
+// map.computeIfAbsent(SystemConstant.APPROVE_SETUP, v -> setup);
|
|
|
|
+// activitiService.taskApprove(map);
|
|
|
|
+ List<SysOrg> sysOrgList = sysOrgService.findAllByOrgId(8L, new ArrayList<>());
|
|
|
|
+// Set<Long> orgIds = sysOrgList.stream().map(s -> s.getParentId()).collect(Collectors.toSet());
|
|
|
|
+// for (Long l : orgIds) {
|
|
|
|
+// sysOrgList = sysOrgService.findAllByOrgId(l);
|
|
|
|
+// }
|
|
return ResultUtil.ok();
|
|
return ResultUtil.ok();
|
|
}
|
|
}
|
|
|
|
|