Commit 093eb50f by xieshixiang

违章信息时间

parent 78fdba4e
...@@ -92,13 +92,13 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i ...@@ -92,13 +92,13 @@ 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.getPhone());
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).getPhone().equals(info.getPhone()); boolean equals = phones.get(0).getUserId().equals(info.getUserId());
if (!equals) { if (!equals) {
return ResponseGenerator.fail(StatusCode.BUSINESS_ERROR, "当前手机号已被绑定"); return ResponseGenerator.fail(StatusCode.BUSINESS_ERROR, "当前手机号已被其他客户绑定");
} }
} }
...@@ -279,6 +279,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i ...@@ -279,6 +279,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i
info.setAddress(res.getWfdz()); info.setAddress(res.getWfdz());
info.setGrade(res.getWfjfs()); info.setGrade(res.getWfjfs());
info.setMoney(res.getFkje()); info.setMoney(res.getFkje());
info.setTime(res.getClsj());
violationInfoResList.add(info); violationInfoResList.add(info);
} }
return ResponseGenerator.success(new ResultList<>(violationInfoResList)); return ResponseGenerator.success(new ResultList<>(violationInfoResList));
......
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