|
@@ -43,7 +43,6 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
-import java.util.Objects;
|
|
|
import java.util.Set;
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
import java.util.stream.Collectors;
|
|
@@ -162,7 +161,7 @@ public class SamplePathologicalServiceImpl extends ServiceImpl<SamplePathologica
|
|
|
JSONArray images = new JSONArray();
|
|
|
dataMap.put("images", images);
|
|
|
|
|
|
- //实验名称
|
|
|
+ //实验
|
|
|
List<PreExperimentVo> experiments = pathologicalVo.getExperiments();
|
|
|
AtomicInteger experimentIndex = new AtomicInteger(0);
|
|
|
experiments.forEach(item -> {
|
|
@@ -180,6 +179,14 @@ public class SamplePathologicalServiceImpl extends ServiceImpl<SamplePathologica
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ //预实验申请人负责人
|
|
|
+ if (pathologicalVo.getPreApplicantLeaderId() != null) {
|
|
|
+ String base64 = userIdNameCache.getSignBase64(pathologicalVo.getPreApplicantLeaderId());
|
|
|
+ if (StrUtil.isNotBlank(base64)) {
|
|
|
+ dataMap.put("preApplicantLeaderSign", base64);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
JSONObject sampleInfoObj = JSON.parseObject(JSON.toJSONStringWithDateFormat(sampleInfo, DatePattern.NORM_DATETIME_PATTERN));
|
|
|
dataMap.put("sampleInfo", sampleInfoObj);
|
|
|
JSONObject pathologicalObj = JSON.parseObject(JSON.toJSONStringWithDateFormat(pathologicalVo, DatePattern.NORM_DATETIME_PATTERN));
|
|
@@ -189,6 +196,18 @@ public class SamplePathologicalServiceImpl extends ServiceImpl<SamplePathologica
|
|
|
String applyDateStr = DateUtil.format(sampleInfo.getApplyTime(), DatePattern.NORM_DATE_PATTERN);
|
|
|
sampleInfoObj.put("applyDate", applyDateStr);
|
|
|
|
|
|
+ //检测人员
|
|
|
+ if (StrUtil.isNotEmpty(sampleInfo.getInspector())) {
|
|
|
+ String inspectorName = JSON.parseArray(sampleInfo.getInspector())
|
|
|
+ .stream()
|
|
|
+ .map(user -> {
|
|
|
+ JSONObject obj = (JSONObject) user;
|
|
|
+ return obj.getString("name");
|
|
|
+ })
|
|
|
+ .collect(Collectors.joining("、"));
|
|
|
+ sampleInfoObj.put("inspectorName", inspectorName);
|
|
|
+ }
|
|
|
+
|
|
|
//实验人员
|
|
|
if (StrUtil.isNotEmpty(pathologicalVo.getPrePeople())) {
|
|
|
String joinName = JSON.parseArray(pathologicalVo.getPrePeople())
|
|
@@ -201,12 +220,6 @@ public class SamplePathologicalServiceImpl extends ServiceImpl<SamplePathologica
|
|
|
pathologicalObj.put("prePeopleName", joinName);
|
|
|
}
|
|
|
|
|
|
- //课题负责人
|
|
|
- if (Objects.nonNull(pathologicalVo.getSubjectLeaderId())) {
|
|
|
- String subjectLeaderSign = userIdNameCache.getSignBase64(pathologicalVo.getSubjectLeaderId());
|
|
|
- dataMap.put("subjectLeaderSign", subjectLeaderSign);
|
|
|
- }
|
|
|
-
|
|
|
//查询审核记录
|
|
|
List<FlowAudit> flowAudits = flowAuditService.auditList(sampleId,"sample." + sampleInfo.getType(), true);
|
|
|
//项目管理部审核
|