Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
rpc-openplatform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7ab8ea9a
authored
Dec 18, 2020
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
完成Dubbo基本开发 yangll
1 parent
815f68c8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/CustomerMgrService.java
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/mapper/PlatformCustomerMapper.java
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/CustomerMgrServiceImpl.java
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformCustomerMapper.xml
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/service/CustomerMgrService.java
View file @
7ab8ea9
...
@@ -17,7 +17,7 @@ public interface CustomerMgrService {
...
@@ -17,7 +17,7 @@ public interface CustomerMgrService {
int
register
(
PlatformCustomer
customer
);
int
register
(
PlatformCustomer
customer
);
int
login
(
PlatformCustomer
customer
);
PlatformCustomer
login
(
PlatformCustomer
customer
);
List
<
String
>
getAddressOptionList
(
int
id
);
List
<
String
>
getAddressOptionList
(
int
id
);
}
}
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/mapper/PlatformCustomerMapper.java
View file @
7ab8ea9
...
@@ -23,7 +23,7 @@ public interface PlatformCustomerMapper extends OreMapper<PlatformCustomer> {
...
@@ -23,7 +23,7 @@ public interface PlatformCustomerMapper extends OreMapper<PlatformCustomer> {
int
getCustomerCount
();
int
getCustomerCount
();
int
login
(
PlatformCustomer
customer
);
PlatformCustomer
login
(
PlatformCustomer
customer
);
List
<
String
>
getAddressOptionList
(
@Param
(
"id"
)
int
id
);
List
<
String
>
getAddressOptionList
(
@Param
(
"id"
)
int
id
);
...
...
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/CustomerMgrServiceImpl.java
View file @
7ab8ea9
...
@@ -73,7 +73,7 @@ public class CustomerMgrServiceImpl implements CustomerMgrService {
...
@@ -73,7 +73,7 @@ public class CustomerMgrServiceImpl implements CustomerMgrService {
}
}
@Override
@Override
public
int
login
(
PlatformCustomer
customer
)
{
public
PlatformCustomer
login
(
PlatformCustomer
customer
)
{
return
customerMapper
.
login
(
customer
);
return
customerMapper
.
login
(
customer
);
}
}
...
...
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformCustomerMapper.xml
View file @
7ab8ea9
...
@@ -76,8 +76,8 @@
...
@@ -76,8 +76,8 @@
from t_platform_customer
from t_platform_customer
</select>
</select>
<select
id=
"login"
parameterType=
"cn.com.glsx.openplatform.model.PlatformCustomer"
result
Type=
"java.lang.Integer
"
>
<select
id=
"login"
parameterType=
"cn.com.glsx.openplatform.model.PlatformCustomer"
result
Map=
"BaseResultMap
"
>
select
count(1)
select
*
from t_platform_customer
from t_platform_customer
where contact_number = #{contactNumber,jdbcType=VARCHAR}
where contact_number = #{contactNumber,jdbcType=VARCHAR}
and password = #{password,jdbcType=VARCHAR}
and password = #{password,jdbcType=VARCHAR}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment