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
e297e5da
Commit
e297e5da
authored
Dec 29, 2021
by
李腾威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
融合调度短信模板与详情及短信信息不一致处理
parent
494e3ce4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
4 deletions
+60
-4
AlertSubmittedController.java
...t/module/jcs/biz/controller/AlertSubmittedController.java
+1
-1
AlertSubmittedServiceImpl.java
...odule/jcs/biz/service/impl/AlertSubmittedServiceImpl.java
+13
-3
jcs-1.0.0.0.xml
...ystem-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
+46
-0
No files found.
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 @
e297e5da
...
...
@@ -277,7 +277,7 @@ public class AlertSubmittedController extends BaseController {
definitions
.
put
(
"$casualtiesNum"
,
ValidationUtil
.
isEmpty
(
alertCalled
.
getCasualtiesNum
())
?
"无"
:
String
.
valueOf
(
alertCalled
.
getCasualtiesNum
()));
definitions
.
put
(
"$contactPhone"
,
ValidationUtil
.
isEmpty
(
alertCalled
.
getContactPhone
())
?
"无"
:
alertCalled
.
getContactPhone
());
String
companyName
=
JSONObject
.
parseObject
(
schedulingContent
.
getSubmissionContent
()).
getString
(
"
$
companyName"
)
;
String
companyName
=
JSONObject
.
parseObject
(
schedulingContent
.
getSubmissionContent
()).
getString
(
"companyName"
)
;
definitions
.
put
(
"$companyName"
,
null
==
companyName
?
""
:
companyName
);
...
...
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 @
e297e5da
...
...
@@ -304,9 +304,16 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
@Override
public
Boolean
save
(
AlertSubmittedDto
alertSubmittedDto
,
String
userName
)
throws
Exception
{
try
{
String
company
=
ValidationUtil
.
isEmpty
(
alertSubmittedDto
.
getSubmitContent
().
get
(
"companyName"
))
?
""
:
alertSubmittedDto
.
getSubmitContent
().
get
(
"companyName"
).
toString
()
;
Map
<
String
,
String
>
map
=
saveAlertSubmitted
(
alertSubmittedDto
,
userName
);
// 组装规则入参
AlertCalled
alertCalled
=
alertCalledService
.
getById
(
alertSubmittedDto
.
getAlertCalledId
());
alertCalled
.
setCompanyName
(
company
);
// if(AlertBusinessTypeEnum.警情结案.getCode().equals(alertSubmittedDto.getBusinessTypeCode())) {
//// alertCalled.setEndTimeStr()
//// }
AlertCalledObjsDto
alertCalledVo
=
(
AlertCalledObjsDto
)
alertCalledService
.
selectAlertCalledByIdNoRedisNew
(
alertCalled
.
getSequenceNbr
());
alertCalledVo
.
setAlertCalled
(
alertCalled
);
...
...
@@ -519,14 +526,15 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
smsParams
.
put
(
"callTimeStr"
,
calledRo
.
getCallTimeStr
());
smsParams
.
put
(
"address"
,
calledRo
.
getAddress
());
smsParams
.
put
(
"fireLocation"
,
calledRo
.
getFireLocation
());
smsParams
.
put
(
"endTimeStr"
,
DateUtils
.
convertDateToString
(
alertCalled
.
getRecDate
(),
DateUtils
.
DATE_TIME_PATTERN
));
smsParams
.
put
(
"burningMaterial"
,
calledRo
.
getBurningMaterial
());
smsParams
.
put
(
"fireSituation"
,
calledRo
.
getFireSituation
());
smsParams
.
put
(
"trappedNum"
,
calledRo
.
getTrappedNum
());
smsParams
.
put
(
"casualtiesNum"
,
calledRo
.
getCasualtiesNum
());
smsParams
.
put
(
"dangerousExplosives"
,
calledRo
.
getDangerousExplosives
());
smsParams
.
put
(
"companyName"
,
calledRo
.
getCompanyName
());
smsParams
.
put
(
"contactUser"
,
calledRo
.
getContactUser
());
smsParams
.
put
(
"contactPhone"
,
calledRo
.
getContactPhone
());
smsParams
.
put
(
"contactUser"
,
alertCalled
.
getContactUser
());
smsParams
.
put
(
"contactPhone"
,
alertCalled
.
getContactPhone
());
smsParams
.
put
(
"replaceContent"
,
calledRo
.
getReplaceContent
());
smsParams
.
put
(
"alertType"
,
calledRo
.
getAlertType
());
smsParams
.
put
(
"feedback"
,
calledRo
.
getFeedback
());
...
...
@@ -1169,7 +1177,9 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
definitions
.
put
(
"$callTime"
,
DateUtils
.
dateTimeToDateString
(
alertCalled
.
getCallTime
()));
definitions
.
put
(
"$replaceContent"
,
replaceContent
);
definitions
.
put
(
"$address"
,
alertCalled
.
getAddress
());
definitions
.
put
(
"$recDate"
,
DateUtils
.
convertDateToString
(
alertCalled
.
getRecDate
(),
DateUtils
.
DATE_TIME_PATTERN
));
definitions
.
put
(
"$contactUser"
,
alertCalled
.
getContactUser
());
definitions
.
put
(
"$contactPhone"
,
alertCalled
.
getContactPhone
());
definitions
.
put
(
"$recDate"
,
DateUtils
.
convertDateToString
(
new
Date
(),
DateUtils
.
DATE_TIME_PATTERN
));
String
content
=
getTaskInformation
(
template
.
getContent
(),
definitions
);
template
.
setContent
(
content
);
TemplateDto
templateDto
=
new
TemplateDto
();
...
...
amos-boot-system-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
View file @
e297e5da
...
...
@@ -2398,5 +2398,51 @@
ALTER TABLE `cb_contract` MODIFY COLUMN org_code VARCHAR(10) DEFAULT NULL COMMENT '机构代码用于权限过滤';
</sql>
</changeSet>
<changeSet
author=
"litengwei"
id=
"2021-11-29-litengwei-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"jc_template"
/>
</preConditions>
<comment>
update data jc_template
</comment>
<sql>
update
`jc_template` jc
set
content = '
<![CDATA[<p>【警情续报】<span contenteditable="true" data-name="editContent" data-type="input"></span><p>相关警情:时间:$callTime 地点: $address 发生$type 警情 $replaceContent 被困人数:<span contenteditable="true" data-name="trappedNum" data-type="input"></span>;伤亡人数:<span contenteditable="true" data-name="casualtiesNum" data-type="input"></span>;<p>发送单位:<span contentEditable data-name="companyName" data-type="input"></span></p><p>联系人:$contactUser 联系电话:$contactPhone < /p> ]]>
'
where jc.type_code = '313'
</sql>
</changeSet>
<changeSet
author=
"litengwei"
id=
"2021-11-29-litengwei-2"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"jc_template"
/>
</preConditions>
<comment>
update data jc_template
</comment>
<sql>
update
jc_template jc
set
content = '
<![CDATA[<p>【非警情确认】根据现场反馈信息、视频监控信息和消防物联监控信息,判断 【时间:$callTime 地点: $address 发生$type 警情 $replaceContent ;被困人数:<span contenteditable="true" data-name="trappedNum" data-type="input"></span>;伤亡人数:<span contenteditable="true" data-name="casualtiesNum" data-type="input"></span>; 】 为非警情,请个单位、部门尽快 进行恢复到日常执勤状态。</p><p>发送单位:<span contenteditable="true" data-name="companyName" data-type="input"></span></p><p>联系人:$contactUser 联系电话:$contactPhone < /p>]]>
'
where
jc.type_code = '314'
</sql>
</changeSet>
<changeSet
author=
"litengwei"
id=
"2021-11-29-litengwei-3"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"jc_template"
/>
</preConditions>
<comment>
update data jc_template
</comment>
<sql>
update
jc_template jc
set
content = '
<![CDATA[<p>【警情结案】当前警情已于<span contenteditable="true" data-name="recDate" data-type="input"></span> 当前警情已经结案。</p>相关警情:时间:$callTime 地点: $address 发生$type 警情 $replaceContent;被困人数:<span contenteditable="true" data-name="trappedNum" data-type="input"></span>;伤亡人数:<span contenteditable="true" data-name="casualtiesNum" data-type="input"></span>;<p>发送单位:<span contentEditable data-name="companyName" data-type="input"></span></p><p>联系人:$contactUser 联系电话:$contactPhone < /p>]]>
'
where
jc.type_code = '315'
</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