| | |
| | | PartyInfo partyInfo = new PartyInfo(); |
| | | if (StringUtils.isNotEmpty(uploadDisposingResultParam.getName())) { |
| | | BeanUtils.copyProperties(uploadDisposingResultParam, partyInfo); |
| | | partyInfo.setCreateUser(user.getUserId().intValue()); |
| | | partyInfo.setCreateTime(LocalDateTime.now()); |
| | | partyInfo.setId(uploadDisposingResultParam.getPartyInfoId()); |
| | | iPartyInfoService.updateById(partyInfo); |
| | | } |
| | |
| | | Investigation investigation = new Investigation(); |
| | | BeanUtils.copyProperties(uploadDisposingResultParam, investigation); |
| | | investigation.setBaseCaseId(uploadDisposingResultParam.getCaseId()); |
| | | investigation.setCreateTime(LocalDateTime.now()); |
| | | investigation.setCreateUser(user.getUserId()); |
| | | investigation.setPartyId(partyInfo.getId()); |
| | | investigation.setInvestigationTime(LocalDateTime.parse(uploadDisposingResultParam.getInvestigationTime(), DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); |
| | | investigation.setId(uploadDisposingResultParam.getInvestigationId()); |
| | |
| | | ArrivalSituation arrivalSituation = new ArrivalSituation(); |
| | | BeanUtils.copyProperties(uploadDisposingResultParam, arrivalSituation); |
| | | arrivalSituation.setBaseCaseId(uploadDisposingResultParam.getCaseId()); |
| | | arrivalSituation.setCreateTime(LocalDateTime.now()); |
| | | arrivalSituation.setCreateUser(user.getUserId()); |
| | | arrivalSituation.setArrivalTime(LocalDateTime.parse(uploadDisposingResultParam.getArrivalTime(), DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); |
| | | arrivalSituation.setId(uploadDisposingResultParam.getArrivalSituationId()); |
| | | iArrivalSituationService.updateById(arrivalSituation); |
| | |
| | | ImageResources imageResources = new ImageResources(); |
| | | imageResources.setType(handType); |
| | | imageResources.setBelongToId(uploadDisposingResultParam.getCaseId()); |
| | | imageResources.setCreateTime(LocalDateTime.now()); |
| | | imageResources.setCreateUser(user.getUserId()); |
| | | imageResources.setUrl(StringUtils.joinWith(",", uploadDisposingResultParam.getPic(), uploadDisposingResultParam.getSituationPic())); |
| | | imageResources.setId(uploadDisposingResultParam.getImageResourcesId()); |
| | | iImageResourcesService.updateById(imageResources); |
| | | if (uploadDisposingResultParam.getWritCode() == null || uploadDisposingResultParam.getWritType() == null) { |
| | | if (uploadDisposingResultParam.getWritCode() != null && uploadDisposingResultParam.getWritType() != null) { |
| | | Writ writ = new Writ(); |
| | | BeanUtils.copyProperties(uploadDisposingResultParam, writ); |
| | | writ.setBaseCaseId(uploadDisposingResultParam.getCaseId()); |
| | | writ.setIllegalBuildingId(uploadDisposingResultParam.getCaseId()); |
| | | writ.setCreateTime(LocalDateTime.now()); |
| | | writ.setCreateUser(user.getUserId()); |
| | | writ.setLimitTime(LocalDateTime.parse(uploadDisposingResultParam.getLimitTime(), DateTimeFormatter.ofPattern("YYYY-MM-dd HH:mm:ss"))); |
| | | writ.setRectifyTime(LocalDateTime.parse(uploadDisposingResultParam.getRectifyTime(), DateTimeFormatter.ofPattern("YYYY-MM-dd HH:mm:ss"))); |
| | | writ.setSendTime(LocalDateTime.parse(uploadDisposingResultParam.getSendTime(), DateTimeFormatter.ofPattern("YYYY-MM-dd HH:mm:ss"))); |
| | | writ.setBaseCaseId(uploadDisposingResultParam.getCaseId()); |
| | | iWritService.updateById(writ); |
| | | imageResources.setUrl(StringUtils |
| | | .joinWith(",", uploadDisposingResultParam.getPic() |
| | |
| | | , uploadDisposingResultParam.getWritPic())); |
| | | iImageResourcesService.updateById(imageResources); |
| | | } |
| | | } |
| | | |
| | | return iImageResourcesService.updateById(imageResources); |
| | | } else { |
| | | //当事人 |
| | | PartyInfo partyInfo = new PartyInfo(); |
| | | if (StringUtils.isNotEmpty(uploadDisposingResultParam.getName())) { |
| | |
| | | imageResources.setCreateUser(user.getUserId()); |
| | | imageResources.setUrl(StringUtils.joinWith(",", uploadDisposingResultParam.getPic(), uploadDisposingResultParam.getSituationPic())); |
| | | iImageResourcesService.save(imageResources); |
| | | if (uploadDisposingResultParam.getWritCode() == null || uploadDisposingResultParam.getWritType() == null) { |
| | | if (uploadDisposingResultParam.getWritCode() != null && uploadDisposingResultParam.getWritType() != null) { |
| | | Writ writ = new Writ(); |
| | | BeanUtils.copyProperties(uploadDisposingResultParam, writ); |
| | | writ.setBaseCaseId(uploadDisposingResultParam.getCaseId()); |
| | |
| | | return baseMapper.insert(disposeRecord) == 1 ? true : false; |
| | | } |
| | | } |
| | | } |