Commit 92495750 authored by unset's avatar unset

添加通知信息

parent 743b8514
......@@ -17,6 +17,7 @@ import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.upyuns.platform.rs.universal.entity.IdInformation;
import com.upyuns.platform.rs.universal.feign.MQSenderFeign;
import com.upyuns.platform.rs.universal.feign.ThirdFeign;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -41,6 +42,7 @@ import java.util.stream.Collectors;
* @create 2017-06-08 16:23
*/
@Service
@Slf4j
@Transactional(rollbackFor = Exception.class)
public class AppUserLoginBiz extends BaseBiz<AppUserLoginMapper, AppUserLogin> {
......@@ -87,6 +89,7 @@ public class AppUserLoginBiz extends BaseBiz<AppUserLoginMapper, AppUserLogin> {
@CacheClear(pre = "user{1.username}")
public void updatePasswordById(AppUserLogin entity) {
log.info("修改用户密码:{}", entity);
String password = new BCryptPasswordEncoder(UserConstant.PW_ENCORDER_SALT).encode(entity.getPassword());
entity.setPassword(password);
super.updateSelectiveById(entity);
......
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