Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
094ec2e0
Commit
094ec2e0
authored
May 22, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一码通设备总览已认领但无数据修改
parent
e2264a09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
EquipmentCategoryMapper.xml
...api/src/main/resources/mapper/EquipmentCategoryMapper.xml
+13
-5
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/EquipmentCategoryMapper.xml
View file @
094ec2e0
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment