1. 修改 bug

topo_dev
xueqingkun 9 months ago
parent c99de1f8cc
commit d6692442fd

@ -43,6 +43,11 @@ public class NoteRecord implements Serializable {
* id
*/
private String fileIds;
/**
* id
*/
private String casePersonId;
/**
*

@ -60,7 +60,13 @@ public class ModelCaseDTO {
* 便
*/
@Schema(description = "行为人姓名")
private String lawActorName;
private String caseActorName;
/**
* 便
*/
@Schema(description = "行为人身份证号")
private String caseActorIdCard;
@Schema(description = "案件行为人")
private CasePerson lawActor;
@ -110,8 +116,9 @@ public class ModelCaseDTO {
public void floatLawActorInfo() {
if (Objects.nonNull(lawActor)){
this.lawActorName = lawActor.getName();
this.caseActorName = lawActor.getName();
this.lawActorId = lawActor.getId();
this.caseActorIdCard = lawActor.getIdCard();
}
}

@ -2,6 +2,7 @@ package com.supervision.police.dto;
import cn.hutool.core.collection.CollUtil;
import com.supervision.police.domain.NoteRecord;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.List;
@ -26,6 +27,10 @@ public class NoteRecordDTO {
*/
private List<String> fileIdList;
@Schema(description = "笔录人员id")
private String personId;
/**
*
*/
@ -70,6 +75,7 @@ public class NoteRecordDTO {
noteRecord.setLawAsker(lawAsker);
noteRecord.setConfessionStartTime(confessionStartTime);
noteRecord.setConfessionEndTime(confessionEndTime);
noteRecord.setCasePersonId(personId);
return noteRecord;
}

@ -29,6 +29,11 @@ public class NoteRecordDetailDTO {
*/
private List<NoteRecordFileDTO> fileList = new ArrayList<>();
/**
* id
*/
private String personId;
/**
*
*/
@ -82,6 +87,7 @@ public class NoteRecordDetailDTO {
this.id = noteRecord.getId();
this.caseId = noteRecord.getCaseId();
this.recordName = noteRecord.getRecordName();
this.personId = noteRecord.getCasePersonId();
this.name = noteRecord.getName();
this.role = noteRecord.getRole();
this.confessionMaterial = noteRecord.getConfessionMaterial();

@ -103,8 +103,12 @@ public class ModelCaseServiceImpl extends ServiceImpl<ModelCaseMapper, ModelCase
modelCaseDTO.setIdentifyResultName(comDictionaryService.getName(dicts, "identify_result", modelCaseDTO.getIdentifyResult()));
Map<String, List<CasePerson>> casePersonMap = persionMap.get(modelCaseDTO.getId());
if (CollUtil.isNotEmpty(casePersonMap)) {
modelCaseDTO.setLawActor(CollUtil.getFirst(casePersonMap.get("1")));
modelCaseDTO.floatLawActorInfo();
Optional<CasePerson> optionalCasePerson = casePersonMap.getOrDefault("1", new ArrayList<>())
.stream().filter(person -> Integer.valueOf(1).equals(person.getCaseActorFlag())).findAny();
if (optionalCasePerson.isPresent()){
modelCaseDTO.setLawActor(optionalCasePerson.get());
modelCaseDTO.floatLawActorInfo();
}
modelCaseDTO.setLawPartyList(casePersonMap.getOrDefault("2", new ArrayList<>()));
}
if (Objects.isNull(modelCaseDTO.getLawPartyList())) {

@ -81,25 +81,6 @@ public class NoteRecordSplitServiceImpl extends ServiceImpl<NoteRecordSplitMappe
@Override
@Transactional(transactionManager = "dataSourceTransactionManager", rollbackFor = Exception.class)
public String uploadRecords(NoteRecordDTO records) throws IOException {
//修改案件的行为人、当事人
/*if (StringUtils.isNotEmpty(records.getRole()) && !"嫌疑人".equals(records.getRole())) {
ModelCase modelCase = modelCaseMapper.selectById(records.getCaseId());
//行为人
if ("行为人".equals(records.getRole()) && StringUtils.isEmpty(modelCase.getLawActor())) {
modelCase.setLawActor(records.getName());
modelCaseMapper.updateById(modelCase);
} else if ("受害人".equals(records.getRole()) || "证人".equals(records.getRole())) {
if (StringUtils.isEmpty(modelCase.getLawParty())) {
modelCase.setLawParty(records.getName());
} else {
String[] split = modelCase.getLawParty().split(",");
if (!Arrays.asList(split).contains(records.getName())) {
modelCase.setLawParty(modelCase.getLawParty() + "," + records.getName());
}
}
modelCaseMapper.updateById(modelCase);
}
}*/
int i;
ModelCase modelCase = modelCaseService.getById(records.getCaseId());
if (StringUtils.isEmpty(modelCase.getCaseNo())){

Loading…
Cancel
Save