Commit b26d32cc authored by zhangsen's avatar zhangsen

装备左侧树sql过滤空code

parent 96767901
......@@ -1526,7 +1526,7 @@
<select id="queryCompanyStaData" resultType="java.util.Map">
SELECT
s.biz_org_code AS bizOrgCode,
c.CODE AS categoryCode,
c.`code` AS categoryCode,
count( 1 ) AS total
FROM
`wl_equipment_specific` s
......@@ -1534,7 +1534,10 @@
LEFT JOIN wl_equipment e ON e.id = ed.equipment_id
LEFT JOIN wl_equipment_category c ON c.id = e.category_id
WHERE
s.biz_org_code <![CDATA[<>]]> '' and s.biz_org_code is not null
s.biz_org_code != ''
AND s.biz_org_code IS NOT NULL
AND c.`code` IS NOT NULL
AND c.`code` != ''
GROUP BY
s.biz_org_code,
c.`code`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment