Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
3aaf41ed
Commit
3aaf41ed
authored
May 26, 2020
by
yao.xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改-目标保存
parent
cbf748b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+15
-6
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
3aaf41ed
...
...
@@ -1394,13 +1394,22 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
Integer
goalsType
=
requestVO
.
getGoalsType
();
//初始化之前数据 全部修改为不启用
initializationAction
(
practitionerId
,
year
,
goalsType
);
//查询经纪人所在团队
List
<
AclPractitionerSubordinateSystem
>
subordinates
=
aclPractitionerSubordinateSystemDALService
.
findByOwnerPractitionerId
(
practitionerId
);
if
(
subordinates
.
isEmpty
()){
responseVO
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"830016"
)));
return
responseVO
;
AclPractitionerSubordinateSystem
subordinate
;
if
(
goalsType
==
2
){
//查询经纪人所在团队
List
<
AclPractitionerSubordinateSystem
>
subordinates
=
aclPractitionerSubordinateSystemDALService
.
findByOwnerPractitionerId
(
practitionerId
);
if
(
subordinates
.
isEmpty
()){
responseVO
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"830016"
)));
return
responseVO
;
}
subordinate
=
subordinates
.
get
(
0
);
}
else
{
subordinate
=
aclPractitionerSubordinateSystemDALService
.
findByPractitionerId
(
practitionerId
);
if
(
subordinate
==
null
){
responseVO
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"830018"
)));
return
responseVO
;
}
}
AclPractitionerSubordinateSystem
subordinate
=
subordinates
.
get
(
0
);
//保存年目标
Date
date
=
new
Date
();
saveYearGoal
(
requestVO
,
practitionerId
,
date
,
year
,
goalsType
,
subordinate
);
...
...
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