| | |
| | | for (TCoursePackageDiscount tCoursePackageDiscount : tCoursePackageDiscounts) { |
| | | TCoursePackage coursePackage = tcpMapper.selectById(tCoursePackageDiscount.getCoursePackageId()); |
| | | // 判断预约人数是否已满 |
| | | Integer maxSubscribeNumber = coursePackage.getMaxSubscribeNumber(); |
| | | Integer integer = tcppMapper.selectCount(new QueryWrapper<TCoursePackagePayment>() |
| | | .eq("appUserId",appUserId ) |
| | | .eq("status",1)); |
| | | if (integer >= maxSubscribeNumber){ |
| | | continue; |
| | | } |
| | | // Integer maxSubscribeNumber = coursePackage.getMaxSubscribeNumber(); |
| | | // Integer integer = tcppMapper.selectCount(new QueryWrapper<TCoursePackagePayment>() |
| | | // .eq("appUserId",appUserId ) |
| | | // .eq("status",1)); |
| | | // if (integer >= maxSubscribeNumber){ |
| | | // continue; |
| | | // } |
| | | try { |
| | | JSONArray jsonArray = JSON.parseArray(tCoursePackageDiscount.getContent()); |
| | | JSONObject jsonObject = jsonArray.getJSONObject(0); |