|
|
|
|
@ -34,9 +34,11 @@ import cn.jyjz.xiaoyao.oa.from.service.*;
|
|
|
|
|
|
|
|
|
|
import cn.jyjz.xiaoyao.oa.from.vo.FlowUnionVo;
|
|
|
|
|
import cn.jyjz.xiaoyao.ocr.dataobject.*;
|
|
|
|
|
import cn.jyjz.xiaoyao.ocr.service.OcrPictureService;
|
|
|
|
|
import cn.jyjz.xiaoyao.ocr.service.OcrTaskchildPictureService;
|
|
|
|
|
import cn.jyjz.xiaoyao.ocr.service.OcrUsersearchService;
|
|
|
|
|
import cn.jyjz.xiaoyao.ocr.util.SearchParaFormatting;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
|
|
@ -107,6 +109,9 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
|
@Resource
|
|
|
|
|
private OcrUsersearchService ocrUsersearchService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private OcrPictureService ocrPictureService;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void myTodoTaskList(PageUtils vo, HttpServletRequest request) {
|
|
|
|
|
|
|
|
|
|
@ -1119,6 +1124,32 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
|
// flowableccIPage.setRecords(list);
|
|
|
|
|
for(FlowUnionVo flowUnionVo:list){
|
|
|
|
|
|
|
|
|
|
if(flowUnionVo.getStates() != null){
|
|
|
|
|
String stateText;
|
|
|
|
|
switch (flowUnionVo.getStates()) {
|
|
|
|
|
case 1:
|
|
|
|
|
stateText = "撤销";
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
stateText = "审批中";
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
stateText = "审批通过";
|
|
|
|
|
break;
|
|
|
|
|
case 5:
|
|
|
|
|
stateText = "审批未通过";
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
stateText = "未知状态";
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
// 将中文状态赋值给 flowUnionVo 的状态属性
|
|
|
|
|
flowUnionVo.setStatesText(stateText);
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
//暂定,后期会修改
|
|
|
|
|
flowUnionVo.setStatesText("审批中");
|
|
|
|
|
}
|
|
|
|
|
//查询对应的流程分类
|
|
|
|
|
Category category = categoryService.selectDtoById(flowUnionVo.getCategoryid());
|
|
|
|
|
flowUnionVo.setCategoryDto(category);
|
|
|
|
|
@ -1211,7 +1242,6 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
|
pageUtils.setList(list);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询我的待办、已经办理任务
|
|
|
|
|
*
|
|
|
|
|
@ -1250,6 +1280,39 @@ public class FlowTaskServiceImpl extends FlowServiceFactory implements IFlowTask
|
|
|
|
|
List<OcrTaskchildPictureAppro> list = ocrTaskchildPictureService.listmytask(query);
|
|
|
|
|
|
|
|
|
|
for(OcrTaskchildPictureAppro taskchildPicture:list){
|
|
|
|
|
|
|
|
|
|
if(taskchildPicture.getStatshis() != null){
|
|
|
|
|
String stateText;
|
|
|
|
|
switch (taskchildPicture.getStatshis()) {
|
|
|
|
|
case 1:
|
|
|
|
|
stateText = "待审批";
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
stateText = "通过";
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
stateText = "不通过";
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
stateText = "未知状态";
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
// 将中文状态赋值给 flowUnionVo 的状态属性
|
|
|
|
|
taskchildPicture.setStatshisText(stateText);
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
//暂定,后期修改
|
|
|
|
|
taskchildPicture.setStatshisText("待审批");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(taskchildPicture.getPictureid() != null && !taskchildPicture.getPictureid().isEmpty()){
|
|
|
|
|
Long pictureId = Long.parseLong(taskchildPicture.getPictureid());
|
|
|
|
|
LambdaQueryWrapper<OcrPicture> ocrPictureLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
ocrPictureLambdaQueryWrapper.eq(OcrPicture::getId,pictureId);
|
|
|
|
|
OcrPicture ocrPictureOne = ocrPictureService.getOne(ocrPictureLambdaQueryWrapper);
|
|
|
|
|
taskchildPicture.setFromUserName(ocrPictureOne.getField1());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//查询对应的流程分类
|
|
|
|
|
Category category = categoryService.selectDtoById(Long.parseLong(taskchildPicture.getCategoryid()));
|
|
|
|
|
taskchildPicture.setCategoryDto(category);
|
|
|
|
|
|