|
|
@ -61,15 +61,19 @@ |
|
|
|
|
|
|
|
<select id="selectCategoryList" resultType="com.epmet.dto.IssueProjectCategoryDictDTO"> |
|
|
|
SELECT |
|
|
|
* |
|
|
|
a.*, |
|
|
|
b.CATEGORY_NAME as parentCategoryName |
|
|
|
FROM |
|
|
|
issue_project_category_dict |
|
|
|
issue_project_category_dict a |
|
|
|
LEFT JOIN issue_project_category_dict b ON a.PID = b.ID |
|
|
|
AND b.del_flag = '0' |
|
|
|
AND b.customer_id = #{customerId} |
|
|
|
WHERE |
|
|
|
del_flag = '0' |
|
|
|
AND customer_id = #{customerId} |
|
|
|
a.del_flag = '0' |
|
|
|
AND a.customer_id = #{customerId} |
|
|
|
<if test="cstegoryIdList != null and cstegoryIdList.size() > 0"> |
|
|
|
<foreach collection="cstegoryIdList" item="id" open="AND( " separator=" OR " index="index" close=")"> |
|
|
|
id = #{id} |
|
|
|
a.id = #{id} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
ORDER BY |
|
|
|