|
|
@@ -914,10 +914,11 @@ public class GovProjectCollectionManage { |
|
|
|
GovOperationProjectBaseinfo saveBase = BeanUtil.copyProperties(baseinfo,GovOperationProjectBaseinfo.class); |
|
|
|
saveBase.setBaseProjName(baseProjName); |
|
|
|
saveBase.setIsEffective(BizProjectContant.ProjectCollection.IS_EFFECTIVE); |
|
|
|
saveBase.setBaseAreaCode(baseAreaCode); |
|
|
|
if(Objects.nonNull(oldBaseInfo)){ |
|
|
|
saveBase.setId(oldBaseInfo.getId()); |
|
|
|
saveBase.setBaseAreaCode(null); |
|
|
|
}else{ |
|
|
|
saveBase.setBaseAreaCode(baseAreaCode); |
|
|
|
saveBase.setTongTime(LocalDateTime.now()); |
|
|
|
saveBase.setBaseAreaName(regionCacheHelper.getRegionName(user.getRegionCode(),RegionConst.RL_COUNTY)); |
|
|
|
} |
|
|
@@ -1354,6 +1355,49 @@ public class GovProjectCollectionManage { |
|
|
|
.set(GovBizProjectProcure::getUpdateBy,username)); |
|
|
|
return BizConst.OP_SUCCESS; |
|
|
|
} |
|
|
|
public String operationRemove(String projId) { |
|
|
|
UserInfoDetails user = LoginUserUtil.loginUserDetail(); |
|
|
|
String username = user.getUsername(); |
|
|
|
|
|
|
|
GovOperationProjectBaseinfo baseinfo = operationProjectBaseinfoService.getOne(Wrappers.lambdaQuery(GovOperationProjectBaseinfo.class) |
|
|
|
.eq(GovOperationProjectBaseinfo::getBaseProjId, projId) |
|
|
|
.last(BizConst.LIMIT_1)); |
|
|
|
|
|
|
|
VUtils.isTrue(Objects.isNull(baseinfo)).throwMessage("运维项目不存在!"); |
|
|
|
|
|
|
|
//改正逻辑删除 |
|
|
|
baseinfo.setDeleted(Boolean.TRUE); |
|
|
|
baseinfo.setUpdateBy(username); |
|
|
|
baseinfo.setUpdateOn(LocalDateTime.now()); |
|
|
|
operationProjectBaseinfoService.updateById(baseinfo); |
|
|
|
|
|
|
|
projectApplyService.update(Wrappers.lambdaUpdate(GovBizProjectApply.class) |
|
|
|
.eq(GovBizProjectApply::getBaseProjId,projId) |
|
|
|
.set(GovBizProjectApply::getDeleted,Boolean.TRUE) |
|
|
|
.set(GovBizProjectApply::getUpdateOn,LocalDateTime.now()) |
|
|
|
.set(GovBizProjectApply::getUpdateBy,username)); |
|
|
|
approveService.update(Wrappers.lambdaUpdate(GovBizProjectApprove.class) |
|
|
|
.eq(GovBizProjectApprove::getBaseProjId,projId) |
|
|
|
.set(GovBizProjectApprove::getDeleted,Boolean.TRUE) |
|
|
|
.set(GovBizProjectApprove::getUpdateOn,LocalDateTime.now()) |
|
|
|
.set(GovBizProjectApprove::getUpdateBy,username)); |
|
|
|
cimplementService.update(Wrappers.lambdaUpdate(GovBizProjectCimplement.class) |
|
|
|
.eq(GovBizProjectCimplement::getBaseProjId,projId) |
|
|
|
.set(GovBizProjectCimplement::getDeleted,Boolean.TRUE) |
|
|
|
.set(GovBizProjectCimplement::getUpdateOn,LocalDateTime.now()) |
|
|
|
.set(GovBizProjectCimplement::getUpdateBy,username)); |
|
|
|
mimplementService.update(Wrappers.lambdaUpdate(GovBizProjectMimplement.class) |
|
|
|
.eq(GovBizProjectMimplement::getBaseProjId,projId) |
|
|
|
.set(GovBizProjectMimplement::getDeleted,Boolean.TRUE) |
|
|
|
.set(GovBizProjectMimplement::getUpdateOn,LocalDateTime.now()) |
|
|
|
.set(GovBizProjectMimplement::getUpdateBy,username)); |
|
|
|
procureService.update(Wrappers.lambdaUpdate(GovBizProjectProcure.class) |
|
|
|
.eq(GovBizProjectProcure::getBaseProjId,projId) |
|
|
|
.set(GovBizProjectProcure::getDeleted,Boolean.TRUE) |
|
|
|
.set(GovBizProjectProcure::getUpdateOn,LocalDateTime.now()) |
|
|
|
.set(GovBizProjectProcure::getUpdateBy,username)); |
|
|
|
return BizConst.OP_SUCCESS; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 项目归集 草稿箱删除 |
|
|
|