Explorar el Código

modify:

1. 单位查询修改;
tags/24090101
WendyYang hace 2 meses
padre
commit
9bcde9f54d
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. +12
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/QxProjectManage.java

+ 12
- 0
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/manage/QxProjectManage.java Ver fichero

@@ -111,6 +111,7 @@ public class QxProjectManage {
}
}

@Transactional(rollbackFor = Exception.class)
public synchronized void submitPurchaseRecord(QxPurchaseRecordReq req) {
QxProject project = qxProjectService.getById(req.getProjectId());
if (!QxProjectStatus.DECLARED.eq(project.getStatus())) {
@@ -122,8 +123,12 @@ public class QxProjectManage {
}
BeanUtil.copyProperties(req, purchase);
qxPurchaseService.saveOrUpdate(purchase);
qxProjectService.update(Wrappers.lambdaUpdate(QxProject.class)
.set(QxProject::getStatus, QxProjectStatus.PURCHASED.getCode())
.eq(QxProject::getId, req.getProjectId()));
}

@Transactional(rollbackFor = Exception.class)
public void submitAcceptRecord(QxAcceptRecordReq req) {
QxProject project = qxProjectService.getById(req.getProjectId());
if (!QxProjectStatus.UPGRADED.eq(project.getStatus())) {
@@ -138,8 +143,12 @@ 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()));
}

@Transactional(rollbackFor = Exception.class)
public void submitUpgradeRecord(QxUpgradeRecordReq req) {
QxProject project = qxProjectService.getById(req.getProjectId());
if (!QxProjectStatus.PURCHASED.eq(project.getStatus())) {
@@ -153,6 +162,9 @@ 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()));
}

public QxProjectDetailVO getProjectDetail(Long projectId) {


Cargando…
Cancelar
Guardar