|
@@ -1,6 +1,7 @@
|
|
package com.jeeplus.test.cw.reportCancellApplyArchived.service;
|
|
package com.jeeplus.test.cw.reportCancellApplyArchived.service;
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
+import com.alibaba.druid.sql.visitor.functions.If;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -10,8 +11,13 @@ import com.jeeplus.sys.service.dto.UserDTO;
|
|
import com.jeeplus.sys.utils.StringUtils;
|
|
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.CwProjectReportData;
|
|
|
|
+import com.jeeplus.test.cw.projectReport.mapper.CwProjectInfoMapper;
|
|
|
|
+import com.jeeplus.test.cw.projectReport.mapper.CwProjectReportMapper;
|
|
import com.jeeplus.test.cw.projectReportArchive.service.dto.WorkAttachmentArchiveDto;
|
|
import com.jeeplus.test.cw.projectReportArchive.service.dto.WorkAttachmentArchiveDto;
|
|
import com.jeeplus.test.cw.reportCancellApply.domain.ReportCancellApply;
|
|
import com.jeeplus.test.cw.reportCancellApply.domain.ReportCancellApply;
|
|
|
|
+import com.jeeplus.test.cw.reportCancellApply.mapper.ReportCancellApplyMapper;
|
|
import com.jeeplus.test.cw.reportCancellApplyArchived.domain.CwProjectReportApplyArchive;
|
|
import com.jeeplus.test.cw.reportCancellApplyArchived.domain.CwProjectReportApplyArchive;
|
|
import com.jeeplus.test.cw.reportCancellApplyArchived.mapper.ReportCancellApplyArchivedMapper;
|
|
import com.jeeplus.test.cw.reportCancellApplyArchived.mapper.ReportCancellApplyArchivedMapper;
|
|
import com.jeeplus.test.cw.reportCancellApplyArchived.service.dto.ApplyArchiveReportDTO;
|
|
import com.jeeplus.test.cw.reportCancellApplyArchived.service.dto.ApplyArchiveReportDTO;
|
|
@@ -49,19 +55,29 @@ public class ReportCancellApplyArchivedService extends ServiceImpl<ReportCancell
|
|
private OssServiceMapper ossServiceMapper;
|
|
private OssServiceMapper ossServiceMapper;
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
|
|
+ private ReportCancellApplyMapper cancellApplyMapper;
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ private CwProjectInfoMapper infoMapper;
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ private CwProjectReportMapper reportMapper;
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
private OssService ossService;
|
|
private OssService ossService;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 差选项目列表信息
|
|
* 差选项目列表信息
|
|
|
|
+ *
|
|
* @param page
|
|
* @param page
|
|
* @param projectReportData
|
|
* @param projectReportData
|
|
* @return
|
|
* @return
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
- public IPage<ArchivedReportInfoDto> getList(Page<ArchivedReportInfoDto> page, ArchivedReportInfoDto projectReportData) throws Exception{
|
|
|
|
- QueryWrapper<ArchivedReportInfoDto> queryWrapper = QueryWrapperGenerator.buildQueryCondition (projectReportData,ArchivedReportInfoDto.class);
|
|
|
|
- queryWrapper.eq("a.del_flag","0");
|
|
|
|
- queryWrapper.eq("a.status","5");
|
|
|
|
|
|
+ public IPage<ArchivedReportInfoDto> getList(Page<ArchivedReportInfoDto> page, ArchivedReportInfoDto projectReportData) throws Exception {
|
|
|
|
+ QueryWrapper<ArchivedReportInfoDto> queryWrapper = QueryWrapperGenerator.buildQueryCondition(projectReportData, ArchivedReportInfoDto.class);
|
|
|
|
+ queryWrapper.eq("a.del_flag", "0");
|
|
|
|
+ queryWrapper.eq("a.status", "5");
|
|
queryWrapper.orderByDesc("a.create_date");
|
|
queryWrapper.orderByDesc("a.create_date");
|
|
//条件
|
|
//条件
|
|
if (StringUtils.isNotEmpty(projectReportData.getProjectNumber())) {
|
|
if (StringUtils.isNotEmpty(projectReportData.getProjectNumber())) {
|
|
@@ -88,65 +104,141 @@ public class ReportCancellApplyArchivedService extends ServiceImpl<ReportCancell
|
|
|
|
|
|
/**
|
|
/**
|
|
* 根据id查询项目详情
|
|
* 根据id查询项目详情
|
|
|
|
+ *
|
|
* @param id
|
|
* @param id
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public ApplyArchiveReportDTO queryById(String id) {
|
|
public ApplyArchiveReportDTO queryById(String id) {
|
|
- //查附件信息
|
|
|
|
- ApplyArchiveReportDTO reportDTO = applyMapper.queryById(id);
|
|
|
|
- //查询报告作废归档表的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);
|
|
|
|
- }
|
|
|
|
- CwProjectRecordsDTO recordsDTO = applyMapper.selectProjectInfo(applyArchive.getProjectId());
|
|
|
|
- if (null != recordsDTO) {
|
|
|
|
- reportDTO.setCwProjectRecordsDTO(recordsDTO);
|
|
|
|
|
|
+ //传过来的是报告作废流程表的id
|
|
|
|
+ ReportCancellApply archive = cancellApplyMapper.selectById(id);
|
|
|
|
+ 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);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- //传过来的是归档的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(applyArchive.getProjectId());
|
|
|
|
- if (null != recordsDTO) {
|
|
|
|
- reportDTO.setCwProjectRecordsDTO(recordsDTO);
|
|
|
|
|
|
+ //传过来的是报废归档表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
|
|
|
|
+// 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;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 保存项目归档信息以及其他相关信息
|
|
* 保存项目归档信息以及其他相关信息
|
|
|
|
+ *
|
|
* @param cwProjectReportArchiveDTO
|
|
* @param cwProjectReportArchiveDTO
|
|
* @return
|
|
* @return
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
- public String saveForm(ApplyArchiveReportDTO cwProjectReportArchiveDTO) throws Exception{
|
|
|
|
|
|
+ public String saveForm(ApplyArchiveReportDTO cwProjectReportArchiveDTO) throws Exception {
|
|
|
|
|
|
- if (StringUtils.isNotEmpty(cwProjectReportArchiveDTO.getId())){
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(cwProjectReportArchiveDTO.getId())) {
|
|
CwProjectReportApplyArchive report = applyMapper.selectByApplyId(cwProjectReportArchiveDTO.getId());
|
|
CwProjectReportApplyArchive report = applyMapper.selectByApplyId(cwProjectReportArchiveDTO.getId());
|
|
if (null != report) {
|
|
if (null != report) {
|
|
//修改报告作废表的归档状态
|
|
//修改报告作废表的归档状态
|
|
- applyMapper.updateArchiveStyle(cwProjectReportArchiveDTO.getId(),cwProjectReportArchiveDTO.getStatus());
|
|
|
|
|
|
+ applyMapper.updateArchiveStyle(cwProjectReportArchiveDTO.getId(), cwProjectReportArchiveDTO.getStatus());
|
|
report.setCreateBy(cwProjectReportArchiveDTO.getCreateBy().getId());
|
|
report.setCreateBy(cwProjectReportArchiveDTO.getCreateBy().getId());
|
|
return update(cwProjectReportArchiveDTO, report.getId());
|
|
return update(cwProjectReportArchiveDTO, report.getId());
|
|
} else {
|
|
} else {
|
|
@@ -154,7 +246,7 @@ public class ReportCancellApplyArchivedService extends ServiceImpl<ReportCancell
|
|
report = applyMapper.selectById(cwProjectReportArchiveDTO.getId());
|
|
report = applyMapper.selectById(cwProjectReportArchiveDTO.getId());
|
|
if (null != report) {
|
|
if (null != report) {
|
|
//修改报告作废表的归档状态
|
|
//修改报告作废表的归档状态
|
|
- applyMapper.updateArchiveStyle(report.getArchiveId(),cwProjectReportArchiveDTO.getStatus());
|
|
|
|
|
|
+ applyMapper.updateArchiveStyle(report.getArchiveId(), cwProjectReportArchiveDTO.getStatus());
|
|
report.setCreateBy(cwProjectReportArchiveDTO.getCreateBy().getId());
|
|
report.setCreateBy(cwProjectReportArchiveDTO.getCreateBy().getId());
|
|
return update(cwProjectReportArchiveDTO, report.getId());
|
|
return update(cwProjectReportArchiveDTO, report.getId());
|
|
}
|
|
}
|
|
@@ -168,7 +260,7 @@ public class ReportCancellApplyArchivedService extends ServiceImpl<ReportCancell
|
|
* 合同登记新增
|
|
* 合同登记新增
|
|
*/
|
|
*/
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
- public String add(ApplyArchiveReportDTO reportDTO) throws Exception{
|
|
|
|
|
|
+ public String add(ApplyArchiveReportDTO reportDTO) throws Exception {
|
|
//获取当前登录人信息
|
|
//获取当前登录人信息
|
|
UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
String id = UUID.randomUUID().toString().replace("-", "");
|
|
String id = UUID.randomUUID().toString().replace("-", "");
|
|
@@ -181,6 +273,8 @@ public class ReportCancellApplyArchivedService extends ServiceImpl<ReportCancell
|
|
applyArchive.setUpdateDate(new Date());
|
|
applyArchive.setUpdateDate(new Date());
|
|
applyArchive.setArchiveId(reportDTO.getId());
|
|
applyArchive.setArchiveId(reportDTO.getId());
|
|
applyMapper.insert(applyArchive);
|
|
applyMapper.insert(applyArchive);
|
|
|
|
+ //修改报告作废表的归档状态
|
|
|
|
+ applyMapper.updateArchiveStyle(reportDTO.getId(), applyArchive.getStatus());
|
|
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);
|
|
@@ -192,7 +286,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) throws Exception {
|
|
//获取当前登录人信息
|
|
//获取当前登录人信息
|
|
UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
|
|
|
|
@@ -216,9 +310,10 @@ public class ReportCancellApplyArchivedService extends ServiceImpl<ReportCancell
|
|
|
|
|
|
/**
|
|
/**
|
|
* 修改附件信息
|
|
* 修改附件信息
|
|
- * @param list 待修改的附件列表
|
|
|
|
|
|
+ *
|
|
|
|
+ * @param list 待修改的附件列表
|
|
* @param userDTO 当前登录用户
|
|
* @param userDTO 当前登录用户
|
|
- * @param id 关联id
|
|
|
|
|
|
+ * @param id 关联id
|
|
*/
|
|
*/
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public void updateFiles(List<CwWorkAttachmentArchiveDto> list, UserDTO userDTO, String id) {
|
|
public void updateFiles(List<CwWorkAttachmentArchiveDto> list, UserDTO userDTO, String id) {
|
|
@@ -226,7 +321,7 @@ public class ReportCancellApplyArchivedService extends ServiceImpl<ReportCancell
|
|
String names = new String();
|
|
String names = new String();
|
|
//表中存在,但是传过来不存在,说明已删除,表中数据也要删除
|
|
//表中存在,但是传过来不存在,说明已删除,表中数据也要删除
|
|
for (CwWorkAttachmentArchiveDto dto : list) {
|
|
for (CwWorkAttachmentArchiveDto dto : list) {
|
|
- names = names + "," +dto.getUrl();
|
|
|
|
|
|
+ names = names + "," + dto.getUrl();
|
|
}
|
|
}
|
|
//查询保存的附件信息
|
|
//查询保存的附件信息
|
|
List<WorkAttachment> infoList = applyMapper.findList(id);
|
|
List<WorkAttachment> infoList = applyMapper.findList(id);
|
|
@@ -269,9 +364,10 @@ public class ReportCancellApplyArchivedService extends ServiceImpl<ReportCancell
|
|
|
|
|
|
/**
|
|
/**
|
|
* 保存附件信息
|
|
* 保存附件信息
|
|
- * @param list 待保存的附件列表
|
|
|
|
|
|
+ *
|
|
|
|
+ * @param list 待保存的附件列表
|
|
* @param userDTO 当前登录用户
|
|
* @param userDTO 当前登录用户
|
|
- * @param id 关联id
|
|
|
|
|
|
+ * @param id 关联id
|
|
*/
|
|
*/
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public void saveFiles(List<CwWorkAttachmentArchiveDto> list, UserDTO userDTO, String id) {
|
|
public void saveFiles(List<CwWorkAttachmentArchiveDto> list, UserDTO userDTO, String id) {
|
|
@@ -303,14 +399,15 @@ public class ReportCancellApplyArchivedService extends ServiceImpl<ReportCancell
|
|
|
|
|
|
/**
|
|
/**
|
|
* 修改状态
|
|
* 修改状态
|
|
|
|
+ *
|
|
* @param cwProjectReportArchiveDTO
|
|
* @param cwProjectReportArchiveDTO
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
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());
|
|
|
|
|
|
+ applyMapper.updateCancellArchiveType(cwProjectReportArchiveDTO.getStatus(), cwProjectReportArchiveDTO.getId());
|
|
|
|
+ applyMapper.updateStatusByArchiveId(cwProjectReportArchive.getStatus(), cwProjectReportArchive.getArchiveId());
|
|
return "操作成功";
|
|
return "操作成功";
|
|
}
|
|
}
|
|
|
|
|