Commit d1a62fc8 by lixian7

解绑接口bug修复

parent 1bab3f57
...@@ -161,8 +161,8 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i ...@@ -161,8 +161,8 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i
*/ */
QueryWrapper<ParkBindInfo> queryWrapper = new QueryWrapper<>(); QueryWrapper<ParkBindInfo> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("user_id", req.getUserId()); queryWrapper.eq("user_id", req.getUserId());
queryWrapper.eq("status", "0");
queryWrapper.ge("unbind_time", DateUtil.offsetHour(new Date(), unBindTime)); queryWrapper.ge("unbind_time", DateUtil.offsetHour(new Date(), unBindTime));
queryWrapper.eq("status", "0");
Integer integer = mapper.selectCount(queryWrapper); Integer integer = mapper.selectCount(queryWrapper);
if (integer >= 10) { if (integer >= 10) {
return ResponseGenerator.fail(StatusCode.BUSINESS_ERROR, "同一用户30天内只能解绑10次"); return ResponseGenerator.fail(StatusCode.BUSINESS_ERROR, "同一用户30天内只能解绑10次");
......
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