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
00892908
Commit
00892908
authored
May 07, 2018
by
李博今
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'V2.0.3' of
http://103.249.252.28:90/lcy/education
parents
7c6657d5
708ab661
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
BSubAgencyRepository.java
...g/rcisoft/business/barrange/dao/BSubAgencyRepository.java
+5
-0
BArrangeServiceImpl.java
...t/business/barrange/service/impl/BArrangeServiceImpl.java
+6
-4
No files found.
src/main/java/org/rcisoft/business/barrange/dao/BSubAgencyRepository.java
View file @
00892908
package
org
.
rcisoft
.
business
.
barrange
.
dao
;
package
org
.
rcisoft
.
business
.
barrange
.
dao
;
import
org.apache.ibatis.annotations.Update
;
import
org.rcisoft.business.barrange.entity.BSubAgency
;
import
org.rcisoft.business.barrange.entity.BSubAgency
;
import
org.rcisoft.core.base.BaseMapper
;
import
org.rcisoft.core.base.BaseMapper
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
@Repository
@Repository
public
interface
BSubAgencyRepository
extends
BaseMapper
<
BSubAgency
>
{
public
interface
BSubAgencyRepository
extends
BaseMapper
<
BSubAgency
>
{
@Update
(
"update b_sub_agency set del_flag = 1 where subtask_id = #{0}"
)
void
deletePervious
(
String
businessId
);
}
}
src/main/java/org/rcisoft/business/barrange/service/impl/BArrangeServiceImpl.java
View file @
00892908
...
@@ -178,6 +178,8 @@ public class BArrangeServiceImpl implements BArrangeService {
...
@@ -178,6 +178,8 @@ public class BArrangeServiceImpl implements BArrangeService {
bSubtaskRepository
.
updateByPrimaryKeySelective
(
bSubtask
);
bSubtaskRepository
.
updateByPrimaryKeySelective
(
bSubtask
);
}
}
if
(
subtask
.
get
(
"childList"
)
!=
null
){
if
(
subtask
.
get
(
"childList"
)
!=
null
){
//先清除原子任务
bSubAgencyRepository
.
deletePervious
(
subtask
.
getString
(
"businessId"
));
JSONArray
childList2
=
subtask
.
getJSONArray
(
"childList"
);
JSONArray
childList2
=
subtask
.
getJSONArray
(
"childList"
);
for
(
int
j
=
0
;
j
<
childList2
.
size
()
;
j
++){
for
(
int
j
=
0
;
j
<
childList2
.
size
()
;
j
++){
JSONObject
agency
=
childList2
.
getJSONObject
(
j
);
JSONObject
agency
=
childList2
.
getJSONObject
(
j
);
...
@@ -185,10 +187,10 @@ public class BArrangeServiceImpl implements BArrangeService {
...
@@ -185,10 +187,10 @@ public class BArrangeServiceImpl implements BArrangeService {
if
(
agency
.
get
(
"agencyCode"
)
!=
null
){
if
(
agency
.
get
(
"agencyCode"
)
!=
null
){
bSubAgency
.
setAgencyCode
(
agency
.
getString
(
"agencyCode"
));
bSubAgency
.
setAgencyCode
(
agency
.
getString
(
"agencyCode"
));
}
}
if
(
agency
.
get
(
"businessId"
)
!=
null
){
//再插入新记录
bSubAgency
.
setBusinessId
(
agency
.
getString
(
"businessId"
)
);
UserUtil
.
setCurrentPersistOperation
(
bSubAgency
);
bSubAgencyRepository
.
updateByPrimaryKeySelective
(
bSubAgency
);
bSubAgency
.
setSubtaskId
(
subtask
.
getString
(
"businessId"
)
);
}
bSubAgencyRepository
.
insertSelective
(
bSubAgency
);
}
}
}
}
}
}
...
...
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