Commit ed151e3f by xieshixiang

修改手机号校验规则3

parent 55a3c8ad
...@@ -94,7 +94,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i ...@@ -94,7 +94,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i
QueryWrapper<ParkBindInfo> phone = new QueryWrapper(); QueryWrapper<ParkBindInfo> phone = new QueryWrapper();
boundQuery.eq("phone", info.getUserId()); boundQuery.eq("phone", info.getUserId());
boundQuery.eq("status", "1"); boundQuery.eq("status", "1");
List<ParkBindInfo> phones = mapper.selectList(boundQuery); List<ParkBindInfo> phones = mapper.selectList(phone);
if (phones != null && !phones.isEmpty()) { if (phones != null && !phones.isEmpty()) {
boolean equals = phones.get(0).getUserId().equals(info.getUserId()); boolean equals = phones.get(0).getUserId().equals(info.getUserId());
if (!equals) { if (!equals) {
......
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