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
5b8517ef
Commit
5b8517ef
authored
Jul 28, 2020
by
Water Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize
parent
beb9f649
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+3
-2
yd-api/src/main/java/com/yd/api/practitioner/vo/login/PractitionerLoginResponseVO.java
+9
-0
yd-api/src/main/resources/i18n/messages_zh_CN.properties
+1
-1
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
5b8517ef
...
@@ -180,7 +180,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
...
@@ -180,7 +180,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
List
<
String
>
mobileSpecials
=
Arrays
.
asList
(
mobileSpecialStr
.
split
(
","
));
List
<
String
>
mobileSpecials
=
Arrays
.
asList
(
mobileSpecialStr
.
split
(
","
));
isSpecial
=
mobileSpecials
.
contains
(
mobileNo
);
isSpecial
=
mobileSpecials
.
contains
(
mobileNo
);
}
}
if
(
28L
==
practitionerType
||
isSpecial
){
//只有寿险的经纪人和注册为经纪人的员工才能登录
//
if(28L == practitionerType || isSpecial){//只有寿险的经纪人和注册为经纪人的员工才能登录
PractitionerBasicInfo
practitionerBasicInfo
=
aclPractitionerDALService
.
findByMobileNoE
(
mobileNo
);
PractitionerBasicInfo
practitionerBasicInfo
=
aclPractitionerDALService
.
findByMobileNoE
(
mobileNo
);
Long
practitionerId
=
practitionerInfo
.
getPractitionerId
();
Long
practitionerId
=
practitionerInfo
.
getPractitionerId
();
Long
customerId
=
practitionerInfo
.
getCustomerId
();
Long
customerId
=
practitionerInfo
.
getCustomerId
();
...
@@ -212,10 +212,11 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
...
@@ -212,10 +212,11 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
getOpenIdUrl
(
responseVO
,
customer
);
getOpenIdUrl
(
responseVO
,
customer
);
responseVO
.
setCustomerId
(
customerId
);
responseVO
.
setCustomerId
(
customerId
);
responseVO
.
setPractitionerId
(
practitionerId
);
responseVO
.
setPractitionerId
(
practitionerId
);
responseVO
.
setPractitionerTypeId
(
practitionerType
);
responseVO
.
setPractitionerBasicInfo
(
basicInfo
);
responseVO
.
setPractitionerBasicInfo
(
basicInfo
);
responseVO
.
setLoginTimes
(
logTimes
);
responseVO
.
setLoginTimes
(
logTimes
);
responseVO
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
responseVO
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
}
//
}
}
else
{
}
else
{
responseVO
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"830001"
)));
responseVO
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"830001"
)));
}
}
...
...
yd-api/src/main/java/com/yd/api/practitioner/vo/login/PractitionerLoginResponseVO.java
View file @
5b8517ef
...
@@ -6,6 +6,7 @@ import com.yd.api.result.CommonResult;
...
@@ -6,6 +6,7 @@ import com.yd.api.result.CommonResult;
public
class
PractitionerLoginResponseVO
{
public
class
PractitionerLoginResponseVO
{
private
Long
customerId
;
private
Long
customerId
;
private
Long
practitionerId
;
private
Long
practitionerId
;
private
Long
practitionerTypeId
;
private
String
practitionerIdEG
;
private
String
practitionerIdEG
;
private
Integer
loginTimes
;
private
Integer
loginTimes
;
private
String
getOpenIdUrl
;
private
String
getOpenIdUrl
;
...
@@ -67,4 +68,12 @@ public class PractitionerLoginResponseVO {
...
@@ -67,4 +68,12 @@ public class PractitionerLoginResponseVO {
public
void
setCommonResult
(
CommonResult
commonResult
)
{
public
void
setCommonResult
(
CommonResult
commonResult
)
{
this
.
commonResult
=
commonResult
;
this
.
commonResult
=
commonResult
;
}
}
public
Long
getPractitionerTypeId
()
{
return
practitionerTypeId
;
}
public
void
setPractitionerTypeId
(
Long
practitionerTypeId
)
{
this
.
practitionerTypeId
=
practitionerTypeId
;
}
}
}
yd-api/src/main/resources/i18n/messages_zh_CN.properties
View file @
5b8517ef
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
810001
=
token无效或者错误!
810001
=
token无效或者错误!
820001
=
未查询到相应结果。
820001
=
未查询到相应结果。
830001
=
该用户非
寿险
经纪人。
830001
=
该用户非经纪人。
830002
=
只有寿险经纪人才有权限进入!
830002
=
只有寿险经纪人才有权限进入!
830003
=
请上传图片格式
830003
=
请上传图片格式
830004
=
上传照片尺寸比例为4:3
830004
=
上传照片尺寸比例为4:3
...
...
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