Commit 094ec2e0 authored by tianyiming's avatar tianyiming

一码通设备总览已认领但无数据修改

parent e2264a09
...@@ -3,13 +3,22 @@ ...@@ -3,13 +3,22 @@
<mapper namespace="com.yeejoin.amos.boot.module.tzs.api.mapper.EquipmentCategoryMapper"> <mapper namespace="com.yeejoin.amos.boot.module.tzs.api.mapper.EquipmentCategoryMapper">
<select id="getCategoryCount" resultType="java.util.Map"> <select id="getCategoryCount" resultType="java.util.Map">
SELECT A."EQU_LIST" category, SELECT temp.code category,
IFNULL ( A.count, 0 ) waitClaim, IFNULL ( A.count, 0 ) waitClaim,
IFNULL ( b.count, 0 ) alreadyClaim, IFNULL ( b.count, 0 ) alreadyClaim,
IFNULL ( C.count, 0 ) refuseClaim IFNULL ( C.count, 0 ) refuseClaim
FROM FROM
( (
SELECT SELECT
code
FROM
"tz_equipment_category"
WHERE
code LIKE'%000'
AND code <![CDATA[ <> ]]> 7000
AND code <![CDATA[ <> ]]> 'F000') temp LEFT JOIN
(
SELECT
"EQU_LIST", "EQU_LIST",
COUNT ( * ) COUNT ( * )
FROM FROM
...@@ -29,8 +38,7 @@ ...@@ -29,8 +38,7 @@
</if> </if>
GROUP BY GROUP BY
"EQU_LIST" "EQU_LIST"
) ) A on temp.code = A."EQU_LIST" LEFT JOIN (
A LEFT JOIN (
SELECT SELECT
"EQU_LIST", "EQU_LIST",
COUNT ( * ) COUNT ( * )
...@@ -51,7 +59,7 @@ ...@@ -51,7 +59,7 @@
</if> </if>
GROUP BY GROUP BY
"EQU_LIST" "EQU_LIST"
) b ON A."EQU_LIST" = b."EQU_LIST" ) b ON temp.code = b."EQU_LIST"
LEFT JOIN ( LEFT JOIN (
SELECT SELECT
"EQU_LIST", "EQU_LIST",
...@@ -73,7 +81,7 @@ ...@@ -73,7 +81,7 @@
</if> </if>
GROUP BY GROUP BY
"EQU_LIST" "EQU_LIST"
) C ON A."EQU_LIST" = C."EQU_LIST" ) C ON temp.code = C."EQU_LIST"
</select> </select>
<select id="getAdministrativeDivision" resultType="java.util.Map"> <select id="getAdministrativeDivision" resultType="java.util.Map">
......
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