|
|
@@ -319,6 +319,32 @@ public class GovProjectCollectionManage { |
|
|
|
return BizConst.SAVE_SUCCESS; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 删除项目归集 |
|
|
|
* @param projId |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public String remove(String projId) { |
|
|
|
GovBizProjectBaseinfo baseinfo = baseinfoService.getOne(Wrappers.lambdaQuery(GovBizProjectBaseinfo.class) |
|
|
|
.eq(GovBizProjectBaseinfo::getBaseProjId, projId) |
|
|
|
.last(BizConst.LIMIT_1)); |
|
|
|
|
|
|
|
VUtils.isTrue(Objects.isNull(baseinfo)).throwMessage("项目不存在!"); |
|
|
|
|
|
|
|
baseinfoService.removeById(baseinfo); |
|
|
|
projectApplyService.remove(Wrappers.lambdaQuery(GovBizProjectApply.class) |
|
|
|
.eq(GovBizProjectApply::getBaseProjId,projId)); |
|
|
|
approveService.remove(Wrappers.lambdaQuery(GovBizProjectApprove.class) |
|
|
|
.eq(GovBizProjectApprove::getBaseProjId,projId)); |
|
|
|
cimplementService.remove(Wrappers.lambdaQuery(GovBizProjectCimplement.class) |
|
|
|
.eq(GovBizProjectCimplement::getBaseProjId,projId)); |
|
|
|
mimplementService.remove(Wrappers.lambdaQuery(GovBizProjectMimplement.class) |
|
|
|
.eq(GovBizProjectMimplement::getBaseProjId,projId)); |
|
|
|
procureService.remove(Wrappers.lambdaQuery(GovBizProjectProcure.class) |
|
|
|
.eq(GovBizProjectProcure::getBaseProjId,projId)); |
|
|
|
return BizConst.OP_SUCCESS; |
|
|
|
} |
|
|
|
|
|
|
|
private void checkName(String baseProjName, String baseProjId) { |
|
|
|
VUtils.isTrue(baseinfoService.count(Wrappers.lambdaQuery(GovBizProjectBaseinfo.class) |
|
|
|
.eq(GovBizProjectBaseinfo::getBaseProjName,baseProjName) |
|
|
|