|
@@ -99,6 +99,7 @@
|
|
|
<result property="beforeStatus" column="before_status"/>
|
|
|
<result property="applyName" column="apply_name"/>
|
|
|
<result property="beforeName" column="before_name"/>
|
|
|
+ <result property="rebuildNum" column="rebuildNum"/>
|
|
|
<result property="rebuildStatus" column="rebuild_status"/>
|
|
|
</resultMap>
|
|
|
|
|
@@ -338,6 +339,8 @@
|
|
|
(SELECT COUNT(DISTINCT ubr.exam_id) FROM user_bank_record ubr LEFT JOIN class_grade_goods cgg on cgg.goods_id = ubr.goods_id where ubr.`status`=1 and ubr.report_status =1 and ubr.user_id =cgu.user_id and ubr.grade_id = cg.grade_id) as record_num,
|
|
|
(SELECT COUNT(up.id) FROM user_period up LEFT JOIN user_period_status ups on up.id = ups.period_id where
|
|
|
ups.`status` =1 and ups.period_status = 1 and up.goods_id=g.goods_id and up.user_id = cgu.user_id and up.type = 1) as pass,
|
|
|
+ (SELECT COUNT(up.id) FROM user_period up LEFT JOIN user_period_status ups on up.id = ups.period_id where
|
|
|
+ ups.`status` =3 and ups.period_status = 1 and up.goods_id=g.goods_id and up.user_id = cgu.user_id and up.type = 1) as rebuildNum,
|
|
|
(SELECT
|
|
|
COUNT(up.id) FROM user_period up LEFT JOIN user_period_status ups on up.id = ups.period_id where ups.`status`
|
|
|
=0 and ups.period_status = 1 and up.goods_id=g.goods_id and up.user_id = cgu.user_id and up.type = 1) as cheat,
|