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

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

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