|
|
|
@ -132,7 +132,8 @@ |
|
|
|
|
LEFT JOIN hr_project_management AS hpm ON hpm.projectId = tpr.projectId |
|
|
|
|
WHERE reportId = #{reportId} |
|
|
|
|
</select> |
|
|
|
|
<select id="queryEvaluationReport" resultType="com.msdw.tms.entity.vo.AchievementManagementVO"> |
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
SELECT |
|
|
|
|
u.userName, |
|
|
|
|
sch.schoolName, |
|
|
|
@ -158,17 +159,45 @@ |
|
|
|
|
AND tcr.isdel = 0 |
|
|
|
|
AND u.isdel = 0 |
|
|
|
|
AND tpr.projectId = #{projectId} |
|
|
|
|
<if test="searchContant!=null and searchContant!=''">AND (sch.schoolName LIKE CONCAT('%',#{searchContant},'%') |
|
|
|
|
<if test="searchContant!=null and searchContant!=''"> |
|
|
|
|
AND (sch.schoolName LIKE CONCAT('%',#{searchContant},'%') |
|
|
|
|
OR u.userName LIKE CONCAT('%',#{searchContant},'%') ) |
|
|
|
|
</if> |
|
|
|
|
GROUP BY |
|
|
|
|
tcr.reportId |
|
|
|
|
ORDER BY tpr.submitTime DESC |
|
|
|
|
--> |
|
|
|
|
<select id="queryEvaluationReport" resultType="com.msdw.tms.entity.vo.AchievementManagementVO"> |
|
|
|
|
SELECT |
|
|
|
|
r.reportId, |
|
|
|
|
re.recordId, |
|
|
|
|
sch.schoolName, |
|
|
|
|
s.workNumber, |
|
|
|
|
u.userName, |
|
|
|
|
re.score, |
|
|
|
|
re.submitTime, |
|
|
|
|
r.eventId |
|
|
|
|
FROM |
|
|
|
|
tms_experimental_report r |
|
|
|
|
INNER JOIN tms_experimental_teaching t ON t.id = r.projectId |
|
|
|
|
INNER JOIN student s ON s.studentId = r.studentId |
|
|
|
|
INNER JOIN school sch ON sch.schoolId = s.schoolId |
|
|
|
|
INNER JOIN hr_user_info u ON u.userId = s.userId |
|
|
|
|
INNER JOIN tms_project_record re ON re.projectId = t.project_id |
|
|
|
|
WHERE |
|
|
|
|
t.id = r.projectId |
|
|
|
|
and r.eventId = re.recordId |
|
|
|
|
AND r.projectId = #{projectId} |
|
|
|
|
AND r.isdel = 0 |
|
|
|
|
AND t.is_del = 0 |
|
|
|
|
AND u.isdel = 0 |
|
|
|
|
<if test="searchContant!=null and searchContant!=''"> |
|
|
|
|
AND (sch.schoolName LIKE CONCAT('%',#{searchContant},'%') |
|
|
|
|
OR u.userName LIKE CONCAT('%',#{searchContant},'%') ) |
|
|
|
|
</if> |
|
|
|
|
GROUP BY r.reportId DESC |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="getAVG" parameterType="java.lang.Integer" resultType="java.lang.String"> |
|
|
|
|
SELECT AVG(score) from tms_project_record WHERE projectId = #{projectId} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="queryAchievement" resultType="com.msdw.tms.entity.request.AchievementImportRequest"> |
|
|
|
|
SELECT |
|
|
|
|