Browse Source

优化程序

changchun
zhouhaibin 1 month ago
parent
commit
ab9b9cf68a
  1. 3
      huzhou/src/main/java/com/easy/admin/modules/huzhou/controller/HuzhouUploadfileinfoController.java
  2. 5
      huzhou/src/main/java/com/easy/admin/modules/huzhou/service/impl/HuzhouPlaninfoServiceImpl.java
  3. 5
      huzhou/src/main/java/com/easy/admin/modules/huzhou/service/impl/HuzhouPlaninfofileServiceImpl.java
  4. 1
      huzhou/src/main/java/com/easy/admin/modules/huzhou/vo/SuperLeaderApprovalDetailsOV.java

3
huzhou/src/main/java/com/easy/admin/modules/huzhou/controller/HuzhouUploadfileinfoController.java

@ -25,6 +25,7 @@ import org.springframework.web.multipart.MultipartFile;
import javax.servlet.ServletOutputStream; import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.*; import java.io.*;
import java.net.URLEncoder;
import java.util.ArrayList; import java.util.ArrayList;
@RestController @RestController
@ -52,12 +53,14 @@ public class HuzhouUploadfileinfoController {
fileInputStream = new FileInputStream(path); fileInputStream = new FileInputStream(path);
file = new File(path); file = new File(path);
} }
response.addHeader("content-disposition","attachment;filename="+URLEncoder.encode(fileName,"UTF-8")+";filename*=UTF-8''"+ URLEncoder.encode(fileName,"UTF-8"));
response.setContentType("application/octet-stream"); response.setContentType("application/octet-stream");
if(file!=null){ if(file!=null){
response.addHeader("Content-Length", "" + file.length()); response.addHeader("Content-Length", "" + file.length());
}else{ }else{
response.addHeader("Content-Length", "" + fileInputStream.available()); response.addHeader("Content-Length", "" + fileInputStream.available());
} }
// response.setContentType("multipart/form-data"); // response.setContentType("multipart/form-data");
BufferedInputStream inputStream =null; BufferedInputStream inputStream =null;
try { try {

5
huzhou/src/main/java/com/easy/admin/modules/huzhou/service/impl/HuzhouPlaninfoServiceImpl.java

@ -609,7 +609,10 @@ public class HuzhouPlaninfoServiceImpl extends ServiceImpl<HuzhouPlaninfoMapper,
@Override @Override
public IPage<HuzhouProjectinfoOV> projectPlanPageList(HuzhouProjectinfo projectinfo, Integer pageNo, Integer pageSize, String newStage) { public IPage<HuzhouProjectinfoOV> projectPlanPageList(HuzhouProjectinfo projectinfo, Integer pageNo, Integer pageSize, String newStage) {
// runtimeService.deleteProcessInstance("412777","停止流程"); // runtimeService.deleteProcessInstance("371898","停止流程");
// runtimeService.deleteProcessInstance("371950","停止流程");
// runtimeService.deleteProcessInstance("415628","停止流程");
// runtimeService.deleteProcessInstance("415680","停止流程");
IPage<HuzhouProjectinfoOV> infoPageList = projectinfoService.getProjectInfoAndChildPageList(projectinfo, pageNo, pageSize,newStage); IPage<HuzhouProjectinfoOV> infoPageList = projectinfoService.getProjectInfoAndChildPageList(projectinfo, pageNo, pageSize,newStage);
return infoPageList; return infoPageList;

5
huzhou/src/main/java/com/easy/admin/modules/huzhou/service/impl/HuzhouPlaninfofileServiceImpl.java

@ -306,7 +306,7 @@ public class HuzhouPlaninfofileServiceImpl extends ServiceImpl<HuzhouPlaninfofil
huzhouPlaninfo1.setActualEndTime(new Date()); huzhouPlaninfo1.setActualEndTime(new Date());
planinfoService.updateById(huzhouPlaninfo1); planinfoService.updateById(huzhouPlaninfo1);
} else if ("可研报告送审稿编制".equals(taskName)) { } else if ("可研报告稿编制".equals(taskName)) {
//finalFeasibilityReportDraft //finalFeasibilityReportDraft
WorkFlow workFlow = workflowService.createFlow("finalFeasibilityReportDraft",planinfoid); WorkFlow workFlow = workflowService.createFlow("finalFeasibilityReportDraft",planinfoid);
Task task = workFlow.getTask(); Task task = workFlow.getTask();
@ -451,10 +451,11 @@ public class HuzhouPlaninfofileServiceImpl extends ServiceImpl<HuzhouPlaninfofil
if(processInstance==null&&"1".equals(flag)){ if(processInstance==null&&"1".equals(flag)){
HuzhouPlaninfo byId = planinfoService.getById(planinfoid); HuzhouPlaninfo byId = planinfoService.getById(planinfoid);
String taskName = StrUtil.trim(byId.getTaskName()); String taskName = StrUtil.trim(byId.getTaskName());
if("可研报告送审稿编制".equals(taskName)){ if("可研报告稿编制".equals(taskName)){
//查询是否已有完成的流程。有两个以上 //查询是否已有完成的流程。有两个以上
queryWrapper.clear(); queryWrapper.clear();
queryWrapper.eq(HuzhouProcessinfo::getProjectid,planinfoid); queryWrapper.eq(HuzhouProcessinfo::getProjectid,planinfoid);
processinfos = processinfoService.list(queryWrapper); processinfos = processinfoService.list(queryWrapper);
if(processinfos.size()>=2){ if(processinfos.size()>=2){

1
huzhou/src/main/java/com/easy/admin/modules/huzhou/vo/SuperLeaderApprovalDetailsOV.java

@ -33,6 +33,7 @@ public class SuperLeaderApprovalDetailsOV {
private String reformCount; private String reformCount;
private String idList; private String idList;
private String urtDep; private String urtDep;
private String isfinished;
} }

Loading…
Cancel
Save