Commit 96767901 authored by zhangsen's avatar zhangsen

装备左侧树

parent f1f053aa
...@@ -1525,18 +1525,19 @@ ...@@ -1525,18 +1525,19 @@
</select> </select>
<select id="queryCompanyStaData" resultType="java.util.Map"> <select id="queryCompanyStaData" resultType="java.util.Map">
SELECT SELECT
s.biz_org_code as bizOrgCode, s.biz_org_code AS bizOrgCode,
c.code as categoryCode, c.CODE AS categoryCode,
count(1) as total count( 1 ) AS total
FROM FROM
`wl_equipment_specific` s, `wl_equipment_specific` s
wl_equipment e, LEFT JOIN wl_equipment_detail ed ON ed.id = s.equipment_detail_id
wl_equipment_category c LEFT JOIN wl_equipment e ON e.id = ed.equipment_id
where LEFT JOIN wl_equipment_category c ON c.id = e.category_id
s.equipment_code = e.`code` WHERE
and e.category_id = c.id s.biz_org_code <![CDATA[<>]]> '' and s.biz_org_code is not null
and s.biz_org_code <![CDATA[<>]]> '' GROUP BY
GROUP BY s.biz_org_code ,c.code s.biz_org_code,
c.`code`
</select> </select>
<select id="getEquipmentBySpecificId" resultType="String"> <select id="getEquipmentBySpecificId" resultType="String">
......
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