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
7a44fe74
Commit
7a44fe74
authored
Dec 08, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app 增加默认仓库
parent
7de1f492
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
1 deletion
+29
-1
StatisticsController.java
.../yeejoin/equipmanage/controller/StatisticsController.java
+12
-0
EquipmentSpecificMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
+1
-1
IStatisticsService.java
...a/com/yeejoin/equipmanage/service/IStatisticsService.java
+2
-0
StatisticsServiceImpl.java
...ejoin/equipmanage/service/impl/StatisticsServiceImpl.java
+6
-0
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+8
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/StatisticsController.java
View file @
7a44fe74
...
@@ -5,6 +5,7 @@ import com.yeejoin.equipmanage.service.IStatisticsService;
...
@@ -5,6 +5,7 @@ import com.yeejoin.equipmanage.service.IStatisticsService;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
...
@@ -27,6 +28,8 @@ public class StatisticsController {
...
@@ -27,6 +28,8 @@ public class StatisticsController {
@Autowired
@Autowired
private
IStatisticsService
iStatisticsService
;
private
IStatisticsService
iStatisticsService
;
@Value
(
"${state.code:code}"
)
private
String
stationCode
;
/**
/**
* 根据基本类型统计总数(按仓库)
* 根据基本类型统计总数(按仓库)
*
*
...
@@ -41,6 +44,15 @@ public class StatisticsController {
...
@@ -41,6 +44,15 @@ public class StatisticsController {
return
iStatisticsService
.
getAllCategoryBaseByWarehouseId
(
warehouseId
);
return
iStatisticsService
.
getAllCategoryBaseByWarehouseId
(
warehouseId
);
}
}
@RequestMapping
(
value
=
"/getwarehouseId"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据id查询"
,
notes
=
"根据id查询"
)
public
Map
<
String
,
Object
>
getEquipmentStatusByWarehouseId
()
{
return
iStatisticsService
.
getWarehouseId
(
stationCode
);
}
/**
/**
* 根据装备状态统计总数(按仓库)
* 根据装备状态统计总数(按仓库)
*
*
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
View file @
7a44fe74
...
@@ -174,7 +174,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -174,7 +174,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
Map
<
String
,
Double
>
getEquipLocationInfo
(
Long
equipmentSpecificId
);
Map
<
String
,
Double
>
getEquipLocationInfo
(
Long
equipmentSpecificId
);
Map
<
String
,
Object
>
getEquipSpeInfo
(
@Param
(
"equipmentSpecificId"
)
Long
equipmentSpecificId
);
Map
<
String
,
Object
>
getEquipSpeInfo
(
@Param
(
"equipmentSpecificId"
)
Long
equipmentSpecificId
);
Map
<
String
,
Object
>
getWarehouseId
(
@Param
(
"code"
)
String
code
);
/**
/**
* 根据specificId删除装备相关数据
* 根据specificId删除装备相关数据
* @param specificId specificId
* @param specificId specificId
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IStatisticsService.java
View file @
7a44fe74
...
@@ -21,4 +21,6 @@ public interface IStatisticsService {
...
@@ -21,4 +21,6 @@ public interface IStatisticsService {
* @return List<EquipCategoryVo>
* @return List<EquipCategoryVo>
*/
*/
List
<
EquipCategoryVo
>
equipCategoryVoList
(
String
systemCode
);
List
<
EquipCategoryVo
>
equipCategoryVoList
(
String
systemCode
);
Map
<
String
,
Object
>
getWarehouseId
(
String
orgcode
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/StatisticsServiceImpl.java
View file @
7a44fe74
...
@@ -221,6 +221,12 @@ public class StatisticsServiceImpl implements IStatisticsService {
...
@@ -221,6 +221,12 @@ public class StatisticsServiceImpl implements IStatisticsService {
return
equipmentSpecificMapper
.
selectEquipCategoryNumber
(
fightingSystemEntity
.
getId
());
return
equipmentSpecificMapper
.
selectEquipCategoryNumber
(
fightingSystemEntity
.
getId
());
}
}
@Override
public
Map
<
String
,
Object
>
getWarehouseId
(
String
orgcode
)
{
Map
<
String
,
Object
>
map
=
equipmentSpecificMapper
.
getWarehouseId
(
orgcode
);
return
map
;
}
private
Double
getExtinguishingCountByWarehouseId
(
String
categoryCode
,
Long
warehouseId
)
{
private
Double
getExtinguishingCountByWarehouseId
(
String
categoryCode
,
Long
warehouseId
)
{
List
<
EquipmentCategory
>
categoryList
=
iEquipmentCategoryService
List
<
EquipmentCategory
>
categoryList
=
iEquipmentCategoryService
.
list
(
new
QueryWrapper
<
EquipmentCategory
>().
eq
(
"code"
,
categoryCode
));
.
list
(
new
QueryWrapper
<
EquipmentCategory
>().
eq
(
"code"
,
categoryCode
));
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
7a44fe74
...
@@ -1403,6 +1403,14 @@
...
@@ -1403,6 +1403,14 @@
LEFT JOIN wl_warehouse_structure ws ON sd.warehouse_structure_id = ws.id
LEFT JOIN wl_warehouse_structure ws ON sd.warehouse_structure_id = ws.id
WHERE es.id = #{equipmentSpecificId}
WHERE es.id = #{equipmentSpecificId}
</select>
</select>
<select
id=
"getWarehouseId"
resultType=
"Map"
>
select warehouse_id as warehouseId from idx_biz_station_info where code = #{code}
</select>
<delete
id=
"deleteEquipDataBySpecificId"
>
<delete
id=
"deleteEquipDataBySpecificId"
>
DELETE es, ed, esi, ves, esr, esa, esal, eard FROM
DELETE es, ed, esi, ves, esr, esa, esal, eard FROM
wl_equipment_specific es
wl_equipment_specific es
...
...
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