|
@@ -98,15 +98,16 @@
|
|
|
join dt_relation re on obj.id = re.obj_to
|
|
|
join dt_define_type df on df.code = obj.class_code
|
|
|
where obj.valid=TRUE and obj.obj_type='component' and re.rel_code='Eq2Ec'
|
|
|
+ and df.project_id in
|
|
|
+ <foreach collection="projectIds" item="projectId" open="(" close=")" separator="," >
|
|
|
+ #{projectId}
|
|
|
+ </foreach>
|
|
|
<if test="null!=equipmentId and equipmentId.length>0">
|
|
|
AND re.obj_from=#{equipmentId}
|
|
|
</if>
|
|
|
<if test="null!=projectId and projectId.length>0">
|
|
|
AND obj.project_id=#{projectId}
|
|
|
</if>
|
|
|
- <if test="null!=groupCode and groupCode.length>0">
|
|
|
- AND obj.group_code=#{groupCode}
|
|
|
- </if>
|
|
|
GROUP BY obj.class_code,re.obj_from,df.system_code,df.name
|
|
|
</select>
|
|
|
</mapper>
|