提交代码

hehai
rong.liu 4 years ago
parent da5c72bf64
commit bf633ab7dc
  1. 20
      src/main/resources/mapper/tms/AchievementManagementDao.xml

@ -412,12 +412,20 @@
</select>
<select id="newList" resultType="com.msdw.tms.entity.ResultsEntity">
SELECT et.id,et.experimental_class_name as experimentalClassName,et.experimental_name as
experimentalName,et.project_id as projectId,
pm.projectName,pm.projectPermissions,et.creation_time as creationTime,(SELECT count(*) FROM
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
WHERE user_id = #{userId}
SELECT
et.id,
et.experimental_class_name AS experimentalClassName,
et.experimental_name AS experimentalName,
et.project_id AS projectId,
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
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

Loading…
Cancel
Save