|
@@ -8,8 +8,10 @@ import com.jeeplus.common.utils.MenuStatusEnum;
|
|
|
import com.jeeplus.modules.act.entity.Act;
|
|
|
import com.jeeplus.modules.act.service.ActTaskService;
|
|
|
import com.jeeplus.modules.projectFilingBatch.dao.ProjectFilingBatchDao;
|
|
|
+import com.jeeplus.modules.projectFilingBatch.dao.ProjectFilingBatchProInfoDao;
|
|
|
import com.jeeplus.modules.projectFilingBatch.dao.ProjectFilingbatchRelationDao;
|
|
|
import com.jeeplus.modules.projectFilingBatch.entity.ProjectFilingBatch;
|
|
|
+import com.jeeplus.modules.projectFilingBatch.entity.ProjectFilingBatchProInfo;
|
|
|
import com.jeeplus.modules.projectFilingBatch.entity.ProjectFilingBatchTree;
|
|
|
import com.jeeplus.modules.projectFilingBatch.entity.ProjectFilingbatchRelation;
|
|
|
import com.jeeplus.modules.projectcontentinfo.entity.Projectcontentinfo;
|
|
@@ -86,6 +88,8 @@ public class ProjectFilingBatchService extends CrudService<ProjectFilingBatchDao
|
|
|
private SerialNumTplService serialNumTplService;
|
|
|
@Autowired
|
|
|
private WorkattachmentService workattachmentService;
|
|
|
+ @Autowired
|
|
|
+ private ProjectFilingBatchProInfoDao projectFilingBatchProInfoDao;
|
|
|
@Override
|
|
|
public ProjectFilingBatch get(String id) {
|
|
|
return super.get(id);
|
|
@@ -199,7 +203,9 @@ public class ProjectFilingBatchService extends CrudService<ProjectFilingBatchDao
|
|
|
|
|
|
|
|
|
@Transactional(readOnly = false)
|
|
|
- public Map<String,List> getFilingBatchById(ProjectFilingBatch projectFilingBatch, HttpServletRequest request, HttpServletResponse response) {
|
|
|
+ public Map<String,List> getFilingBatchById(ProjectFilingBatch projectFilingBatch) {
|
|
|
+ //查询批次下所有数据
|
|
|
+ List<ProjectFilingBatchProInfo> attachmentList = projectFilingBatchProInfoDao.getListByFilingBatchId(projectFilingBatch.getId());
|
|
|
//查询批次项目信息
|
|
|
List<ProjectFilingbatchRelation> relationList = dao.getRelationList(projectFilingBatch);
|
|
|
|
|
@@ -211,17 +217,13 @@ public class ProjectFilingBatchService extends CrudService<ProjectFilingBatchDao
|
|
|
|
|
|
batchData = getRelationInfo(batch,projectFilingBatch);
|
|
|
dataList.add(batchData);
|
|
|
- //获取子项目信息
|
|
|
- Workattachment workattachment = new Workattachment();
|
|
|
- workattachment.setAttachmentId(batch.getProjectId());
|
|
|
- workattachment.setDivIdType("_filingBatch");
|
|
|
- //查询对应子项目数据
|
|
|
- List<Workattachment> attachmentList = workattachmentService.findList(workattachment);
|
|
|
|
|
|
//项目名称不为空则进行所有项目的查询和处理
|
|
|
- for (Workattachment attachment: attachmentList) {
|
|
|
- ProjectFilingBatchTree treeData = getAttachmentInfo(attachment,batch.getId());
|
|
|
- dataList.add(treeData);
|
|
|
+ for (ProjectFilingBatchProInfo info: attachmentList) {
|
|
|
+ if(info.getProId().equals(batch.getProjectId())){
|
|
|
+ ProjectFilingBatchTree treeData = getAttachmentInfo(info,batch.getId());
|
|
|
+ dataList.add(treeData);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -271,15 +273,13 @@ public class ProjectFilingBatchService extends CrudService<ProjectFilingBatchDao
|
|
|
return treeData;
|
|
|
}
|
|
|
|
|
|
- private ProjectFilingBatchTree getAttachmentInfo(Workattachment attachment,String pId){
|
|
|
+ private ProjectFilingBatchTree getAttachmentInfo(ProjectFilingBatchProInfo proInfo,String pId){
|
|
|
ProjectFilingBatchTree treeData = new ProjectFilingBatchTree();
|
|
|
//将界面需要展示数据放入类中
|
|
|
//项目编号
|
|
|
- treeData.setProjectNum(attachment.getRemarks());
|
|
|
+ treeData.setProjectNum(proInfo.getProInfoType());
|
|
|
//报告号
|
|
|
- treeData.setNumber(attachment.getAttachmentName());
|
|
|
- //文件路径
|
|
|
- treeData.setUrl(attachment.getUrl());
|
|
|
+ treeData.setNumber(proInfo.getProInfoName());
|
|
|
//项目名称
|
|
|
treeData.setFilingName("");
|
|
|
//案卷号
|
|
@@ -765,12 +765,14 @@ public class ProjectFilingBatchService extends CrudService<ProjectFilingBatchDao
|
|
|
//审批通过,处理归档项目状态
|
|
|
List<ProjectFilingbatchRelation> projectFilingbatchRelationList = projectFilingBatch.getProjectFilingbatchRelations();
|
|
|
for (ProjectFilingbatchRelation info: projectFilingbatchRelationList) {
|
|
|
- if(4 == info.getStatus()){
|
|
|
- info.setDelFlag("1");
|
|
|
- info.setBoxNum("");
|
|
|
- info.setReBoxNum("");
|
|
|
+ if(StringUtils.isNotBlank(info.getId())){
|
|
|
+ if(4 == info.getStatus()){
|
|
|
+ info.setDelFlag("1");
|
|
|
+ info.setBoxNum("");
|
|
|
+ info.setReBoxNum("");
|
|
|
+ }
|
|
|
+ this.updateByid(info);
|
|
|
}
|
|
|
- this.updateByid(info);
|
|
|
}
|
|
|
//审核完成提示框
|
|
|
String title = "归档批次号【"+projectFilingBatch.getFilingBatch()+"】归档成功";
|