Commit c3eb1032 authored by Smile's avatar Smile Committed by wux

fix:手动更新会员等级信息后,等级记录中匹配规则不对。

parent 7b8fd244
......@@ -59,7 +59,8 @@ public class MemberUserLevelDetailsController {
}else {
memberUserLevelDetailsDO = new MemberUserLevelDetailsDO();
}
MemberUserLevelConfigDO configDO = new MemberUserLevelConfigDO();
MemberUserLevelConfigDO configDO;
String levelConfigName="";
if (memberUserLevelDetailsDO.getConfigId()!=null){
configDO = memberUserLevelConfigMapper.selectById(memberUserLevelDetailsDO.getConfigId());
if (configDO == null) {
......@@ -67,6 +68,8 @@ public class MemberUserLevelDetailsController {
}
if(!configDO.getLevel().equals(reqVO.getLevel())){
memberUserLevelDetailsDO.setConfigId(null);
}else {
levelConfigName=configDO.getName();
}
}
LoginUser loginUser = SecurityFrameworkUtils.getLoginUser();
......@@ -82,7 +85,7 @@ public class MemberUserLevelDetailsController {
MemberUserLevelOperateLogDO memberUserLevelOperateLogDo = MemberUserLevelOperateLogDO.builder()
.configId(memberUserLevelDetailsDO.getConfigId())
.configName(configDO.getName())
.configName(levelConfigName)
.memberId(memberUserLevelDetailsDO.getMemberId())
.operator(loginUser.getNickname())
.remarks(memberUserLevelDetailsDO.getRemarks())
......
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