Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
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
李丛阳
education
Commits
73eaeb7a
Commit
73eaeb7a
authored
May 30, 2018
by
刘子正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑排课接口 修改 子任务做物理删除
parent
5401980c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
BSubtaskRepository.java
...org/rcisoft/business/barrange/dao/BSubtaskRepository.java
+2
-1
BArrangeServiceImpl.java
...t/business/barrange/service/impl/BArrangeServiceImpl.java
+1
-1
No files found.
src/main/java/org/rcisoft/business/barrange/dao/BSubtaskRepository.java
View file @
73eaeb7a
package
org
.
rcisoft
.
business
.
barrange
.
dao
;
import
org.apache.ibatis.annotations.Delete
;
import
org.apache.ibatis.annotations.Select
;
import
org.apache.ibatis.annotations.Update
;
import
org.rcisoft.business.barrange.entity.BSubtask
;
...
...
@@ -20,7 +21,7 @@ public interface BSubtaskRepository extends BaseMapper<BSubtask> {
@Select
(
"SELECT arrange_id FROM b_subtask where business_id = #{subTaskId}"
)
String
queryArrangeIdById
(
String
subTaskId
);
@
Update
(
"update b_subtask set del_flag = 1
where arrange_id = #{0}"
)
@
Delete
(
"delete from b_subtask
where arrange_id = #{0}"
)
void
deleteSubtask
(
String
businessId
);
@Select
(
"select COUNT(*) from b_subtask where status != '5' and arrange_id = #{arrangeId}"
)
...
...
src/main/java/org/rcisoft/business/barrange/service/impl/BArrangeServiceImpl.java
View file @
73eaeb7a
...
...
@@ -198,7 +198,7 @@ public class BArrangeServiceImpl implements BArrangeService {
bArrange
.
setTermCode
(
arrange
.
getString
(
"termCode"
));
bArrange
.
setBusinessId
(
arrange
.
getString
(
"businessId"
));
bArrangeRepository
.
updateByPrimaryKeySelective
(
bArrange
);
//清除原来的subTask
//清除原来的subTask
物理删除
bSubtaskRepository
.
deleteSubtask
(
arrange
.
getString
(
"businessId"
));
//重新添加subTask
JSONArray
childList
=
arrange
.
getJSONArray
(
"childList"
);
...
...
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