|
@@ -12,6 +12,7 @@ import com.jeeplus.sys.utils.StringUtils;
|
|
import com.jeeplus.sys.utils.UserUtils;
|
|
import com.jeeplus.sys.utils.UserUtils;
|
|
import com.jeeplus.test.cw.projectRecords.service.dto.CwProjectRecordsDTO;
|
|
import com.jeeplus.test.cw.projectRecords.service.dto.CwProjectRecordsDTO;
|
|
import com.jeeplus.test.cw.projectReport.domain.CwProjectInfoData;
|
|
import com.jeeplus.test.cw.projectReport.domain.CwProjectInfoData;
|
|
|
|
+import com.jeeplus.test.cw.projectReport.domain.CwProjectReport;
|
|
import com.jeeplus.test.cw.projectReport.domain.CwProjectReportData;
|
|
import com.jeeplus.test.cw.projectReport.domain.CwProjectReportData;
|
|
import com.jeeplus.test.cw.projectReport.mapper.CwProjectInfoMapper;
|
|
import com.jeeplus.test.cw.projectReport.mapper.CwProjectInfoMapper;
|
|
import com.jeeplus.test.cw.projectReport.mapper.CwProjectReportMapper;
|
|
import com.jeeplus.test.cw.projectReport.mapper.CwProjectReportMapper;
|
|
@@ -28,6 +29,7 @@ import com.jeeplus.test.oss.domain.WorkAttachment;
|
|
import com.jeeplus.test.oss.mapper.OssServiceMapper;
|
|
import com.jeeplus.test.oss.mapper.OssServiceMapper;
|
|
import com.jeeplus.test.oss.service.OssService;
|
|
import com.jeeplus.test.oss.service.OssService;
|
|
import com.jeeplus.test.workContract.service.dto.WorkAttachmentDto;
|
|
import com.jeeplus.test.workContract.service.dto.WorkAttachmentDto;
|
|
|
|
+import liquibase.pro.packaged.A;
|
|
import org.flowable.editor.language.json.converter.util.CollectionUtils;
|
|
import org.flowable.editor.language.json.converter.util.CollectionUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -110,117 +112,88 @@ public class ReportCancellApplyArchivedService extends ServiceImpl<ReportCancell
|
|
*/
|
|
*/
|
|
public ApplyArchiveReportDTO queryById(String id) {
|
|
public ApplyArchiveReportDTO queryById(String id) {
|
|
//传过来的是报告作废流程表的id
|
|
//传过来的是报告作废流程表的id
|
|
- ReportCancellApply archive = cancellApplyMapper.selectById(id);
|
|
|
|
|
|
+ ReportCancellApply apply = cancellApplyMapper.selectById(id);
|
|
ApplyArchiveReportDTO reportDTO = new ApplyArchiveReportDTO();
|
|
ApplyArchiveReportDTO reportDTO = new ApplyArchiveReportDTO();
|
|
- if (null != archive) {
|
|
|
|
- CwProjectInfoData infoData = infoMapper.getById(archive.getReportNewLineId());
|
|
|
|
- if (null != infoData) {
|
|
|
|
- reportDTO = applyMapper.queryById2(infoData.getReportId());
|
|
|
|
- //查询报告作废归档表的id
|
|
|
|
- if (null != reportDTO) {
|
|
|
|
- CwProjectReportApplyArchive applyArchive = applyMapper.selectByArchiveId(id);
|
|
|
|
- if (null != applyArchive) {
|
|
|
|
- List<CwWorkAttachmentArchiveDto> files = applyMapper.selectFileInfoByAttid(applyArchive.getId());
|
|
|
|
- if (null != files) {
|
|
|
|
- files.forEach(fi -> {
|
|
|
|
- UserDTO userDTO = applyMapper.getUserInfo(fi.getUserId());
|
|
|
|
- fi.setCreateBy(userDTO);
|
|
|
|
- });
|
|
|
|
- //附件信息
|
|
|
|
- reportDTO.setWorkAttachmentDtoList(files);
|
|
|
|
- //设置报告册数、底稿册数、档案年度、归档类型、备注
|
|
|
|
- reportDTO.setReportNum(applyArchive.getReportNum());
|
|
|
|
- reportDTO.setPapersNum(applyArchive.getPapersNum());
|
|
|
|
- reportDTO.setYear(applyArchive.getYear());
|
|
|
|
- reportDTO.setNumber(applyArchive.getNumber());
|
|
|
|
- reportDTO.setIsNumber(applyArchive.getIsNumber());
|
|
|
|
- reportDTO.setAuditDate(applyArchive.getAuditDate());
|
|
|
|
- reportDTO.setFileNumber(applyArchive.getFileNumber());
|
|
|
|
- reportDTO.setReportRemarks(applyArchive.getReportRemarks());
|
|
|
|
- reportDTO.setCarchivedType(applyArchive.getCarchivedType());
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- //项目信息
|
|
|
|
- //先查出新建行id,根据新建行id查出reportid,根据reportid查出projectId
|
|
|
|
-// CwProjectRecordsDTO recordsDTO = applyMapper.selectProjectInfo(reportDTO.getProjectId());
|
|
|
|
-// if (null != recordsDTO) {
|
|
|
|
-// reportDTO.setCwProjectRecordsDTO(recordsDTO);
|
|
|
|
-// }
|
|
|
|
- }
|
|
|
|
- //项目信息
|
|
|
|
- //先查出新建行id,根据新建行id查出reportid,根据reportid查出projectId
|
|
|
|
- CwProjectRecordsDTO recordsDTO = applyMapper.selectProjectInfo(reportDTO.getProjectId());
|
|
|
|
- if (null != recordsDTO) {
|
|
|
|
- reportDTO.setCwProjectRecordsDTO(recordsDTO);
|
|
|
|
- }
|
|
|
|
|
|
+ if (null != apply) {
|
|
|
|
+ //根据报告表id查出报废归档信息
|
|
|
|
+ CwProjectReportApplyArchive applyArchive = applyMapper.getInfoByBFID(apply.getId());
|
|
|
|
+ if (null != applyArchive) {
|
|
|
|
+ reportDTO.setReportNum(applyArchive.getReportNum());
|
|
|
|
+ reportDTO.setPapersNum(applyArchive.getPapersNum());
|
|
|
|
+ reportDTO.setYear(applyArchive.getYear());
|
|
|
|
+ reportDTO.setNumber(applyArchive.getNumber());
|
|
|
|
+ reportDTO.setIsNumber(applyArchive.getIsNumber());
|
|
|
|
+ reportDTO.setAuditDate(applyArchive.getAuditDate());
|
|
|
|
+ reportDTO.setFileNumber(applyArchive.getFileNumber());
|
|
|
|
+ reportDTO.setApplyFileType(applyArchive.getApplyFileType());
|
|
|
|
+ reportDTO.setReportRemarks(applyArchive.getReportRemarks());
|
|
|
|
+ reportDTO.setCarchivedType(applyArchive.getCarchivedType());
|
|
|
|
+ //设置附件
|
|
|
|
+ List<CwWorkAttachmentArchiveDto> files = applyMapper.selectFileInfoByAttid(applyArchive.getId());
|
|
|
|
+ if (null != files) {
|
|
|
|
+ files.forEach(fi -> {
|
|
|
|
+ UserDTO userDTO = applyMapper.getUserInfo(fi.getUserId());
|
|
|
|
+ fi.setCreateBy(userDTO);
|
|
|
|
+ });
|
|
|
|
+ //附件信息
|
|
|
|
+ reportDTO.setWorkAttachmentDtoList(files);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //设置项目信息
|
|
|
|
+ //根据新建行id找到项目id
|
|
|
|
+ CwProjectRecordsDTO recordsDTO = applyMapper.getProjectByNewLineId(apply.getReportNewLineId());
|
|
|
|
+ reportDTO.setCwProjectRecordsDTO(recordsDTO);
|
|
|
|
+ //设置报告文号相关信息
|
|
|
|
+ //根据新建行找到签字注师信息与报告文号信息
|
|
|
|
+ CwProjectInfoData byId = infoMapper.getById(apply.getReportNewLineId());
|
|
|
|
+ CwProjectReport report = reportMapper.getByNewLineId(byId.getReportId());
|
|
|
|
+ reportDTO.setReportNo(byId.getReportNo());
|
|
|
|
+ reportDTO.setReportDate(byId.getReportDate());
|
|
|
|
+ reportDTO.setReportCreateName(byId.getCreateBy());
|
|
|
|
+ reportDTO.setSignatureAnnotator1Name(report.getSignatureAnnotator1());
|
|
|
|
+ reportDTO.setSignatureAnnotator2Name(report.getSignatureAnnotator2());
|
|
} else {
|
|
} else {
|
|
- //传过来的是报废归档表id
|
|
|
|
- CwProjectReportApplyArchive applyArchive1 = applyMapper.selectById(id);
|
|
|
|
- if ( null != applyArchive1) {
|
|
|
|
- archive = cancellApplyMapper.selectById(applyArchive1.getArchiveId());
|
|
|
|
- if ( null != archive) {
|
|
|
|
- CwProjectInfoData infoData = infoMapper.getById(archive.getReportNewLineId());
|
|
|
|
- if (null != infoData) {
|
|
|
|
- reportDTO = applyMapper.queryById2(infoData.getReportId());
|
|
|
|
- //查询报告作废归档表的id
|
|
|
|
- if (null != reportDTO) {
|
|
|
|
- CwProjectReportApplyArchive applyArchive = applyMapper.selectByArchiveId(id);
|
|
|
|
- if (null != applyArchive) {
|
|
|
|
- List<CwWorkAttachmentArchiveDto> files = applyMapper.selectFileInfoByAttid(applyArchive.getId());
|
|
|
|
- if (null != files) {
|
|
|
|
- files.forEach(fi -> {
|
|
|
|
- UserDTO userDTO = applyMapper.getUserInfo(fi.getUserId());
|
|
|
|
- fi.setCreateBy(userDTO);
|
|
|
|
- });
|
|
|
|
- //附件信息
|
|
|
|
- reportDTO.setWorkAttachmentDtoList(files);
|
|
|
|
- //设置报告册数、底稿册数、档案年度、归档类型、备注
|
|
|
|
- reportDTO.setReportNum(applyArchive.getReportNum());
|
|
|
|
- reportDTO.setPapersNum(applyArchive.getPapersNum());
|
|
|
|
- reportDTO.setYear(applyArchive.getYear());
|
|
|
|
- reportDTO.setNumber(applyArchive.getNumber());
|
|
|
|
- reportDTO.setIsNumber(applyArchive.getIsNumber());
|
|
|
|
- reportDTO.setAuditDate(applyArchive.getAuditDate());
|
|
|
|
- reportDTO.setFileNumber(applyArchive.getFileNumber());
|
|
|
|
- reportDTO.setReportRemarks(applyArchive.getReportRemarks());
|
|
|
|
- reportDTO.setCarchivedType(applyArchive.getCarchivedType());
|
|
|
|
- }
|
|
|
|
- //项目信息
|
|
|
|
- //先查出新建行id,根据新建行id查出reportid,根据reportid查出projectId
|
|
|
|
-// CwProjectRecordsDTO recordsDTO = applyMapper.selectProjectInfo(reportDTO.getProjectId());
|
|
|
|
-// if (null != recordsDTO) {
|
|
|
|
-// reportDTO.setCwProjectRecordsDTO(recordsDTO);
|
|
|
|
-// }
|
|
|
|
- }
|
|
|
|
- //项目信息
|
|
|
|
- //先查出新建行id,根据新建行id查出reportid,根据reportid查出projectId
|
|
|
|
- CwProjectRecordsDTO recordsDTO = applyMapper.selectProjectInfo(reportDTO.getProjectId());
|
|
|
|
- if (null != recordsDTO) {
|
|
|
|
- reportDTO.setCwProjectRecordsDTO(recordsDTO);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ //传来的是归档的id
|
|
|
|
+ apply = cancellApplyMapper.selectByArchivedId(id);
|
|
|
|
+ if (null != apply) {
|
|
|
|
+ //根据报告表id查出报废归档信息
|
|
|
|
+ CwProjectReportApplyArchive applyArchive = applyMapper.getInfoByBFID(apply.getId());
|
|
|
|
+ if (null != applyArchive) {
|
|
|
|
+ reportDTO.setReportNum(applyArchive.getReportNum());
|
|
|
|
+ reportDTO.setPapersNum(applyArchive.getPapersNum());
|
|
|
|
+ reportDTO.setYear(applyArchive.getYear());
|
|
|
|
+ reportDTO.setNumber(applyArchive.getNumber());
|
|
|
|
+ reportDTO.setIsNumber(applyArchive.getIsNumber());
|
|
|
|
+ reportDTO.setAuditDate(applyArchive.getAuditDate());
|
|
|
|
+ reportDTO.setFileNumber(applyArchive.getFileNumber());
|
|
|
|
+ reportDTO.setApplyFileType(applyArchive.getApplyFileType());
|
|
|
|
+ reportDTO.setReportRemarks(applyArchive.getReportRemarks());
|
|
|
|
+ reportDTO.setCarchivedType(applyArchive.getCarchivedType());
|
|
|
|
+ //设置附件
|
|
|
|
+ List<CwWorkAttachmentArchiveDto> files = applyMapper.selectFileInfoByAttid(applyArchive.getId());
|
|
|
|
+ if (null != files) {
|
|
|
|
+ files.forEach(fi -> {
|
|
|
|
+ UserDTO userDTO = applyMapper.getUserInfo(fi.getUserId());
|
|
|
|
+ fi.setCreateBy(userDTO);
|
|
|
|
+ });
|
|
|
|
+ //附件信息
|
|
|
|
+ reportDTO.setWorkAttachmentDtoList(files);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //设置项目信息
|
|
|
|
+ //根据新建行id找到项目id
|
|
|
|
+ CwProjectRecordsDTO recordsDTO = applyMapper.getProjectByNewLineId(apply.getReportNewLineId());
|
|
|
|
+ reportDTO.setCwProjectRecordsDTO(recordsDTO);
|
|
|
|
+ //设置报告文号相关信息
|
|
|
|
+ //根据新建行找到签字注师信息与报告文号信息
|
|
|
|
+ CwProjectInfoData byId = infoMapper.getById(apply.getReportNewLineId());
|
|
|
|
+ CwProjectReport report = reportMapper.getByNewLineId(byId.getReportId());
|
|
|
|
+ reportDTO.setReportNo(byId.getReportNo());
|
|
|
|
+ reportDTO.setReportDate(byId.getReportDate());
|
|
|
|
+ reportDTO.setReportCreateName(byId.getCreateBy());
|
|
|
|
+ reportDTO.setSignatureAnnotator1Name(report.getSignatureAnnotator1());
|
|
|
|
+ reportDTO.setSignatureAnnotator2Name(report.getSignatureAnnotator2());
|
|
}
|
|
}
|
|
- //传过来的是归档的id
|
|
|
|
-// reportDTO = applyMapper.queryByArchivedId(id);
|
|
|
|
-// CwProjectReportApplyArchive applyArchive = applyMapper.selectByArchiveId(reportDTO.getId());
|
|
|
|
-// if (null != applyArchive) {
|
|
|
|
-// List<CwWorkAttachmentArchiveDto> files = applyMapper.selectFileInfoByAttid(applyArchive.getId());
|
|
|
|
-// if (null != files) {
|
|
|
|
-// files.forEach(fi -> {
|
|
|
|
-// UserDTO userDTO = applyMapper.getUserInfo(fi.getUserId());
|
|
|
|
-// fi.setCreateBy(userDTO);
|
|
|
|
-// });
|
|
|
|
-// reportDTO.setWorkAttachmentDtoList(files);
|
|
|
|
-// }
|
|
|
|
-// CwProjectRecordsDTO recordsDTO = applyMapper.selectProjectInfo(reportDTO.getProjectId());
|
|
|
|
-// if (null != recordsDTO) {
|
|
|
|
-// reportDTO.setCwProjectRecordsDTO(recordsDTO);
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
}
|
|
}
|
|
return reportDTO;
|
|
return reportDTO;
|
|
}
|
|
}
|
|
@@ -233,27 +206,19 @@ public class ReportCancellApplyArchivedService extends ServiceImpl<ReportCancell
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
public String saveForm(ApplyArchiveReportDTO cwProjectReportArchiveDTO) throws Exception {
|
|
public String saveForm(ApplyArchiveReportDTO cwProjectReportArchiveDTO) throws Exception {
|
|
-
|
|
|
|
- if (StringUtils.isNotEmpty(cwProjectReportArchiveDTO.getId())) {
|
|
|
|
- CwProjectReportApplyArchive report = applyMapper.selectByApplyId(cwProjectReportArchiveDTO.getId());
|
|
|
|
|
|
+ //根据报废id来查是否有改数据
|
|
|
|
+ CwProjectReportApplyArchive report = applyMapper.getInfoByBFID(cwProjectReportArchiveDTO.getId());
|
|
|
|
+ if (null != report) {
|
|
|
|
+ report.setCreateBy(cwProjectReportArchiveDTO.getCreateBy().getId());
|
|
|
|
+ return update(cwProjectReportArchiveDTO, report.getId(),report.getArchiveId(),report.getProcInsId(),report.getProcessDefinitionId());
|
|
|
|
+ } else {
|
|
|
|
+ report = applyMapper.selectById(cwProjectReportArchiveDTO.getId());
|
|
if (null != report) {
|
|
if (null != report) {
|
|
- //修改报告作废表的归档状态
|
|
|
|
- applyMapper.updateArchiveStyle(cwProjectReportArchiveDTO.getId(), cwProjectReportArchiveDTO.getStatus());
|
|
|
|
- report.setCreateBy(cwProjectReportArchiveDTO.getCreateBy().getId());
|
|
|
|
- return update(cwProjectReportArchiveDTO, report.getId());
|
|
|
|
|
|
+ return update(cwProjectReportArchiveDTO, report.getId(),report.getArchiveId(),report.getProcInsId(),report.getProcessDefinitionId());
|
|
} else {
|
|
} else {
|
|
- //传过来的是归档id
|
|
|
|
- report = applyMapper.selectById(cwProjectReportArchiveDTO.getId());
|
|
|
|
- if (null != report) {
|
|
|
|
- //修改报告作废表的归档状态
|
|
|
|
- applyMapper.updateArchiveStyle(report.getArchiveId(), cwProjectReportArchiveDTO.getStatus());
|
|
|
|
- report.setCreateBy(cwProjectReportArchiveDTO.getCreateBy().getId());
|
|
|
|
- return update(cwProjectReportArchiveDTO, report.getId());
|
|
|
|
- }
|
|
|
|
|
|
+ return add(cwProjectReportArchiveDTO);
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
- return add(cwProjectReportArchiveDTO);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -271,10 +236,15 @@ public class ReportCancellApplyArchivedService extends ServiceImpl<ReportCancell
|
|
applyArchive.setCreateDate(new Date());
|
|
applyArchive.setCreateDate(new Date());
|
|
applyArchive.setUpdateBy(userDTO.getId());
|
|
applyArchive.setUpdateBy(userDTO.getId());
|
|
applyArchive.setUpdateDate(new Date());
|
|
applyArchive.setUpdateDate(new Date());
|
|
|
|
+ //传过来的是report表的id
|
|
|
|
+ //根据改id查报废信息
|
|
|
|
+// String newLineId = applyMapper.getNewLineId(reportDTO.getId());
|
|
|
|
+ //根据newLineID查出报废表id
|
|
|
|
+// String bfId = applyMapper.getBfId(newLineId);
|
|
applyArchive.setArchiveId(reportDTO.getId());
|
|
applyArchive.setArchiveId(reportDTO.getId());
|
|
applyMapper.insert(applyArchive);
|
|
applyMapper.insert(applyArchive);
|
|
//修改报告作废表的归档状态
|
|
//修改报告作废表的归档状态
|
|
- applyMapper.updateArchiveStyle(reportDTO.getId(), applyArchive.getStatus());
|
|
|
|
|
|
+ applyMapper.updateArchiveStyle(reportDTO.getId(), applyArchive.getApplyFileType());
|
|
List<CwWorkAttachmentArchiveDto> list = reportDTO.getWorkAttachmentDtoList();
|
|
List<CwWorkAttachmentArchiveDto> list = reportDTO.getWorkAttachmentDtoList();
|
|
if (CollectionUtils.isNotEmpty(list)) {
|
|
if (CollectionUtils.isNotEmpty(list)) {
|
|
saveFiles(list, userDTO, id);
|
|
saveFiles(list, userDTO, id);
|
|
@@ -286,7 +256,7 @@ public class ReportCancellApplyArchivedService extends ServiceImpl<ReportCancell
|
|
* 修改
|
|
* 修改
|
|
*/
|
|
*/
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
- public String update(ApplyArchiveReportDTO reportData, String id) throws Exception {
|
|
|
|
|
|
+ public String update(ApplyArchiveReportDTO reportData, String id,String archiveId,String procInsId,String defId) throws Exception {
|
|
//获取当前登录人信息
|
|
//获取当前登录人信息
|
|
UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
|
|
|
|
@@ -295,8 +265,12 @@ public class ReportCancellApplyArchivedService extends ServiceImpl<ReportCancell
|
|
cwProjectReportArchive.setUpdateBy(userDTO.getId());
|
|
cwProjectReportArchive.setUpdateBy(userDTO.getId());
|
|
cwProjectReportArchive.setUpdateDate(new Date());
|
|
cwProjectReportArchive.setUpdateDate(new Date());
|
|
cwProjectReportArchive.setId(id);
|
|
cwProjectReportArchive.setId(id);
|
|
- cwProjectReportArchive.setArchiveId(reportData.getId());
|
|
|
|
|
|
+ cwProjectReportArchive.setArchiveId(archiveId);
|
|
|
|
+ cwProjectReportArchive.setProcInsId(procInsId);
|
|
|
|
+ cwProjectReportArchive.setProcessDefinitionId(defId);
|
|
applyMapper.updateById(cwProjectReportArchive);
|
|
applyMapper.updateById(cwProjectReportArchive);
|
|
|
|
+ //修改报告作废表的归档状态
|
|
|
|
+ applyMapper.updateArchiveStyle(cwProjectReportArchive.getArchiveId(), cwProjectReportArchive.getApplyFileType());
|
|
//对上传的文件数据进行持久化操作
|
|
//对上传的文件数据进行持久化操作
|
|
List<CwWorkAttachmentArchiveDto> list = reportData.getWorkAttachmentDtoList();
|
|
List<CwWorkAttachmentArchiveDto> list = reportData.getWorkAttachmentDtoList();
|
|
if (CollectionUtils.isNotEmpty(list)) {
|
|
if (CollectionUtils.isNotEmpty(list)) {
|
|
@@ -405,9 +379,18 @@ public class ReportCancellApplyArchivedService extends ServiceImpl<ReportCancell
|
|
*/
|
|
*/
|
|
public String updateStatusById(ApplyArchiveReportDTO cwProjectReportArchiveDTO) {
|
|
public String updateStatusById(ApplyArchiveReportDTO cwProjectReportArchiveDTO) {
|
|
CwProjectReportApplyArchive cwProjectReportArchive = new CwProjectReportApplyArchive();
|
|
CwProjectReportApplyArchive cwProjectReportArchive = new CwProjectReportApplyArchive();
|
|
- //修改报告作废表归档状态
|
|
|
|
- applyMapper.updateCancellArchiveType(cwProjectReportArchiveDTO.getStatus(), cwProjectReportArchiveDTO.getId());
|
|
|
|
- applyMapper.updateStatusByArchiveId(cwProjectReportArchive.getStatus(), cwProjectReportArchive.getArchiveId());
|
|
|
|
|
|
+ CwProjectReportApplyArchive applyArchive = applyMapper.selectById(cwProjectReportArchiveDTO.getId());
|
|
|
|
+ if (null != applyArchive){
|
|
|
|
+ applyMapper.updateCancellArchiveType(cwProjectReportArchiveDTO.getApplyFileType(), cwProjectReportArchiveDTO.getId());
|
|
|
|
+
|
|
|
|
+ applyMapper.updateStatusByArchiveId(cwProjectReportArchiveDTO.getApplyFileType(), applyArchive.getArchiveId());
|
|
|
|
+ } else {
|
|
|
|
+ applyArchive = applyMapper.getInfoByBFID(cwProjectReportArchiveDTO.getId());
|
|
|
|
+ applyMapper.updateCancellArchiveType(cwProjectReportArchiveDTO.getApplyFileType(), applyArchive.getId());
|
|
|
|
+
|
|
|
|
+ applyMapper.updateStatusByArchiveId(cwProjectReportArchiveDTO.getApplyFileType(), applyArchive.getArchiveId());
|
|
|
|
+ }
|
|
|
|
+
|
|
return "操作成功";
|
|
return "操作成功";
|
|
}
|
|
}
|
|
|
|
|