|
|
@ -84,7 +84,7 @@ |
|
|
|
<update id="deleteReport"> |
|
|
|
<update id="deleteReport"> |
|
|
|
UPDATE tms_project_record tpr,hr_experimental_report tcr |
|
|
|
UPDATE tms_project_record tpr,hr_experimental_report tcr |
|
|
|
SET tpr.isdel = 1, tcr.isdel = 1 |
|
|
|
SET tpr.isdel = 1, tcr.isdel = 1 |
|
|
|
WHERE tpr.recordId = tcr.eventId AND tcr.reportId = #{reportId} |
|
|
|
WHERE tpr.recordId = #{recordId} AND tcr.reportId = #{reportId} |
|
|
|
</update> |
|
|
|
</update> |
|
|
|
<update id="updateComment"> |
|
|
|
<update id="updateComment"> |
|
|
|
UPDATE tms_experimental_report |
|
|
|
UPDATE tms_experimental_report |
|
|
@ -359,8 +359,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
<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 ) as number |
|
|
|
tms_project_record her where hpm.projectId = her.projectId and her.isdel = 0 ) 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 |
|
|
|
<if test="projectPermissions!=null and projectPermissions!=''">AND hpm.projectPermissions = |
|
|
|
<if test="projectPermissions!=null and projectPermissions!=''">AND hpm.projectPermissions = |
|
|
|
#{projectPermissions} |
|
|
|
#{projectPermissions} |
|
|
@ -380,7 +381,7 @@ |
|
|
|
SELECT et.id,et.experimental_class_name as experimentalClassName,et.experimental_name as |
|
|
|
SELECT et.id,et.experimental_class_name as experimentalClassName,et.experimental_name as |
|
|
|
experimentalName,et.project_id as projectId, |
|
|
|
experimentalName,et.project_id as projectId, |
|
|
|
pm.projectName,pm.projectPermissions,et.creation_time as creationTime,(SELECT count(*) FROM |
|
|
|
pm.projectName,pm.projectPermissions,et.creation_time as creationTime,(SELECT count(*) FROM |
|
|
|
tms_project_record her where et.project_id = her.projectId ) as number |
|
|
|
tms_project_record her where et.project_id = her.projectId and her.isdel = 0 ) 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 |
|
|
@ -440,4 +441,12 @@ |
|
|
|
WHERE ru.trading_judgment_points_id = #{tradingJudgmentPointsId} |
|
|
|
WHERE ru.trading_judgment_points_id = #{tradingJudgmentPointsId} |
|
|
|
and ru.trading_judgment_points_id = tjp.id |
|
|
|
and ru.trading_judgment_points_id = tjp.id |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<update id="deleteReportById"> |
|
|
|
|
|
|
|
UPDATE hr_project_management |
|
|
|
|
|
|
|
SET hr_project_management.isdel = 1 |
|
|
|
|
|
|
|
WHERE hr_project_management.projectId = #{projectId} |
|
|
|
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
|
|
</mapper> |
|
|
|
</mapper> |