添加detail去重
This commit is contained in:
parent
8c0a8051bb
commit
389692b0e2
@ -8,5 +8,7 @@ package cn.axzo.nanopart.api.constant;
|
||||
* @version: 1.0
|
||||
*/
|
||||
public class NanopartConstant {
|
||||
|
||||
public static final String BASIC_FEIGN_PACKAGE = "cn.axzo.nanopart.api";
|
||||
public static final String PHONE_REGEXP = "^1[3456789]\\d{9}$";
|
||||
}
|
||||
@ -17,11 +17,20 @@ import java.util.Map;
|
||||
@Data
|
||||
public class BlackAndWhiteListReq {
|
||||
|
||||
/**
|
||||
* 名单类型,0为黑名单,1为白名单
|
||||
*/
|
||||
@NotNull(message = "名单类型错误")
|
||||
private ListTypeEnum type;
|
||||
|
||||
/**
|
||||
* 模块名,自主定义,例:cms-login
|
||||
*/
|
||||
@NotBlank(message = "模块名不能为空")
|
||||
private String module;
|
||||
|
||||
/**
|
||||
* 限制条件,如:phone:13698745673
|
||||
*/
|
||||
private Map<String,Object> param;
|
||||
}
|
||||
|
||||
@ -59,7 +59,8 @@ public class BlackAndWhiteListRepository extends ServiceImpl<BlackAndWhiteListMa
|
||||
QueryWrapper<SaasBlackWhiteList> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("type",req.getType().getValue())
|
||||
.eq(StringUtils.isNotBlank(req.getModule()),"module",req.getModule())
|
||||
.eq("is_delete",0);
|
||||
.eq("is_delete",0)
|
||||
.groupBy("type","param");
|
||||
buildQueryWrapper(queryWrapper, req.getParam(), "");
|
||||
return blackAndWhiteListMapper.selectList(queryWrapper);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user