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
7c35b6ba
Commit
7c35b6ba
authored
Aug 10, 2021
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
3f933174
84672580
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
1291 additions
and
309 deletions
+1291
-309
BaseDto.java
...in/java/com/yeejoin/amos/boot/biz/common/dto/BaseDto.java
+7
-1
LinkageUnitDto.java
...ejoin/amos/boot/module/common/api/dto/LinkageUnitDto.java
+8
-1
PageDto.java
.../com/yeejoin/amos/boot/module/common/api/dto/PageDto.java
+19
-0
EquipFeignClient.java
...n/amos/boot/module/common/api/feign/EquipFeignClient.java
+12
-0
LinkageUnitMapper.java
...amos/boot/module/common/api/mapper/LinkageUnitMapper.java
+25
-5
ILinkageUnitService.java
...s/boot/module/common/api/service/ILinkageUnitService.java
+40
-31
ISourceFileService.java
...os/boot/module/common/api/service/ISourceFileService.java
+11
-1
LinkageUnitMapper.xml
...ommon-api/src/main/resources/mapper/LinkageUnitMapper.xml
+133
-57
AlertCallInfoDto.java
...eejoin/amos/boot/module/tzs/api/dto/AlertCallInfoDto.java
+27
-0
AlertCalledDto.java
.../yeejoin/amos/boot/module/tzs/api/dto/AlertCalledDto.java
+11
-0
DispatchConsultFeedbackDto.java
...s/boot/module/tzs/api/dto/DispatchConsultFeedbackDto.java
+84
-0
DispatchPaperUpdateDto.java
.../amos/boot/module/tzs/api/dto/DispatchPaperUpdateDto.java
+0
-41
DispatchRepairFeedbackDto.java
...os/boot/module/tzs/api/dto/DispatchRepairFeedbackDto.java
+85
-0
DispatchSaveFeedbackDto.java
...amos/boot/module/tzs/api/dto/DispatchSaveFeedbackDto.java
+79
-0
ElevatorDto.java
...com/yeejoin/amos/boot/module/tzs/api/dto/ElevatorDto.java
+21
-1
RescueProcessDto.java
...eejoin/amos/boot/module/tzs/api/dto/RescueProcessDto.java
+3
-0
AlertCalled.java
.../yeejoin/amos/boot/module/tzs/api/entity/AlertCalled.java
+9
-1
AlertCalledMapper.java
...in/amos/boot/module/tzs/api/mapper/AlertCalledMapper.java
+15
-0
IDispatchPaperService.java
...os/boot/module/tzs/api/service/IDispatchPaperService.java
+52
-2
IRescueProcessService.java
...os/boot/module/tzs/api/service/IRescueProcessService.java
+17
-0
AlarmStatisticsVo.java
...eejoin/amos/boot/module/tzs/api/vo/AlarmStatisticsVo.java
+44
-0
AlertCalledVo.java
...om/yeejoin/amos/boot/module/tzs/api/vo/AlertCalledVo.java
+6
-0
AlertCalledMapper.xml
...e-tzs-api/src/main/resources/mapper/AlertCalledMapper.xml
+21
-0
CommandController.java
...boot/module/command/biz/controller/CommandController.java
+21
-5
LinkageUnitController.java
...t/module/common/biz/controller/LinkageUnitController.java
+37
-27
LinkageUnitServiceImpl.java
...odule/common/biz/service/impl/LinkageUnitServiceImpl.java
+0
-0
SourceFileServiceImpl.java
...module/common/biz/service/impl/SourceFileServiceImpl.java
+1
-0
AircraftController.java
...os/boot/module/jcs/biz/controller/AircraftController.java
+50
-15
RemoteWorkFlowService.java
...join/amos/patrol/common/remote/RemoteWorkFlowService.java
+9
-9
AlertCalledController.java
...boot/module/tzs/biz/controller/AlertCalledController.java
+108
-0
DispatchPaperController.java
...ot/module/tzs/biz/controller/DispatchPaperController.java
+86
-21
ElevatorController.java
...os/boot/module/tzs/biz/controller/ElevatorController.java
+7
-7
MaintenanceUnitController.java
.../module/tzs/biz/controller/MaintenanceUnitController.java
+1
-1
RescueProcessController.java
...ot/module/tzs/biz/controller/RescueProcessController.java
+32
-44
RescueStationController.java
...ot/module/tzs/biz/controller/RescueStationController.java
+1
-1
UseUnitController.java
...mos/boot/module/tzs/biz/controller/UseUnitController.java
+8
-2
AlertCalledServiceImpl.java
...t/module/tzs/biz/service/impl/AlertCalledServiceImpl.java
+43
-26
DispatchPaperServiceImpl.java
...module/tzs/biz/service/impl/DispatchPaperServiceImpl.java
+0
-0
DispatchTaskServiceImpl.java
.../module/tzs/biz/service/impl/DispatchTaskServiceImpl.java
+0
-0
ElevatorServiceImpl.java
...boot/module/tzs/biz/service/impl/ElevatorServiceImpl.java
+36
-3
RescueProcessServiceImpl.java
...module/tzs/biz/service/impl/RescueProcessServiceImpl.java
+117
-3
RescueStationServiceImpl.java
...module/tzs/biz/service/impl/RescueStationServiceImpl.java
+2
-2
UseUnitServiceImpl.java
.../boot/module/tzs/biz/service/impl/UseUnitServiceImpl.java
+3
-2
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/dto/BaseDto.java
View file @
7c35b6ba
...
...
@@ -5,6 +5,8 @@ import java.util.Date;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -30,8 +32,12 @@ public class BaseDto implements Serializable{
protected
Date
recDate
;
@ExcelIgnore
@ApiModelProperty
(
value
=
"更新人"
)
@ApiModelProperty
(
value
=
"更新人
id
"
)
protected
String
recUserId
;
@ExcelIgnore
@ApiModelProperty
(
value
=
"更新人"
)
protected
String
recUserName
;
@ExcelIgnore
@ApiModelProperty
(
value
=
"是否删除"
)
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/LinkageUnitDto.java
View file @
7c35b6ba
...
...
@@ -10,6 +10,8 @@ import lombok.EqualsAndHashCode;
import
java.util.Date
;
import
java.util.List
;
import
org.omg.CORBA.PRIVATE_MEMBER
;
/**
* 联动单位
*
...
...
@@ -98,5 +100,10 @@ public class LinkageUnitDto extends BaseDto {
@ApiModelProperty
(
value
=
"联动单位图片"
)
private
List
<
SourceFile
>
image
;
@ApiModelProperty
(
value
=
"车辆数量"
)
private
String
vehicleNumber
;
@ApiModelProperty
(
value
=
"特岗人数"
)
private
String
personNumber
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/PageDto.java
0 → 100644
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
dto
;
import
lombok.Data
;
/**
* @description:
* @author: tw
* @createDate: 2021/8/9
*/
@Data
public
class
PageDto
{
private
int
current
;
private
int
size
;
public
PageDto
(
int
current
,
int
size
)
{
this
.
current
=
current
;
this
.
size
=
size
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/feign/EquipFeignClient.java
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
feign
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.common.api.dto.PageDto
;
import
com.yeejoin.amos.component.feign.config.InnerInvokException
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
@@ -130,4 +131,15 @@ public interface EquipFeignClient {
*/
@RequestMapping
(
value
=
"/building/BuildingtreeAndEquip"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Object
>
getBuildingTreeAndEquip
();
/**
*
*获取视频信息
* @param
* @return
*/
@RequestMapping
(
value
=
"//building/video/page"
,
method
=
RequestMethod
.
GET
)
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
getVideo
(
@RequestParam
Page
page
,
@RequestParam
Long
buildingId
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/mapper/LinkageUnitMapper.java
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
mapper
;
import
java.util.List
;
import
java.util.Map
;
import
org.apache.ibatis.annotations.Param
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.common.api.dto.CompanyDto
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.common.api.dto.LinkageUnitDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.LinkageUnitZhDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.RequestData
;
import
com.yeejoin.amos.boot.module.common.api.entity.LinkageUnit
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
java.util.Map
;
/**
* 联动单位 Mapper 接口
...
...
@@ -43,4 +45,22 @@ public interface LinkageUnitMapper extends BaseMapper<LinkageUnit> {
List
<
LinkageUnitZhDto
>
listLinkageUnitZhDto
(
@Param
(
"pageNum"
)
int
pageNum
,
@Param
(
"pageSize"
)
int
pageSize
,
@Param
(
"par"
)
RequestData
par
);
Integer
listLinkageUnitZhDtoCount
(
@Param
(
"par"
)
RequestData
par
);
/**
* 查询当前存在的联动单位及统计
* @param isDelete
* @param emergencyLinkageUnitCode
* @return
*/
List
<
Map
<
String
,
Object
>>
getEmergencyLinkageUnitCodeGroupByAndCount
();
/**
* 查询包含特岗人数及的具体信息
* @return
*/
Page
<
List
<
LinkageUnitDto
>>
getEmergencyLinkageUnitList
(
IPage
<
LinkageUnitDto
>
page
,
String
unitName
,
String
linkageUnitTypeCode
,
String
emergencyLinkageUnitCode
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/service/ILinkageUnitService.java
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
api
.
service
;
import
java.util.List
;
import
org.typroject.tyboot.core.rdbms.annotation.Condition
;
import
org.typroject.tyboot.core.rdbms.annotation.Operator
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.utils.Menu
;
import
com.yeejoin.amos.boot.module.common.api.dto.LinkageUnitDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.LinkageUnitZhDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.RequestData
;
import
org.typroject.tyboot.core.rdbms.annotation.Condition
;
import
org.typroject.tyboot.core.rdbms.annotation.Operator
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.common.api.entity.LinkageUnit
;
/**
* 联动单位接口类
*
* @author system_generator
* @date 2021-07-16
*/
* 联动单位接口类
*
* @author system_generator
* @date 2021-07-16
*/
public
interface
ILinkageUnitService
{
List
<
LinkageUnitZhDto
>
listLinkageUnitZhDto
(
Integer
pageNum
,
Integer
pageSize
,
RequestData
par
);
Integer
listLinkageUnitZhDtoCount
(
RequestData
par
);
LinkageUnitDto
queryOne
(
Long
sequenceNbr
);
/**
* 联动单位分页查询
*
* @param page
* @param isDelete
* @param unitName 单位名称
* @param linkageUnitType 联动单位类型
* @param emergencyLinkageUnitCode 紧急联动单位类型code
* @return
*/
Page
<
LinkageUnitDto
>
queryForLinkageUnitPage
(
Page
<
LinkageUnitDto
>
page
,
@Condition
(
Operator
.
eq
)
Boolean
isDelete
,
@Condition
(
Operator
.
like
)
String
unitName
,
@Condition
(
Operator
.
eq
)
String
linkageUnitType
,
@Condition
(
Operator
.
eq
)
String
emergencyLinkageUnitCode
);
List
<
LinkageUnitZhDto
>
listLinkageUnitZhDto
(
Integer
pageNum
,
Integer
pageSize
,
RequestData
par
);
Integer
listLinkageUnitZhDtoCount
(
RequestData
par
);
LinkageUnitDto
queryOne
(
Long
sequenceNbr
);
/**
* 联动单位分页查询
*
* @param page
* @param isDelete
* @param unitName 单位名称
* @param linkageUnitType 联动单位类型
* @param emergencyLinkageUnitCode 紧急联动单位类型code
* @return
*/
Page
<
LinkageUnitDto
>
queryForLinkageUnitPage
(
IPage
<
LinkageUnitDto
>
page
,
@Condition
(
Operator
.
eq
)
Boolean
isDelete
,
@Condition
(
Operator
.
like
)
String
unitName
,
@Condition
(
Operator
.
eq
)
String
linkageUnitTypeCode
,
@Condition
(
Operator
.
eq
)
String
emergencyLinkageUnitCode
,
String
inAgreement
);
/**
* 获取当前存在的联动单位的类型组code
* @return
*/
public
List
<
Menu
>
getEmergencyLinkageUnitCodeGroupBy
(
String
type
,
String
rootName
)
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/service/ISourceFileService.java
View file @
7c35b6ba
...
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.common.api.service;
import
com.yeejoin.amos.boot.module.common.api.dto.AttachmentDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.SourceFile
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -13,5 +14,14 @@ import java.util.Map;
* @date 2021-07-16
*/
public
interface
ISourceFileService
{
public
Map
<
String
,
List
<
AttachmentDto
>>
getAttachments
(
Long
sourceId
);
Map
<
String
,
List
<
AttachmentDto
>>
getAttachments
(
Long
sourceId
);
/**
* 批量保存附件
*
* @param sequenceNbr sourceId
* @param attachmentMap
* @return
*/
void
saveAttachments
(
Long
sequenceNbr
,
Map
<
String
,
List
<
AttachmentDto
>>
attachmentMap
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/LinkageUnitMapper.xml
View file @
7c35b6ba
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.common.api.mapper.LinkageUnitMapper"
>
<select
id=
"selectOne"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.LinkageUnitDto"
>
select
d.*,
lu.*
from
(
select
i.INSTANCE_ID instanceId,
i.GROUP_CODE groupCode,
<foreach
collection=
"fieldCodes"
item=
"value"
index=
"key"
separator=
","
>
MAX(CASE WHEN i.FIELD_CODE = #{key} THEN i.FIELD_VALUE END) as ${key}
</foreach>
from
cb_dynamic_form_instance i
where i.GROUP_CODE = #{groupCode}
and is_delete = #{isDelete}
GROUP by
i.INSTANCE_ID ) d,
cb_linkage_unit lu
where
d.instanceId = lu.instance_id
and lu.sequence_nbr = #{sequenceNbr}
and is_delete = #{isDelete}
</select>
<select
id=
"listLinkageUnitZhDto"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.LinkageUnitZhDto"
>
select
a.sequence_nbr sequenceNbr,
a.unit_name unitName,
a.address,
a.latitude,
a.longitude,
Round(st_distance(point(a.longitude,a.latitude),point(#{par.longitude},#{par.latitude}))*111195,1) AS distance
FROM cb_linkage_unit a
where a.longitude is not null and a.latitude is not null
<if
test=
'par.distance!=null'
>
and Round(st_distance(point(a.longitude,a.latitude),point(#{par.longitude},#{par.latitude}))*111195,1)
<
=
#{par.distance}
</if>
ORDER BY distance limit #{pageNum},#{pageSize}
</select>
<select
id=
"listLinkageUnitZhDtoCount"
resultType=
"Integer"
>
select
COUNT(a.sequence_nbr) num
FROM cb_linkage_unit a
where a.longitude is not null and a.latitude is not null
<if
test=
'par.distance!=null'
>
and Round(st_distance(point(a.longitude,a.latitude),point(#{par.longitude},#{par.latitude}))*111195,1)
<
=
#{par.distance}
</if>
</select>
<mapper
namespace=
"com.yeejoin.amos.boot.module.common.api.mapper.LinkageUnitMapper"
>
<select
id=
"selectOne"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.LinkageUnitDto"
>
select
d.*,
lu.*
from
(
select
i.INSTANCE_ID instanceId,
i.GROUP_CODE
groupCode,
<foreach
collection=
"fieldCodes"
item=
"value"
index=
"key"
separator=
","
>
MAX(CASE WHEN i.FIELD_CODE = #{key} THEN i.FIELD_VALUE END)
as ${key}
</foreach>
from
cb_dynamic_form_instance i
where i.GROUP_CODE = #{groupCode}
and
is_delete = #{isDelete}
GROUP by
i.INSTANCE_ID ) d,
cb_linkage_unit lu
where
d.instanceId = lu.instance_id
and lu.sequence_nbr = #{sequenceNbr}
and is_delete = #{isDelete}
</select>
<select
id=
"listLinkageUnitZhDto"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.LinkageUnitZhDto"
>
select
a.sequence_nbr sequenceNbr,
a.unit_name unitName,
a.address,
a.latitude,
a.longitude,
Round(st_distance(point(a.longitude,a.latitude),point(#{par.longitude},#{par.latitude}))*111195,1)
AS distance
FROM cb_linkage_unit a
where a.longitude is not null and
a.latitude is not null
<if
test=
'par.distance!=null'
>
and
Round(st_distance(point(a.longitude,a.latitude),point(#{par.longitude},#{par.latitude}))*111195,1)
<
=
#{par.distance}
</if>
ORDER BY distance limit #{pageNum},#{pageSize}
</select>
<select
id=
"listLinkageUnitZhDtoCount"
resultType=
"Integer"
>
select
COUNT(a.sequence_nbr) num
FROM cb_linkage_unit a
where a.longitude
is not null and a.latitude is not null
<if
test=
'par.distance!=null'
>
and
Round(st_distance(point(a.longitude,a.latitude),point(#{par.longitude},#{par.latitude}))*111195,1)
<
=
#{par.distance}
</if>
</select>
<select
id=
"getEmergencyLinkageUnitCodeGroupByAndCount"
resultType=
"java.util.Map"
>
SELECT
emergency_linkage_unit_code as
emergencyLinkageUnitCode,
COUNT(unit_code) AS count
FROM
cb_linkage_unit
WHERE
is_delete = 0
GROUP BY
emergency_linkage_unit_code
</select>
<select
id=
"getEmergencyLinkageUnitList"
resultType=
"java.util.Map"
>
SELECT
clu.sequence_nbr as sequenceNbr,
clu.unit_name as unitName,
clu.unit_code AS unitCode,
clu.parent_id AS parentId,
clu.linkage_unit_type AS linkageUnitType,
clu.linkage_unit_type_code AS linkageUnitTypeCode,
clu.administrative_divisions AS administrativeDivisions,
clu.administrative_divisions_code AS administrativeDivisionsCode,
clu.address AS address,
clu.longitude AS longitude,
clu.latitude AS latitude,
clu.agreement_start_date AS agreementStartDate,
clu.agreement_end_date AS agreementEndDate,
clu.emergency_linkage_unit AS emergencyLinkageUnit,
clu.emergency_linkage_unit_code AS emergencyLinkageUnitCode,
clu.contact_user AS contactUser,
clu.contact_phone AS contactPhone,
clu.instance_id AS instanceId,
clu.org_code AS orgCode,
clu.rec_user_name AS recUserName,
clu.rec_user_id AS recUserId,
clu.rec_date AS recDate,
clu.is_delete AS isDelete,
cre.vehicle_number AS vehicleNumber,
csps.person_number AS personNumber
FROM
cb_linkage_unit clu
LEFT JOIN cb_rescue_equipment cre ON clu.sequence_nbr = cre.company_id
LEFT JOIN cb_special_position_staff csps ON clu.sequence_nbr =
csps.company_id
WHERE clu.is_delete=0
<if
test=
"unitName != null and unitName != ''"
>
AND clu.unit_name LIKE concat(#{unitName}, '%')
</if>
<if
test=
"linkageUnitTypeCode != null and linkageUnitTypeCode != ''"
>
AND clu.linkage_unit_type_code =#{linkageUnitTypeCode}
</if>
<if
test=
"emergencyLinkageUnitCode != null and emergencyLinkageUnitCode != ''"
>
AND clu.emergency_linkage_unit_code =#{emergencyLinkageUnitCode}
</if>
</select>
</mapper>
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/AlertCallInfoDto.java
0 → 100644
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
/**
* @author litw
* @date 2021-08-09.
*/
@Data
@ApiModel
(
value
=
"AlertCallInfoDto"
,
description
=
"初始化表单数据"
)
public
class
AlertCallInfoDto
{
@ApiModelProperty
(
value
=
"警情工单编号"
)
private
String
workOrderNumber
;
@ApiModelProperty
(
value
=
"接警时间"
)
private
String
callTime
;
@ApiModelProperty
(
value
=
"接警人Id"
)
private
String
recUserId
;
@ApiModelProperty
(
value
=
"接警人"
)
private
String
recUserName
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/AlertCalledDto.java
View file @
7c35b6ba
...
...
@@ -126,4 +126,15 @@ public class AlertCalledDto extends BaseDto {
@ApiModelProperty
(
value
=
"警情地址"
)
private
String
alertAddress
;
/**
* 工单编号
*/
@ApiModelProperty
(
"工单编号"
)
private
String
workOrderNumber
;
@ApiModelProperty
(
value
=
"接警时间str"
)
private
String
callTimeStr
;
@ApiModelProperty
(
value
=
"接警人"
)
protected
String
recUserName
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/DispatchConsultFeedbackDto.java
0 → 100644
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
dto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 投诉回访DTO
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"DispatchConsultFeedbackDto"
,
description
=
"投诉回访DTO"
)
public
class
DispatchConsultFeedbackDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"警情id"
)
private
Long
alertId
;
@ApiModelProperty
(
value
=
"投诉人"
)
private
String
emergency
;
@ApiModelProperty
(
value
=
"投诉人电话"
)
private
String
emergencyCall
;
@ApiModelProperty
(
value
=
"投诉反馈方式"
)
private
String
consultFeedbackType
;
@ApiModelProperty
(
value
=
"投诉反馈结果"
)
private
String
feedbackResult
;
@ApiModelProperty
(
value
=
"投诉回访时间"
)
private
Date
consultFeedbackTime
;
@ApiModelProperty
(
value
=
"投诉回访人"
)
private
String
consultFeedbackUname
;
@ApiModelProperty
(
value
=
"投诉回访人Id"
)
private
String
consultFeedbackUid
;
@ApiModelProperty
(
value
=
"响应人"
)
private
String
responseUserName
;
@ApiModelProperty
(
value
=
"响应人电话"
)
private
String
responseUserTel
;
@ApiModelProperty
(
value
=
"维修反馈方式Code"
)
private
String
feedbackCode
;
@ApiModelProperty
(
value
=
"维修反馈方式"
)
private
String
feedbackType
;
@ApiModelProperty
(
value
=
"处置结果"
)
private
String
actionResult
;
@ApiModelProperty
(
value
=
"回访时间"
)
private
Date
feedbackTime
;
@ApiModelProperty
(
value
=
"维保反馈人id"
)
private
String
feedbackUid
;
@ApiModelProperty
(
value
=
"维保反馈人"
)
private
String
feedbackUname
;
@ApiModelProperty
(
value
=
"电梯故障原因分类"
)
private
String
errorResult
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
Remark
;
@ApiModelProperty
(
value
=
"维保反馈结果"
)
private
String
mainFeedbackResult
;
@ApiModelProperty
(
value
=
"维保完成时间"
)
private
Date
feedbackFinishTime
;
public
DispatchConsultFeedbackDto
()
{
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/DispatchPaperUpdateDto.java
deleted
100644 → 0
View file @
3f933174
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
dto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 派遣单更新DTO
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"DispatchPaperUpdateDto"
,
description
=
"派遣单更新DTO"
)
public
class
DispatchPaperUpdateDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"派遣单Id"
)
private
Long
pageId
;
@ApiModelProperty
(
value
=
"派遣任务单Id"
)
private
Long
taskId
;
@ApiModelProperty
(
value
=
"派遣单位Id"
)
private
Long
orgId
;
@ApiModelProperty
(
value
=
"派遣单位类型code"
)
private
String
orgTypeCode
;
@ApiModelProperty
(
value
=
"派遣单位社会信用代码"
)
private
String
orgCreditCode
;
@ApiModelProperty
(
value
=
"派遣时间"
)
private
Date
dispatchTime
;
public
DispatchPaperUpdateDto
()
{
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/DispatchRepairFeedbackDto.java
0 → 100644
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
dto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 维修回访DTO
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"DispatchRepairFeedbackDto"
,
description
=
"维修回访DTO"
)
public
class
DispatchRepairFeedbackDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"警情id"
)
private
Long
alertId
;
@ApiModelProperty
(
value
=
"报修人"
)
private
String
emergency
;
@ApiModelProperty
(
value
=
"报修人电话"
)
private
String
emergencyCall
;
@ApiModelProperty
(
value
=
"报修反馈方式"
)
private
String
fixFeedbackType
;
@ApiModelProperty
(
value
=
"报修反馈结果"
)
private
String
feedbackResult
;
@ApiModelProperty
(
value
=
"报修回访时间"
)
private
Date
fixFeedbackTime
;
@ApiModelProperty
(
value
=
"报修回访人"
)
private
String
fixFeedbackUname
;
@ApiModelProperty
(
value
=
"报修回访人Id"
)
private
String
fixFeedbackUid
;
@ApiModelProperty
(
value
=
"报修备注"
)
private
String
fixRemark
;
@ApiModelProperty
(
value
=
"响应人"
)
private
String
responseUserName
;
@ApiModelProperty
(
value
=
"响应人电话"
)
private
String
responseUserTel
;
@ApiModelProperty
(
value
=
"维修反馈方式Code"
)
private
String
feedbackCode
;
@ApiModelProperty
(
value
=
"维修反馈方式"
)
private
String
feedbackType
;
@ApiModelProperty
(
value
=
"维修结果"
)
private
String
fixResult
;
@ApiModelProperty
(
value
=
"维修完成时间"
)
private
Date
feedbackFinishTime
;
@ApiModelProperty
(
value
=
"维修反馈人id"
)
private
String
feedbackUid
;
@ApiModelProperty
(
value
=
"维修反馈人"
)
private
String
feedbackUname
;
@ApiModelProperty
(
value
=
"电梯故障原因分类"
)
private
String
errorResult
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
Remark
;
@ApiModelProperty
(
value
=
"回访时间"
)
private
Date
feedbackTime
;
public
DispatchRepairFeedbackDto
()
{
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/DispatchSaveFeedbackDto.java
0 → 100644
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
dto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
* 救援回访DTO
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"DispatchSaveFeedbackDto"
,
description
=
"救援回访DTO"
)
public
class
DispatchSaveFeedbackDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"警情id"
)
private
Long
alertId
;
@ApiModelProperty
(
value
=
"求援人"
)
private
String
emergency
;
@ApiModelProperty
(
value
=
"求援电话"
)
private
String
emergencyCall
;
@ApiModelProperty
(
value
=
"救援回访时间"
)
private
Date
saveFeedbackTime
;
@ApiModelProperty
(
value
=
"救援回访人"
)
private
String
saveFeedbackUser
;
@ApiModelProperty
(
value
=
"救援回访人Id"
)
private
String
saveFeedbackUid
;
@ApiModelProperty
(
value
=
"救援回访结果"
)
private
String
saveFeedbackResult
;
@ApiModelProperty
(
value
=
"响应人"
)
private
String
responseUserName
;
@ApiModelProperty
(
value
=
"响应人电话"
)
private
String
responseUserTel
;
@ApiModelProperty
(
value
=
"维修反馈方式Code"
)
private
String
feedbackCode
;
@ApiModelProperty
(
value
=
"维修反馈方式"
)
private
String
feedbackType
;
@ApiModelProperty
(
value
=
"维修结果"
)
private
String
fixResult
;
@ApiModelProperty
(
value
=
"维修完成时间"
)
private
Date
feedbackFinishTime
;
@ApiModelProperty
(
value
=
"维修反馈人id"
)
private
String
feedbackUid
;
@ApiModelProperty
(
value
=
"维修反馈人"
)
private
String
feedbackUname
;
@ApiModelProperty
(
value
=
"电梯故障原因分类"
)
private
String
errorResult
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
Remark
;
@ApiModelProperty
(
value
=
"回访时间"
)
private
Date
feedbackTime
;
public
DispatchSaveFeedbackDto
()
{
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/ElevatorDto.java
View file @
7c35b6ba
...
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.tzs.api.dto;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.AttachmentDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -9,6 +10,8 @@ import lombok.EqualsAndHashCode;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author tb
...
...
@@ -68,9 +71,15 @@ public class ElevatorDto extends BaseDto {
@ApiModelProperty
(
value
=
"设备类别"
)
private
String
category
;
@ApiModelProperty
(
value
=
"设备类别code"
)
private
String
categoryName
;
@ApiModelProperty
(
value
=
"使用场所分类"
)
private
String
useSiteCategory
;
@ApiModelProperty
(
value
=
"使用场所分类名称"
)
private
String
useSiteCategoryName
;
@ApiModelProperty
(
value
=
"电梯型号"
)
private
String
model
;
...
...
@@ -98,6 +107,9 @@ public class ElevatorDto extends BaseDto {
@ApiModelProperty
(
value
=
"拖动方式"
)
private
String
dragMode
;
@ApiModelProperty
(
value
=
"拖动方式名称"
)
private
String
dragModeName
;
@ApiModelProperty
(
value
=
"电梯使用状态"
)
private
Integer
useStatus
;
...
...
@@ -116,9 +128,15 @@ public class ElevatorDto extends BaseDto {
@ApiModelProperty
(
value
=
"维保类型"
)
private
String
maintainType
;
@ApiModelProperty
(
value
=
"维保类型名称"
)
private
String
maintainTypeName
;
@ApiModelProperty
(
value
=
"维护周期"
)
private
String
maintainPeriod
;
@ApiModelProperty
(
value
=
"维护周期名称"
)
private
String
maintainPeriodName
;
@ApiModelProperty
(
value
=
"维保单位"
)
private
String
maintainUnit
;
...
...
@@ -194,10 +212,12 @@ public class ElevatorDto extends BaseDto {
@ApiModelProperty
(
value
=
"原始表id(来自历史数据库)"
)
private
String
originalId
;
@ApiModelProperty
(
value
=
"附件"
)
private
Map
<
String
,
List
<
AttachmentDto
>>
attachments
;
@ApiModelProperty
(
value
=
"经度"
)
private
String
longitude
;
@ApiModelProperty
(
value
=
"纬度"
)
private
String
latitude
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/dto/RescueProcessDto.java
View file @
7c35b6ba
...
...
@@ -27,6 +27,9 @@ public class RescueProcessDto extends BaseDto {
@ApiModelProperty
(
value
=
"是否派遣"
)
private
Boolean
dispatchStatus
;
@ApiModelProperty
(
value
=
"是否手动派遣"
)
private
Boolean
dispatchByUser
=
false
;
@ApiModelProperty
(
value
=
"派遣时间"
)
private
Date
dispatchTime
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/entity/AlertCalled.java
View file @
7c35b6ba
...
...
@@ -162,6 +162,12 @@ public class AlertCalled extends BaseEntity {
@TableField
(
"org_code"
)
private
String
orgCode
;
/**
* 工单编号
*/
@TableField
(
"work_order_number"
)
private
String
workOrderNumber
;
@TableField
(
"city"
)
@ApiModelProperty
(
value
=
"所属地市"
)
private
String
city
;
...
...
@@ -195,6 +201,8 @@ public class AlertCalled extends BaseEntity {
@ApiModelProperty
(
value
=
"是否处警"
)
private
Boolean
isFatherAlert
=
false
;
@TableField
(
exist
=
false
)
@ApiModelProperty
(
value
=
"接警时间str"
)
private
String
callTimeStr
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/mapper/AlertCalledMapper.java
View file @
7c35b6ba
...
...
@@ -2,6 +2,9 @@ package com.yeejoin.amos.boot.module.tzs.api.mapper;
import
com.yeejoin.amos.boot.module.tzs.api.entity.AlertCalled
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.Map
;
/**
* 警情接警填报记录 Mapper 接口
...
...
@@ -11,4 +14,16 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public
interface
AlertCalledMapper
extends
BaseMapper
<
AlertCalled
>
{
/**
* 接警情况统计
*
* @param beginDate
* @param endDate
* @return
*/
Map
<
String
,
Integer
>
queryAlertStatusCount
(
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"orgCode"
)
String
orgCode
,
@Param
(
"recUserId"
)
String
recUserId
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/service/IDispatchPaperService.java
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
service
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.DispatchConsultFeedbackDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.DispatchPaperFormDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.DispatchRepairFeedbackDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.DispatchSaveFeedbackDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.DispatchPaper
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
...
...
@@ -14,7 +18,7 @@ public interface IDispatchPaperService {
DispatchPaper
selectDispatchPaperByAlertId
(
Long
alertId
);
Object
selectDispatchPaperDtoByAlertId
(
Long
alertId
);
DispatchPaperFormDto
selectDispatchPaperDtoByAlertId
(
Long
alertId
);
/**
* 根据警情id 及 警情类别 派遣人 创建 派遣单
...
...
@@ -23,5 +27,51 @@ public interface IDispatchPaperService {
* @param sendUser
* @return
*/
DispatchPaper
createDispatchPaper
(
Long
alertId
,
String
alertCode
,
AgencyUserModel
sendUser
);
DispatchPaperFormDto
createDispatchPaper
(
Long
alertId
,
String
alertCode
,
AgencyUserModel
sendUser
);
/**
* 根据警情id 返回 救援回访相关信息
* @param alertId
* @return
*/
DispatchSaveFeedbackDto
getDispatchSaveFeedbackDtoByAlertId
(
Long
alertId
);
/**
* 坐席填写救援回访相关信息
* @param dispatchSaveFeedbackDto
* @return
*/
Boolean
saveDispatchSaveFeedback
(
DispatchSaveFeedbackDto
dispatchSaveFeedbackDto
);
/**
* 根据警情id 返回 维修回访相关信息
* @param alertId
* @return
*/
DispatchRepairFeedbackDto
getDispatchRepairFeedbackDtoByAlertId
(
Long
alertId
);
/**
* 坐席填写维修回访相关信息
* @param dispatchRepairFeedbackDto
* @return
*/
Boolean
saveDispatchRepairFeedback
(
DispatchRepairFeedbackDto
dispatchRepairFeedbackDto
);
/**
* 根据警情id 返回 投诉回访相关信息
* @param alertId
* @return
*/
DispatchConsultFeedbackDto
getDispatchConsultFeedbackDtoByAlertId
(
Long
alertId
);
/**
* 坐席填写投诉回访相关信息
* @param dispatchConsultFeedbackDto
* @return
*/
Boolean
saveDispatchConsultFeedback
(
DispatchConsultFeedbackDto
dispatchConsultFeedbackDto
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/service/IRescueProcessService.java
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
service
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.RescueProcessDto
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
/**
* 救援过程表接口类
*
...
...
@@ -9,4 +12,18 @@ package com.yeejoin.amos.boot.module.tzs.api.service;
*/
public
interface
IRescueProcessService
{
/**
* 根据警情id 创建救援过程表 或者获取 救援过程表
* @param alertId
* @return
*/
RescueProcessDto
getProcessByAlertId
(
Long
alertId
);
/**
* 根据警情id 更新救援过程表
* @param rescueProcessDto
* @return
*/
Boolean
updateByAlertId
(
RescueProcessDto
rescueProcessDto
,
AgencyUserModel
sendUser
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/vo/AlarmStatisticsVo.java
0 → 100644
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
java.util.Map
;
/**
* * 警情统计
* @author fengwang
* @date 2021-08-06.
*/
@Data
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"AlarmStatisticsVo"
,
description
=
"AlarmStatisticsVo"
)
public
class
AlarmStatisticsVo
{
@ApiModelProperty
(
value
=
"我的待办数量"
)
private
Integer
todoNum
;
@ApiModelProperty
(
value
=
"今日接警数量"
)
private
Integer
todayAlarmNum
;
@ApiModelProperty
(
value
=
"今日提交数量"
)
private
Integer
submitNum
;
@ApiModelProperty
(
value
=
"全部待办"
)
private
Integer
allNum
;
@ApiModelProperty
(
value
=
"近七天办理数量"
)
private
Map
<
String
,
Integer
>
nearlySevenDaysNum
;
@ApiModelProperty
(
value
=
"故障事件数量"
)
private
Integer
faultRescue
;
@ApiModelProperty
(
value
=
"困人救援数量"
)
private
Integer
sleepyIncident
;
@ApiModelProperty
(
value
=
"投诉建议数量"
)
private
Integer
suggestions
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/vo/AlertCalledVo.java
View file @
7c35b6ba
...
...
@@ -204,4 +204,10 @@ public class AlertCalledVo extends BaseEntity {
@ApiModelProperty
(
value
=
"响应级别"
)
private
String
responseLevel
;
/**
* 工单编号
*/
@ApiModelProperty
(
"工单编号"
)
private
String
workOrderNumber
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/resources/mapper/AlertCalledMapper.xml
View file @
7c35b6ba
...
...
@@ -2,4 +2,25 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.tzs.api.mapper.AlertCalledMapper"
>
<select
id=
"queryAlertStatusCount"
resultType=
"java.util.Map"
>
SELECT
count( 1 ) calledCount,
sum( CASE WHEN father_alert = null THEN 1 ELSE 0 END ) majorAlertCount,
sum( CASE WHEN alarm_type_code = 'KRJY' THEN 1 ELSE 0 END ) sleepyIncidentCount,
sum( CASE WHEN alarm_type_code = 'GZWX' THEN 1 ELSE 0 END ) faultRescueCount,
sum( CASE WHEN alarm_type_code = 'TSZX' THEN 1 ELSE 0 END ) suggestionsCount
FROM
tz_alert_called
WHERE 1 = 1
<if
test=
"beginDate != null and beginDate != ''"
>
and call_time >= #{beginDate}
</if>
<if
test=
"endDate != null and endDate != ''"
>
and call_time
<![CDATA[ <= ]]>
#{endDate}
</if>
<if
test=
"orgCode != null and orgCode != '' and recUserId != null and recUserId != ''"
>
and org_code= #{orgCode}
or rec_user_id = #{recUserId}
</if>
</select>
</mapper>
amos-boot-module/amos-boot-module-biz/amos-boot-module-command-biz/src/main/java/com/yeejoin/amos/boot/module/command/biz/controller/CommandController.java
View file @
7c35b6ba
...
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.OrderItem
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.service.IDataDictionaryService
;
...
...
@@ -51,10 +52,7 @@ import java.io.File;
import
java.io.FileInputStream
;
import
java.net.URI
;
import
java.net.URISyntaxException
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.UUID
;
import
java.util.*
;
/**
* *指挥资源Api
...
...
@@ -510,7 +508,7 @@ public class CommandController extends BaseController {
page
.
setCurrent
(
pageNum
);
page
.
setSize
(
pageSize
);
Page
<
LinkageUnitDto
>
linkageUnitDtoPage
=
iLinkageUnitService
.
queryForLinkageUnitPage
(
page
,
false
,
unitName
,
linkageUnitType
,
null
);
unitName
,
linkageUnitType
,
null
,
inAgreement
);
return
ResponseHelper
.
buildResponse
(
linkageUnitDtoPage
);
}
...
...
@@ -803,6 +801,24 @@ public class CommandController extends BaseController {
return
ResponseHelper
.
buildResponse
(
li
);
}
/**
* 分页获取视频
*
* @param
* @return
*/
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/getVideo"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页获取视频"
,
notes
=
"分页获取视频"
)
public
ResponseModel
<
Object
>
getVideo
(
long
current
,
long
size
)
throws
Exception
{
Page
page
=
new
Page
(
current
,
size
);
List
<
OrderItem
>
list
=
OrderItem
.
ascs
(
"id"
);
page
.
setOrders
(
list
);
ResponseModel
<
Page
<
Map
<
String
,
Object
>>>
date
=
equipFeignClient
.
getVideo
(
page
,
0
l
);
return
ResponseHelper
.
buildResponse
(
date
!=
null
?
date
.
getResult
():
null
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/LinkageUnitController.java
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
common
.
biz
.
controller
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.LinkageUnitServiceImpl
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.common.api.dto.LinkageUnitDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
com.yeejoin.amos.boot.module.common.api.entity.LinkageUnit
;
import
com.yeejoin.amos.boot.module.common.api.service.ILinkageUnitService
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.LinkageUnitServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
/**
...
...
@@ -37,6 +41,9 @@ public class LinkageUnitController extends BaseController {
@Autowired
LinkageUnitServiceImpl
linkageUnitServiceImpl
;
@Autowired
ILinkageUnitService
linkageUnitService
;
/**
* 新增联动单位
...
...
@@ -116,20 +123,12 @@ public class LinkageUnitController extends BaseController {
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"联动单位分页查询"
,
notes
=
"联动单位分页查询"
)
public
ResponseModel
<
Page
<
LinkageUnitDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
String
unitName
,
String
linkageUnitType
,
String
inAgreement
,
String
emergencyLinkageUnitCode
)
{
Page
<
LinkageUnitDto
>
page
=
new
Page
<
LinkageUnitDto
>();
(
value
=
"size"
)
int
size
,
String
unitName
,
String
linkageUnitType
Code
,
String
inAgreement
,
String
emergencyLinkageUnitCode
)
{
Page
<
LinkageUnitDto
>
page
=
new
Page
<
LinkageUnitDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
Page
<
LinkageUnitDto
>
linkageUnitDtoPage
=
linkageUnitServiceImpl
.
queryForLinkageUnitPage
(
page
,
false
,
unitName
,
linkageUnitType
,
emergencyLinkageUnitCode
);
Date
now
=
new
Date
();
List
<
LinkageUnitDto
>
linkageUnitDtoList
=
linkageUnitDtoPage
.
getRecords
().
stream
().
map
(
item
->
{
boolean
isInAgreement
=
DateUtils
.
belongCalendar
(
now
,
item
.
getAgreementStartDate
(),
item
.
getAgreementEndDate
());
item
.
setInAgreement
(
isInAgreement
?
"是"
:
"否"
);
return
item
;
}).
filter
(
item
->
StringUtils
.
isEmpty
(
inAgreement
)
||
inAgreement
.
equals
(
item
.
getInAgreement
())).
collect
(
Collectors
.
toList
());
linkageUnitDtoPage
.
setRecords
(
linkageUnitDtoList
);
Page
<
LinkageUnitDto
>
linkageUnitDtoPage
=
linkageUnitServiceImpl
.
queryForLinkageUnitPage
(
page
,
false
,
unitName
,
linkageUnitTypeCode
,
emergencyLinkageUnitCode
,
inAgreement
);
return
ResponseHelper
.
buildResponse
(
linkageUnitDtoPage
);
}
...
...
@@ -144,4 +143,15 @@ public class LinkageUnitController extends BaseController {
public
ResponseModel
<
List
<
LinkageUnitDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
linkageUnitServiceImpl
.
queryForLinkageUnitList
(
false
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"联动单位列表树及统计"
,
notes
=
"联动单位列表树及统计"
)
@GetMapping
(
value
=
"/getLinkageUnitTree"
)
public
ResponseModel
<
Object
>
getLinkageUnitTree
(
@RequestParam
String
type
,
@RequestParam
String
rootName
)
{
return
ResponseHelper
.
buildResponse
(
linkageUnitService
.
getEmergencyLinkageUnitCodeGroupBy
(
type
,
rootName
));
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/LinkageUnitServiceImpl.java
View file @
7c35b6ba
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/SourceFileServiceImpl.java
View file @
7c35b6ba
...
...
@@ -86,6 +86,7 @@ public class SourceFileServiceImpl extends BaseService<SourceFileDto, SourceFile
/**
* 保存附件
*/
@Override
public
void
saveAttachments
(
Long
sequenceNbr
,
Map
<
String
,
List
<
AttachmentDto
>>
attachmentMap
)
{
if
(!
ValidationUtil
.
isEmpty
(
attachmentMap
))
{
List
<
SourceFile
>
sourceFiles
=
Lists
.
newArrayList
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/AircraftController.java
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
controller
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.common.api.dto.ExcelDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.FormValue
;
import
com.yeejoin.amos.boot.module.common.api.excel.ExcelUtil
;
import
com.yeejoin.amos.boot.module.common.api.feign.IotFeignClient
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AircraftDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AircraftListTreeDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.KeyValueLabel
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.Aircraft
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.AircraftServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertCalledServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertFormValueServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.DataSourcesImpl
;
import
io.swagger.annotations.Api
;
...
...
@@ -28,10 +34,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
/**
...
...
@@ -51,6 +54,9 @@ public class AircraftController extends BaseController {
DataSourcesImpl
dataSourcesImpl
;
@Autowired
IotFeignClient
iotFeignClient
;
@Autowired
private
AlertFormValueServiceImpl
iAlertFormValueService
;
/**
* 新增航空器信息
*
...
...
@@ -161,14 +167,13 @@ public class AircraftController extends BaseController {
@GetMapping
(
value
=
"/getAircraftNum"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取24小时内的航班号"
,
notes
=
"获取24小时内的航班号"
)
public
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
getAircraftNum
()
{
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
Map
<
String
,
Object
>
map
=
new
HashedMap
();
Map
<
String
,
Object
>
map1
=
new
HashedMap
();
map
.
put
(
"id"
,
"1"
);
map
.
put
(
"name"
,
"测试"
);
map1
.
put
(
"id"
,
"12"
);
map1
.
put
(
"name"
,
"测试2"
);
list
.
add
(
map1
);
list
.
add
(
map
);
return
ResponseHelper
.
buildResponse
(
list
);
ResponseModel
<
List
<
Map
<
String
,
Object
>>>
dataModel
=
iotFeignClient
.
findImgByFileCategory
();
if
(
dataModel
!=
null
)
{
List
<
Map
<
String
,
Object
>>
listmap
=
dataModel
.
getResult
();
return
ResponseHelper
.
buildResponse
(
listmap
);
}
return
ResponseHelper
.
buildResponse
(
null
);
}
/**
...
...
@@ -195,7 +200,37 @@ public class AircraftController extends BaseController {
}
}
return
ResponseHelper
.
buildResponse
(
map1
);
}
}
/**
*
* 通过航班号,查询最新的航班信息
*
* **/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getAircraftDetailsByAlertId/{id}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据灾情id 查询最新的航班信息"
,
notes
=
"根据灾情id 查询最新的航班信息"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getAircraftDetailsByAlertId
(
@PathVariable
Long
id
)
{
QueryWrapper
<
AlertFormValue
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"alert_called_id"
,
id
);
// 警情动态表单数据
List
<
KeyValueLabel
>
listdate
=
new
ArrayList
<>();
List
<
AlertFormValue
>
list
=
iAlertFormValueService
.
list
(
queryWrapper
);
String
num
=
null
;
if
(
list
!=
null
&&
list
.
size
()>
0
)
{
for
(
AlertFormValue
alertFormValue
:
list
)
{
if
(
"flightNumber"
.
equals
(
alertFormValue
.
getFieldCode
())){
num
=
alertFormValue
.
getFieldValue
();
}
}
}
Map
<
String
,
Object
>
map
=
new
HashedMap
();
ResponseModel
<
Map
<
String
,
Object
>>
dataModel
=
iotFeignClient
.
getDynamicFlightInfo
(
num
);
if
(
dataModel
!=
null
)
{
map
=
dataModel
.
getResult
();
}
return
ResponseHelper
.
buildResponse
(
map
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/common/remote/RemoteWorkFlowService.java
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
patrol
.
common
.
remote
;
import
java.util.Map
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.StringUtils
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.google.common.collect.Maps
;
import
com.yeejoin.amos.patrol.business.constants.XJConstant
;
import
com.yeejoin.amos.patrol.business.param.LatentDangerListParam
;
import
com.yeejoin.amos.patrol.business.util.HttpUtil
;
import
com.yeejoin.amos.patrol.common.enums.WorkFlowUriEnum
;
import
com.yeejoin.amos.patrol.common.enums.YesOrNoEnum
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.StringUtils
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
java.util.Map
;
@Service
(
"remoteWorkFlowService"
)
public
class
RemoteWorkFlowService
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/AlertCalledController.java
View file @
7c35b6ba
...
...
@@ -3,11 +3,15 @@ package com.yeejoin.amos.boot.module.tzs.biz.controller;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.SystemClock
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.google.common.collect.Maps
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCallInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledObjsDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ESAlertCalledDto
;
...
...
@@ -15,6 +19,7 @@ import com.yeejoin.amos.boot.module.tzs.api.dto.ESAlertCalledRequestDto;
import
com.yeejoin.amos.boot.module.tzs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.DispatchPaper
;
import
com.yeejoin.amos.boot.module.tzs.api.vo.AlarmStatisticsVo
;
import
com.yeejoin.amos.boot.module.tzs.api.vo.AlertCalledVo
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.AlertCalledServiceImpl
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.AlertFormValueServiceImpl
;
...
...
@@ -41,7 +46,9 @@ import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.lang.reflect.Field
;
import
java.text.ParseException
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -89,6 +96,7 @@ public class AlertCalledController extends BaseController {
// AlertCalled alertCalled = alertCalledObjsDto.getAlertCalled();
// alertCalled.setOrgCode(String.valueOf(code));
// alertCalledObjsDto.setAlertCalled(alertCalled);
alertCalledObjsDto
=
iAlertCalledService
.
createAlertCalled
(
alertCalledObjsDto
);
return
ResponseHelper
.
buildResponse
(
alertCalledObjsDto
.
getAlertCalledDto
());
}
...
...
@@ -122,6 +130,7 @@ public class AlertCalledController extends BaseController {
}
/**
* 根据id查询
*
...
...
@@ -136,6 +145,105 @@ public class AlertCalledController extends BaseController {
}
/**
* 生成工单编号报警人及报警时间
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getWorkOderNumber"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"生成工单编号报警人及报警时间"
,
notes
=
"生成工单编号报警人及报警时间"
)
public
ResponseModel
<
AlertCallInfoDto
>
selectOne
()
throws
ParseException
{
String
workOrderNumber
=
nextId
();
AlertCallInfoDto
alertCallInfoDto
=
new
AlertCallInfoDto
();
alertCallInfoDto
.
setCallTime
(
DateUtils
.
stampToDate
(
System
.
currentTimeMillis
(),
"yyyy-MM-dd HH:mm:ss "
));
alertCallInfoDto
.
setWorkOrderNumber
(
workOrderNumber
);
alertCallInfoDto
.
setRecUserId
(
getUserInfo
().
getUserId
());
alertCallInfoDto
.
setRecUserName
(
getUserInfo
().
getUserName
());
return
ResponseHelper
.
buildResponse
(
alertCallInfoDto
);
}
/**
* 获取下一个 工单编号
*
* @return 下一个 工单编号
*/
public
synchronized
String
nextId
()
throws
ParseException
{
String
number
=
DateUtils
.
stampToDate
(
SystemClock
.
now
(),
"yyyy-MM-dd HH:mm:ss SSS"
);
String
newNumber
=
number
.
replace
(
"-"
,
""
).
replace
(
" "
,
""
).
replace
(
":"
,
""
);
ReginParams
reginParams
=
JSONObject
.
parseObject
(
null
!=
redisUtils
.
get
(
buildKey
(
getToken
()))
?
redisUtils
.
get
(
buildKey
(
getToken
())).
toString
()
:
null
,
ReginParams
.
class
);
// Map<String, Object> map = iAlertCalledService.getAlertInfoList(DateUtils.dateFormat(new Date(),"")+" 00:00:00",
// DateUtils.dateFormat(new Date(),"")+" 23:59:59",reginParams.getCompany().getOrgCode(),
// reginParams.getUserModel().getUserId());
Map
<
String
,
Object
>
map
=
iAlertCalledService
.
getAlertInfoList
(
DateUtils
.
dateFormat
(
new
Date
(),
""
)+
" 00:00:00"
,
DateUtils
.
dateFormat
(
new
Date
(),
""
)+
" 23:59:59"
,
null
,
null
);
StringBuilder
stringBuilder
=
new
StringBuilder
();
stringBuilder
.
append
(
newNumber
);
String
workOrderNumber
=
stringBuilder
.
append
(
map
.
get
(
"calledCount"
)
==
null
?
"1"
:
String
.
valueOf
(
Integer
.
parseInt
(
map
.
get
(
"calledCount"
).
toString
())
+
1
)).
toString
()
;
return
workOrderNumber
;
}
/**
* 警情统计
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/alertStatistics"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"警情统计"
,
notes
=
"警情统计"
)
public
ResponseModel
<
AlarmStatisticsVo
>
alertStatistics
()
throws
ParseException
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
null
!=
redisUtils
.
get
(
buildKey
(
getToken
()))
?
redisUtils
.
get
(
buildKey
(
getToken
())).
toString
()
:
null
,
ReginParams
.
class
);
//我的待办数量
QueryWrapper
<
AlertCalled
>
todoNumQueryWrapper
=
new
QueryWrapper
<>();
//全部待办数量
QueryWrapper
<
AlertCalled
>
allNumQueryWrapper
=
new
QueryWrapper
<>();
AlarmStatisticsVo
alarmStatisticsVo
=
new
AlarmStatisticsVo
();
todoNumQueryWrapper
.
eq
(
"alert_status"
,
false
);
allNumQueryWrapper
.
eq
(
"alert_status"
,
false
);
if
(
null
!=
reginParams
)
{
todoNumQueryWrapper
.
eq
(
"rec_user_id"
,
reginParams
.
getUserModel
().
getUserId
());
todoNumQueryWrapper
.
or
(
true
);
todoNumQueryWrapper
.
eq
(
"org_code"
,
reginParams
.
getCompany
().
getOrgCode
());
alarmStatisticsVo
.
setTodoNum
(
iAlertCalledService
.
list
(
todoNumQueryWrapper
).
size
());
alarmStatisticsVo
.
setAllNum
(
iAlertCalledService
.
list
(
allNumQueryWrapper
).
size
());
Map
<
String
,
Object
>
map
=
iAlertCalledService
.
getAlertInfoList
(
DateUtils
.
dateFormat
(
new
Date
(),
""
)+
" 00:00:00"
,
DateUtils
.
dateFormat
(
new
Date
(),
""
)+
" 23:59:59"
,
reginParams
.
getCompany
().
getOrgCode
(),
reginParams
.
getUserModel
().
getUserId
());
// 当天接警
alarmStatisticsVo
.
setTodayAlarmNum
(
map
.
get
(
"calledCount"
)
==
null
?
0
:
Integer
.
valueOf
(
map
.
get
(
"calledCount"
).
toString
()))
;
//当天提交
alarmStatisticsVo
.
setTodayAlarmNum
(
map
.
get
(
"majorAlertCount"
)
==
null
?
0
:
Integer
.
valueOf
(
map
.
get
(
"majorAlertCount"
).
toString
()))
;
//投诉咨询数量
alarmStatisticsVo
.
setSuggestions
(
map
.
get
(
"suggestionsCount"
)
==
null
?
0
:
Integer
.
valueOf
(
map
.
get
(
"suggestionsCount"
).
toString
()))
;
//故障维修数量
alarmStatisticsVo
.
setSuggestions
(
map
.
get
(
"faultRescueCount"
)
==
null
?
0
:
Integer
.
valueOf
(
map
.
get
(
"faultRescueCount"
).
toString
()))
;
//困人救援数量
alarmStatisticsVo
.
setSuggestions
(
map
.
get
(
"sleepyIncidentCount"
)
==
null
?
0
:
Integer
.
valueOf
(
map
.
get
(
"sleepyIncidentCount"
).
toString
()))
;
Map
<
String
,
Integer
>
recordMap
=
Maps
.
newHashMap
();
// 近七天办理数量
for
(
int
i
=
1
;
i
<
8
;
i
++)
{
Map
<
String
,
Object
>
nearlySevenDaysMap
=
iAlertCalledService
.
getAlertInfoList
(
DateUtils
.
dateFormat
(
DateUtils
.
dateAddDays
(
new
Date
(),
-
i
),
""
)+
" 00:00:00"
,
DateUtils
.
dateFormat
(
DateUtils
.
dateAddDays
(
new
Date
(),
-
i
),
""
)+
" 23:59:59"
,
reginParams
.
getCompany
().
getOrgCode
(),
reginParams
.
getUserModel
().
getUserId
());
recordMap
.
put
(
DateUtils
.
dateFormat
(
DateUtils
.
dateAddDays
(
new
Date
(),
-
i
),
""
),
nearlySevenDaysMap
.
get
(
"calledCount"
)
==
null
?
0
:
Integer
.
valueOf
(
nearlySevenDaysMap
.
get
(
"calledCount"
).
toString
()));
}
alarmStatisticsVo
.
setNearlySevenDaysNum
(
recordMap
);
}
return
ResponseHelper
.
buildResponse
(
alarmStatisticsVo
);
}
/**
* 列表分页查询
*
* @param pageNum 当前页
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/DispatchPaperController.java
View file @
7c35b6ba
...
...
@@ -4,8 +4,11 @@ import com.alibaba.fastjson.JSONObject;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.DispatchConsultFeedbackDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.DispatchPaperDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.DispatchPaperFormDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.DispatchRepairFeedbackDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.DispatchSaveFeedbackDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.DispatchPaper
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.DispatchPaperServiceImpl
;
import
io.swagger.annotations.Api
;
...
...
@@ -42,28 +45,90 @@ public class DispatchPaperController extends BaseController {
@Autowired
RedisUtils
redisUtils
;
/**
* 新增派遣单
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增派遣单"
,
notes
=
"新增派遣单"
)
public
ResponseModel
<
DispatchPaperFormDto
>
save
(
@RequestBody
DispatchPaperFormDto
dispatchPaperFormDto
)
{
if
(
ValidationUtil
.
isEmpty
(
dispatchPaperFormDto
)
||
ValidationUtil
.
isEmpty
(
dispatchPaperFormDto
.
getDispatchPaper
()))
/**
* 通过警情id 获取 救援回访相关信息
* @param alertId
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/feedback/save/{alertId}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"通过警情id 获取 救援回访相关信息"
,
notes
=
"通过警情id 获取 救援回访相关信息"
)
public
ResponseModel
<
DispatchSaveFeedbackDto
>
getSaveFeedback
(
@PathVariable
Long
alertId
)
{
DispatchSaveFeedbackDto
dispatchSaveFeedbackDto
=
dispatchPaperServiceImpl
.
getDispatchSaveFeedbackDtoByAlertId
(
alertId
);
return
ResponseHelper
.
buildResponse
(
dispatchSaveFeedbackDto
);
}
/**
* 保存救援回访信息
* @param dispatchSaveFeedbackDto
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/feedback/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"保存救援回访信息"
,
notes
=
"保存救援回访信息"
)
public
ResponseModel
<
Boolean
>
saveSaveFeedBack
(
@RequestBody
DispatchSaveFeedbackDto
dispatchSaveFeedbackDto
)
{
if
(
ValidationUtil
.
isEmpty
(
dispatchSaveFeedbackDto
)
||
ValidationUtil
.
isEmpty
(
dispatchSaveFeedbackDto
.
getAlertId
()))
throw
new
BadRequest
(
"参数校验失败."
);
return
ResponseHelper
.
buildResponse
(
dispatchPaperServiceImpl
.
saveDispatchSaveFeedback
(
dispatchSaveFeedbackDto
));
}
/**
* 通过警情id 获取 维修回访相关信息
* @param alertId
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/feedback/repair/{alertId}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"通过警情id 获取 维修回访相关信息"
,
notes
=
"通过警情id 获取 维修回访相关信息"
)
public
ResponseModel
<
DispatchRepairFeedbackDto
>
getRepairFeedBack
(
@PathVariable
Long
alertId
)
{
DispatchRepairFeedbackDto
dispatchRepairFeedbackDto
=
dispatchPaperServiceImpl
.
getDispatchRepairFeedbackDtoByAlertId
(
alertId
);
return
ResponseHelper
.
buildResponse
(
dispatchRepairFeedbackDto
);
}
/**
* 保存维修回访信息
* @param dispatchRepairFeedbackDto
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/feedback/repair"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"保存维修回访信息"
,
notes
=
"保存维修回访信息"
)
public
ResponseModel
<
Boolean
>
saveRepairFeedBack
(
@RequestBody
DispatchRepairFeedbackDto
dispatchRepairFeedbackDto
)
{
if
(
ValidationUtil
.
isEmpty
(
dispatchRepairFeedbackDto
)
||
ValidationUtil
.
isEmpty
(
dispatchRepairFeedbackDto
.
getAlertId
()))
throw
new
BadRequest
(
"参数校验失败."
);
return
ResponseHelper
.
buildResponse
(
dispatchPaperServiceImpl
.
saveDispatchRepairFeedback
(
dispatchRepairFeedbackDto
));
}
/**
* 通过警情id 获取 投诉回访相关信息
* @param alertId
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/feedback/consult/{alertId}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"通过警情id 获取 投诉回访相关信息"
,
notes
=
"通过警情id 获取 投诉回访相关信息"
)
public
ResponseModel
<
DispatchConsultFeedbackDto
>
getConsultFeedBack
(
@PathVariable
Long
alertId
)
{
DispatchConsultFeedbackDto
dispatchConsultFeedbackDto
=
dispatchPaperServiceImpl
.
getDispatchConsultFeedbackDtoByAlertId
(
alertId
);
return
ResponseHelper
.
buildResponse
(
dispatchConsultFeedbackDto
);
}
/**
* 保存投诉回访信息
* @param dispatchConsultFeedbackDto
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/feedback/consult"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"保存投诉回访信息"
,
notes
=
"保存投诉回访信息"
)
public
ResponseModel
<
Boolean
>
saveConsultFeedBack
(
@RequestBody
DispatchConsultFeedbackDto
dispatchConsultFeedbackDto
)
{
if
(
ValidationUtil
.
isEmpty
(
dispatchConsultFeedbackDto
)
||
ValidationUtil
.
isEmpty
(
dispatchConsultFeedbackDto
.
getAlertId
()))
throw
new
BadRequest
(
"参数校验失败."
);
ReginParams
reginParams
=
JSONObject
.
parseObject
(
null
!=
redisUtils
.
get
(
buildKey
(
getToken
()))
?
redisUtils
.
get
(
buildKey
(
getToken
())).
toString
()
:
null
,
ReginParams
.
class
);
//获取当前登录人公司
String
orgCode
=
reginParams
.
getCompany
().
getOrgCode
();
DispatchPaper
dispatchPaper
=
dispatchPaperFormDto
.
getDispatchPaper
();
dispatchPaper
.
setOrgCode
(
orgCode
);
dispatchPaperFormDto
.
setDispatchPaper
(
dispatchPaper
);
dispatchPaperFormDto
=
dispatchPaperServiceImpl
.
createDispatchPaper
(
dispatchPaperFormDto
);
return
ResponseHelper
.
buildResponse
(
dispatchPaperFormDto
);
return
ResponseHelper
.
buildResponse
(
dispatchPaperServiceImpl
.
saveDispatchConsultFeedback
(
dispatchConsultFeedbackDto
));
}
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/ElevatorController.java
View file @
7c35b6ba
...
...
@@ -38,7 +38,7 @@ import java.util.List;
*/
@RestController
@Api
(
tags
=
"电梯Api"
)
@RequestMapping
(
value
=
"/
tzs/
elevator"
)
@RequestMapping
(
value
=
"/elevator"
)
public
class
ElevatorController
extends
BaseController
{
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ElevatorController
.
class
);
...
...
@@ -52,7 +52,7 @@ public class ElevatorController extends BaseController {
* @param elevatorDto 新增参数
* @return 返回结果
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增电梯"
,
notes
=
"新增电梯"
)
public
ResponseModel
<
Boolean
>
saveElevator
(
@RequestBody
ElevatorDto
elevatorDto
)
{
...
...
@@ -67,12 +67,12 @@ public class ElevatorController extends BaseController {
* @param id id
* @return 返回结果
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
DELETE
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据id删除"
,
notes
=
"根据id删除"
)
public
ResponseModel
<
Boolean
>
deleteById
(
@PathVariable
Long
id
)
{
boolean
remove
=
iElevatorService
.
removeById
(
id
);
return
ResponseHelper
.
buildResponse
(
remove
);
boolean
remove
d
=
iElevatorService
.
removeById
(
id
);
return
ResponseHelper
.
buildResponse
(
remove
d
);
}
/**
...
...
@@ -81,7 +81,7 @@ public class ElevatorController extends BaseController {
* @param elevatorDto 修改参数
* @return 返回结果
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/updateById"
,
method
=
RequestMethod
.
PUT
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"修改电梯"
,
notes
=
"修改电梯"
)
public
ResponseModel
<
Boolean
>
updateByIdElevator
(
@RequestBody
ElevatorDto
elevatorDto
)
{
...
...
@@ -211,7 +211,7 @@ public class ElevatorController extends BaseController {
* @param elevatorDto 查询参数
* @return 查询结果
*/
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/query_elevator_list"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询电梯信息"
,
notes
=
"分页查询电梯信息"
)
public
ResponseModel
<
IPage
<
ElevatorVo
>>
queryElevatorList
(
String
pageNum
,
String
pageSize
,
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/MaintenanceUnitController.java
View file @
7c35b6ba
...
...
@@ -41,7 +41,7 @@ import java.util.Arrays;
*/
@RestController
@Api
(
tags
=
"维保单位Api"
)
@RequestMapping
(
value
=
"/
tzs/
maintenance-unit"
)
@RequestMapping
(
value
=
"/maintenance-unit"
)
public
class
MaintenanceUnitController
extends
BaseController
{
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
MaintenanceUnitController
.
class
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/RescueProcessController.java
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
controller
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.RescueStation
;
import
com.yeejoin.amos.boot.module.tzs.biz.utils.BeanDtoVoUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.Date
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.RescueProcessServiceImpl
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -31,57 +39,37 @@ public class RescueProcessController extends BaseController {
@Autowired
RescueProcessServiceImpl
rescueProcessServiceImpl
;
/**
* 新增救援过程表
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增救援过程表"
,
notes
=
"新增救援过程表"
)
public
ResponseModel
<
RescueProcessDto
>
save
(
@RequestBody
RescueProcessDto
model
)
{
model
=
rescueProcessServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
@Autowired
RedisUtils
redisUtils
;
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
* 根据警情id 更新救援信息表
* @param model
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新救援过程表"
,
notes
=
"根据sequenceNbr更新救援过程表"
)
public
ResponseModel
<
RescueProcessDto
>
updateBySequenceNbrRescueProcess
(
@RequestBody
RescueProcessDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
rescueProcessServiceImpl
.
updateWithModel
(
model
));
@PostMapping
(
value
=
"/updateByAlertId"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据警情id 更新救援信息表"
,
notes
=
"根据警情id 更新救援信息表"
)
public
ResponseModel
<
Boolean
>
save
(
@RequestBody
RescueProcessDto
model
)
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
null
!=
redisUtils
.
get
(
buildKey
(
getToken
()))
?
redisUtils
.
get
(
buildKey
(
getToken
())).
toString
()
:
null
,
ReginParams
.
class
);
boolean
update
=
rescueProcessServiceImpl
.
updateByAlertId
(
model
,
reginParams
.
getUserModel
());
return
ResponseHelper
.
buildResponse
(
update
);
}
/**
* 根据sequenceNbr删除
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除救援过程表"
,
notes
=
"根据sequenceNbr删除救援过程表"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
rescueProcessServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
/**
* 根据警情id 获取救援过程表
* @param alertId
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/
{sequenceNbr
}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据
sequenceNbr查询单个救援过程表"
,
notes
=
"根据sequenceNbr查询单个
救援过程表"
)
public
ResponseModel
<
RescueProcessDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
rescueProcessServiceImpl
.
queryBySeq
(
sequenceNbr
));
@GetMapping
(
value
=
"/
alert/{alertId
}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据
警情id 获取救援过程表"
,
notes
=
"根据警情id 获取
救援过程表"
)
public
ResponseModel
<
RescueProcessDto
>
selectOne
(
@PathVariable
Long
alertId
)
{
return
ResponseHelper
.
buildResponse
(
rescueProcessServiceImpl
.
getProcessByAlertId
(
alertId
));
}
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/RescueStationController.java
View file @
7c35b6ba
...
...
@@ -37,7 +37,7 @@ import java.util.Date;
*/
@RestController
@Api
(
tags
=
"救援站Api"
)
@RequestMapping
(
value
=
"/
tzs/
rescue-station"
)
@RequestMapping
(
value
=
"/rescue-station"
)
public
class
RescueStationController
extends
BaseController
{
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
RescueStationController
.
class
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/UseUnitController.java
View file @
7c35b6ba
...
...
@@ -19,7 +19,11 @@ import org.apache.commons.lang3.StringUtils;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
...
...
@@ -29,6 +33,8 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
java.util.Arrays
;
//import com.yeejoin.amos.boot.module.tzs.api.service.EquipFeignService;
/**
* 使用单位
...
...
@@ -38,7 +44,7 @@ import java.util.Arrays;
*/
@RestController
@Api
(
tags
=
"使用单位Api"
)
@RequestMapping
(
value
=
"/
tzs/
use-unit"
)
@RequestMapping
(
value
=
"/use-unit"
)
public
class
UseUnitController
extends
BaseController
{
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
UseUnitController
.
class
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/AlertCalledServiceImpl.java
View file @
7c35b6ba
...
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.tzs.biz.service.impl;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.google.common.collect.Maps
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
...
...
@@ -30,8 +31,8 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
import
java.text.ParseException
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
/**
* 警情接警填报记录服务实现类
...
...
@@ -63,15 +64,22 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
@Autowired
private
RepairConsultServiceImpl
repairConsultService
;
@Autowired
AlertCalledMapper
alertCalledMapper
;
@Autowired
RescueProcessServiceImpl
rescueProcessServiceImpl
;
private
final
Logger
logger
=
LogManager
.
getLogger
(
AlertCalledServiceImpl
.
class
);
@Override
public
Object
selectAlertCalledById
(
Long
id
)
{
if
(
redisUtils
.
hasKey
(
RedisKey
.
ALERTCALLED_ID
+
id
)){
/*
if(redisUtils.hasKey(RedisKey.ALERTCALLED_ID+id)){
Object obj= redisUtils.get(RedisKey.ALERTCALLED_ID+id);
return
obj
;
}
else
{
return
JSON.toJavaObject((JSON) obj,AlertCalledFormDto.class)
;
}else{
*/
// 警情基本信息
AlertCalled
alertCalled
=
this
.
getById
(
id
);
QueryWrapper
<
AlertFormValue
>
queryWrapper
=
new
QueryWrapper
<>();
...
...
@@ -88,7 +96,7 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
AlertCalledDto
alertCalledDto
=
BeanDtoVoUtils
.
convert
(
alertCalled
,
AlertCalledDto
.
class
);
AlertCalledVo
alertCalledVo
=
AlertBeanDtoVoUtils
.
convertAlertCalledDtoToVo
(
alertCalledDto
);
QueryWrapper
<
Elevator
>
elevatorQueryWrapper
=
new
QueryWrapper
<>();
elevatorQueryWrapper
.
eq
(
"rescue_code"
,
Integer
.
parseInt
(
alertCalled
.
getDeviceId
()
));
elevatorQueryWrapper
.
eq
(
"rescue_code"
,
alertCalled
.
getDeviceId
(
));
elevatorQueryWrapper
.
eq
(
"register_code"
,
alertCalled
.
getRegistrationCode
());
Elevator
elevator
=
iElevatorService
.
getOne
(
elevatorQueryWrapper
);
if
(
null
!=
elevator
)
{
...
...
@@ -103,9 +111,9 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
}
AlertCalledFormDto
alertCalledFormVo
=
new
AlertCalledFormDto
(
alertCalledVo
,
formValue
);
redisUtils
.
set
(
RedisKey
.
ALERTCALLED_ID
+
id
,
JSON
.
toJSON
(
alertCalledFormVo
),
time
);
//
redisUtils.set(RedisKey.ALERTCALLED_ID+id, JSON.toJSON(alertCalledFormVo),time);
return
alertCalledFormVo
;
}
//
}
}
...
...
@@ -125,7 +133,7 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
AlertCalled
alertCalled
=
BeanDtoVoUtils
.
convert
(
alertCalledObjsDto
.
getAlertCalledDto
(),
AlertCalled
.
class
);
alertCalled
.
setCallTime
(
new
Date
(
));
alertCalled
.
setCallTime
(
DateUtils
.
longStr2Date
(
alertCalled
.
getCallTimeStr
()
));
// 判断是否归并警情
if
(
alertCalled
.
getFatherAlert
()
!=
null
)
{
...
...
@@ -141,18 +149,14 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
// 填充警情主键
alertFormValuelist
.
stream
().
forEach
(
alertFormValue
->
{
alertFormValue
.
setAlertCalledId
(
alertCalled
.
getSequenceNbr
());
if
(
AlertStageEnums
.
GZWX
.
toString
().
equals
(
alertCalled
.
getAlarmTypeCode
())
){
alertFormValue
.
setAlertTypeCode
(
AlertStageEnums
.
GZWX
.
getCode
());
}
if
(
AlertStageEnums
.
TSZX
.
toString
().
equals
(
alertCalled
.
getAlarmTypeCode
())
)
{
alertFormValue
.
setAlertTypeCode
(
AlertStageEnums
.
TSZX
.
getCode
());
}
if
(
AlertStageEnums
.
KRJY
.
toString
().
equals
(
alertCalled
.
getAlarmTypeCode
())
)
{
alertFormValue
.
setAlertTypeCode
(
AlertStageEnums
.
KRJY
.
getCode
());
}
alertFormValue
.
setAlertTypeCode
(
alertCalled
.
getAlarmTypeCode
());
});
// 保存动态表单数据
iAlertFormValueService
.
saveBatch
(
alertFormValuelist
);
// 警情基本信息
AlertCalled
alertCalledFather
=
this
.
getById
(
alertCalled
.
getFatherAlert
());
alertCalledObjsDto
.
setAlertCalledDto
(
BeanDtoVoUtils
.
convert
(
alertCalledFather
,
AlertCalledDto
.
class
));
}
else
{
// 警情报送
// ****************************************************待确认开发
...
...
@@ -169,16 +173,13 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
// 填充警情主键
alertFormValuelist
.
stream
().
forEach
(
alertFormValue
->
{
alertFormValue
.
setAlertCalledId
(
alertCalled
.
getSequenceNbr
());
if
(
AlertStageEnums
.
GZWX
.
toString
().
equals
(
alertCalled
.
getAlarmTypeCode
())
){
alertFormValue
.
setAlertTypeCode
(
AlertStageEnums
.
GZWX
.
getCode
());
}
if
(
AlertStageEnums
.
TSZX
.
toString
().
equals
(
alertCalled
.
getAlarmTypeCode
())
)
{
alertFormValue
.
setAlertTypeCode
(
AlertStageEnums
.
TSZX
.
getCode
());
}
if
(
AlertStageEnums
.
KRJY
.
toString
().
equals
(
alertCalled
.
getAlarmTypeCode
())
)
{
alertFormValue
.
setAlertTypeCode
(
AlertStageEnums
.
KRJY
.
getCode
());
}
alertFormValue
.
setAlertTypeCode
(
alertCalled
.
getAlarmTypeCode
());
});
if
(
AlertStageEnums
.
KRJY
.
getCode
().
equals
(
alertCalled
.
getAlarmTypeCode
())
)
{
//困人救援创建警情时创建救援过程信息
rescueProcessServiceImpl
.
getProcessByAlertId
(
alertCalled
.
getSequenceNbr
());
}
// 保存动态表单数据
iAlertFormValueService
.
saveBatch
(
alertFormValuelist
);
alertCalledObjsDto
.
setAlertCalledDto
(
BeanDtoVoUtils
.
convert
(
alertCalled
,
AlertCalledDto
.
class
));
...
...
@@ -224,4 +225,19 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
repairConsult
.
setDescription
(
transferDetails
);
repairConsultService
.
save
(
repairConsult
);
}
public
Map
<
String
,
Object
>
getAlertInfoList
(
String
beginDate
,
String
endDate
,
String
orgCode
,
String
recUserId
)
{
Map
<
String
,
Object
>
result
=
Maps
.
newHashMap
();
Map
<
String
,
Integer
>
statusCountMap
=
alertCalledMapper
.
queryAlertStatusCount
(
beginDate
,
endDate
,
orgCode
,
recUserId
);
result
.
put
(
"calledCount"
,
statusCountMap
.
get
(
"calledCount"
));
result
.
put
(
"majorAlertCount"
,
statusCountMap
.
get
(
"majorAlertCount"
));
result
.
put
(
"sleepyIncidentCount"
,
statusCountMap
.
get
(
"sleepyIncidentCount"
));
result
.
put
(
"faultRescueCount"
,
statusCountMap
.
get
(
"faultRescueCount"
));
result
.
put
(
"suggestionsCount"
,
statusCountMap
.
get
(
"suggestionsCount"
));
return
result
;
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/DispatchPaperServiceImpl.java
View file @
7c35b6ba
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/DispatchTaskServiceImpl.java
View file @
7c35b6ba
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/ElevatorServiceImpl.java
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
//import com.yeejoin.amos.boot.module.common.api.service.ISourceFileService;
import
com.yeejoin.amos.boot.module.common.api.service.ISourceFileService
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.AlertCalledDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ElevatorDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.Elevator
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.ElevatorMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IElevatorService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
/**
...
...
@@ -18,12 +21,42 @@ import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
* @date 2021-06-01
*/
@Service
public
class
ElevatorServiceImpl
extends
ServiceImpl
<
ElevatorMapper
,
Elevato
r
>
implements
IElevatorService
{
public
class
ElevatorServiceImpl
extends
BaseService
<
ElevatorDto
,
Elevator
,
ElevatorMappe
r
>
implements
IElevatorService
{
// @Autowired
// ISourceFileService sourceFileService;
@Autowired
AlertCalledServiceImpl
alertCalledServiceImpl
;
/**
* 保存电梯信息
*
* @param elevatorDto
* @return
*/
public
ElevatorDto
saveElevator
(
ElevatorDto
elevatorDto
)
{
elevatorDto
=
createWithModel
(
elevatorDto
);
// TODO 保存附件
// sourceFileService.saveAttachments(elevatorDto.getSequenceNbr(), elevatorDto.getAttachments());
return
elevatorDto
;
}
/**
* 更新电梯信息
*
* @param elevatorDto
* @return
*/
public
ElevatorDto
updateElevator
(
ElevatorDto
elevatorDto
)
{
elevatorDto
=
updateWithModel
(
elevatorDto
);
// TODO 保存附件
// sourceFileService.saveAttachments(elevatorDto.getSequenceNbr(), elevatorDto.getAttachments());
return
elevatorDto
;
}
@Override
public
Elevator
selectByAlertId
(
Long
alertId
)
{
...
...
@@ -37,7 +70,7 @@ public class ElevatorServiceImpl extends ServiceImpl<ElevatorMapper, Elevator> i
// 目前只有电梯类型
QueryWrapper
<
Elevator
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"rescue_code"
,
deviceId
);
Elevator
elevator
=
this
.
getOne
(
queryWrapper
);
Elevator
elevator
=
this
.
getOne
(
queryWrapper
);
if
(
ValidationUtil
.
isEmpty
(
elevator
))
throw
new
BadRequest
(
"设备未找到"
);
return
elevator
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/RescueProcessServiceImpl.java
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.DispatchPaperFormDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.DispatchTaskDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.RescueProcessDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.AlertFormValue
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.DispatchPaper
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.DispatchTask
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.MaintenanceUnit
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.RescueProcess
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.RescueStation
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.UseUnit
;
import
com.yeejoin.amos.boot.module.tzs.api.enums.DispatchPaperEnums
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.RescueProcessMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IRescueProcessService
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.RescueProcessDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
com.yeejoin.amos.boot.module.tzs.biz.utils.BeanDtoVoUtils
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
java.util.Date
;
import
java.util.List
;
/**
...
...
@@ -17,6 +38,20 @@ import java.util.List;
*/
@Service
public
class
RescueProcessServiceImpl
extends
BaseService
<
RescueProcessDto
,
RescueProcess
,
RescueProcessMapper
>
implements
IRescueProcessService
{
@Autowired
DispatchPaperServiceImpl
dispatchPaperServiceImpl
;
@Autowired
private
DataDictionaryServiceImpl
iDataDictionaryService
;
@Autowired
DispatchTaskServiceImpl
dispatchTaskServiceImpl
;
@Autowired
private
AlertFormValueServiceImpl
iAlertFormValueService
;
/**
* 分页查询
*/
...
...
@@ -30,4 +65,82 @@ public class RescueProcessServiceImpl extends BaseService<RescueProcessDto,Rescu
public
List
<
RescueProcessDto
>
queryForRescueProcessList
()
{
return
this
.
queryForList
(
""
,
false
);
}
@Override
public
RescueProcessDto
getProcessByAlertId
(
Long
alertId
)
{
// 先通过id 查找过程表
RescueProcessDto
rescueProcessDto
=
new
RescueProcessDto
();
QueryWrapper
<
RescueProcess
>
templateQueryWrapper
=
new
QueryWrapper
<>();
templateQueryWrapper
.
eq
(
"alert_id"
,
alertId
);
RescueProcess
rescueProcess
=
this
.
getOne
(
templateQueryWrapper
);
if
(
rescueProcess
!=
null
)
{
return
Bean
.
toModel
(
rescueProcess
,
rescueProcessDto
);
}
else
{
rescueProcess
=
new
RescueProcess
();
rescueProcess
.
setAlertId
(
alertId
);
this
.
save
(
rescueProcess
);
return
Bean
.
toModel
(
rescueProcess
,
rescueProcessDto
);
}
}
@Override
public
Boolean
updateByAlertId
(
RescueProcessDto
rescueProcessDto
,
AgencyUserModel
sendUser
)
{
QueryWrapper
<
RescueProcess
>
templateQueryWrapper
=
new
QueryWrapper
<>();
templateQueryWrapper
.
eq
(
"alert_id"
,
rescueProcessDto
.
getAlertId
());
RescueProcess
rescueProcess
=
this
.
getOne
(
templateQueryWrapper
);
if
(
rescueProcess
==
null
)
throw
new
BadRequest
(
"救援过程信息未找到"
);
if
(
rescueProcessDto
.
getDispatchByUser
())
{
// 手动更新了派遣信息为三级派遣
// 判断是否存在派遣单 不存在先创建派遣单
DispatchPaperFormDto
dispatchPaperDto
=
dispatchPaperServiceImpl
.
selectDispatchPaperDtoByAlertId
(
rescueProcessDto
.
getAlertId
());
if
(
dispatchPaperDto
==
null
||
dispatchPaperDto
.
getDispatchPaper
()
==
null
)
{
QueryWrapper
<
DataDictionary
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"type"
,
"JQLX"
).
eq
(
"name"
,
"困人救援"
);
DataDictionary
alertCode
=
iDataDictionaryService
.
getOne
(
queryWrapper
);
dispatchPaperDto
=
dispatchPaperServiceImpl
.
createDispatchPaper
(
rescueProcessDto
.
getAlertId
(),
alertCode
.
getCode
(),
sendUser
);
}
DispatchPaper
dispatchPaper
=
dispatchPaperDto
.
getDispatchPaper
();
List
<
AlertFormValue
>
dynamicFormAlert
=
dispatchPaperDto
.
getDynamicFormAlert
();
// 创建派遣单
DispatchTaskDto
dispatchTaskDto
=
new
DispatchTaskDto
();
dispatchTaskDto
.
setDispatchTime
(
rescueProcessDto
.
getDispatchTime
());
dispatchTaskDto
.
setOrgTypeCode
(
DispatchPaperEnums
.
getEnum
(
"levelThreeUnit"
).
getCode
());
dispatchTaskDto
.
setAlertId
(
rescueProcessDto
.
getAlertId
());
dispatchTaskDto
.
setResponseOrgName
(
"119"
);
dispatchTaskDto
.
setResponseUserName
(
"119"
);
DispatchTask
dispatchTask
=
BeanDtoVoUtils
.
convert
(
dispatchTaskDto
,
DispatchTask
.
class
);
dispatchTask
.
setPaperId
(
dispatchPaperDto
.
getSequenceNbr
());
Boolean
flag
=
dispatchTaskServiceImpl
.
save
(
dispatchTask
);
if
(
flag
)
{
// 创建好派遣任务单以后根据任务单类型修改派遣单信息
if
(
dispatchPaper
.
getRepairOrgId
()
!=
null
)
{
// 已经派遣过调派
throw
new
BadRequest
(
"已经派遣过其他力量调派"
);
}
else
{
dispatchPaper
.
setRepairOrgId
(-
1
l
);
dispatchPaper
.
setRepairOrgCreditCode
(
"119"
);
dispatchPaper
.
setRepairOrgTaskId
(
dispatchTask
.
getSequenceNbr
());
// 修改动态字段
dynamicFormAlert
.
stream
().
forEach
(
alertFormValue
->
{
if
(
alertFormValue
.
getFieldCode
().
equals
(
"dispatch_status"
))
{
alertFormValue
.
setFieldValue
(
"已派遣"
);
alertFormValue
.
setFieldValueCode
(
"hasDispatched"
);
}
else
if
(
alertFormValue
.
getFieldCode
().
equals
(
"response_level"
))
{
alertFormValue
.
setFieldValue
(
"三级响应"
);
alertFormValue
.
setFieldValueCode
(
"levelThreeUnit"
);
}
});
}
// 保存派遣单
dispatchPaperServiceImpl
.
save
(
dispatchPaper
);
// 保存动态表单数据
iAlertFormValueService
.
saveBatch
(
dynamicFormAlert
);
}
}
rescueProcessDto
.
setSequenceNbr
(
rescueProcess
.
getSequenceNbr
());
rescueProcessDto
.
setRecDate
(
rescueProcess
.
getRecDate
());
rescueProcessDto
.
setRecUserId
(
rescueProcess
.
getRecUserId
());
rescueProcessDto
.
setRecUserName
(
rescueProcess
.
getRecUserName
());
rescueProcess
=
BeanDtoVoUtils
.
convert
(
rescueProcessDto
,
RescueProcess
.
class
);
return
this
.
updateById
(
rescueProcess
);
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/RescueStationServiceImpl.java
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.RescueStationDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.RescueStation
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.RescueStationMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IRescueStationService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.util.List
;
...
...
@@ -17,7 +17,7 @@ import java.util.List;
* @date 2021-06-01
*/
@Service
public
class
RescueStationServiceImpl
extends
ServiceImpl
<
RescueStationMapper
,
RescueStation
>
implements
IRescueStationService
{
public
class
RescueStationServiceImpl
extends
BaseService
<
RescueStationDto
,
RescueStation
,
RescueStationMapper
>
implements
IRescueStationService
{
@Autowired
RescueStationMapper
rescueStationMapper
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/UseUnitServiceImpl.java
View file @
7c35b6ba
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
biz
.
service
.
impl
;
import
com.
baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.
yeejoin.amos.boot.module.tzs.api.dto.UseUnitDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.UseUnit
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.UseUnitMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IUseUnitService
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
/**
* 服务实现类
...
...
@@ -13,6 +14,6 @@ import org.springframework.stereotype.Service;
* @date 2021-06-01
*/
@Service
public
class
UseUnitServiceImpl
extends
ServiceImpl
<
UseUnitMapper
,
UseUnit
>
implements
IUseUnitService
{
public
class
UseUnitServiceImpl
extends
BaseService
<
UseUnitDto
,
UseUnit
,
UseUnitMapper
>
implements
IUseUnitService
{
}
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