更换git仓库地址首次提交
This commit is contained in:
parent
a4380c4309
commit
a9f31a85a3
|
|
@ -151,4 +151,9 @@ public class SubPerson extends BaseBean implements Serializable {
|
||||||
private String annotation = "0";
|
private String annotation = "0";
|
||||||
private String isExistFile;
|
private String isExistFile;
|
||||||
|
|
||||||
|
private List<String> userList;
|
||||||
|
private String taskType;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,9 @@ import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -126,10 +128,28 @@ public class SubServiceImpl implements SubService {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<SubPerson> enterPersonList(SubPerson bean) {
|
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);
|
||||||
|
|
||||||
List<SubPerson> list = mapper.enterPersonList(bean);
|
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()));
|
entity.setUserId(String.valueOf(SecurityUtils.getLoginUser().getUserid()));
|
||||||
// 创建一个 GenericProcessor 实例 对审批流程数据进行处理
|
// 创建一个 GenericProcessor 实例 对审批流程数据进行处理
|
||||||
GenericProcessor processor = new GenericProcessor();
|
GenericProcessor processor = new GenericProcessor();
|
||||||
|
|
@ -139,6 +159,8 @@ public class SubServiceImpl implements SubService {
|
||||||
.filter(subPerson -> bean.getStatus().equals(subPerson.getIntoStatus()))
|
.filter(subPerson -> bean.getStatus().equals(subPerson.getIntoStatus()))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
long endTime = System.currentTimeMillis();
|
||||||
|
System.err.println("耗时:"+(endTime-startTime));
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -120,6 +120,12 @@
|
||||||
and lcp.out_status = #{status}
|
and lcp.out_status = #{status}
|
||||||
</if>
|
</if>
|
||||||
</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>
|
||||||
<select id="checkIsExistPersonName" resultType="com.bonus.system.api.domain.SysUser">
|
<select id="checkIsExistPersonName" resultType="com.bonus.system.api.domain.SysUser">
|
||||||
SELECT user_id as userId,
|
SELECT user_id as userId,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue