|
|
|
@ -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())){
|
|
|
|
|