Commit 2cdc12be by xieshixiang

校验电话号码唯一

parent ede31bd8
......@@ -79,7 +79,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i
boundQuery.eq("status", "1");
List<ParkBindInfo> list = mapper.selectList(boundQuery);
if (list != null && list.size() >= 3) {
return ResponseGenerator.fail(StatusCode.BUSINESS_ERROR);
return ResponseGenerator.fail(StatusCode.BUSINESS_ERROR,"同一用户下,最多绑定3辆车");
}
//规则:一个电话号码只能对应一个客户
......
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