| | |
| | | throw new BusinessException(this.getClass(), ResultConstants.BUSINESS_ERROR, "未找到需要缴费的学员"); |
| | | } |
| | | NonCoalStuRep nonCoalStuRep = nonCoalStuList.get(0); |
| | | |
| | | if (nonCoalStuRep.getPayStatus() == 1) { |
| | | throw new BusinessException(this.getClass(), ResultConstants.BUSINESS_ERROR, "已缴费请勿重复缴费"); |
| | | } |
| | |
| | | t.pay_status, |
| | | t.order_id |
| | | from non_coal_pay a |
| | | inner join non_coal_pay_student t on t.non_coal_pay_id = a.id and t.del_flag = 0 and t.pay_status = 0 |
| | | inner join non_coal_pay_student t on t.non_coal_pay_id = a.id and t.del_flag = 0 and t.pay_status = 0 and |
| | | t.order_id is null |
| | | inner join non_coal_pay_category b on a.id = b.non_coal_pay_id and b.del_flag = 0 |
| | | left join non_coal_category c on b.category_id = c.id and c.del_flag = 0 |
| | | where a.del_flag = 0 |