Commit 187b277e authored by fangxinjiang's avatar fangxinjiang

手机号码校验调整-fxj

parent b09acea5
...@@ -315,13 +315,13 @@ public class TCheckMobileServiceImpl extends ServiceImpl<TCheckMobileMapper, TCh ...@@ -315,13 +315,13 @@ public class TCheckMobileServiceImpl extends ServiceImpl<TCheckMobileMapper, TCh
if (canCheck) { if (canCheck) {
Map<String, TCheckMobile> existMap = new HashMap<>(); Map<String, TCheckMobile> existMap = new HashMap<>();
if (Common.isNotNull(mobiles)) { if (Common.isNotNull(mobiles)) {
if (Common.isNotEmpty(mobileList) && mobileList.size() > CommonConstants.INTEGER_HUNDRED) { if (Common.isNotEmpty(mobileList) && mobileList.size() > CommonConstants.INTEGER_HUNDRED) {
return R.failed(MsgUtils.getMessage(ErrorCodes.CHECKS_MOBILE_REQUEST_LIMIT_HUNDRED)); return R.failed(MsgUtils.getMessage(ErrorCodes.CHECKS_MOBILE_REQUEST_LIMIT_HUNDRED));
} }
//1.先从本地库获取正常数据 //1.先从本地库获取正常数据
List<TCheckMobile> checkMobiles = baseMapper.selectList(Wrappers.<TCheckMobile>query().lambda() List<TCheckMobile> checkMobiles = baseMapper.selectList(Wrappers.<TCheckMobile>query().lambda()
.in(TCheckMobile::getMobile, mobileList) .in(TCheckMobile::getMobile, mobileList));
.eq(TCheckMobile::getStatus, CommonConstants.ONE_STRING));
if (Common.isNotNull(checkMobiles)) { if (Common.isNotNull(checkMobiles)) {
for (TCheckMobile c : checkMobiles) { for (TCheckMobile c : checkMobiles) {
if (CommonConstants.ONE_STRING.equals(c.getStatus()) if (CommonConstants.ONE_STRING.equals(c.getStatus())
......
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