|
@@ -120,6 +120,7 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
|
|
|
|
/**
|
|
/**
|
|
* 删除报告事务
|
|
* 删除报告事务
|
|
|
|
+ *
|
|
* @param ids
|
|
* @param ids
|
|
*/
|
|
*/
|
|
public void delete(List<Integer> ids) {
|
|
public void delete(List<Integer> ids) {
|
|
@@ -183,7 +184,7 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
//判断是否需要同步更新报告官限
|
|
//判断是否需要同步更新报告官限
|
|
String deadline = casePhase.getCalOfficialDeadline();
|
|
String deadline = casePhase.getCalOfficialDeadline();
|
|
if (StringUtils.isNotEmpty(deadline)) {
|
|
if (StringUtils.isNotEmpty(deadline)) {
|
|
- invalidRequestFileService.getCommonMethod(reportAffair.getProjectId(),assoCasePhaseId);
|
|
|
|
|
|
+ invalidRequestFileService.getCommonMethod(reportAffair.getProjectId(), assoCasePhaseId);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -254,6 +255,8 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
this.loadOtherDocuments(reportAffairVO);
|
|
this.loadOtherDocuments(reportAffairVO);
|
|
reportAffairVO.setCaseChildPhase(item.getCaseChildPhase());
|
|
reportAffairVO.setCaseChildPhase(item.getCaseChildPhase());
|
|
reportAffairVO.setDocumentType(item.getDocumentType());
|
|
reportAffairVO.setDocumentType(item.getDocumentType());
|
|
|
|
+ } else if (type.equals(15) || type.equals(25)) {
|
|
|
|
+ this.loadCourtSubpoenaVO(reportAffairVO);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
reportAffairVOS.add(reportAffairVO);
|
|
reportAffairVOS.add(reportAffairVO);
|
|
@@ -366,6 +369,7 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
|
|
|
|
/**
|
|
/**
|
|
* 装载无效决定书与无效结果关联
|
|
* 装载无效决定书与无效结果关联
|
|
|
|
+ *
|
|
* @param reportAffairVOS
|
|
* @param reportAffairVOS
|
|
*/
|
|
*/
|
|
public void loadAssoInvalidDecisionCron(List<ReportAffairVO> reportAffairVOS) {
|
|
public void loadAssoInvalidDecisionCron(List<ReportAffairVO> reportAffairVOS) {
|
|
@@ -417,10 +421,11 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
|
|
|
|
/**
|
|
/**
|
|
* 上传陈述意见书
|
|
* 上传陈述意见书
|
|
|
|
+ *
|
|
* @param addStateOpinionDTO
|
|
* @param addStateOpinionDTO
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public Integer addStateOpinion(AddStateOpinionDTO addStateOpinionDTO){
|
|
|
|
|
|
+ public Integer addStateOpinion(AddStateOpinionDTO addStateOpinionDTO) {
|
|
if (addStateOpinionDTO == null) {
|
|
if (addStateOpinionDTO == null) {
|
|
throw new XiaoShiException("入参为空");
|
|
throw new XiaoShiException("入参为空");
|
|
}
|
|
}
|
|
@@ -457,17 +462,18 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
assoReportAffairFileService.saveBatch(assoReportAffairFiles);
|
|
assoReportAffairFileService.saveBatch(assoReportAffairFiles);
|
|
}
|
|
}
|
|
if (addStateOpinionDTO.getIfSendEmail()) {
|
|
if (addStateOpinionDTO.getIfSendEmail()) {
|
|
- sendReportMailService.finalSendEmail(projectId, fileGuids, addStateOpinionDTO.getExtraEmailDTOS());
|
|
|
|
|
|
+ sendReportMailService.finalSendEmail(projectId, fileGuids, addStateOpinionDTO.getExtraEmailDTOS(),reportAffairDTO);
|
|
}
|
|
}
|
|
return reportAffairId;
|
|
return reportAffairId;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 更新陈述意见
|
|
* 更新陈述意见
|
|
|
|
+ *
|
|
* @param updateStateOpinionDTO
|
|
* @param updateStateOpinionDTO
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public Integer updateStateOpinion(UpdateStateOpinionDTO updateStateOpinionDTO){
|
|
|
|
|
|
+ public Integer updateStateOpinion(UpdateStateOpinionDTO updateStateOpinionDTO) {
|
|
if (updateStateOpinionDTO == null) {
|
|
if (updateStateOpinionDTO == null) {
|
|
throw new XiaoShiException("入参为空");
|
|
throw new XiaoShiException("入参为空");
|
|
}
|
|
}
|
|
@@ -495,7 +501,9 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
List<String> fileGuids = updateStateOpinionDTO.getFileGuids();
|
|
List<String> fileGuids = updateStateOpinionDTO.getFileGuids();
|
|
assoReportAffairFileService.updateAffairFile(reportAffairId, fileGuids);
|
|
assoReportAffairFileService.updateAffairFile(reportAffairId, fileGuids);
|
|
if (updateStateOpinionDTO.getIfSendEmail()) {
|
|
if (updateStateOpinionDTO.getIfSendEmail()) {
|
|
- sendReportMailService.finalSendEmail(projectId, fileGuids, updateStateOpinionDTO.getExtraEmailDTOS());
|
|
|
|
|
|
+ ReportAffairDTO reportAffairDTO =new ReportAffairDTO();
|
|
|
|
+ reportAffairDTO.setAssoCasePhaseId(reportAffair.getAssoCasePhaseId());
|
|
|
|
+ sendReportMailService.finalSendEmail(projectId, fileGuids, updateStateOpinionDTO.getExtraEmailDTOS(),reportAffairDTO);
|
|
}
|
|
}
|
|
return reportAffairId;
|
|
return reportAffairId;
|
|
}
|
|
}
|
|
@@ -538,10 +546,11 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
|
|
|
|
/**
|
|
/**
|
|
* 上传权要修改记录
|
|
* 上传权要修改记录
|
|
|
|
+ *
|
|
* @param addClaimHistoryDTO
|
|
* @param addClaimHistoryDTO
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public Integer addClaimHistory(AddClaimHistoryDTO addClaimHistoryDTO){
|
|
|
|
|
|
+ public Integer addClaimHistory(AddClaimHistoryDTO addClaimHistoryDTO) {
|
|
if (addClaimHistoryDTO == null) {
|
|
if (addClaimHistoryDTO == null) {
|
|
throw new XiaoShiException("入参为空");
|
|
throw new XiaoShiException("入参为空");
|
|
}
|
|
}
|
|
@@ -578,17 +587,18 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
assoReportAffairFileService.saveBatch(assoReportAffairFiles);
|
|
assoReportAffairFileService.saveBatch(assoReportAffairFiles);
|
|
}
|
|
}
|
|
if (addClaimHistoryDTO.getIfSendEmail()) {
|
|
if (addClaimHistoryDTO.getIfSendEmail()) {
|
|
- sendReportMailService.finalSendEmail(projectId, fileGuids, addClaimHistoryDTO.getExtraEmailDTOS());
|
|
|
|
|
|
+ sendReportMailService.finalSendEmail(projectId, fileGuids, addClaimHistoryDTO.getExtraEmailDTOS(),reportAffairDTO);
|
|
}
|
|
}
|
|
return reportAffairId;
|
|
return reportAffairId;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 更新权要修改历史
|
|
* 更新权要修改历史
|
|
|
|
+ *
|
|
* @param updateClaimHistoryDTO
|
|
* @param updateClaimHistoryDTO
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public Integer updateClaimHistory(UpdateClaimHistoryDTO updateClaimHistoryDTO){
|
|
|
|
|
|
+ public Integer updateClaimHistory(UpdateClaimHistoryDTO updateClaimHistoryDTO) {
|
|
if (updateClaimHistoryDTO == null) {
|
|
if (updateClaimHistoryDTO == null) {
|
|
throw new XiaoShiException("入参为空");
|
|
throw new XiaoShiException("入参为空");
|
|
}
|
|
}
|
|
@@ -616,17 +626,20 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
List<String> fileGuids = updateClaimHistoryDTO.getFileGuids();
|
|
List<String> fileGuids = updateClaimHistoryDTO.getFileGuids();
|
|
assoReportAffairFileService.updateAffairFile(reportAffairId, fileGuids);
|
|
assoReportAffairFileService.updateAffairFile(reportAffairId, fileGuids);
|
|
if (updateClaimHistoryDTO.getIfSendEmail()) {
|
|
if (updateClaimHistoryDTO.getIfSendEmail()) {
|
|
- sendReportMailService.finalSendEmail(projectId, fileGuids, updateClaimHistoryDTO.getExtraEmailDTOS());
|
|
|
|
|
|
+ ReportAffairDTO reportAffairDTO=new ReportAffairDTO();
|
|
|
|
+ reportAffairDTO.setAssoCasePhaseId(reportAffair.getAssoCasePhaseId());
|
|
|
|
+ sendReportMailService.finalSendEmail(projectId, fileGuids, updateClaimHistoryDTO.getExtraEmailDTOS(),reportAffairDTO);
|
|
}
|
|
}
|
|
return reportAffairId;
|
|
return reportAffairId;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 上传补充证据及理由
|
|
* 上传补充证据及理由
|
|
|
|
+ *
|
|
* @param addSupplyEvidenceDTO
|
|
* @param addSupplyEvidenceDTO
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public Integer addSupplyEvidence(AddSupplyEvidenceDTO addSupplyEvidenceDTO){
|
|
|
|
|
|
+ public Integer addSupplyEvidence(AddSupplyEvidenceDTO addSupplyEvidenceDTO) {
|
|
if (addSupplyEvidenceDTO == null) {
|
|
if (addSupplyEvidenceDTO == null) {
|
|
throw new XiaoShiException("入参为空");
|
|
throw new XiaoShiException("入参为空");
|
|
}
|
|
}
|
|
@@ -663,17 +676,18 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
assoReportAffairFileService.saveBatch(assoReportAffairFiles);
|
|
assoReportAffairFileService.saveBatch(assoReportAffairFiles);
|
|
}
|
|
}
|
|
if (addSupplyEvidenceDTO.getIfSendEmail()) {
|
|
if (addSupplyEvidenceDTO.getIfSendEmail()) {
|
|
- sendReportMailService.finalSendEmail(projectId, fileGuids, addSupplyEvidenceDTO.getExtraEmailDTOS());
|
|
|
|
|
|
+ sendReportMailService.finalSendEmail(projectId, fileGuids, addSupplyEvidenceDTO.getExtraEmailDTOS(),reportAffairDTO);
|
|
}
|
|
}
|
|
return reportAffairId;
|
|
return reportAffairId;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 更新补充证据及理由
|
|
* 更新补充证据及理由
|
|
|
|
+ *
|
|
* @param updateSupplyEvidenceDTO
|
|
* @param updateSupplyEvidenceDTO
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public Integer updateSupplyEvidence(UpdateSupplyEvidenceDTO updateSupplyEvidenceDTO){
|
|
|
|
|
|
+ public Integer updateSupplyEvidence(UpdateSupplyEvidenceDTO updateSupplyEvidenceDTO) {
|
|
if (updateSupplyEvidenceDTO == null) {
|
|
if (updateSupplyEvidenceDTO == null) {
|
|
throw new XiaoShiException("入参为空");
|
|
throw new XiaoShiException("入参为空");
|
|
}
|
|
}
|
|
@@ -701,13 +715,16 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
List<String> fileGuids = updateSupplyEvidenceDTO.getFileGuids();
|
|
List<String> fileGuids = updateSupplyEvidenceDTO.getFileGuids();
|
|
assoReportAffairFileService.updateAffairFile(reportAffairId, fileGuids);
|
|
assoReportAffairFileService.updateAffairFile(reportAffairId, fileGuids);
|
|
if (updateSupplyEvidenceDTO.getIfSendEmail()) {
|
|
if (updateSupplyEvidenceDTO.getIfSendEmail()) {
|
|
- sendReportMailService.finalSendEmail(projectId, fileGuids, updateSupplyEvidenceDTO.getExtraEmailDTOS());
|
|
|
|
|
|
+ ReportAffairDTO reportAffairDTO =new ReportAffairDTO();
|
|
|
|
+ reportAffairDTO.setAssoCasePhaseId(reportAffair.getAssoCasePhaseId());
|
|
|
|
+ sendReportMailService.finalSendEmail(projectId, fileGuids, updateSupplyEvidenceDTO.getExtraEmailDTOS(),reportAffairDTO);
|
|
}
|
|
}
|
|
return reportAffairId;
|
|
return reportAffairId;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 装载权利要求修改记录
|
|
* 装载权利要求修改记录
|
|
|
|
+ *
|
|
* @param reportAffairVO
|
|
* @param reportAffairVO
|
|
*/
|
|
*/
|
|
public void loadClaimHistory(ReportAffairVO reportAffairVO) {
|
|
public void loadClaimHistory(ReportAffairVO reportAffairVO) {
|
|
@@ -723,6 +740,7 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
|
|
|
|
/**
|
|
/**
|
|
* 装载补充证据及理由
|
|
* 装载补充证据及理由
|
|
|
|
+ *
|
|
* @param reportAffairVO
|
|
* @param reportAffairVO
|
|
*/
|
|
*/
|
|
public void loadSupplyEvidence(ReportAffairVO reportAffairVO) {
|
|
public void loadSupplyEvidence(ReportAffairVO reportAffairVO) {
|
|
@@ -738,6 +756,7 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
|
|
|
|
/**
|
|
/**
|
|
* 装载其他文档
|
|
* 装载其他文档
|
|
|
|
+ *
|
|
* @param reportAffairVO
|
|
* @param reportAffairVO
|
|
*/
|
|
*/
|
|
public void loadOtherDocuments(ReportAffairVO reportAffairVO) {
|
|
public void loadOtherDocuments(ReportAffairVO reportAffairVO) {
|
|
@@ -752,10 +771,11 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
* 添加请求人意见陈述书 添加合议组无效宣告受理通知书 添加合议组转文 添加原告意见陈述书 添加原告证据 添加第三人意见陈述
|
|
* 添加请求人意见陈述书 添加合议组无效宣告受理通知书 添加合议组转文 添加原告意见陈述书 添加原告证据 添加第三人意见陈述
|
|
* 添加法院行政诉讼传票 添加法院转送文件 添加上诉人意见陈述 添加上诉人证据 添加第三人意见 添加被上诉人意见
|
|
* 添加法院行政诉讼传票 添加法院转送文件 添加上诉人意见陈述 添加上诉人证据 添加第三人意见 添加被上诉人意见
|
|
* 添加法院转送文件 添加法院行政诉讼传票
|
|
* 添加法院转送文件 添加法院行政诉讼传票
|
|
|
|
+ *
|
|
* @param vo
|
|
* @param vo
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public Integer addReportAffairCase(ReportAffairCaseDTO vo){
|
|
|
|
|
|
+ public Integer addReportAffairCase(ReportAffairCaseDTO vo) {
|
|
if (ObjectUtils.isEmpty(vo)) {
|
|
if (ObjectUtils.isEmpty(vo)) {
|
|
throw new XiaoShiException("入参为空");
|
|
throw new XiaoShiException("入参为空");
|
|
}
|
|
}
|
|
@@ -774,6 +794,8 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
//备注
|
|
//备注
|
|
reportAffairDTO.setDescription(vo.getDescription());
|
|
reportAffairDTO.setDescription(vo.getDescription());
|
|
reportAffairDTO.setAssoCasePhaseId(vo.getAssoCasePhaseId());
|
|
reportAffairDTO.setAssoCasePhaseId(vo.getAssoCasePhaseId());
|
|
|
|
+ reportAffairDTO.setBePosition(vo.getBePosition());
|
|
|
|
+ reportAffairDTO.setBeTime(vo.getBeTime());
|
|
if (vo.getEvidenceRiskResponse() != null) {
|
|
if (vo.getEvidenceRiskResponse() != null) {
|
|
reportAffairDTO.setEvidenceRiskResponse(vo.getEvidenceRiskResponse().trim());
|
|
reportAffairDTO.setEvidenceRiskResponse(vo.getEvidenceRiskResponse().trim());
|
|
}
|
|
}
|
|
@@ -783,7 +805,7 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
throw new XiaoShiException("上传报告事务失败");
|
|
throw new XiaoShiException("上传报告事务失败");
|
|
}
|
|
}
|
|
//2.同步报告官限
|
|
//2.同步报告官限
|
|
- invalidRequestFileService.getCommonMethod(projectId,vo.getAssoCasePhaseId());
|
|
|
|
|
|
+ invalidRequestFileService.getCommonMethod(projectId, vo.getAssoCasePhaseId());
|
|
//同步报告证据风险及措施
|
|
//同步报告证据风险及措施
|
|
this.updateEvidenceRiskResponse(projectId, vo.getAssoCasePhaseId());
|
|
this.updateEvidenceRiskResponse(projectId, vo.getAssoCasePhaseId());
|
|
//3. 添加报告事务与文件关联
|
|
//3. 添加报告事务与文件关联
|
|
@@ -799,17 +821,18 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
assoReportAffairFileService.saveBatch(assoReportAffairFiles);
|
|
assoReportAffairFileService.saveBatch(assoReportAffairFiles);
|
|
}
|
|
}
|
|
if (vo.getIfSendEmail()) {
|
|
if (vo.getIfSendEmail()) {
|
|
- sendReportMailService.finalSendEmail(projectId, fileGuids, vo.getExtraEmailDTOS());
|
|
|
|
|
|
+ sendReportMailService.finalSendEmail(projectId, fileGuids, vo.getExtraEmailDTOS(),reportAffairDTO);
|
|
}
|
|
}
|
|
return reportAffairId;
|
|
return reportAffairId;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 修改案件文档
|
|
* 修改案件文档
|
|
|
|
+ *
|
|
* @param vo
|
|
* @param vo
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public Integer updateReportAffairCase(ReportAffairCaseDTO vo){
|
|
|
|
|
|
+ public Integer updateReportAffairCase(ReportAffairCaseDTO vo) {
|
|
if (ObjectUtils.isEmpty(vo)) {
|
|
if (ObjectUtils.isEmpty(vo)) {
|
|
throw new XiaoShiException("入参为空");
|
|
throw new XiaoShiException("入参为空");
|
|
}
|
|
}
|
|
@@ -832,20 +855,23 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
//备注
|
|
//备注
|
|
reportAffair.setDescription(vo.getDescription());
|
|
reportAffair.setDescription(vo.getDescription());
|
|
reportAffair.setAssoCasePhaseId(vo.getAssoCasePhaseId());
|
|
reportAffair.setAssoCasePhaseId(vo.getAssoCasePhaseId());
|
|
|
|
+ reportAffair.setBeTime(vo.getBeTime());
|
|
|
|
+ reportAffair.setBePosition(vo.getBePosition());
|
|
if (vo.getEvidenceRiskResponse() != null) {
|
|
if (vo.getEvidenceRiskResponse() != null) {
|
|
reportAffair.setEvidenceRiskResponse(vo.getEvidenceRiskResponse().trim());
|
|
reportAffair.setEvidenceRiskResponse(vo.getEvidenceRiskResponse().trim());
|
|
}
|
|
}
|
|
reportAffair.updateById();
|
|
reportAffair.updateById();
|
|
-
|
|
|
|
//同步报告官限
|
|
//同步报告官限
|
|
- invalidRequestFileService.getCommonMethod(projectId,vo.getAssoCasePhaseId());
|
|
|
|
|
|
+ invalidRequestFileService.getCommonMethod(projectId, vo.getAssoCasePhaseId());
|
|
//同步报告证据风险及措施
|
|
//同步报告证据风险及措施
|
|
this.updateEvidenceRiskResponse(projectId, vo.getAssoCasePhaseId());
|
|
this.updateEvidenceRiskResponse(projectId, vo.getAssoCasePhaseId());
|
|
//3. 更新报告事务与文件关联
|
|
//3. 更新报告事务与文件关联
|
|
List<String> fileGuids = vo.getFileGuids();
|
|
List<String> fileGuids = vo.getFileGuids();
|
|
assoReportAffairFileService.updateAffairFile(reportAffairId, fileGuids);
|
|
assoReportAffairFileService.updateAffairFile(reportAffairId, fileGuids);
|
|
if (vo.getIfSendEmail()) {
|
|
if (vo.getIfSendEmail()) {
|
|
- sendReportMailService.finalSendEmail(projectId, fileGuids, vo.getExtraEmailDTOS());
|
|
|
|
|
|
+ ReportAffairDTO reportAffairDTO =new ReportAffairDTO();
|
|
|
|
+ reportAffairDTO.setAssoCasePhaseId(reportAffair.getAssoCasePhaseId());
|
|
|
|
+ sendReportMailService.finalSendEmail(projectId, fileGuids, vo.getExtraEmailDTOS(),reportAffairDTO);
|
|
}
|
|
}
|
|
return reportAffairId;
|
|
return reportAffairId;
|
|
}
|
|
}
|
|
@@ -866,4 +892,10 @@ public class ReportAffairService extends ServiceImpl<ReportAffairMapper, ReportA
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public void loadCourtSubpoenaVO(ReportAffairVO reportAffairVO) {
|
|
|
|
+ CourtSubpoenaVO courtSubpoenaVO = new CourtSubpoenaVO();
|
|
|
|
+ courtSubpoenaVO.setBeTime(reportAffairVO.getBeTime());
|
|
|
|
+ courtSubpoenaVO.setBePosition(reportAffairVO.getBePosition());
|
|
|
|
+ reportAffairVO.setCourtSubpoenaVO(courtSubpoenaVO);
|
|
|
|
+ }
|
|
}
|
|
}
|