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
be660763
Commit
be660763
authored
May 31, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix- 增加自定义指令表, 增加自定义指令信息:实战指挥需求【1575】
隐患管理页面查询API修改调整
parent
d03aa7ec
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
115 additions
and
6 deletions
+115
-6
JcSituationDetail.java
...in/amos/boot/module/jcs/api/entity/JcSituationDetail.java
+32
-0
JcSituationDetailMapper.java
...s/boot/module/jcs/api/mapper/JcSituationDetailMapper.java
+7
-0
PowerTransferCompanyController.java
...le/jcs/biz/controller/PowerTransferCompanyController.java
+32
-0
AlertSubmittedServiceImpl.java
...odule/jcs/biz/service/impl/AlertSubmittedServiceImpl.java
+20
-4
jcs-1.0.0.0.xml
...ystem-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
+22
-0
LatentDangerMapper.xml
...anger/src/main/resources/db/mapper/LatentDangerMapper.xml
+2
-2
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/entity/JcSituationDetail.java
0 → 100644
View file @
be660763
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.module.common.api.dto.AttachmentDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.SourceFile
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.List
;
import
java.util.Map
;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"jc_situation_detail"
)
@ApiModel
(
value
=
"AlertCalled对象"
,
description
=
"警情接警记录"
)
public
class
JcSituationDetail
extends
BaseEntity
{
@ApiModelProperty
(
value
=
"报送内容"
)
private
String
info
;
@ApiModelProperty
(
value
=
"类型"
)
private
String
infoType
=
"指令下发"
;
@ApiModelProperty
(
value
=
"警情ID"
)
private
Long
alertCalledId
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/mapper/JcSituationDetailMapper.java
0 → 100644
View file @
be660763
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
api
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.JcSituationDetail
;
public
interface
JcSituationDetailMapper
extends
BaseMapper
<
JcSituationDetail
>
{
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/PowerTransferCompanyController.java
View file @
be660763
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jcs
.
biz
.
controller
;
import
java.util.Arrays
;
import
java.util.Objects
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.SourceFileServiceImpl
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.JcSituationDetail
;
import
com.yeejoin.amos.boot.module.jcs.api.mapper.JcSituationDetailMapper
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
@@ -22,6 +26,8 @@ import com.yeejoin.amos.boot.module.jcs.biz.service.impl.PowerTransferCompanySer
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
/**
...
...
@@ -38,6 +44,12 @@ public class PowerTransferCompanyController extends BaseController {
@Autowired
PowerTransferCompanyServiceImpl
powerTransferCompanyService
;
@Autowired
SourceFileServiceImpl
sourceFileService
;
@Autowired
JcSituationDetailMapper
jcSituationDetailMapper
;
/**
* 新增调派单位
*
...
...
@@ -139,5 +151,25 @@ public class PowerTransferCompanyController extends BaseController {
page
=
powerTransferCompanyService
.
page
(
pageBean
,
powerTransferCompanyQueryWrapper
);
return
page
;
}
/**
* 新增文字信息图片信息
*
* @return 返回结果
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/jcSituationDetail/save"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增文字信息图片信息"
,
notes
=
"新增文字信息图片信息"
)
public
ResponseModel
<
Boolean
>
saveJcSituationDetail
(
@RequestBody
JcSituationDetail
jcSituationDetail
)
{
if
(
Objects
.
isNull
(
jcSituationDetail
.
getAlertCalledId
()))
{
}
jcSituationDetailMapper
.
insert
(
jcSituationDetail
);
// if (ObjectUtils.isNotEmpty(jcSituationDetail.getAttachments())) {
// sourceFileService.saveAttachments(jcSituationDetail.getSequenceNbr(), jcSituationDetail.getAttachments());
// }
return
ResponseHelper
.
buildResponse
(
Boolean
.
TRUE
);
}
}
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 @
be660763
...
...
@@ -32,6 +32,9 @@ import java.util.stream.IntStream;
import
com.yeejoin.amos.boot.module.command.api.dto.FrontlineLiaisonDto
;
import
com.yeejoin.amos.boot.module.command.biz.service.impl.FrontlineLiaisonServiceImpl
;
import
com.yeejoin.amos.boot.module.common.api.service.ISourceFileService
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.*
;
import
com.yeejoin.amos.boot.module.jcs.api.mapper.JcSituationDetailMapper
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.poi.xwpf.usermodel.XWPFTable
;
...
...
@@ -113,10 +116,6 @@ 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.dto.VoiceRecordFileDto
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertCalled
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmitted
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.AlertSubmittedObject
;
import
com.yeejoin.amos.boot.module.jcs.api.entity.Template
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.AlertBusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.AlertSchedulingTypeEnum
;
import
com.yeejoin.amos.boot.module.jcs.api.enums.AlertStageEnums
;
...
...
@@ -214,6 +213,9 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
private
FrontlineLiaisonServiceImpl
frontlineLiaisonServiceImpl
;
@Autowired
JcSituationDetailMapper
jcSituationDetailMapper
;
@Value
(
"${mqtt.topic.command.alert.noticeJa}"
)
private
String
topicJa
;
...
...
@@ -1434,6 +1436,20 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
listInstructionsZHDto
.
add
(
instruct
);
});
//增加自定义指令信息:实战指挥需求【1575】
LambdaQueryWrapper
<
JcSituationDetail
>
qw
=
new
LambdaQueryWrapper
();
qw
.
eq
(
JcSituationDetail:
:
getAlertCalledId
,
id
);
List
<
JcSituationDetail
>
jcSituationDetailList
=
jcSituationDetailMapper
.
selectList
(
qw
);
jcSituationDetailList
.
stream
().
forEach
(
item
->
{
InstructionsZHDto
instructionsZHDto
=
new
InstructionsZHDto
();
instructionsZHDto
.
setSequenceNbr
(
item
.
getSequenceNbr
());
instructionsZHDto
.
setType
(
item
.
getInfoType
());
instructionsZHDto
.
setContent
(
item
.
getInfo
());
instructionsZHDto
.
setSubmissionTime
(
item
.
getRecDate
());
listInstructionsZHDto
.
add
(
instructionsZHDto
);
});
// ;
//排序时间倒序
/* Bug 2613 修改排序 按照发送时间排序 2021-09-01 陈召 开始*/
Collections
.
sort
(
listInstructionsZHDto
,
new
Comparator
<
InstructionsZHDto
>()
{
...
...
amos-boot-system-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
View file @
be660763
...
...
@@ -2899,5 +2899,27 @@
</sql>
</changeSet>
<changeSet
author=
"zs"
id=
"2022-05-31-01"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<tableExists
tableName=
"jc_situation_detail"
/>
</not>
</preConditions>
<comment>
增加自定义指令表
</comment>
<sql>
CREATE TABLE `jc_situation_detail` (
`sequence_nbr` bigint(20) NOT NULL AUTO_INCREMENT,
`info` longtext COMMENT '内容图片信息',
`alert_called_id` bigint(20) DEFAULT NULL COMMENT '警情ID',
`rec_date` datetime DEFAULT NULL COMMENT '时间',
`rec_user_id` varchar(19) DEFAULT NULL COMMENT '发送人',
`rec_user_name` varchar(15) DEFAULT NULL COMMENT '发送人名称',
`is_delete` bit(1) NOT NULL COMMENT '是否删除',
`info_type` varchar(255) DEFAULT NULL COMMENT '消息类型',
PRIMARY KEY (`sequence_nbr`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
</sql>
</changeSet>
</databaseChangeLog>
amos-boot-system-latentdanger/src/main/resources/db/mapper/LatentDangerMapper.xml
View file @
be660763
...
...
@@ -1041,8 +1041,8 @@
<if
test=
"key == 'endDeadline' and value != null and value != ''"
>
and a.reform_limit_date
<![CDATA[ <= ]]>
#{value}
</if>
<if
test=
"key == 'point
Name
' and value != null and value != ''"
>
and a.biz_info like concat('%"point
Name
":"', #{value}, '"%')
<if
test=
"key == 'point
Id
' and value != null and value != ''"
>
and a.biz_info like concat('%"point
Id
":"', #{value}, '"%')
</if>
</foreach>
</where>
...
...
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