Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-health-science
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐俊
yn-health-science
Commits
4b4d7eeb
Commit
4b4d7eeb
authored
Dec 05, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
fdcbaea8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
10 deletions
+31
-10
ComProjectKpitDetailService.java
.../yiboshi/science/service/ComProjectKpitDetailService.java
+6
-0
ComProjectKpitDetailServiceImpl.java
...science/service/impl/ComProjectKpitDetailServiceImpl.java
+6
-0
ComProjectServiceImpl.java
...m/yiboshi/science/service/impl/ComProjectServiceImpl.java
+19
-10
No files found.
science-admin/src/main/java/com/yiboshi/science/service/ComProjectKpitDetailService.java
View file @
4b4d7eeb
...
@@ -16,4 +16,10 @@ public interface ComProjectKpitDetailService extends BaseService<ComProjectKpitD
...
@@ -16,4 +16,10 @@ public interface ComProjectKpitDetailService extends BaseService<ComProjectKpitD
List
<
ComProjectKpitDTO
>
getProjectKpitDetailStatistic
(
String
projId
);
List
<
ComProjectKpitDTO
>
getProjectKpitDetailStatistic
(
String
projId
);
void
insertList
(
List
<
ComProjectKpitDetailDTO
>
list
,
String
objectId
);
void
insertList
(
List
<
ComProjectKpitDetailDTO
>
list
,
String
objectId
);
/** 删除对象列表
*
* @param objectId
*/
void
deleteByObjectId
(
String
objectId
);
}
}
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectKpitDetailServiceImpl.java
View file @
4b4d7eeb
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import
com.yiboshi.science.base.BaseServiceImpl
;
import
com.yiboshi.science.base.BaseServiceImpl
;
import
com.yiboshi.science.dao.ComProjectKpitDAO
;
import
com.yiboshi.science.dao.ComProjectKpitDAO
;
import
com.yiboshi.science.dao.ComProjectKpitDetailDAO
;
import
com.yiboshi.science.dao.ComProjectKpitDetailDAO
;
import
com.yiboshi.science.entity.ComProjectFundComposition
;
import
com.yiboshi.science.entity.ComProjectFundPlan
;
import
com.yiboshi.science.entity.ComProjectFundPlan
;
import
com.yiboshi.science.entity.ComProjectKpit
;
import
com.yiboshi.science.entity.ComProjectKpit
;
import
com.yiboshi.science.entity.ComProjectKpitDetail
;
import
com.yiboshi.science.entity.ComProjectKpitDetail
;
...
@@ -56,4 +57,9 @@ public class ComProjectKpitDetailServiceImpl extends BaseServiceImpl<ComProjectK
...
@@ -56,4 +57,9 @@ public class ComProjectKpitDetailServiceImpl extends BaseServiceImpl<ComProjectK
this
.
insertBatch
(
iList
);
this
.
insertBatch
(
iList
);
}
}
}
}
public
void
deleteByObjectId
(
String
objectId
){
ComProjectKpitDetail
model
=
new
ComProjectKpitDetail
();
model
.
setObjectId
(
objectId
);
this
.
delete
(
model
);
}
}
}
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectServiceImpl.java
View file @
4b4d7eeb
...
@@ -646,24 +646,33 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
...
@@ -646,24 +646,33 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
throw
new
BusinessException
(
"项目不存在"
);
throw
new
BusinessException
(
"项目不存在"
);
if
(
comProject
.
getProjState
()
>
CommonEnum
.
projState
.
waitSubmit
.
getCode
())
if
(
comProject
.
getProjState
()
>
CommonEnum
.
projState
.
waitSubmit
.
getCode
())
throw
new
BusinessException
(
"当前项目状态不能删除"
);
throw
new
BusinessException
(
"当前项目状态不能删除"
);
this
.
deleteById
(
id
);
// 项目合作单位
comProjectCooperativeUnitsService
.
deleteByObjectId
(
id
);
// 项目参加人员
// 项目参加人员
comProjectMembersService
.
deleteByObjectId
(
id
);
comProjectMembersService
.
deleteByObjectId
(
id
);
// 经费预算
// 经费预算
comProjectBudgetService
.
deleteByObjectId
(
id
);
comProjectBudgetService
.
deleteByObjectId
(
id
);
// 仪器、设备
// 年度用款计划表
comProjectEquipmentService
.
deleteByObjectId
(
id
);
comProjectFundPlanService
.
deleteByObjectId
(
id
);
// 项目合作单位
// 单位支出明细预算表
comProjectCooperativeUnitsService
.
deleteByObjectId
(
id
);
comProjectUnitPaymentService
.
deleteByObjectId
(
id
);
// 成果形式
// 项目绩效指标表
comProjectResultsService
.
deleteByObjectId
(
id
);
comProjectKpitDetailService
.
deleteByObjectId
(
id
);
// 项目安排及阶段目标
comProjectStageGoalService
.
deleteByObjectId
(
id
);
// 项目经费构成表
// 项目经费构成表
comProjectFundCompositionService
.
deleteByObjectId
(
id
);
comProjectFundCompositionService
.
deleteByObjectId
(
id
);
// 仪器、设备
comProjectEquipmentService
.
deleteByObjectId
(
id
);
// 在研或完成基础研究项目情况
comProjectResearchService
.
deleteByObjectId
(
id
);
// 项目课颖设置表
comProjectSubService
.
deleteByObjectId
(
id
);
// 单位科研项目及资金管理制度表
comProjectManagementRuleService
.
deleteByObjectId
(
id
);
// 项目信息表
comProjectBasicService
.
deleteByProjId
(
id
);
// 附件
// 附件
ComFileService
.
deleteByObjectId
(
id
);
ComFileService
.
deleteByObjectId
(
id
);
comProjectBasicService
.
deleteByProj
Id
(
id
);
this
.
deleteBy
Id
(
id
);
return
id
;
return
id
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment