|
|
|
@ -393,13 +393,11 @@ |
|
|
|
|
|
|
|
|
|
<select id="list" resultType="com.msdw.tms.entity.ResultsEntity"> |
|
|
|
|
SELECT hpm.creationTime,hpm.projectId,hpm.projectName,hpm.projectPermissions,hpm.systemId,(SELECT count(*) FROM |
|
|
|
|
tms_project_record her where hpm.projectId = her.projectId and her.isdel = 0 ) as number |
|
|
|
|
tms_project_record her where hpm.projectId = her.projectId and her.isdel = 0 ) as number, |
|
|
|
|
hpm.isdel |
|
|
|
|
FROM hr_project_management hpm |
|
|
|
|
WHERE systemId = #{systemId} |
|
|
|
|
AND hpm.isdel = 0 |
|
|
|
|
<if test="projectPermissions!=null and projectPermissions!=''">AND hpm.projectPermissions = |
|
|
|
|
#{projectPermissions} |
|
|
|
|
</if> |
|
|
|
|
AND hpm.projectPermissions = #{projectPermissions} |
|
|
|
|
<if test="searchContant!=null and searchContant!=''">and hpm.projectName like concat('%',#{searchContant},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="startTime!=null and startTime!='' and endTime!=null and endTime != ''">and hpm.creationTime between |
|
|
|
@ -420,14 +418,14 @@ |
|
|
|
|
pm.projectName, |
|
|
|
|
pm.projectPermissions, |
|
|
|
|
et.creation_time AS creationTime, |
|
|
|
|
( SELECT count( * ) FROM tms_experimental_report her WHERE et.id = her.projectId AND her.isdel = 0 ) AS number |
|
|
|
|
( SELECT count( * ) FROM tms_experimental_report her WHERE et.id = her.projectId AND her.isdel = 0 ) AS number, |
|
|
|
|
et.is_del |
|
|
|
|
FROM |
|
|
|
|
tms_experimental_teaching et, |
|
|
|
|
hr_project_management pm |
|
|
|
|
WHERE |
|
|
|
|
user_id = #{userId} |
|
|
|
|
AND et.project_id = pm.projectId |
|
|
|
|
AND pm.isdel = 0 |
|
|
|
|
<if test="searchContant!=null and searchContant!=''">and et.experimental_class_name like |
|
|
|
|
concat('%',#{searchContant},'%') or et.experimental_name like concat('%',#{searchContant},'%') or |
|
|
|
|
pm.projectName like concat('%',#{searchContant},'%') |
|
|
|
@ -538,7 +536,7 @@ |
|
|
|
|
report.reportId, |
|
|
|
|
r.submitTime, |
|
|
|
|
stu.studentId, |
|
|
|
|
t.id as projectId |
|
|
|
|
t.id as projectId |
|
|
|
|
FROM tms_experimental_teaching t |
|
|
|
|
INNER JOIN tms_experimental_report report ON report.projectId = t.id |
|
|
|
|
INNER JOIN tms_project_record r ON r.recordId = report.eventId |
|
|
|
|