Pārlūkot izejas kodu

modify:

1. 提交备案后时间修改;
tags/24090101
WendyYang pirms 2 mēnešiem
vecāks
revīzija
a6c2e44bbf
1 mainītis faili ar 9 papildinājumiem un 8 dzēšanām
  1. +9
    -8
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/QxProjectManage.java

+ 9
- 8
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/QxProjectManage.java Parādīt failu

@@ -132,9 +132,14 @@ public class QxProjectManage {
}
BeanUtil.copyProperties(req, purchase);
qxPurchaseService.saveOrUpdate(purchase);
updateQxProjectStatus(QxProjectStatus.PURCHASED, req.getProjectId());
}

private void updateQxProjectStatus(QxProjectStatus status, Long id) {
qxProjectService.update(Wrappers.lambdaUpdate(QxProject.class)
.set(QxProject::getStatus, QxProjectStatus.PURCHASED.getCode())
.eq(QxProject::getId, req.getProjectId()));
.set(QxProject::getUpdateOn, LocalDateTime.now())
.set(QxProject::getStatus, status.getCode())
.eq(QxProject::getId, id));
}

@Transactional(rollbackFor = Exception.class)
@@ -152,9 +157,7 @@ public class QxProjectManage {
.set(QxPurchase::getUpdateOn, LocalDateTime.now())
.set(QxPurchase::getUpdateBy, LoginUserUtil.getUserId());
qxPurchaseService.update(update);
qxProjectService.update(Wrappers.lambdaUpdate(QxProject.class)
.set(QxProject::getStatus, QxProjectStatus.ACCEPTED.getCode())
.eq(QxProject::getId, req.getProjectId()));
updateQxProjectStatus(QxProjectStatus.ACCEPTED, req.getProjectId());
}

@Transactional(rollbackFor = Exception.class)
@@ -171,9 +174,7 @@ public class QxProjectManage {
projectSystemReplaceInfos.add(qxReplaceInfo);
}
qxProjectSystemReplaceInfosService.updateBatchById(projectSystemReplaceInfos);
qxProjectService.update(Wrappers.lambdaUpdate(QxProject.class)
.set(QxProject::getStatus, QxProjectStatus.UPGRADED.getCode())
.eq(QxProject::getId, req.getProjectId()));
updateQxProjectStatus(QxProjectStatus.UPGRADED, req.getProjectId());
}

public QxProjectDetailVO getProjectDetail(Long projectId) {


Notiek ielāde…
Atcelt
Saglabāt