Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
cf9e6db4
Commit
cf9e6db4
authored
Feb 21, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b928f905
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
StaffMapper.java
...com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
+1
-1
SendCodeController.java
.../gic/haoban/manage/web/controller/SendCodeController.java
+2
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
View file @
cf9e6db4
...
@@ -21,7 +21,7 @@ public interface StaffMapper {
...
@@ -21,7 +21,7 @@ public interface StaffMapper {
int
updateByPrimaryKey
(
TabHaobanStaff
record
);
int
updateByPrimaryKey
(
TabHaobanStaff
record
);
TabHaobanStaff
selectByNationcodeAndPhoneNumber
(
String
wxEnterpriseId
,
String
nationcode
,
String
phoneNumber
);
TabHaobanStaff
selectByNationcodeAndPhoneNumber
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"nationCode"
)
String
nationcode
,
@Param
(
"phoneNumber"
)
String
phoneNumber
);
List
<
TabHaobanStaff
>
listByIds
(
@Param
(
"staffIds"
)
List
<
String
>
staffIds
);
List
<
TabHaobanStaff
>
listByIds
(
@Param
(
"staffIds"
)
List
<
String
>
staffIds
);
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/SendCodeController.java
View file @
cf9e6db4
...
@@ -38,7 +38,7 @@ public class SendCodeController extends WebBaseController{
...
@@ -38,7 +38,7 @@ public class SendCodeController extends WebBaseController{
*/
*/
@RequestMapping
(
"/send-code"
)
@RequestMapping
(
"/send-code"
)
public
HaobanResponse
sendCode
(
String
phoneNumber
,
@RequestParam
(
defaultValue
=
"86"
)
String
nationcode
,
public
HaobanResponse
sendCode
(
String
phoneNumber
,
@RequestParam
(
defaultValue
=
"86"
)
String
nationcode
,
Integer
type
,
@RequestParam
(
defaultValue
=
"0"
)
int
isTest
)
{
Integer
type
,
@RequestParam
(
defaultValue
=
"0"
)
int
isTest
,
String
wxEnterpriseId
)
{
if
(
StringUtils
.
isBlank
(
phoneNumber
)
||
null
==
type
)
{
if
(
StringUtils
.
isBlank
(
phoneNumber
)
||
null
==
type
)
{
logger
.
info
(
"没有phoneNumber!"
);
logger
.
info
(
"没有phoneNumber!"
);
return
resultResponse
(
HaoBanErrCode
.
ERR_5
);
return
resultResponse
(
HaoBanErrCode
.
ERR_5
);
...
@@ -61,7 +61,7 @@ public class SendCodeController extends WebBaseController{
...
@@ -61,7 +61,7 @@ public class SendCodeController extends WebBaseController{
//绑定
//绑定
if
(
type
==
1
)
{
if
(
type
==
1
)
{
StaffDTO
staffDTO
=
staffApiService
.
selectByNationcodeAndPhoneNumber
(
null
,
nationcode
,
phoneNumber
);
StaffDTO
staffDTO
=
staffApiService
.
selectByNationcodeAndPhoneNumber
(
wxEnterpriseId
,
nationcode
,
phoneNumber
);
if
(
staffDTO
==
null
)
{
if
(
staffDTO
==
null
)
{
logger
.
info
(
"用户不存在:{}-{}"
,
nationcode
,
phoneNumber
);
logger
.
info
(
"用户不存在:{}-{}"
,
nationcode
,
phoneNumber
);
return
resultResponse
(
HaoBanErrCode
.
ERR_8
);
return
resultResponse
(
HaoBanErrCode
.
ERR_8
);
...
...
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