Merge branch 'dev' of http://62.234.3.186:3000/sxyanzhu/jhprjv2 into dev
commit
15fe949a59
|
@ -262,12 +262,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
(
|
(
|
||||||
SELECT COUNT(1) cnt,data_type
|
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>
|
<where>
|
||||||
<if test="nowDept != null and nowDept != ''"> and sp.deptId = #{nowDept}</if>
|
<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">
|
<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=",">
|
<foreach collection="prjIds" item="item" index="index" open="(" close=")" separator=",">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
|
Loading…
Reference in New Issue