|
@@ -1,15 +1,23 @@
|
|
|
package com.fjhx.service.example.impl;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.fjhx.base.BaseEntity;
|
|
|
+import com.fjhx.entity.example.ExampleDetails;
|
|
|
import com.fjhx.entity.example.ExampleInfo;
|
|
|
import com.fjhx.mapper.example.ExampleInfoMapper;
|
|
|
+import com.fjhx.service.example.ExampleDetailsService;
|
|
|
import com.fjhx.service.example.ExampleInfoService;
|
|
|
import com.fjhx.service.process.ProcessInfoService;
|
|
|
import com.fjhx.service.process.ProcessNodeButtonService;
|
|
|
import com.fjhx.service.process.ProcessTenantService;
|
|
|
+import com.fjhx.utils.Assert;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
|
|
|
* <p>
|
|
|
* 流程实例 服务实现类
|
|
@@ -30,4 +38,31 @@ public class ExampleInfoServiceImpl extends ServiceImpl<ExampleInfoMapper, Examp
|
|
|
@Autowired
|
|
|
private ProcessNodeButtonService processNodeButtonService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ExampleDetailsService exampleDetailsService;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<Map<String, Object>> record(Long flowLinkNo) {
|
|
|
+ Assert.notEmpty(flowLinkNo, "业务关联编码不能为空");
|
|
|
+
|
|
|
+ ExampleInfo exampleInfo = getOne(ExampleInfo::getFlowLinkNo, flowLinkNo);
|
|
|
+
|
|
|
+
|
|
|
+ List<Map<String, Object>> list = exampleDetailsService.listMaps(
|
|
|
+ Wrappers.<ExampleDetails>query()
|
|
|
+ .select("handle_user_id userId",
|
|
|
+ "remarks",
|
|
|
+ "process_node_id nodeId",
|
|
|
+ "name_type type"
|
|
|
+ )
|
|
|
+ .lambda()
|
|
|
+ .eq(ExampleDetails::getExampleInfoId, exampleInfo.getId())
|
|
|
+ .orderByAsc(BaseEntity::getId)
|
|
|
+ );
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|