update code

dev_xds
haha 2024-01-21 16:24:09 +08:00
parent c7d542a769
commit 67b00fba13
1 changed files with 3 additions and 3 deletions

View File

@ -261,12 +261,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN
(
SELECT COUNT(1) cnt,data_type
FROM work_train
FROM work_train wt left join sur_project sp on sp.id = wt.project_id
<where>
<if test="nowDept != null and nowDept != ''"> and sp.deptId = #{nowDept}</if>
<if test="projectId != null"> and project_id = #{projectId}</if>
<if test="projectId != null"> and wt.project_id = #{projectId}</if>
<if test="prjIds !=null and prjIds.size()>0">
and project_id in
and wt.project_id in
<foreach collection="prjIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>