<iftest="searchContant!=null and searchContant!=''"> AND (sch.schoolName LIKE CONCAT('%',#{searchContant},'%') OR u.userName LIKE CONCAT('%',#{searchContant},'%') )</if>
<iftest="searchContant!=null and searchContant!=''">AND (sch.schoolName LIKE CONCAT('%',#{searchContant},'%')
OR u.userName LIKE CONCAT('%',#{searchContant},'%') )
</if>
GROUP BY
GROUP BY
tcr.reportId
tcr.reportId
ORDER BY tpr.submitTime DESC
ORDER BY tpr.submitTime DESC
@ -192,16 +219,22 @@ WHERE
tpr.isdel = 0
tpr.isdel = 0
AND tcr.isdel = 0
AND tcr.isdel = 0
AND hpm.projectPermissions = 0
AND hpm.projectPermissions = 0
<iftest="systemId!=null and systemId!=''"> AND hpm.systemId = #{systemId} </if>
<iftest="systemId!=null and systemId!=''">AND hpm.systemId = #{systemId}</if>
<iftest="searchContant!=null and searchContant!=''"> and hpm.projectName like concat('%',#{searchContant},'%')</if>
<iftest="searchContant!=null and searchContant!=''">and hpm.projectName like concat('%',#{searchContant},'%')
<iftest="startingtime!=null and startingtime!='' and endtime!=null and endtime != ''"> and hpm.creationTime between #{endtime} and #{startingtime}</if>
<iftest="systemId!=null and systemId!=''"> AND hpm.systemId = #{systemId} </if>
<iftest="systemId!=null and systemId!=''">AND hpm.systemId = #{systemId}</if>
<iftest="searchContant!=null and searchContant!=''"> and (hpm.projectName like concat('%',#{searchContant},'%') OR tet.experimental_class_name like concat('%',#{searchContant},'%') )</if>
<iftest="searchContant!=null and searchContant!=''">and (hpm.projectName like concat('%',#{searchContant},'%')
<iftest="startingtime!=null and startingtime!='' and endtime!=null and endtime != ''"> and hpm.creationTime between #{endtime} and #{startingtime}</if>
OR tet.experimental_class_name like concat('%',#{searchContant},'%') )
<iftest="searchContant!=null and searchContant!=''"> AND (sch.schoolName LIKE CONCAT('%',#{searchContant},'%') OR u.userName LIKE CONCAT('%',#{searchContant},'%') )</if>
<iftest="searchContant!=null and searchContant!=''">AND (sch.schoolName LIKE CONCAT('%',#{searchContant},'%')
OR u.userName LIKE CONCAT('%',#{searchContant},'%') )
SELECT hpm.creationTime,hpm.projectId,hpm.projectName,hpm.projectPermissions,hpm.systemId,(SELECT count(*) FROM hr_experimental_report her where hpm.projectId = her.projectId ) as number
SELECT hpm.creationTime,hpm.projectId,hpm.projectName,hpm.projectPermissions,hpm.systemId,(SELECT count(*) FROM
hr_experimental_report her where hpm.projectId = her.projectId ) as number
FROM hr_project_management hpm WHERE systemId = #{systemId}
FROM hr_project_management hpm WHERE systemId = #{systemId}
AND hpm.isdel = 0
AND hpm.isdel = 0
<iftest="projectPermissions!=null and projectPermissions!=''"> AND hpm.projectPermissions = #{projectPermissions} </if>
<iftest="projectPermissions!=null and projectPermissions!=''">AND hpm.projectPermissions =
<iftest="searchContant!=null and searchContant!=''"> and hpm.projectName like concat('%',#{searchContant},'%')</if>
#{projectPermissions}
<iftest="startTime!=null and startTime!='' and endTime!=null and endTime != ''"> and hpm.creationTime between #{endTime} and #{startTime}</if>
SELECT et.id,et.experimental_class_name as experimentalClassName,et.experimental_name as experimentalName,et.project_id as projectId,
SELECT et.id,et.experimental_class_name as experimentalClassName,et.experimental_name as
pm.projectName,pm.projectPermissions,et.creation_time as creationTime,(SELECT count(*) FROM hr_experimental_report her where et.project_id = her.projectId ) as number
experimentalName,et.project_id as projectId,
pm.projectName,pm.projectPermissions,et.creation_time as creationTime,(SELECT count(*) FROM
hr_experimental_report her where et.project_id = her.projectId ) as number
FROM tms_experimental_teaching et,hr_project_management pm
FROM tms_experimental_teaching et,hr_project_management pm
WHERE user_id = #{userId}
WHERE user_id = #{userId}
AND et.project_id = pm.projectId
AND et.project_id = pm.projectId
AND pm.isdel = 0
AND pm.isdel = 0
<iftest="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},'%') </if>
<iftest="searchContant!=null and searchContant!=''">and et.experimental_class_name like
<iftest="startTime!=null and startTime!='' and endTime!=null and endTime != ''"> and et.creation_time between #{endTime} and #{startTime}</if>
concat('%',#{searchContant},'%') or et.experimental_name like concat('%',#{searchContant},'%') or
FROM hr_experimental_report her,hr_user_info hui,school s,student stu
FROM hr_experimental_report her,hr_user_info hui,school s,student stu
WHERE her.projectId = #{projectId}
WHERE her.projectId = #{projectId}
AND her.studentId = hui.userId
AND her.studentId = hui.userId
AND her.studentId = stu.userId
AND her.studentId = stu.userId
AND hui.schoolId = s.schoolId
AND hui.schoolId = s.schoolId
AND her.isdel = 0
AND her.isdel = 0
<iftest="searchContant!=null and searchContant!=''"> AND (hui.userName LIKE CONCAT('%',#{searchContant},'%') OR s.schoolName LIKE CONCAT('%',#{searchContant},'%') )</if>
<iftest="searchContant!=null and searchContant!=''">AND (hui.userName LIKE CONCAT('%',#{searchContant},'%') OR
s.schoolName LIKE CONCAT('%',#{searchContant},'%') )
SELECT tjp.judgment_points_name as judgmentPointsName,ru.type,ru.id,ru.level_one as levelOne,ru.level_two as levelTwo,ru.level_three as levelThree,ru.level_four as levelFour,ru.trading_judgment_points_id as tradingJudgmentPointsId
SELECT tjp.judgment_points_name as judgmentPointsName,
FROM hr_trading_judgment_points_rule ru,hr_trading_judgment_points tjp
ru.type,
WHERE ru.trading_judgment_points_id = #{tradingJudgmentPointsId} and ru.trading_judgment_points_id = tjp.id
ru.id,
ru.level_one as levelOne,
ru.level_two as levelTwo,
ru.level_three as levelThree,
ru.level_four as levelFour,
ru.trading_judgment_points_id as tradingJudgmentPointsId
FROM hr_trading_judgment_points_rule ru,
hr_trading_judgment_points tjp
WHERE ru.trading_judgment_points_id = #{tradingJudgmentPointsId}
<iftest="pro.condition!=null">and ( projectName like concat('%',#{pro.condition},'%') or schoolName like concat('%',#{pro.condition},'%') or userName like concat('%',#{pro.condition},'%') )</if>
<iftest="pro.condition!=null">and ( projectName like concat('%',#{pro.condition},'%') or schoolName like
concat('%',#{pro.condition},'%') or userName like concat('%',#{pro.condition},'%') )