mirror of https://gitee.com/stylefeng/roses
【7.0.4】【c】增加更新会员过期日期接口
parent
fb2490eb90
commit
9380d9999f
|
@ -26,6 +26,8 @@ package cn.stylefeng.roses.kernel.customer.api;
|
||||||
|
|
||||||
import cn.stylefeng.roses.kernel.customer.api.pojo.CustomerInfo;
|
import cn.stylefeng.roses.kernel.customer.api.pojo.CustomerInfo;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* C端用户api
|
* C端用户api
|
||||||
*
|
*
|
||||||
|
@ -42,4 +44,12 @@ public interface CustomerApi {
|
||||||
*/
|
*/
|
||||||
CustomerInfo getCustomerInfoById(Long customerId);
|
CustomerInfo getCustomerInfoById(Long customerId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新用户会员时间
|
||||||
|
*
|
||||||
|
* @author fengshuonan
|
||||||
|
* @date 2021/7/18 22:16
|
||||||
|
*/
|
||||||
|
void updateMemberExpiryDate(Long customerId, Date expiryDate);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -387,6 +387,14 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> i
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateMemberExpiryDate(Long customerId, Date expiryDate) {
|
||||||
|
LambdaUpdateWrapper<Customer> wrapper = new LambdaUpdateWrapper<>();
|
||||||
|
wrapper.set(Customer::getMemberExpireTime, expiryDate);
|
||||||
|
wrapper.eq(Customer::getCustomerId, customerId);
|
||||||
|
this.update(wrapper);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取信息
|
* 获取信息
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue