浏览代码

Merge branch 'master' of http://git.ningdatech.com/liushuai/project-management into state-region

 Conflicts:
	pmapi/src/main/java/com/ningdatech/pmapi/projectlib/handle/ProjectApprovalHandle.java
master
PoffyZhang 1年前
父节点
当前提交
40db80457c
共有 3 个文件被更改,包括 10 次插入1 次删除
  1. +1
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/common/statemachine/util/StateMachineUtils.java
  2. +4
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/filemanage/manage/ProjectFileManage.java
  3. +5
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/model/entity/ProjectStatusChange.java

+ 1
- 0
pmapi/src/main/java/com/ningdatech/pmapi/common/statemachine/util/StateMachineUtils.java 查看文件

@@ -91,6 +91,7 @@ public class StateMachineUtils {
projectStatusChange.setAfterStatus(project.getStatus());
projectStatusChange.setEvent(event.name());
projectStatusChange.setCreateOn(LocalDateTime.now());
projectStatusChange.setProjectCode(project.getProjectCode());
// 插入项目状态变更表中
projectStatusChangeService.save(projectStatusChange);
log.info("调用状态机后的项目状态为>>>>>>>>>>{}" + project.getStatus());


+ 4
- 1
pmapi/src/main/java/com/ningdatech/pmapi/filemanage/manage/ProjectFileManage.java 查看文件

@@ -292,8 +292,11 @@ public class ProjectFileManage {
// 创建ZipOutputStream
ZipOutputStream zos = new ZipOutputStream(response.getOutputStream());
if (CollUtil.isNotEmpty(fileIdList)) {
// 对文件ID进行去重
HashSet<Long> hashSet = new HashSet<>();
List<Long> fidList = fileIdList.stream().filter(hashSet::add).collect(Collectors.toList());
// 获取文件输入流
for (Long fileId : fileIdList) {
for (Long fileId : fidList) {
File file = fileService.getById(fileId);
// 文件不存在,跳过
if (Objects.isNull(file)) {


+ 5
- 0
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/model/entity/ProjectStatusChange.java 查看文件

@@ -48,4 +48,9 @@ public class ProjectStatusChange implements Serializable {

@ApiModelProperty("状态变更发生的时间")
private LocalDateTime createOn;

@ApiModelProperty("项目code")
private String projectCode;


}

正在加载...
取消
保存