|
|
@@ -53,6 +53,8 @@
|
|
|
left join evaluate_executer tb3 on tb3.evaluate_manage_id = tb1.id
|
|
|
where tb1.delete_mark = 0
|
|
|
and tb3.delete_mark = 0
|
|
|
+ and tb1.status <> -1
|
|
|
+ and tb3.status = 0
|
|
|
and tb3.id = t3.id
|
|
|
and tb1.id = t.id) as ratedCount
|
|
|
from evaluate_manage t
|
|
|
@@ -61,7 +63,12 @@
|
|
|
left join xjr_dictionary_detail t4 on t4.code = t2.evaluate_type
|
|
|
where t.delete_mark = 0
|
|
|
and t3.delete_mark = 0
|
|
|
+ and t.status <> -1
|
|
|
and t3.user_id = #{dto.loginUserId}
|
|
|
+ <if test="dto.keyword != null and dto.keyword != ''">
|
|
|
+ and (t.name like concat('%', #{dto.keyword}, '%')
|
|
|
+ or t4.name like concat('%', #{dto.keyword}, '%'))
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="getMobileResultPage" parameterType="com.xjrsoft.module.evaluate.dto.MobileResultPageDto" resultType="com.xjrsoft.module.evaluate.vo.MobileResultPageVo">
|
|
|
@@ -70,12 +77,12 @@
|
|
|
t1.name,
|
|
|
t.id as evaluateObjectId,
|
|
|
t.object_id as objectId,
|
|
|
- ifnull(t5.name, t6.name) as objectIdCN,
|
|
|
+ ifnull(t5.name, t6.name) as objectIdCn,
|
|
|
t3.id as evaluateUserId,
|
|
|
t3.user_id as userId,
|
|
|
- t7.name as userIdCN,
|
|
|
+ t7.name as userIdCn,
|
|
|
t2.evaluate_type as evaluateType,
|
|
|
- t4.name as evaluateTypeCN,
|
|
|
+ t4.name as evaluateTypeCn,
|
|
|
t1.start_time,
|
|
|
t1.end_time,
|
|
|
t3.status as evaluateStatus
|
|
|
@@ -104,6 +111,46 @@
|
|
|
order by t3.status;
|
|
|
</select>
|
|
|
|
|
|
+ <select id="getDrillEvaluateClassList" parameterType="com.xjrsoft.module.evaluate.dto.DrillEvaluateClassListDto" resultType="com.xjrsoft.module.evaluate.vo.DrillEvaluateClassListVo">
|
|
|
+ select
|
|
|
+ t1.id as evaluateManageId,
|
|
|
+ t1.name,
|
|
|
+ t.id as evaluateObjectId,
|
|
|
+ t.object_id as objectId,
|
|
|
+ ifnull(t5.name, t6.name) as objectIdCn,
|
|
|
+ t3.id as evaluateUserId,
|
|
|
+ t3.user_id as userId,
|
|
|
+ t7.name as userIdCn,
|
|
|
+ t2.evaluate_type as evaluateType,
|
|
|
+ t4.name as evaluateTypeCn,
|
|
|
+ t1.start_time,
|
|
|
+ t1.end_time,
|
|
|
+ t3.status as evaluateStatus
|
|
|
+ from evaluate_object t
|
|
|
+ left join evaluate_manage t1 on t1.id = t.evaluate_manage_id
|
|
|
+ left join evaluate_template t2 on t2.id = t1.evaluate_template_id
|
|
|
+ left join evaluate_executer t3 on t3.evaluate_object_id = t.id
|
|
|
+ left join xjr_dictionary_detail t4 on t4.code = t2.evaluate_type
|
|
|
+ left join xjr_user t5 on t5.id = t.object_id
|
|
|
+ left join base_class t6 on t6.id = t.object_id
|
|
|
+ left join xjr_user t7 on t7.id = t3.user_id
|
|
|
+ left join base_classroom t8 on t8.id = t6.classroom_id
|
|
|
+ left join base_class_major_set t9 on t9.class_id = t6.id
|
|
|
+ left join base_major_set t10 on t10.id = t9.major_set_id
|
|
|
+ where t.delete_mark = 0
|
|
|
+ and t3.delete_mark = 0
|
|
|
+ and t1.status = 1
|
|
|
+ and t3.user_id = #{dto.loginUserId}
|
|
|
+ and t.evaluate_manage_id = #{dto.evaluateManageId}
|
|
|
+ <if test="dto.majorId != null and dto.majorId > 0">
|
|
|
+ and t10.major_id = #{dto.majorId}
|
|
|
+ </if>
|
|
|
+ <if test="dto.officeBuildId != null and dto.officeBuildId > 0">
|
|
|
+ and t8.officeBuildId = #{dto.officeBuildId}
|
|
|
+ </if>
|
|
|
+ order by t3.status;
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="getWriteInfo" parameterType="com.xjrsoft.module.evaluate.dto.EvaluateWritePageDto" resultType="com.xjrsoft.module.evaluate.vo.EvaluateWriteVo">
|
|
|
select t1.id, t1.name,t2.total as sumScore,t1.start_time,t1.end_time,
|
|
|
(SELECT COUNT(id) FROM evaluate_manage_item a WHERE t1.delete_mark = 0 AND a.evaluate_manage_id = t1.id) AS item_count
|