|
|
@ -393,13 +393,11 @@ |
|
|
|
|
|
|
|
|
|
|
|
<select id="list" resultType="com.msdw.tms.entity.ResultsEntity"> |
|
|
|
<select id="list" resultType="com.msdw.tms.entity.ResultsEntity"> |
|
|
|
SELECT hpm.creationTime,hpm.projectId,hpm.projectName,hpm.projectPermissions,hpm.systemId,(SELECT count(*) FROM |
|
|
|
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 |
|
|
|
FROM hr_project_management hpm |
|
|
|
WHERE systemId = #{systemId} |
|
|
|
WHERE systemId = #{systemId} |
|
|
|
AND hpm.isdel = 0 |
|
|
|
AND hpm.projectPermissions = #{projectPermissions} |
|
|
|
<if test="projectPermissions!=null and projectPermissions!=''">AND hpm.projectPermissions = |
|
|
|
|
|
|
|
#{projectPermissions} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="searchContant!=null and searchContant!=''">and hpm.projectName like concat('%',#{searchContant},'%') |
|
|
|
<if test="searchContant!=null and searchContant!=''">and hpm.projectName like concat('%',#{searchContant},'%') |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="startTime!=null and startTime!='' and endTime!=null and endTime != ''">and hpm.creationTime between |
|
|
|
<if test="startTime!=null and startTime!='' and endTime!=null and endTime != ''">and hpm.creationTime between |
|
|
@ -420,14 +418,14 @@ |
|
|
|
pm.projectName, |
|
|
|
pm.projectName, |
|
|
|
pm.projectPermissions, |
|
|
|
pm.projectPermissions, |
|
|
|
et.creation_time AS creationTime, |
|
|
|
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 |
|
|
|
FROM |
|
|
|
tms_experimental_teaching et, |
|
|
|
tms_experimental_teaching et, |
|
|
|
hr_project_management pm |
|
|
|
hr_project_management pm |
|
|
|
WHERE |
|
|
|
WHERE |
|
|
|
user_id = #{userId} |
|
|
|
user_id = #{userId} |
|
|
|
AND et.project_id = pm.projectId |
|
|
|
AND et.project_id = pm.projectId |
|
|
|
AND pm.isdel = 0 |
|
|
|
|
|
|
|
<if test="searchContant!=null and searchContant!=''">and et.experimental_class_name like |
|
|
|
<if test="searchContant!=null and searchContant!=''">and et.experimental_class_name like |
|
|
|
concat('%',#{searchContant},'%') or et.experimental_name like concat('%',#{searchContant},'%') or |
|
|
|
concat('%',#{searchContant},'%') or et.experimental_name like concat('%',#{searchContant},'%') or |
|
|
|
pm.projectName like concat('%',#{searchContant},'%') |
|
|
|
pm.projectName like concat('%',#{searchContant},'%') |
|
|
|