|
@@ -140,4 +140,10 @@
|
|
|
GROUP BY b.project_id, a.department_id
|
|
|
having IFNULL(SUM(b.custom_data),0) > 0
|
|
|
</select>
|
|
|
+ <select id="getNameWithProjectRelate" resultType="com.management.platform.entity.Department">
|
|
|
+ select department.department_id,department.department_name
|
|
|
+ from department
|
|
|
+ left join project_dept_relate pdr on department.department_id = pdr.department_id
|
|
|
+ where pdr.project_id = #{id}
|
|
|
+ </select>
|
|
|
</mapper>
|