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
33f34ed1
Commit
33f34ed1
authored
Dec 28, 2022
by
曹盼盼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
ed5d37b6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
12 deletions
+56
-12
AlertCalledDto.java
.../yeejoin/amos/boot/module/tzs/api/dto/AlertCalledDto.java
+1
-1
EquipmentClassifityEnum.java
...os/boot/module/tzs/api/enums/EquipmentClassifityEnum.java
+35
-0
ElevatorMapper.java
...ejoin/amos/boot/module/tzs/api/mapper/ElevatorMapper.java
+2
-2
ElevatorController.java
...os/boot/module/tzs/biz/controller/ElevatorController.java
+4
-4
EquipmentCategoryController.java
...odule/tzs/biz/controller/EquipmentCategoryController.java
+9
-2
AlertCalledServiceImpl.java
...t/module/tzs/biz/service/impl/AlertCalledServiceImpl.java
+5
-3
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/AlertCalledDto.java
View file @
33f34ed1
...
@@ -162,5 +162,5 @@ public class AlertCalledDto extends BaseDto {
...
@@ -162,5 +162,5 @@ public class AlertCalledDto extends BaseDto {
@ApiModelProperty
(
value
=
"现场照片"
)
@ApiModelProperty
(
value
=
"现场照片"
)
private
List
<
AttachmentDto
>
images
;
private
List
<
AttachmentDto
>
images
;
private
String
equipment
;
}
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/enums/EquipmentClassifityEnum.java
0 → 100644
View file @
33f34ed1
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
enums
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
java.util.HashMap
;
import
java.util.Map
;
@AllArgsConstructor
@Getter
public
enum
EquipmentClassifityEnum
{
/**
**设备分类
*/
锅炉
(
"锅炉"
,
"1000"
),
压力容器
(
"压力容器"
,
"2000"
),
电梯
(
"电梯"
,
"3000"
),
起重机械
(
"起重机械"
,
"4000"
),
厂内专用机动车辆
(
"场(厂)内专用机动车辆"
,
"5000"
),
大型游乐设施
(
"大型游乐设施"
,
"6000"
),
压力管道元件
(
"压力管道元件"
,
"7000"
),
压力管道
(
"压力管道"
,
"8000"
);
private
String
name
;
private
String
code
;
public
static
Map
<
String
,
String
>
getName
=
new
HashMap
<>();
public
static
Map
<
String
,
String
>
getCode
=
new
HashMap
<>();
static
{
for
(
EquipmentClassifityEnum
e
:
EquipmentClassifityEnum
.
values
()){
getName
.
put
(
e
.
code
,
e
.
name
);
getCode
.
put
(
e
.
name
,
e
.
code
);
}
}
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/mapper/ElevatorMapper.java
View file @
33f34ed1
...
@@ -33,6 +33,6 @@ public interface ElevatorMapper extends BaseMapper<Elevator> {
...
@@ -33,6 +33,6 @@ public interface ElevatorMapper extends BaseMapper<Elevator> {
int
queryElevatorListCount
();
int
queryElevatorListCount
();
List
<
ElevatorDto
>
selectExportData
(
@Param
(
"ids"
)
List
<
String
>
ids
);
List
<
ElevatorDto
>
selectExportData
(
@Param
(
"ids"
)
List
<
String
>
ids
);
@Select
(
"select
address
from tcb_elevator where address like concat('%',#{address},'%')"
)
@Select
(
"select
*
from tcb_elevator where address like concat('%',#{address},'%')"
)
List
<
JSONObject
>
getAddressList
(
String
address
);
List
<
ElevatorDto
>
getAddressList
(
String
address
);
}
}
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/ElevatorController.java
View file @
33f34ed1
...
@@ -544,12 +544,12 @@ public class ElevatorController extends BaseController {
...
@@ -544,12 +544,12 @@ public class ElevatorController extends BaseController {
public
ResponseModel
<
List
<
ElevatorListDto
>>
cancelFocusElevator
(
@PathVariable
String
openId
){
public
ResponseModel
<
List
<
ElevatorListDto
>>
cancelFocusElevator
(
@PathVariable
String
openId
){
return
ResponseHelper
.
buildResponse
(
elevatorRelationService
.
getMyFocusElevator
(
openId
));
return
ResponseHelper
.
buildResponse
(
elevatorRelationService
.
getMyFocusElevator
(
openId
));
}
}
/**获取
所有
电梯的安装地址*/
/**获取电梯的安装地址*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/getAddressList"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/getAddressList"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"获取
所有电梯的安装地址"
,
notes
=
"获取所有
电梯的安装地址"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"获取
电梯的安装地址"
,
notes
=
"获取
电梯的安装地址"
)
public
ResponseModel
<
List
<
JSONObject
>>
getAddressList
(
@RequestBody
ElevatorNewDto
elevatorNew
Dto
){
public
ResponseModel
<
List
<
ElevatorDto
>>
getAddressList
(
@RequestBody
ElevatorListDto
elevatorList
Dto
){
return
ResponseHelper
.
buildResponse
(
elevatorMapper
.
getAddressList
(
elevator
NewDto
.
getElevatorDto
().
get
Address
()));
return
ResponseHelper
.
buildResponse
(
elevatorMapper
.
getAddressList
(
elevator
ListDto
.
getElevator
Address
()));
}
}
}
}
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/EquipmentCategoryController.java
View file @
33f34ed1
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
controller
;
import
com.alibaba.fastjson.JSONArray
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -142,8 +143,14 @@ public class EquipmentCategoryController extends BaseController {
...
@@ -142,8 +143,14 @@ public class EquipmentCategoryController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设备分类八大类"
,
notes
=
"设备分类八大类"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设备分类八大类"
,
notes
=
"设备分类八大类"
)
@GetMapping
(
value
=
"/selectClassify"
)
@GetMapping
(
value
=
"/selectClassify"
)
public
ResponseModel
<
List
<
EquipmentCategoryDto
>>
selectClassify
()
{
public
ResponseModel
<
JSONArray
>
selectClassify
()
{
return
ResponseHelper
.
buildResponse
(
equipmentCategoryServiceImpl
.
selectClassify
());
List
<
EquipmentCategoryDto
>
equipmentCategoryDtos
=
equipmentCategoryServiceImpl
.
selectClassify
();
JSONArray
jsonArray
=
new
JSONArray
();
equipmentCategoryDtos
.
forEach
(
e
->{
jsonArray
.
add
(
e
.
getName
());
}
);
return
ResponseHelper
.
buildResponse
(
jsonArray
);
}
}
}
}
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/AlertCalledServiceImpl.java
View file @
33f34ed1
...
@@ -17,6 +17,7 @@ import com.yeejoin.amos.boot.module.tzs.api.dto.*;
...
@@ -17,6 +17,7 @@ import com.yeejoin.amos.boot.module.tzs.api.dto.*;
import
com.yeejoin.amos.boot.module.tzs.api.entity.*
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.*
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.AlertStageEnums
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.AlertStageEnums
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.DispatchPaperEnums
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.DispatchPaperEnums
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.EquipmentClassifityEnum
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.TzsCommonParam
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.TzsCommonParam
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.AlertCalledMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.AlertCalledMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IAlertCalledService
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IAlertCalledService
;
...
@@ -462,10 +463,11 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
...
@@ -462,10 +463,11 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
public
AlertCalledObjsDto
createAlertCalled
(
AlertCalledObjsDto
alertCalledObjsDto
,
AgencyUserModel
user
)
{
public
AlertCalledObjsDto
createAlertCalled
(
AlertCalledObjsDto
alertCalledObjsDto
,
AgencyUserModel
user
)
{
try
{
try
{
// 警情基本信息
// 警情基本信息
AlertCalled
alertCalled
=
BeanDtoVoUtils
.
convert
(
alertCalledObjsDto
.
getAlertCalledDto
(),
AlertCalled
.
class
);
AlertCalled
alertCalled
=
BeanDtoVoUtils
.
convert
(
alertCalledObjsDto
.
getAlertCalledDto
(),
AlertCalled
.
class
);
alertCalled
.
setEquipmentClassification
(
"电梯"
);
alertCalled
.
setEquipmentClassification
(
alertCalledObjsDto
.
getAlertCalledDto
().
getEquipment
());
alertCalled
.
setEquipmentClassificationCode
(
"3000"
);
Map
<
String
,
String
>
getCode
=
EquipmentClassifityEnum
.
getCode
;
String
code
=
getCode
.
get
(
alertCalledObjsDto
.
getAlertCalledDto
().
getEquipment
().
toString
());
alertCalled
.
setEquipmentClassificationCode
(
code
);
alertCalled
.
setCallTime
(
DateUtils
.
longStr2Date
(
alertCalled
.
getCallTimeStr
()));
alertCalled
.
setCallTime
(
DateUtils
.
longStr2Date
(
alertCalled
.
getCallTimeStr
()));
// 判断是否归并警情
// 判断是否归并警情
...
...
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