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
d970c695
Commit
d970c695
authored
Jul 02, 2021
by
taabe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除vo
parent
8ca07d33
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
197 additions
and
346 deletions
+197
-346
AlertSubmittedDto.java
...ejoin/amos/boot/module/jcs/api/dto/AlertSubmittedDto.java
+30
-19
AlertSubmittedExtDto.java
...in/amos/boot/module/jcs/api/dto/AlertSubmittedExtDto.java
+2
-2
AlertSubmittedSMSDto.java
...in/amos/boot/module/jcs/api/dto/AlertSubmittedSMSDto.java
+3
-3
FirefightersDataDto.java
...oin/amos/boot/module/jcs/api/dto/FirefightersDataDto.java
+8
-5
FirefightersInfoDto.java
...oin/amos/boot/module/jcs/api/dto/FirefightersInfoDto.java
+4
-15
PowerTransferCompanyDto.java
...amos/boot/module/jcs/api/dto/PowerTransferCompanyDto.java
+6
-0
PowerTransferCompanyResourcesDto.java
.../module/jcs/api/dto/PowerTransferCompanyResourcesDto.java
+2
-0
PowerTransferSimpleDto.java
.../amos/boot/module/jcs/api/dto/PowerTransferSimpleDto.java
+5
-4
SchedulingReportingDto.java
.../amos/boot/module/jcs/api/dto/SchedulingReportingDto.java
+3
-3
AlertSubmittedMapper.java
...amos/boot/module/jcs/api/mapper/AlertSubmittedMapper.java
+5
-5
PowerTransferMapper.java
.../amos/boot/module/jcs/api/mapper/PowerTransferMapper.java
+4
-4
IAlertSubmittedService.java
...s/boot/module/jcs/api/service/IAlertSubmittedService.java
+7
-7
IPowerTransferService.java
...os/boot/module/jcs/api/service/IPowerTransferService.java
+4
-4
AlertSubmittedVo.java
...yeejoin/amos/boot/module/jcs/api/vo/AlertSubmittedVo.java
+0
-64
PowerTransferCompanyResourcesVo.java
...ot/module/jcs/api/vo/PowerTransferCompanyResourcesVo.java
+0
-44
PowerTransferCompanyVo.java
...n/amos/boot/module/jcs/api/vo/PowerTransferCompanyVo.java
+0
-37
AlertSubmittedMapper.xml
...cs-api/src/main/resources/mapper/AlertSubmittedMapper.xml
+3
-3
PowerTransferMapper.xml
...jcs-api/src/main/resources/mapper/PowerTransferMapper.xml
+2
-2
AlertSubmittedController.java
...t/module/jcs/biz/controller/AlertSubmittedController.java
+6
-6
FirefightersController.java
...oot/module/jcs/biz/controller/FirefightersController.java
+6
-6
FirefightersPostController.java
...module/jcs/biz/controller/FirefightersPostController.java
+34
-47
PowerTransferController.java
...ot/module/jcs/biz/controller/PowerTransferController.java
+4
-4
AlertSubmittedServiceImpl.java
...odule/jcs/biz/service/impl/AlertSubmittedServiceImpl.java
+51
-52
PowerTransferServiceImpl.java
...module/jcs/biz/service/impl/PowerTransferServiceImpl.java
+8
-10
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/dto/AlertSubmittedDto.java
View file @
d970c695
...
...
@@ -7,6 +7,7 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
import
java.util.List
;
/**
...
...
@@ -18,7 +19,7 @@ import java.util.List;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"AlertSubmittedDto"
,
description
=
"警情报送记录"
)
public
class
AlertSubmittedDto
extends
BaseDto
{
public
class
AlertSubmittedDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"主键id"
)
...
...
@@ -27,38 +28,48 @@ public class AlertSubmittedDto extends BaseDto{
@ApiModelProperty
(
value
=
"警情id"
)
private
Long
alertCalledId
;
@ApiModelProperty
(
value
=
"业务类型code(警情续报、非警情确认、警情结案)"
)
@ApiModelProperty
(
value
=
"业务类型(警情续报、非警情确认、警情结案)"
)
private
String
businessType
;
@ApiModelProperty
(
value
=
"业务类型code"
)
private
String
businessTypeCode
;
@ApiModelProperty
(
value
=
"调度类型(融合调度、外部协调)"
)
private
String
schedulingType
;
@ApiModelProperty
(
value
=
"调度类型code"
)
private
String
schedulingTypeCode
;
@ApiModelProperty
(
value
=
"报送时间"
)
private
Date
submissionTime
;
@ApiModelProperty
(
value
=
"通话记录id"
)
private
String
callLogId
;
@ApiModelProperty
(
value
=
"
调度类型code(融合调度、外部协调)
"
)
private
String
s
chedulingTypeCode
;
@ApiModelProperty
(
value
=
"
发送人
"
)
private
String
s
ender
;
/**
* 区分是警情报送还是融合调度
* 电话:融合调度
* 短信:警情报送
*/
@ApiModelProperty
(
value
=
"报送方式code(电话、短信)"
)
@ApiModelProperty
(
value
=
"报送方式(电话、短信)"
)
private
String
submissionMethod
;
@ApiModelProperty
(
value
=
"报送方式code"
)
private
String
submissionMethodCode
;
/**
* 报送对象
*/
@ApiModelProperty
(
value
=
"报送内容"
)
private
String
submissionContent
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"操作人名称"
)
private
String
recUserName
;
@ApiModelProperty
(
value
=
"报送对象"
)
private
List
<
SubmitTargetCompanyDto
>
submitCompanyList
;
/**
* 报送内容
*/
@ApiModelProperty
(
value
=
"报送内容"
)
private
JSONObject
submitContent
;
/**
* 发送对象类型(0:人员,1:单位)
*/
@ApiModelProperty
(
value
=
"报送对象类型0:人员,1:单位"
)
private
String
type
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/
vo/AlertSubmittedExtV
o.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/
dto/AlertSubmittedExtDt
o.java
View file @
d970c695
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
v
o
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
dt
o
;
import
com.alibaba.fastjson.JSONObject
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
@@ -8,7 +8,7 @@ import lombok.Data;
* @author DELL
*/
@Data
public
class
AlertSubmittedExt
Vo
extends
AlertSubmittedV
o
{
public
class
AlertSubmittedExt
Dto
extends
AlertSubmittedDt
o
{
@ApiModelProperty
(
value
=
"主键"
)
private
Long
sequenceNbr
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/
vo/AlertSubmittedSMSV
o.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/
dto/AlertSubmittedSMSDt
o.java
View file @
d970c695
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
v
o
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
dt
o
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
@@ -15,8 +15,8 @@ import java.util.Date;
*/
@Data
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"AlertSubmittedSMS
V
o"
,
description
=
"融合调度记录短信详情"
)
public
class
AlertSubmittedSMS
V
o
{
@ApiModel
(
value
=
"AlertSubmittedSMS
Dt
o"
,
description
=
"融合调度记录短信详情"
)
public
class
AlertSubmittedSMS
Dt
o
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/
vo/FirefightersData
.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/
dto/FirefightersDataDto
.java
View file @
d970c695
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
v
o
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
dt
o
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersEducation
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersPost
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersWorkexperience
;
public
class
FirefightersData
{
/**
* @author DELL
*/
public
class
FirefightersDataDto
{
private
FirefightersWorkexperience
firefightersWorkexperience
;
private
FirefightersEducation
firefightersEducation
;
...
...
@@ -29,14 +32,14 @@ public class FirefightersData {
this
.
firefightersPost
=
firefightersPost
;
}
public
FirefightersData
(
FirefightersWorkexperience
firefightersWorkexperience
,
FirefightersEducation
firefightersEducation
,
FirefightersPost
firefightersPost
)
{
public
FirefightersData
Dto
(
FirefightersWorkexperience
firefightersWorkexperience
,
FirefightersEducation
firefightersEducation
,
FirefightersPost
firefightersPost
)
{
super
();
this
.
firefightersWorkexperience
=
firefightersWorkexperience
;
this
.
firefightersEducation
=
firefightersEducation
;
this
.
firefightersPost
=
firefightersPost
;
}
public
FirefightersData
()
{
public
FirefightersData
Dto
()
{
super
();
}
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/
vo/FirefightersV
o.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/
dto/FirefightersInfoDt
o.java
View file @
d970c695
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
v
o
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
dt
o
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.Firefighters
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersContacts
;
...
...
@@ -13,10 +13,8 @@ import lombok.Data;
* @date 2021-06-07
*/
@Data
@ApiModel
(
value
=
"FirefightersVo"
,
description
=
"消防队员"
)
public
class
FirefightersVo
{
@ApiModel
(
value
=
"FirefightersInfoDto"
,
description
=
"消防队员"
)
public
class
FirefightersInfoDto
{
@ApiModelProperty
(
value
=
"基本信息"
)
private
Firefighters
firefighters
;
...
...
@@ -24,18 +22,9 @@ public class FirefightersVo{
@ApiModelProperty
(
value
=
"联系人信息"
)
private
FirefightersContacts
firefightersContacts
;
public
Firefighters
V
o
(
Firefighters
firefighters
,
FirefightersContacts
firefightersContacts
)
{
public
Firefighters
InfoDt
o
(
Firefighters
firefighters
,
FirefightersContacts
firefightersContacts
)
{
super
();
this
.
firefighters
=
firefighters
;
this
.
firefightersContacts
=
firefightersContacts
;
}
public
FirefightersVo
()
{
super
();
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/dto/PowerTransferCompanyDto.java
View file @
d970c695
...
...
@@ -39,6 +39,12 @@ public class PowerTransferCompanyDto extends BaseDto {
@ApiModelProperty
(
value
=
"操作人名称"
)
private
String
recUserName
;
@ApiModelProperty
(
value
=
"资源类型"
)
private
String
type
;
@ApiModelProperty
(
value
=
"资源数量"
)
private
Integer
resourcesCount
;
@ApiModelProperty
(
value
=
"调派单位资源列表"
)
private
List
<
PowerTransferCompanyResourcesDto
>
powerTransferCompanyResourcesDtoList
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/dto/PowerTransferCompanyResourcesDto.java
View file @
d970c695
...
...
@@ -17,6 +17,8 @@ import lombok.EqualsAndHashCode;
public
class
PowerTransferCompanyResourcesDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"所属队伍"
)
private
String
companyName
;
@ApiModelProperty
(
value
=
"资源类型"
)
private
String
type
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/
vo/PowerTransferV
o.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/
dto/PowerTransferSimpleDt
o.java
View file @
d970c695
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
v
o
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
dt
o
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferCompanyResourcesDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -17,8 +18,8 @@ import java.util.List;
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"jc_power_transfer"
)
@ApiModel
(
value
=
"PowerTransfer
V
o"
,
description
=
"力量调派"
)
public
class
PowerTransfer
V
o
{
@ApiModel
(
value
=
"PowerTransfer
SimpleDt
o"
,
description
=
"力量调派"
)
public
class
PowerTransfer
SimpleDt
o
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -32,6 +33,6 @@ public class PowerTransferVo {
private
Integer
evacuateCount
;
@ApiModelProperty
(
value
=
"调派资源列表"
)
private
List
<
PowerTransferCompanyResources
V
o
>
resourcesList
;
private
List
<
PowerTransferCompanyResources
Dt
o
>
resourcesList
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/
vo/SchedulingReportingV
o.java
→
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/
dto/SchedulingReportingDt
o.java
View file @
d970c695
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
v
o
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
dt
o
;
import
lombok.Data
;
...
...
@@ -9,7 +9,7 @@ import java.util.List;
* @author DELL
*/
@Data
public
class
SchedulingReporting
V
o
{
public
class
SchedulingReporting
Dt
o
{
/**
* 额外信息(统计)
*/
...
...
@@ -18,5 +18,5 @@ public class SchedulingReportingVo {
/**
* 警情报送/融合调度列表
*/
List
<
AlertSubmittedExt
V
o
>
schedulingReportingList
;
List
<
AlertSubmittedExt
Dt
o
>
schedulingReportingList
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/mapper/AlertSubmittedMapper.java
View file @
d970c695
...
...
@@ -3,8 +3,8 @@ package com.yeejoin.amos.boot.module.jcs.api.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertSubmittedDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmitted
;
import
com.yeejoin.amos.boot.module.jcs.api.
vo.AlertSubmittedExtV
o
;
import
com.yeejoin.amos.boot.module.jcs.api.
vo.AlertSubmittedSMSV
o
;
import
com.yeejoin.amos.boot.module.jcs.api.
dto.AlertSubmittedExtDt
o
;
import
com.yeejoin.amos.boot.module.jcs.api.
dto.AlertSubmittedSMSDt
o
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
...
...
@@ -22,7 +22,7 @@ public interface AlertSubmittedMapper extends BaseMapper<AlertSubmitted> {
* @param alertSubmittedDto
* @return
*/
List
<
AlertSubmittedExt
V
o
>
listSchedulingByParam
(
@Param
(
"alertSubmittedDto"
)
AlertSubmittedDto
alertSubmittedDto
);
List
<
AlertSubmittedExt
Dt
o
>
listSchedulingByParam
(
@Param
(
"alertSubmittedDto"
)
AlertSubmittedDto
alertSubmittedDto
);
/**
* 根据参数获取警情报送列表
...
...
@@ -30,14 +30,14 @@ public interface AlertSubmittedMapper extends BaseMapper<AlertSubmitted> {
* @param alertSubmittedDto
* @return
*/
List
<
AlertSubmittedExt
V
o
>
listReportingByParam
(
@Param
(
"alertSubmittedDto"
)
AlertSubmittedDto
alertSubmittedDto
);
List
<
AlertSubmittedExt
Dt
o
>
listReportingByParam
(
@Param
(
"alertSubmittedDto"
)
AlertSubmittedDto
alertSubmittedDto
);
/**
* 获取融合调度短信内容
* @param id id
* @return 返回结果
*/
AlertSubmittedSMS
V
o
getSchedulingContent
(
@Param
(
"id"
)
Long
id
);
AlertSubmittedSMS
Dt
o
getSchedulingContent
(
@Param
(
"id"
)
Long
id
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/mapper/PowerTransferMapper.java
View file @
d970c695
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferCompanyDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferCompanyResourcesDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransfer
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferCompanyResourcesVo
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferCompanyVo
;
import
java.util.List
;
...
...
@@ -14,7 +14,7 @@ import java.util.List;
* @date 2021-06-17
*/
public
interface
PowerTransferMapper
extends
BaseMapper
<
PowerTransfer
>
{
List
<
PowerTransferCompanyResources
V
o
>
getPowerTransferList
(
Long
alertCalledId
);
List
<
PowerTransferCompanyResources
Dt
o
>
getPowerTransferList
(
Long
alertCalledId
);
List
<
PowerTransferCompany
V
o
>
getLastPowerTransferCompany
(
Long
alertCalledId
);
List
<
PowerTransferCompany
Dt
o
>
getLastPowerTransferCompany
(
Long
alertCalledId
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/service/IAlertSubmittedService.java
View file @
d970c695
...
...
@@ -3,8 +3,8 @@ package com.yeejoin.amos.boot.module.jcs.api.service;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertSubmittedDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmitted
;
import
com.yeejoin.amos.boot.module.jcs.api.
vo.AlertSubmittedSMSV
o
;
import
com.yeejoin.amos.boot.module.jcs.api.
vo.SchedulingReportingV
o
;
import
com.yeejoin.amos.boot.module.jcs.api.
dto.AlertSubmittedSMSDt
o
;
import
com.yeejoin.amos.boot.module.jcs.api.
dto.SchedulingReportingDt
o
;
/**
* 警情报送记录 服务类
...
...
@@ -18,17 +18,17 @@ public interface IAlertSubmittedService extends IService<AlertSubmitted> {
* 根据参数查询融合调度记录
*
* @param queryParam
* @return SchedulingReporting
V
o
* @return SchedulingReporting
Dt
o
*/
SchedulingReporting
V
o
listSchedulingByParam
(
AlertSubmittedDto
queryParam
);
SchedulingReporting
Dt
o
listSchedulingByParam
(
AlertSubmittedDto
queryParam
);
/**
* 根据参数查询警情报送记录
*
* @param queryParam
* @return SchedulingReporting
V
o
* @return SchedulingReporting
Dt
o
*/
SchedulingReporting
V
o
listReportingByParam
(
AlertSubmittedDto
queryParam
);
SchedulingReporting
Dt
o
listReportingByParam
(
AlertSubmittedDto
queryParam
);
/**
* 警情报送保存
...
...
@@ -39,5 +39,5 @@ public interface IAlertSubmittedService extends IService<AlertSubmitted> {
*/
Boolean
save
(
AlertSubmittedDto
alertSubmittedDto
,
String
userName
)
throws
Exception
;
AlertSubmittedSMS
V
o
getSchedulingContent
(
Long
id
);
AlertSubmittedSMS
Dt
o
getSchedulingContent
(
Long
id
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/service/IPowerTransferService.java
View file @
d970c695
...
...
@@ -2,10 +2,10 @@ package com.yeejoin.amos.boot.module.jcs.api.service;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.FireBrigadeResourceDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferCompanyDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransfer
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferCompanyVo
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferVo
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferSimpleDto
;
import
java.util.List
;
...
...
@@ -17,11 +17,11 @@ import java.util.List;
*/
public
interface
IPowerTransferService
extends
IService
<
PowerTransfer
>
{
PowerTransfer
V
o
getPowerTransferList
(
Long
alertCalledId
);
PowerTransfer
SimpleDt
o
getPowerTransferList
(
Long
alertCalledId
);
boolean
createPowerTransfer
(
PowerTransferDto
powerTransferDto
);
List
<
PowerTransferCompany
V
o
>
getLastPowerTransferCompany
(
Long
alertCalledId
);
List
<
PowerTransferCompany
Dt
o
>
getLastPowerTransferCompany
(
Long
alertCalledId
);
/**
* 获取力量调派资源树
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/vo/AlertSubmittedVo.java
deleted
100644 → 0
View file @
8ca07d33
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
vo
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
* 警情报送记录
*
* @author tb
* @date 2021-06-17
*/
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"jc_alert_submitted"
)
@ApiModel
(
value
=
"AlertSubmittedVo"
,
description
=
"警情报送记录"
)
public
class
AlertSubmittedVo
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"警情id"
)
private
Long
alertCalledId
;
@ApiModelProperty
(
value
=
"业务类型(警情续报、非警情确认、警情结案)"
)
private
String
businessType
;
@ApiModelProperty
(
value
=
"业务类型code"
)
private
String
businessTypeCode
;
@ApiModelProperty
(
value
=
"调度类型(融合调度、外部协调)"
)
private
String
schedulingType
;
@ApiModelProperty
(
value
=
"调度类型code"
)
private
String
schedulingTypeCode
;
@ApiModelProperty
(
value
=
"报送时间"
)
private
Date
submissionTime
;
@ApiModelProperty
(
value
=
"通话记录id"
)
private
String
callLogId
;
@ApiModelProperty
(
value
=
"发送人"
)
private
String
sender
;
@ApiModelProperty
(
value
=
"报送方式(电话、短信)"
)
private
String
submissionMethod
;
@ApiModelProperty
(
value
=
"报送方式code"
)
private
String
submissionMethodCode
;
@ApiModelProperty
(
value
=
"报送内容"
)
private
String
submissionContent
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"操作人名称"
)
private
String
recUserName
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/vo/PowerTransferCompanyResourcesVo.java
deleted
100644 → 0
View file @
8ca07d33
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
vo
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
/**
* 调派单位资源
*
* @author tb
* @date 2021-06-17
*/
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"jc_power_transfer_company_resources"
)
@ApiModel
(
value
=
"PowerTransferCompanyResourcesVo"
,
description
=
"调派单位资源"
)
public
class
PowerTransferCompanyResourcesVo
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"编号"
)
private
Long
sequenceNbr
;
@ApiModelProperty
(
value
=
"所属队伍"
)
private
String
companyName
;
@ApiModelProperty
(
value
=
"资源类型"
)
private
String
type
;
@ApiModelProperty
(
value
=
"资源id"
)
private
String
resourcesId
;
@ApiModelProperty
(
value
=
"资源名称"
)
private
String
resourcesName
;
@ApiModelProperty
(
value
=
"资源编号(如车牌号)"
)
private
String
resourcesNum
;
@ApiModelProperty
(
value
=
"操作人名称"
)
private
String
recUserName
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/vo/PowerTransferCompanyVo.java
deleted
100644 → 0
View file @
8ca07d33
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
vo
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
* 调派单位
*
* @author tb
* @date 2021-06-17
*/
@Data
@Accessors
(
chain
=
true
)
@TableName
(
"jc_power_transfer_company"
)
@ApiModel
(
value
=
"PowerTransferCompanyVo"
,
description
=
"调派单位"
)
public
class
PowerTransferCompanyVo
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
" 单位名称"
)
private
String
companyName
;
@ApiModelProperty
(
value
=
"资源类型"
)
private
String
type
;
@ApiModelProperty
(
value
=
"资源数量"
)
private
Integer
resourcesCount
;
@ApiModelProperty
(
value
=
"时间"
)
private
Date
recDate
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/AlertSubmittedMapper.xml
View file @
d970c695
...
...
@@ -2,7 +2,7 @@
<!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.jcs.api.mapper.AlertSubmittedMapper"
>
<select
id=
"listSchedulingByParam"
resultType=
"com.yeejoin.amos.boot.module.jcs.api.
vo.AlertSubmittedExtV
o"
>
<select
id=
"listSchedulingByParam"
resultType=
"com.yeejoin.amos.boot.module.jcs.api.
dto.AlertSubmittedExtDt
o"
>
select
jas.sequence_nbr alertSubmittedId,
jas.alert_called_id,
...
...
@@ -33,7 +33,7 @@
</if>
order by jas.submission_time desc
</select>
<select
id=
"listReportingByParam"
resultType=
"com.yeejoin.amos.boot.module.jcs.api.
vo.AlertSubmittedExtV
o"
>
<select
id=
"listReportingByParam"
resultType=
"com.yeejoin.amos.boot.module.jcs.api.
dto.AlertSubmittedExtDt
o"
>
select
jas.sequence_nbr alertSubmittedId,
jas.alert_called_id,
...
...
@@ -65,7 +65,7 @@
order by jas.submission_time desc
</select>
<select
id=
"getSchedulingContent"
resultType=
"com.yeejoin.amos.boot.module.jcs.api.
vo.AlertSubmittedSMSV
o"
>
<select
id=
"getSchedulingContent"
resultType=
"com.yeejoin.amos.boot.module.jcs.api.
dto.AlertSubmittedSMSDt
o"
>
SELECT
s.sequence_nbr,
s.submission_time,
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/PowerTransferMapper.xml
View file @
d970c695
...
...
@@ -2,7 +2,7 @@
<!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.jcs.api.mapper.PowerTransferMapper"
>
<select
id=
"getPowerTransferList"
resultType=
"com.yeejoin.amos.boot.module.jcs.api.
vo.PowerTransferCompanyResourcesV
o"
>
resultType=
"com.yeejoin.amos.boot.module.jcs.api.
dto.PowerTransferCompanyResourcesDt
o"
>
select sequence_nbr, company_name, type, resources_num
from (
select ptcr.sequence_nbr, ptc.company_name, ptcr.type, ptcr.resources_num, ptcr.rec_date
...
...
@@ -23,7 +23,7 @@
</select>
<select
id=
"getLastPowerTransferCompany"
resultType=
"com.yeejoin.amos.boot.module.jcs.api.
vo.PowerTransferCompanyV
o"
>
resultType=
"com.yeejoin.amos.boot.module.jcs.api.
dto.PowerTransferCompanyDt
o"
>
select company_name, type, count(resources_num) resourcesCount, rec_date
from (select ptcr.sequence_nbr, ptc.company_name, ptcr.type, ptcr.resources_num, ptcr.rec_date
from jc_power_transfer_company ptc
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/AlertSubmittedController.java
View file @
d970c695
...
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jcs.biz.controller;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.SchedulingReportingDto
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
@@ -24,8 +25,7 @@ import com.yeejoin.amos.boot.module.jcs.api.dto.AlertSubmittedDto;
import
com.yeejoin.amos.boot.module.jcs.api.dto.TemplateDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmitted
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.SubmissionMethodEnum
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.AlertSubmittedSMSVo
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.SchedulingReportingVo
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertSubmittedSMSDto
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertCalledServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.AlertSubmittedServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.DataDictionaryServiceImpl
;
...
...
@@ -118,7 +118,7 @@ public class AlertSubmittedController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/scheduling/list"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"根据警情id查询融合调度列表"
,
notes
=
"根据警情id查询融合调度列表"
)
public
ResponseModel
<
SchedulingReporting
V
o
>
listSchedulingByParam
(
@RequestBody
AlertSubmittedDto
queryParam
)
{
public
ResponseModel
<
SchedulingReporting
Dt
o
>
listSchedulingByParam
(
@RequestBody
AlertSubmittedDto
queryParam
)
{
return
ResponseHelper
.
buildResponse
(
alertSubmittedService
.
listSchedulingByParam
(
queryParam
));
}
...
...
@@ -126,7 +126,7 @@ public class AlertSubmittedController extends BaseController {
@RequestMapping
(
value
=
"/reporting/list"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"根据警情id查询警情报送列表"
,
notes
=
"根据警情id查询警情报送列表"
)
public
ResponseModel
<
SchedulingReporting
V
o
>
listReportingByParam
(
@RequestBody
AlertSubmittedDto
queryParam
)
{
public
ResponseModel
<
SchedulingReporting
Dt
o
>
listReportingByParam
(
@RequestBody
AlertSubmittedDto
queryParam
)
{
queryParam
.
setSubmissionMethodCode
(
SubmissionMethodEnum
.
SMS
.
getCode
());
return
ResponseHelper
.
buildResponse
(
alertSubmittedService
.
listReportingByParam
(
queryParam
));
}
...
...
@@ -212,9 +212,9 @@ public class AlertSubmittedController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{id}/scheduling_content"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取融合调度短信内容"
,
notes
=
"获取融合调度短信内容"
)
public
ResponseModel
<
AlertSubmittedSMS
V
o
>
getSchedulingContent
(
@PathVariable
Long
id
)
{
public
ResponseModel
<
AlertSubmittedSMS
Dt
o
>
getSchedulingContent
(
@PathVariable
Long
id
)
{
// 获取报送内容
AlertSubmittedSMS
V
o
schedulingContent
=
alertSubmittedService
.
getSchedulingContent
(
id
);
AlertSubmittedSMS
Dt
o
schedulingContent
=
alertSubmittedService
.
getSchedulingContent
(
id
);
return
ResponseHelper
.
buildResponse
(
schedulingContent
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/FirefightersController.java
View file @
d970c695
...
...
@@ -6,6 +6,7 @@ import java.util.Map;
import
javax.servlet.http.HttpServletRequest
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.FirefightersInfoDto
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
...
...
@@ -37,7 +38,6 @@ import com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersEducation;
import
com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersJacket
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersPost
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersThought
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.FirefightersVo
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.FirefightersContactsServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.FirefightersContractServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.FirefightersEducationServiceImpl
;
...
...
@@ -88,7 +88,7 @@ public class FirefightersController extends BaseController {
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增消防队员"
,
notes
=
"新增消防队员"
)
@Transactional
public
ResponseModel
<
Firefighters
>
saveFirefighters
(
@RequestBody
Firefighters
V
o
firefighters
){
public
ResponseModel
<
Firefighters
>
saveFirefighters
(
@RequestBody
Firefighters
InfoDt
o
firefighters
){
try
{
Firefighters
firefighter
=
firefighters
.
getFirefighters
();
...
...
@@ -151,7 +151,7 @@ public class FirefightersController extends BaseController {
@RequestMapping
(
value
=
"/updateById"
,
method
=
RequestMethod
.
PUT
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"修改消防队员"
,
notes
=
"修改消防队员"
)
@Transactional
public
ResponseModel
<
Object
>
updateByIdFirefighters
(
HttpServletRequest
request
,
@RequestBody
Firefighters
V
o
firefighters
){
public
ResponseModel
<
Object
>
updateByIdFirefighters
(
HttpServletRequest
request
,
@RequestBody
Firefighters
InfoDt
o
firefighters
){
try
{
Firefighters
firefighter
=
firefighters
.
getFirefighters
();
iFirefightersService
.
updateById
(
firefighter
);
...
...
@@ -185,9 +185,9 @@ public class FirefightersController extends BaseController {
QueryWrapper
<
FirefightersContacts
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"firefighters_id"
,
id
);
FirefightersContacts
firefightersContacts
=
ifirefightersContactsService
.
getOne
(
queryWrapper
);
Firefighters
Vo
firefightersVo
=
new
FirefightersV
o
(
firefighters
,
firefightersContacts
);
redisUtils
.
set
(
RedisKey
.
FIREFIGHTERS_ID
+
id
,
JSON
.
toJSON
(
firefighters
V
o
),
time
);
return
ResponseHelper
.
buildResponse
(
firefighters
V
o
);
Firefighters
InfoDto
firefightersInfoDto
=
new
FirefightersInfoDt
o
(
firefighters
,
firefightersContacts
);
redisUtils
.
set
(
RedisKey
.
FIREFIGHTERS_ID
+
id
,
JSON
.
toJSON
(
firefighters
InfoDt
o
),
time
);
return
ResponseHelper
.
buildResponse
(
firefighters
InfoDt
o
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/FirefightersPostController.java
View file @
d970c695
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
controller
;
import
java.util.Arrays
;
import
javax.servlet.http.HttpServletRequest
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.transaction.annotation.Transactional
;
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.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
...
...
@@ -26,17 +8,32 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.FirefightersDataDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersEducation
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersPost
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.FirefightersWorkexperience
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.FirefightersData
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.FirefightersContactsServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.FirefightersEducationServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.FirefightersPostServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.FirefightersWorkexperienceServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.transaction.annotation.Transactional
;
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.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.Arrays
;
/**
...
...
@@ -70,11 +67,11 @@ public class FirefightersPostController extends BaseController {
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增岗位信息"
,
notes
=
"新增岗位信息"
)
@Transactional
public
ResponseModel
<
Object
>
saveFirefightersPost
(
HttpServletRequest
request
,
@RequestBody
FirefightersData
firefightersData
){
try
{
iFirefightersPostService
.
save
(
firefightersData
.
getFirefightersPost
());
ifirefightersWorkexperienceService
.
save
(
firefightersData
.
getFirefightersWorkexperience
());
ifirefightersEducationService
.
save
(
firefightersData
.
getFirefightersEducation
())
;
public
ResponseModel
<
Object
>
saveFirefightersPost
(
@RequestBody
FirefightersDataDto
firefightersDataDto
)
{
try
{
iFirefightersPostService
.
save
(
firefightersDataDto
.
getFirefightersPost
());
ifirefightersWorkexperienceService
.
save
(
firefightersDataDto
.
getFirefightersWorkexperience
());
ifirefightersEducationService
.
save
(
firefightersDataDto
.
getFirefightersEducation
())
;
return
ResponseHelper
.
buildResponse
(
null
);
}
catch
(
Exception
e
)
{
...
...
@@ -91,7 +88,7 @@ public class FirefightersPostController extends BaseController {
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
DELETE
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据消防人员id删除岗位和学历信息"
,
notes
=
"根据 id删除"
)
@Transactional
public
ResponseModel
<
Object
>
deleteById
(
HttpServletRequest
request
,
@PathVariable
Long
id
){
public
ResponseModel
<
Object
>
deleteById
(
@PathVariable
Long
id
){
try
{
iFirefightersPostService
.
update
(
new
UpdateWrapper
<
FirefightersPost
>().
eq
(
"firefighters_id"
,
id
).
set
(
"is_delete"
,
1
));
ifirefightersWorkexperienceService
.
update
(
new
UpdateWrapper
<
FirefightersWorkexperience
>().
eq
(
"firefighters_id"
,
id
).
set
(
"is_delete"
,
1
));
...
...
@@ -105,9 +102,6 @@ public class FirefightersPostController extends BaseController {
}
}
/**
* 修改岗位信息
* @return
...
...
@@ -116,15 +110,15 @@ public class FirefightersPostController extends BaseController {
@RequestMapping
(
value
=
"/updateById"
,
method
=
RequestMethod
.
PUT
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"修改岗位信息"
,
notes
=
"修改岗位信息"
)
@Transactional
public
ResponseModel
<
Object
>
updateByIdFirefightersPost
(
HttpServletRequest
request
,
@RequestBody
FirefightersData
firefightersData
)
{
public
ResponseModel
<
Object
>
updateByIdFirefightersPost
(
@RequestBody
FirefightersDataDto
firefightersDataDto
)
{
try
{
FirefightersPost
firefightersPost
=
firefightersData
.
getFirefightersPost
();
iFirefightersPostService
.
updateById
(
firefightersPost
);
ifirefightersWorkexperienceService
.
updateById
(
firefightersData
.
getFirefightersWorkexperience
());
ifirefightersEducationService
.
updateById
(
firefightersData
.
getFirefightersEducation
());
//删除缓存
redisUtils
.
del
(
RedisKey
.
EDUCATION_POST_EXPERIENCE_FIREFIGHTERS_ID
+
firefightersPost
.
getSequenceNbr
());
return
ResponseHelper
.
buildResponse
(
null
);
FirefightersPost
firefightersPost
=
firefightersDataDto
.
getFirefightersPost
();
iFirefightersPostService
.
updateById
(
firefightersPost
);
ifirefightersWorkexperienceService
.
updateById
(
firefightersDataDto
.
getFirefightersWorkexperience
());
ifirefightersEducationService
.
updateById
(
firefightersDataDto
.
getFirefightersEducation
());
//删除缓存
redisUtils
.
del
(
RedisKey
.
EDUCATION_POST_EXPERIENCE_FIREFIGHTERS_ID
+
firefightersPost
.
getSequenceNbr
());
return
ResponseHelper
.
buildResponse
(
null
);
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
"系统异常"
);
...
...
@@ -142,19 +136,12 @@ public class FirefightersPostController extends BaseController {
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据消防员id查询"
,
notes
=
"根据消防员id查询"
)
public
ResponseModel
<
Object
>
selectById
(
HttpServletRequest
request
,
@PathVariable
Long
id
){
// if(redisUtils.hasKey(RedisKey.EDUCATION_POST_EXPERIENCE_FIREFIGHTERS_ID+id)){
// Object obj= redisUtils.get(RedisKey.EDUCATION_POST_EXPERIENCE_FIREFIGHTERS_ID+id);
// return ResponseHelper.buildResponse(obj);
// }else{
public
ResponseModel
<
Object
>
selectById
(
@PathVariable
Long
id
){
@SuppressWarnings
(
"rawtypes"
)
QueryWrapper
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"firefighters_id"
,
id
);
FirefightersData
firefightersData
=
new
FirefightersData
(
ifirefightersWorkexperienceService
.
getOne
(
queryWrapper
),
ifirefightersEducationService
.
getOne
(
queryWrapper
),
iFirefightersPostService
.
getOne
(
queryWrapper
));
// redisUtils.set(RedisKey.EDUCATION_POST_EXPERIENCE_FIREFIGHTERS_ID+id, JSON.toJSON(firefightersData),time);
return
ResponseHelper
.
buildResponse
(
firefightersData
);
// }
FirefightersDataDto
firefightersDataDto
=
new
FirefightersDataDto
(
ifirefightersWorkexperienceService
.
getOne
(
queryWrapper
),
ifirefightersEducationService
.
getOne
(
queryWrapper
),
iFirefightersPostService
.
getOne
(
queryWrapper
));
return
ResponseHelper
.
buildResponse
(
firefightersDataDto
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/PowerTransferController.java
View file @
d970c695
...
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.jcs.biz.controller;
import
java.util.Arrays
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferSimpleDto
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
...
...
@@ -22,7 +23,6 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.PowerTransfer
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferVo
;
import
com.yeejoin.amos.boot.module.jcs.biz.service.impl.PowerTransferServiceImpl
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
...
...
@@ -152,9 +152,9 @@ public class PowerTransferController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/list/{alert_called_id}"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据警情id获取力量调派列表"
,
notes
=
"根据警情id获取力量调派列表"
)
public
ResponseModel
<
PowerTransfer
V
o
>
list
(
@PathVariable
String
alert_called_id
)
{
PowerTransfer
Vo
powerTransferV
o
=
powerTransferService
.
getPowerTransferList
(
Long
.
parseLong
(
alert_called_id
));
return
ResponseHelper
.
buildResponse
(
powerTransfer
V
o
);
public
ResponseModel
<
PowerTransfer
SimpleDt
o
>
list
(
@PathVariable
String
alert_called_id
)
{
PowerTransfer
SimpleDto
powerTransferSimpleDt
o
=
powerTransferService
.
getPowerTransferList
(
Long
.
parseLong
(
alert_called_id
));
return
ResponseHelper
.
buildResponse
(
powerTransfer
SimpleDt
o
);
}
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertSubmittedServiceImpl.java
View file @
d970c695
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
import
java.lang.reflect.Field
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Optional
;
import
java.util.Set
;
import
java.util.stream.Collectors
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.component.emq.EmqKeeper
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.utils.StringUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.google.common.collect.Lists
;
...
...
@@ -31,7 +10,11 @@ import com.yeejoin.amos.boot.biz.common.utils.RedisUtils;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledObjsDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertCalledRo
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertSubmittedDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertSubmittedExtDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.AlertSubmittedSMSDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.FormValue
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferCompanyDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.SchedulingReportingDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.TemplateDto
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.TemplateExtendDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
...
...
@@ -47,12 +30,28 @@ import com.yeejoin.amos.boot.module.jcs.api.enums.SubmissionMethodEnum;
import
com.yeejoin.amos.boot.module.jcs.api.mapper.AlertSubmittedMapper
;
import
com.yeejoin.amos.boot.module.jcs.api.service.IAlertSubmittedObjectService
;
import
com.yeejoin.amos.boot.module.jcs.api.service.IAlertSubmittedService
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.AlertSubmittedExtVo
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.AlertSubmittedSMSVo
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferCompanyVo
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.SchedulingReportingVo
;
import
com.yeejoin.amos.boot.module.jcs.biz.rule.action.AlertCalledAction
;
import
com.yeejoin.amos.component.rule.config.RuleConfig
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.component.emq.EmqKeeper
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.utils.StringUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.lang.reflect.Field
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Optional
;
import
java.util.Set
;
import
java.util.stream.Collectors
;
/**
* 警情报送记录 服务实现类
...
...
@@ -91,12 +90,12 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
private
String
topic
;
@Override
public
SchedulingReporting
V
o
listSchedulingByParam
(
AlertSubmittedDto
queryParam
)
{
SchedulingReporting
Vo
schedulingReportingVo
=
new
SchedulingReportingV
o
();
List
<
AlertSubmittedExt
Vo
>
alertSubmittedExtV
oList
=
this
.
baseMapper
.
listSchedulingByParam
(
queryParam
);
schedulingReporting
Vo
.
setSchedulingReportingList
(
alertSubmittedExtV
oList
);
Map
<
String
,
List
<
AlertSubmittedExt
V
o
>>
groupMap
=
alertSubmittedExt
VoList
.
stream
().
collect
(
Collectors
.
groupingBy
(
AlertSubmittedExtV
o:
:
getSubmissionMethodCode
));
public
SchedulingReporting
Dt
o
listSchedulingByParam
(
AlertSubmittedDto
queryParam
)
{
SchedulingReporting
Dto
schedulingReportingDto
=
new
SchedulingReportingDt
o
();
List
<
AlertSubmittedExt
Dto
>
alertSubmittedExtDt
oList
=
this
.
baseMapper
.
listSchedulingByParam
(
queryParam
);
schedulingReporting
Dto
.
setSchedulingReportingList
(
alertSubmittedExtDt
oList
);
Map
<
String
,
List
<
AlertSubmittedExt
Dt
o
>>
groupMap
=
alertSubmittedExt
DtoList
.
stream
().
collect
(
Collectors
.
groupingBy
(
AlertSubmittedExtDt
o:
:
getSubmissionMethodCode
));
int
phoneSize
=
0
;
int
smsSize
=
0
;
if
(
ObjectUtils
.
isNotEmpty
(
groupMap
.
get
(
SubmissionMethodEnum
.
PHONE
.
getCode
())))
{
...
...
@@ -106,31 +105,31 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
smsSize
=
groupMap
.
get
(
SubmissionMethodEnum
.
SMS
.
getCode
()).
size
();
}
String
extraInfo
=
String
.
format
(
"已调度电话%s起,短信%d批"
,
phoneSize
,
smsSize
);
schedulingReporting
V
o
.
setExtraInfo
(
extraInfo
);
return
schedulingReporting
V
o
;
schedulingReporting
Dt
o
.
setExtraInfo
(
extraInfo
);
return
schedulingReporting
Dt
o
;
}
@Override
public
SchedulingReporting
V
o
listReportingByParam
(
AlertSubmittedDto
queryParam
)
{
SchedulingReporting
Vo
schedulingReportingVo
=
new
SchedulingReportingV
o
();
List
<
AlertSubmittedExt
Vo
>
alertSubmittedExtV
oList
=
this
.
baseMapper
.
listReportingByParam
(
queryParam
);
if
(
ObjectUtils
.
isNotEmpty
(
alertSubmittedExt
V
oList
))
{
public
SchedulingReporting
Dt
o
listReportingByParam
(
AlertSubmittedDto
queryParam
)
{
SchedulingReporting
Dto
schedulingReportingDto
=
new
SchedulingReportingDt
o
();
List
<
AlertSubmittedExt
Dto
>
alertSubmittedExtDt
oList
=
this
.
baseMapper
.
listReportingByParam
(
queryParam
);
if
(
ObjectUtils
.
isNotEmpty
(
alertSubmittedExt
Dt
oList
))
{
// 组装额外信息
String
_extraInfo
=
"报送给%s、%s"
;
alertSubmittedExt
VoList
.
forEach
(
alertSubmittedExtV
o
->
{
alertSubmittedExt
Vo
.
setExtraInfo
(
String
.
format
(
_extraInfo
,
alertSubmittedExtV
o
.
getCompanyName
(),
alertSubmittedExt
V
o
.
getUserName
()));
TemplateExtendDto
template
=
templateService
.
getByType
(
alertSubmittedExt
V
o
.
getBusinessTypeCode
());
alertSubmittedExt
DtoList
.
forEach
(
alertSubmittedExtDt
o
->
{
alertSubmittedExt
Dto
.
setExtraInfo
(
String
.
format
(
_extraInfo
,
alertSubmittedExtDt
o
.
getCompanyName
(),
alertSubmittedExt
Dt
o
.
getUserName
()));
TemplateExtendDto
template
=
templateService
.
getByType
(
alertSubmittedExt
Dt
o
.
getBusinessTypeCode
());
String
richContent
=
template
.
getRichContent
();
alertSubmittedExt
Vo
.
setSubmissionContentValue
(
JSONObject
.
parseObject
(
alertSubmittedExtV
o
.
getSubmissionContent
()));
alertSubmittedExt
V
o
.
setSubmissionContent
(
richContent
);
alertSubmittedExt
Dto
.
setSubmissionContentValue
(
JSONObject
.
parseObject
(
alertSubmittedExtDt
o
.
getSubmissionContent
()));
alertSubmittedExt
Dt
o
.
setSubmissionContent
(
richContent
);
});
schedulingReporting
Vo
.
setSchedulingReportingList
(
alertSubmittedExtV
oList
);
schedulingReporting
Dto
.
setSchedulingReportingList
(
alertSubmittedExtDt
oList
);
String
extraInfo
=
String
.
format
(
"已报送%d条"
,
alertSubmittedExt
V
oList
.
size
());
schedulingReporting
V
o
.
setExtraInfo
(
extraInfo
);
String
extraInfo
=
String
.
format
(
"已报送%d条"
,
alertSubmittedExt
Dt
oList
.
size
());
schedulingReporting
Dt
o
.
setExtraInfo
(
extraInfo
);
}
return
schedulingReporting
V
o
;
return
schedulingReporting
Dt
o
;
}
@Override
...
...
@@ -360,16 +359,16 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
for
(
DataDictionary
dataDictionary
:
dataDictionaries
)
{
Template
template
=
templateService
.
getOne
(
new
QueryWrapper
<
Template
>().
eq
(
"type_code"
,
dataDictionary
.
getCode
()));
List
<
PowerTransferCompany
V
o
>
lastPowerTransferCompany
;
List
<
PowerTransferCompany
Dt
o
>
lastPowerTransferCompany
;
if
(
"警情续报"
.
equals
(
template
.
getType
())
&&
(
lastPowerTransferCompany
=
powerTransferService
.
getLastPowerTransferCompany
(
alertCalledId
)).
size
()
>
0
)
{
map
.
put
(
"businessType"
,
template
.
getType
());
// 获取力量调派内容
StringBuilder
companyNames
=
new
StringBuilder
();
StringBuilder
resourcesInfo
=
new
StringBuilder
();
for
(
PowerTransferCompany
Vo
powerTransferCompanyV
o
:
lastPowerTransferCompany
)
{
companyNames
.
append
(
powerTransferCompany
V
o
.
getCompanyName
()).
append
(
"、"
);
resourcesInfo
.
append
(
powerTransferCompany
Vo
.
getType
()).
append
(
powerTransferCompanyV
o
.
getResourcesCount
()).
append
(
"辆、"
);
for
(
PowerTransferCompany
Dto
powerTransferCompanyDt
o
:
lastPowerTransferCompany
)
{
companyNames
.
append
(
powerTransferCompany
Dt
o
.
getCompanyName
()).
append
(
"、"
);
resourcesInfo
.
append
(
powerTransferCompany
Dto
.
getType
()).
append
(
powerTransferCompanyDt
o
.
getResourcesCount
()).
append
(
"辆、"
);
}
map
.
put
(
"companyNames"
,
companyNames
.
deleteCharAt
(
companyNames
.
length
()
-
1
).
toString
());
map
.
put
(
"resourcesInfo"
,
resourcesInfo
.
deleteCharAt
(
resourcesInfo
.
length
()
-
1
).
toString
());
...
...
@@ -383,7 +382,7 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
}
@Override
public
AlertSubmittedSMS
V
o
getSchedulingContent
(
Long
id
)
{
public
AlertSubmittedSMS
Dt
o
getSchedulingContent
(
Long
id
)
{
return
this
.
baseMapper
.
getSchedulingContent
(
id
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/PowerTransferServiceImpl.java
View file @
d970c695
...
...
@@ -18,9 +18,7 @@ import com.yeejoin.amos.boot.module.jcs.api.enums.FireCarStatusEnum;
import
com.yeejoin.amos.boot.module.jcs.api.feign.EquipFeignClient
;
import
com.yeejoin.amos.boot.module.jcs.api.mapper.PowerTransferMapper
;
import
com.yeejoin.amos.boot.module.jcs.api.service.IPowerTransferService
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferCompanyResourcesVo
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferCompanyVo
;
import
com.yeejoin.amos.boot.module.jcs.api.vo.PowerTransferVo
;
import
com.yeejoin.amos.boot.module.jcs.api.dto.PowerTransferSimpleDto
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
...
...
@@ -70,14 +68,14 @@ public class PowerTransferServiceImpl extends BaseService<PowerTransferDto, Powe
FireTeamServiceImpl
fireTeamService
;
@Override
public
PowerTransfer
V
o
getPowerTransferList
(
Long
alertCalledId
)
{
List
<
PowerTransferCompanyResources
V
o
>
powerTransferList
=
public
PowerTransfer
SimpleDt
o
getPowerTransferList
(
Long
alertCalledId
)
{
List
<
PowerTransferCompanyResources
Dt
o
>
powerTransferList
=
this
.
baseMapper
.
getPowerTransferList
(
alertCalledId
);
PowerTransfer
Vo
powerTransferVo
=
new
PowerTransferV
o
();
PowerTransfer
SimpleDto
powerTransferSimpleDto
=
new
PowerTransferSimpleDt
o
();
int
resourcesCount
=
powerTransferList
.
size
();
powerTransfer
V
o
.
setResourcesCount
(
resourcesCount
);
powerTransfer
V
o
.
setResourcesList
(
powerTransferList
);
return
powerTransfer
V
o
;
powerTransfer
SimpleDt
o
.
setResourcesCount
(
resourcesCount
);
powerTransfer
SimpleDt
o
.
setResourcesList
(
powerTransferList
);
return
powerTransfer
SimpleDt
o
;
}
@Override
...
...
@@ -251,7 +249,7 @@ public class PowerTransferServiceImpl extends BaseService<PowerTransferDto, Powe
}
@Override
public
List
<
PowerTransferCompany
V
o
>
getLastPowerTransferCompany
(
Long
alertCalledId
)
{
public
List
<
PowerTransferCompany
Dt
o
>
getLastPowerTransferCompany
(
Long
alertCalledId
)
{
return
this
.
baseMapper
.
getLastPowerTransferCompany
(
alertCalledId
);
}
}
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