Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dm_project
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
姚本章
dm_project
Commits
00cdbbef
Commit
00cdbbef
authored
Dec 12, 2020
by
ysongq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
557ba91c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
10 deletions
+6
-10
MallCustomerDao.java
...in/java/com/jz/dm/mall/moduls/mapper/MallCustomerDao.java
+4
-1
MallCustomerServiceImpl.java
.../dm/mall/moduls/service/impl/MallCustomerServiceImpl.java
+2
-2
MallCustomerDao.xml
jz-dm-mall/src/main/resources/mapperconf/MallCustomerDao.xml
+0
-7
No files found.
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/mapper/MallCustomerDao.java
View file @
00cdbbef
...
@@ -54,7 +54,10 @@ public interface MallCustomerDao extends BaseMapper<MallCustomer> {
...
@@ -54,7 +54,10 @@ public interface MallCustomerDao extends BaseMapper<MallCustomer> {
MallCustomer
findById
(
@Param
(
"customerId"
)
Long
customerId
);
MallCustomer
findById
(
@Param
(
"customerId"
)
Long
customerId
);
/**
* 修改密码
* @param map
*/
void
updatePassword
(
Map
map
);
void
updatePassword
(
Map
map
);
MallCustomer
selectByCustomerId
(
Long
customerId
);
}
}
\ No newline at end of file
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/service/impl/MallCustomerServiceImpl.java
View file @
00cdbbef
...
@@ -136,7 +136,7 @@ public class MallCustomerServiceImpl implements MallCustomerService {
...
@@ -136,7 +136,7 @@ public class MallCustomerServiceImpl implements MallCustomerService {
*/
*/
@Override
@Override
public
void
updatePassword
(
Long
customerId
,
String
password
)
{
public
void
updatePassword
(
Long
customerId
,
String
password
)
{
MallCustomer
mallCustomer
=
tMallCustomerDao
.
selectByCustomer
Id
(
customerId
);
MallCustomer
mallCustomer
=
tMallCustomerDao
.
findBy
Id
(
customerId
);
if
(
mallCustomer
!=
null
)
{
if
(
mallCustomer
!=
null
)
{
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
"password"
,
password
);
map
.
put
(
"password"
,
password
);
...
@@ -153,7 +153,7 @@ public class MallCustomerServiceImpl implements MallCustomerService {
...
@@ -153,7 +153,7 @@ public class MallCustomerServiceImpl implements MallCustomerService {
*/
*/
@Override
@Override
public
MallCustomer
selectByUser
(
Long
customerId
)
{
public
MallCustomer
selectByUser
(
Long
customerId
)
{
MallCustomer
mallCustomer
=
tMallCustomerDao
.
selectByCustomer
Id
(
customerId
);
MallCustomer
mallCustomer
=
tMallCustomerDao
.
findBy
Id
(
customerId
);
return
mallCustomer
;
return
mallCustomer
;
}
}
...
...
jz-dm-mall/src/main/resources/mapperconf/MallCustomerDao.xml
View file @
00cdbbef
...
@@ -221,13 +221,6 @@
...
@@ -221,13 +221,6 @@
AND del_flag ='N'
AND del_flag ='N'
</select>
</select>
<select
id=
"selectByCustomerId"
resultMap=
"TMallCustomerMap"
>
select
customer_id, department_id, password, customer_account, customer_name, customer_phone, customer_email, customer_address, customer_point, register_time, customer_level, identity_card, cre_time, upt_time, del_flag
from t_mall_customer
where customer_id = #{customerId};
</select>
<update
id=
"updatePassword"
parameterType=
"map"
>
<update
id=
"updatePassword"
parameterType=
"map"
>
update t_mall_customer set password =#{password} where customer_id = #{customerId};
update t_mall_customer set password =#{password} where customer_id = #{customerId};
</update>
</update>
...
...
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