更换git仓库地址首次提交

This commit is contained in:
liux 2025-02-12 15:06:15 +08:00
parent a4380c4309
commit a9f31a85a3
3 changed files with 34 additions and 1 deletions

View File

@ -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;
}

View File

@ -23,7 +23,9 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
@ -126,10 +128,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);
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();
@ -139,6 +159,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;
}

View File

@ -120,6 +120,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,