@@ -887,16 +887,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ter.is_pay AS isPay,
ter.pay_type AS payType,
CONVERT(IFNULL(te.name, ''), CHAR) AS examName,
ter.pay_price AS payPrice,
tmo.pay_price AS payPrice,
CONVERT(IFNULL(ter.registration_batch, ''), CHAR) AS registrationBatch,
CONVERT(IFNULL(DATE_FORMAT(teb.exam_start_time,'%Y-%m-%d %H:%i:%s'), ''), CHAR) AS examStartTime,
CONVERT(IFNULL(DATE_FORMAT(teb.exam_end_time,'%Y-%m-%d %H:%i:%s'), ''), CHAR) AS examEndTime,
CASE
<iftest="examStatus != null and examStatus != ''">
WHEN #{examStatus} is not null AND #{examStatus} = 1 and ter.is_pay = 0 THEN '未支付'
WHEN #{examStatus} is not null AND #{examStatus} = 1 and ter.is_pay = 0 and tmo.order_id is not null THEN '未支付'
WHEN #{examStatus} is not null AND #{examStatus} = 1 and ter.is_pay = -1 THEN '已取消'
WHEN #{examStatus} is not null AND #{examStatus} = 1 THEN '已报名'
WHEN #{examStatus} is not null AND #{examStatus} = 1 and ter.is_pay = 1 and tmo.order_id is not null THEN '已报名'
WHEN #{examStatus} is not null AND #{examStatus} = 2 THEN '待开考'
WHEN #{examStatus} is not null AND #{examStatus} = 3 AND 1 > (select count(*) from tb_exam_simulate_info tesi where ter.exam_id = tesi.exam_id and tesi.member_user_id = ter.member_user_id) THEN '待开考'
WHEN #{examStatus} is not null AND #{examStatus} = 3 AND 1 = (select count(*) from tb_exam_simulate_info tesi where ter.exam_id = tesi.exam_id and tesi.member_user_id = ter.member_user_id and tesi.complete_status=1) THEN '考试中'
...
...
@@ -1094,7 +1094,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ter.pay_type AS payType,
CONVERT(IFNULL(te.name, ''), CHAR) AS examName,
ter.pay_price AS payPrice,
tmo.pay_price AS payPrice,
CONVERT(IFNULL(ter.registration_batch, ''), CHAR) AS registrationBatch,
CONVERT(IFNULL(DATE_FORMAT(teb.exam_start_time,'%Y-%m-%d %H:%i:%s'), ''), CHAR) AS examStartTime,
CONVERT(IFNULL(DATE_FORMAT(teb.exam_end_time,'%Y-%m-%d %H:%i:%s'), ''), CHAR) AS examEndTime,