Commit 84b7e2dd authored by Smile's avatar Smile Committed by wux

bug编号154 后台-等级设置-新增/修改 会员等级规则的校验逻辑未实现

parent 6e687f2e
......@@ -138,7 +138,15 @@ public class MemberUserLevelConfigServiceImpl extends AbstractService<MemberUser
List<MemberUserLevelConfigBaseRespVO> list = levelPage.getList();
list.forEach(i -> {
if (i.getSort().equals(query.getSort())){
throw exception(LEVEL_Order_REPEAT);
if (i.getStatus()==0 || i.getStatus()==1){
if (i.getEndTime()==null){
throw exception(LEVEL_Order_REPEAT);
}else {
if (i.getEndTime().after(query.getStartTime())){
throw exception(LEVEL_Order_REPEAT);
}
}
}
}
});
}
......
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