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
0e605a2a
Commit
0e605a2a
authored
Nov 23, 2022
by
zhengjuzi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备管理的信息统计修改:加入了企业id
parent
5e4ee059
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
EquipmentMapper.java
...join/amos/boot/module/ugp/api/mapper/EquipmentMapper.java
+2
-1
EquipmentMapper.xml
...ule-ugp-api/src/main/resources/mapper/EquipmentMapper.xml
+2
-2
EquipmentController.java
...s/boot/module/ugp/biz/controller/EquipmentController.java
+0
-1
EquipmentServiceImpl.java
...oot/module/ugp/biz/service/impl/EquipmentServiceImpl.java
+3
-1
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/mapper/EquipmentMapper.java
View file @
0e605a2a
...
@@ -7,6 +7,7 @@ import com.yeejoin.amos.boot.module.ugp.api.entity.Company;
...
@@ -7,6 +7,7 @@ import com.yeejoin.amos.boot.module.ugp.api.entity.Company;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Equipment
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Equipment
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -22,5 +23,5 @@ import java.util.Set;
...
@@ -22,5 +23,5 @@ import java.util.Set;
public
interface
EquipmentMapper
extends
BaseMapper
<
Equipment
>
{
public
interface
EquipmentMapper
extends
BaseMapper
<
Equipment
>
{
IPage
<
EquipmentDto
>
queryEquipmentPage
(
IPage
<
EquipmentDto
>
page
,
Equipment
equipment
,
Set
<
String
>
companyIds
);
IPage
<
EquipmentDto
>
queryEquipmentPage
(
IPage
<
EquipmentDto
>
page
,
Equipment
equipment
,
Set
<
String
>
companyIds
);
List
<
Map
<
String
,
Long
>>
informationStatistics
();
List
<
Map
<
String
,
Long
>>
informationStatistics
(
@Param
(
"companySequenceNbr"
)
Long
companySequenceNbr
);
}
}
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/resources/mapper/EquipmentMapper.xml
View file @
0e605a2a
...
@@ -25,8 +25,8 @@
...
@@ -25,8 +25,8 @@
order by rec_date desc
order by rec_date desc
</select>
</select>
<select
id=
"informationStatistics"
resultType=
"java.util.HashMap"
>
<select
id=
"informationStatistics"
parameterType=
"Long"
resultType=
"java.util.HashMap"
>
SELECT type as name ,count(1) AS value FROM tz_ugp_equipment GROUP BY type
SELECT type as name ,count(1) AS value FROM tz_ugp_equipment
where company_id = #{companySequenceNbr}
GROUP BY type
</select>
</select>
</mapper>
</mapper>
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/EquipmentController.java
View file @
0e605a2a
...
@@ -283,7 +283,6 @@ public class EquipmentController extends BaseController {
...
@@ -283,7 +283,6 @@ public class EquipmentController extends BaseController {
@GetMapping
(
value
=
"/information"
)
@GetMapping
(
value
=
"/information"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设备管理->信息统计"
,
notes
=
"设备管理->信息统计"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设备管理->信息统计"
,
notes
=
"设备管理->信息统计"
)
public
ResponseModel
<
List
<
Map
<
String
,
Long
>>>
informationStatistics
()
{
public
ResponseModel
<
List
<
Map
<
String
,
Long
>>>
informationStatistics
()
{
return
ResponseHelper
.
buildResponse
(
equipmentServiceImpl
.
informationStatistics
());
return
ResponseHelper
.
buildResponse
(
equipmentServiceImpl
.
informationStatistics
());
}
}
}
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/EquipmentServiceImpl.java
View file @
0e605a2a
...
@@ -240,6 +240,7 @@ public class EquipmentServiceImpl extends BaseService<EquipmentDto, Equipment, E
...
@@ -240,6 +240,7 @@ public class EquipmentServiceImpl extends BaseService<EquipmentDto, Equipment, E
//设备管理->信息统计
//设备管理->信息统计
public
List
<
Map
<
String
,
Long
>>
informationStatistics
()
{
public
List
<
Map
<
String
,
Long
>>
informationStatistics
()
{
return
equipmentMapper
.
informationStatistics
();
Long
companySequenceNbr
=
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanySequenceNbr
();
return
equipmentMapper
.
informationStatistics
(
companySequenceNbr
);
}
}
}
}
\ No newline at end of file
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