|
@@ -2,6 +2,7 @@ package com.fjhx.service.example.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.fjhx.base.BaseEntity;
|
|
|
import com.fjhx.constants.FlowConstant;
|
|
@@ -51,7 +52,7 @@ public class ExampleInfoServiceImpl extends ServiceImpl<ExampleInfoMapper, Examp
|
|
|
private ProcessNodeButtonService processNodeButtonService;
|
|
|
|
|
|
@Override
|
|
|
- public List<Map<String, Object>> getWaitingProcessingPage(Map<String, String> condition) {
|
|
|
+ public Page<Map<String, Object>> getWaitingProcessingPage(Map<String, String> condition) {
|
|
|
|
|
|
BladeUser user = AuthUtil.getUser();
|
|
|
Assert.notEmpty(user, "没有找到用户信息");
|
|
@@ -83,7 +84,19 @@ public class ExampleInfoServiceImpl extends ServiceImpl<ExampleInfoMapper, Examp
|
|
|
}))
|
|
|
);
|
|
|
|
|
|
- return baseMapper.getWaitingProcessingPage(createPage(condition), wrapper);
|
|
|
+ Page<Map<String, Object>> waitingProcessingPage = baseMapper.getWaitingProcessingPage(createPage(condition), wrapper);
|
|
|
+
|
|
|
+ // 赋值创建人名称
|
|
|
+ List<Map<String, Object>> records = waitingProcessingPage.getRecords();
|
|
|
+
|
|
|
+ if (records.size() > 0) {
|
|
|
+ Map<Long, String> userNameMap = UserClientUtil.getUserNameMapFunctionLong(records, item -> (Long) item.get("createUser"));
|
|
|
+ for (Map<String, Object> record : records) {
|
|
|
+ record.put("userName", userNameMap.get((Long) record.get("createUser")));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return waitingProcessingPage;
|
|
|
}
|
|
|
|
|
|
@Override
|