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
8b89e58f
Commit
8b89e58f
authored
Nov 01, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
80f9a141
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
1 deletion
+37
-1
AlertCalledObjsDto.java
...join/amos/boot/module/jcs/api/dto/AlertCalledObjsDto.java
+15
-0
AlertCalled.java
.../yeejoin/amos/boot/module/jcs/api/entity/AlertCalled.java
+6
-0
AlertCalledMapper.xml
...e-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
+1
-1
AlertCalledServiceImpl.java
...t/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
+4
-0
jcs-1.0.0.0.xml
...ystem-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
+11
-0
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/AlertCalledObjsDto.java
View file @
8b89e58f
...
...
@@ -27,4 +27,19 @@ public class AlertCalledObjsDto extends BaseDto{
@ApiModelProperty
(
value
=
"动态表单值"
)
private
List
<
AlertFormValue
>
alertFormValue
;
public
String
getRemark
()
{
String
value
=
""
;
for
(
AlertFormValue
al
:
alertFormValue
)
{
if
(
al
.
getFieldCode
()
==
"remark"
)
{
value
=
al
.
getFieldValue
();
}
}
return
value
;
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/com/yeejoin/amos/boot/module/jcs/api/entity/AlertCalled.java
View file @
8b89e58f
...
...
@@ -101,6 +101,12 @@ public class AlertCalled extends BaseEntity {
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
@ApiModelProperty
(
value
=
"备注信息"
)
private
String
remark
;
/*bug 2408 接警记录,按警情状态和接警时间筛选功能失效 陈召 2021-09-22 开始*/
@ApiModelProperty
(
value
=
"接警时间开始---用于列表过滤"
)
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/AlertCalledMapper.xml
View file @
8b89e58f
...
...
@@ -26,7 +26,7 @@
a.call_time callTime,
a.update_time updateTime,
a.rescue_grid rescueGrid,
CONCAT(a.alert_type,' ',IFNULL(
(select field_value from jc_alert_form_value where jc_alert_form_value.alert_called_id =a.sequence_nbr and jc_alert_form_value.field_code='remark')
,"")) alertType,
CONCAT(a.alert_type,' ',IFNULL(
a.remark
,"")) alertType,
a.alert_type_code alarmTypeCode,
a.unit_involved unitInvolved,
a.trapped_num trappedNum,
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
View file @
8b89e58f
...
...
@@ -257,6 +257,8 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
try
{
// 警情基本信息
AlertCalled
alertCalled
=
alertCalledObjsDto
.
getAlertCalled
();
//主表增加备注字段
if
(
alertCalled
.
getAddress
()
!=
null
)
{
JSONObject
address
=
WaterResourceServiceImpl
.
getLongLatFromAddress
(
alertCalled
.
getAddress
());
alertCalled
.
setAddress
(
address
.
getString
(
BizConstant
.
ADDRESS
));
...
...
@@ -290,6 +292,7 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
alertCalled
.
setAlarmType
(
AlertStageEnums
.
JQGB
.
getValue
());
alertCalled
.
setAlarmTypeCode
(
AlertStageEnums
.
JQGB
.
getCode
());
alertCalled
.
setUpdateTime
(
new
Date
());
alertCalled
.
setRemark
(
alertCalledObjsDto
.
getRemark
());
this
.
save
(
alertCalled
);
// 填充警情主键
...
...
@@ -307,6 +310,7 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
alertCalled
.
setAlertStage
(
AlertStageEnums
.
LLDP
.
getValue
());
alertCalled
.
setAlarmType
(
AlertStageEnums
.
JQCB
.
getValue
());
alertCalled
.
setAlarmTypeCode
(
AlertStageEnums
.
JQCB
.
getCode
());
alertCalled
.
setRemark
(
alertCalledObjsDto
.
getRemark
());
this
.
save
(
alertCalled
);
// 填充警情主键
alertFormValuelist
.
stream
().
forEach
(
alertFormValue
->
{
...
...
amos-boot-system-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
View file @
8b89e58f
...
...
@@ -1990,5 +1990,16 @@
</sql>
</changeSet>
<!-- <changeSet author="tw" id="2021-11-01-1">-->
<!-- <preConditions onFail="MARK_RAN">-->
<!-- <tableExists tableName="jc_alert_called"/>-->
<!-- </preConditions>-->
<!-- <comment>增加备注字段</comment>-->
<!-- <sql>-->
<!-- ALTER TABLE jc_alert_called ADD remark varchar(10000) NULL COMMENT '备注'-->
<!-- </sql>-->
<!-- </changeSet>-->
</databaseChangeLog>
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