Commit d9bfa3a5 by xieshixiang

修改手机号校验规则4

parent ed151e3f
......@@ -92,7 +92,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i
//规则:一个电话号码只能被一个客户绑定
QueryWrapper<ParkBindInfo> phone = new QueryWrapper();
boundQuery.eq("phone", info.getUserId());
boundQuery.eq("phone", info.getPhone());
boundQuery.eq("status", "1");
List<ParkBindInfo> phones = mapper.selectList(phone);
if (phones != null && !phones.isEmpty()) {
......
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