Commit 5bc1596f by xieshixiang

违章信息调用修改

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