Commit 00cdbbef authored by ysongq's avatar ysongq

no message

parent 557ba91c
...@@ -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
...@@ -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.selectByCustomerId(customerId); MallCustomer mallCustomer = tMallCustomerDao.findById(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.selectByCustomerId(customerId); MallCustomer mallCustomer = tMallCustomerDao.findById(customerId);
return mallCustomer; return mallCustomer;
} }
......
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment