Compare commits
3 Commits
72b53ce476
...
4ec7bd6e98
| Author | SHA1 | Date |
|---|---|---|
|
|
4ec7bd6e98 | |
|
|
fd37421ae5 | |
|
|
a9f31a85a3 |
|
|
@ -151,4 +151,9 @@ public class SubPerson extends BaseBean implements Serializable {
|
|||
private String annotation = "0";
|
||||
private String isExistFile;
|
||||
|
||||
private List<String> userList;
|
||||
private String taskType;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package com.bonus.project.service.impl;
|
|||
|
||||
import com.bonus.common.core.domain.MsgBean;
|
||||
import com.bonus.common.core.domain.RequestEntity;
|
||||
import com.bonus.common.core.utils.PageUtils;
|
||||
import com.bonus.common.core.utils.StaticVariableUtils;
|
||||
import com.bonus.common.core.utils.StringUtils;
|
||||
import com.bonus.common.core.web.domain.AjaxResult;
|
||||
|
|
@ -24,7 +25,9 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
|
|
@ -154,10 +157,28 @@ public class SubServiceImpl implements SubService {
|
|||
*/
|
||||
@Override
|
||||
public List<SubPerson> enterPersonList(SubPerson bean) {
|
||||
long startTime = System.currentTimeMillis();
|
||||
RequestEntity entity = new RequestEntity();
|
||||
entity.setUserId(String.valueOf(SecurityUtils.getLoginUser().getUserid()));
|
||||
AjaxResult ajaxResult = flowTaskService.getStayFlow(entity);
|
||||
List<String> stringList = new ArrayList<>();
|
||||
if (ajaxResult.isSuccess() ) {
|
||||
List<Map<String, Object>> data = (List<Map<String, Object>>) ajaxResult.get("data");
|
||||
if (data != null && !data.isEmpty()) {
|
||||
if (data != null && !data.isEmpty()) {
|
||||
stringList = data.stream()
|
||||
.map(map -> (String) map.get("proInsId"))
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
bean.setUserList(stringList);
|
||||
PageUtils.startPage();
|
||||
List<SubPerson> list = mapper.enterPersonList(bean);
|
||||
|
||||
RequestEntity entity = new RequestEntity();
|
||||
System.err.println("stringList="+stringList);
|
||||
// RequestEntity entity = new RequestEntity();
|
||||
entity.setUserId(String.valueOf(SecurityUtils.getLoginUser().getUserid()));
|
||||
// 创建一个 GenericProcessor 实例 对审批流程数据进行处理
|
||||
GenericProcessor processor = new GenericProcessor();
|
||||
|
|
@ -167,6 +188,8 @@ public class SubServiceImpl implements SubService {
|
|||
.filter(subPerson -> bean.getStatus().equals(subPerson.getIntoStatus()))
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
long endTime = System.currentTimeMillis();
|
||||
System.err.println("耗时:"+(endTime-startTime));
|
||||
return list;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -140,6 +140,12 @@
|
|||
and lcp.out_status = #{status}
|
||||
</if>
|
||||
</if>
|
||||
<if test="userList != null and userList !='' ">
|
||||
and lcp.proc_inst_id in
|
||||
<foreach collection="userList" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
<select id="checkIsExistPersonName" resultType="com.bonus.system.api.domain.SysUser">
|
||||
SELECT user_id as userId,
|
||||
|
|
|
|||
Loading…
Reference in New Issue