Commit 79bb66e5 by xieshixiang

增加提示

parent fad087a4
......@@ -169,7 +169,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i
queryWrapper.eq("status", "0");
Integer integer = mapper.selectCount(queryWrapper);
if (integer >= 10) {
return ResponseGenerator.fail(StatusCode.BUSINESS_ERROR, "同一用户30天内只能解绑10次");
return ResponseGenerator.fail(StatusCode.BUSINESS_ERROR, "同一用户" + unBindTime + "小时内只能解绑10次");
}
if (!bindCache.unBind(req.getUnqId(), req.getUserId())) {
//手动回滚
......@@ -329,7 +329,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i
vechicleInfoReq.setPlateNum(bindInfo.getPlateNum());
VehicleRes byPlateNumAndType = vechicleCache.getByPlateNumAndType(vechicleInfoReq);
if (byPlateNumAndType.getSfzmhm() == null) {
return ResponseGenerator.fail(StatusCode.ALERT_ERROR,"车主身份证信息不存在");
return ResponseGenerator.fail(StatusCode.ALERT_ERROR, "车主身份证信息不存在");
}
/**
......@@ -339,7 +339,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i
idCardQueryReq.setIdCard(byPlateNumAndType.getSfzmhm());
DrivingLicenseRes drivingLicenseRes = drivingLicenseCache.getByIdCard(idCardQueryReq);
if (drivingLicenseRes == null) {
return ResponseGenerator.fail(StatusCode.ALERT_ERROR,"车主驾照信息不存在");
return ResponseGenerator.fail(StatusCode.ALERT_ERROR, "车主驾照信息不存在");
}
/**
......
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