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
c806eb71
Commit
c806eb71
authored
Oct 14, 2021
by
kongfm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新配置文件及派遣小程序反馈
parent
6a217644
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
104 additions
and
15 deletions
+104
-15
DispatchTaskServiceImpl.java
.../module/tzs/biz/service/impl/DispatchTaskServiceImpl.java
+26
-7
application-dev.properties
...-system-tzs/src/main/resources/application-dev.properties
+3
-5
application-qa.properties
...t-system-tzs/src/main/resources/application-qa.properties
+75
-3
No files found.
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 @
c806eb71
...
...
@@ -42,7 +42,10 @@ import com.yeejoin.amos.boot.module.tzs.api.service.IRescueStationService;
import
com.yeejoin.amos.boot.module.tzs.api.service.IUseUnitService
;
import
com.yeejoin.amos.boot.module.tzs.biz.controller.WechatController
;
import
com.yeejoin.amos.boot.module.tzs.biz.utils.BeanDtoVoUtils
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.model.SmsRecordModel
;
import
org.apache.commons.lang3.StringUtils
;
import
org.eclipse.paho.client.mqttv3.MqttException
;
import
org.slf4j.Logger
;
...
...
@@ -586,7 +589,6 @@ public class DispatchTaskServiceImpl extends BaseService<DispatchTaskDto,Dispatc
data
.
put
(
"first"
,
"电梯困人任务已派遣,请尽快前往救援!"
);
data
.
put
(
"keyword1"
,
alertCalled
.
getAddress
());
data
.
put
(
"keyword2"
,
DateUtils
.
date2LongStr
(
dispatchTaskDto
.
getDispatchTime
()));
data
.
put
(
"keyword3"
,
alertCalled
.
getEmergencyCall
());
data
.
put
(
"remark"
,
"请在收到任务后30分钟内到达人员被困位置进行救援!"
);
temp
.
setData
(
data
);
}
else
if
(
AlertStageEnums
.
GZWX
.
getId
().
equals
(
dispatchTaskDto
.
getAlertCode
()))
{
...
...
@@ -603,6 +605,13 @@ public class DispatchTaskServiceImpl extends BaseService<DispatchTaskDto,Dispatc
}
else
if
(
AlertStageEnums
.
TSZX
.
getId
().
equals
(
dispatchTaskDto
.
getAlertCode
()))
{
temp
.
setTemplateId
(
TS_TEMPID
);
temp
.
setUrl
(
TS_URL
+
"?id="
+
dispatchTaskDto
.
getSequenceNbr
());
data
.
put
(
"first"
,
"投诉建议任务已派遣,请尽快前往救援!"
);
data
.
put
(
"keyword1"
,
"投诉建议"
);
data
.
put
(
"keyword2"
,
"投诉建议"
);
data
.
put
(
"keyword3"
,
alertCalled
.
getEmergencyPerson
());
data
.
put
(
"keyword4"
,
alertCalled
.
getEmergencyCall
());
data
.
put
(
"keyword5"
,
DateUtils
.
date2LongStr
(
dispatchTaskDto
.
getDispatchTime
()));
data
.
put
(
"remark"
,
"任务已派遣,请尽快前往处置!"
);
temp
.
setData
(
data
);
}
return
temp
;
...
...
@@ -900,12 +909,22 @@ public class DispatchTaskServiceImpl extends BaseService<DispatchTaskDto,Dispatc
rescueProcessServiceImpl
.
updateByAlertId
(
rescueProcessDto
);
}
}
// 发送任务单
WechatRelation
temp
=
wechatRelationServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
WechatRelation
>().
eq
(
WechatRelation:
:
getPhone
,
dispatchTaskDto
.
getResponseUserTel
()));
if
(
temp
!=
null
&&
temp
.
getOpenId
()
!=
null
)
{
dispatchTaskDto
.
setSequenceNbr
(
dispatchTask
.
getSequenceNbr
());
WechatMessageDto
dto
=
this
.
getWechatMessageDtoByDispatchTaskDto
(
dispatchTaskDto
);
wechatService
.
sendWechatModelMessage
(
temp
.
getOpenId
()
,
dto
);
String
infoCode
=
dispatchTaskDto
.
getDispatchInfoCode
();
if
(
infoCode
.
indexOf
(
"0"
)
!=
-
1
&&
StringUtils
.
isNotBlank
(
dispatchTaskDto
.
getResponseUserTel
()))
{
// 下发了小程序
// 发送任务单
WechatRelation
temp
=
wechatRelationServiceImpl
.
getOne
(
new
LambdaQueryWrapper
<
WechatRelation
>().
eq
(
WechatRelation:
:
getPhone
,
dispatchTaskDto
.
getResponseUserTel
()));
if
(
temp
!=
null
&&
temp
.
getOpenId
()
!=
null
)
{
dispatchTaskDto
.
setSequenceNbr
(
dispatchTask
.
getSequenceNbr
());
WechatMessageDto
dto
=
this
.
getWechatMessageDtoByDispatchTaskDto
(
dispatchTaskDto
);
wechatService
.
sendWechatModelMessage
(
temp
.
getOpenId
()
,
dto
);
}
}
if
(
infoCode
.
indexOf
(
"1"
)
!=
-
1
&&
StringUtils
.
isNotBlank
(
dispatchTaskDto
.
getResponseUserTel
()))
{
// 下发了短信
/*HashMap<String, String> params = new HashMap<>();
params.put("smsCode","SMS_JCS_0001");
params.put("mobile",dispatchTaskDto.getResponseUserTel());
params.put("address","测试传参短信通知");
FeignClientResult<SmsRecordModel> result = Systemctl.smsClient.sendCommonSms(params);*/
}
// mqtt 通知新派遣
JSONObject
jsonObject
=
new
JSONObject
();
...
...
amos-boot-system-tzs/src/main/resources/application-dev.properties
View file @
c806eb71
...
...
@@ -42,9 +42,7 @@ tzs.cti.secretkey=7bd29115-99ee-4f7d-1fb1-7c4719d5f43a
tzs.cti.url
=
http://36.46.151.113:8000
tzs.wechat.url
=
https://api.weixin.qq.com
##wechatAPPID wx79aca5bb1cb4af92 uat-wx8918c1aaad956617
tzs.wechat.appid
=
wx8918c1aaad956617
##wechatSECRET f3a12323ba731d282c3d4698c27c3e97 uat-337c3d8f3e749140d4f9aedc8311033b
tzs.wechat.secret
=
337c3d8f3e749140d4f9aedc8311033b
##wechatToken
...
...
@@ -52,11 +50,11 @@ tzs.wechat.token=yeejoin_2021
##wechatTicketUrl
tzs.wechat.ticketurl
=
https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=
tzs.wechat.tempId.kr
=
Hlu43OOCVTESzOtkP4we1AUZJoPfquZl2_DEn6U66Z4
tzs.wechat.tempId.kr
=
rjW8x9rRitIpa21Jekyx2nzBzpJy7tycssCXSN4YhWw
tzs.wechat.url.kr
=
tzs.yeeamos.com/persondetail.html
tzs.wechat.tempId.wx
=
rags-expfNSBB-h2WenuBI2c6pCEndH4uwTtOqlHqDM
tzs.wechat.tempId.wx
=
ofBIZS8Bup9s0zKbrGa8BfhVhS18H_hyC_OYXuBN6hI
tzs.wechat.url.wx
=
tzs.yeeamos.com/repairPersondetail.html
tzs.wechat.tempId.ts
=
SLjmNJoCNLC3FBcYzWzR-u3el0kqXf8WMTmzw8dAQm4
tzs.wechat.tempId.ts
=
Kr7lcV8g4g_lgyW_RpwnNgw_HDxxRuVx759EoFWrIfU
tzs.wechat.url.ts
=
tzs.yeeamos.com/persondetail.html
mqtt.topic.task.newtask
=
tzs-task-newtask
...
...
amos-boot-system-tzs/src/main/resources/application-qa.properties
View file @
c806eb71
#DB properties:
spring.datasource.url
=
jdbc:mysql://172.16.10.66:3306/safety-business-3.0.0?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.url
=
jdbc:mysql://113.134.211.174:3306/xiy_amos_tzs_biz?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.username
=
root
spring.datasource.password
=
root_123
\ No newline at end of file
spring.datasource.password
=
Yeejoin@2020
##eureka properties:
eureka.client.service-url.defaultZone
=
http://113.134.211.174:10001/eureka/
eureka.instance.prefer-ip-address
=
true
management.endpoint.health.show-details
=
always
management.endpoints.web.exposure.include
=
*
eureka.instance.health-check-url
=
http://192.168.0.204:${server.port}${server.servlet.context-path}/actuator/health
eureka.instance.metadata-map.management.context-path
=
${server.servlet.context-path}/actuator
eureka.instance.status-page-url
=
http://192.168.0.204:${server.port}${server.servlet.context-path}/actuator/info
eureka.instance.metadata-map.management.api-docs
=
http://192.168.0.204:${server.port}${server.servlet.context-path}/swagger-ui.html
## ES properties:
biz.elasticsearch.address
=
192.168.0.204
spring.data.elasticsearch.cluster-name
=
elasticsearch
spring.data.elasticsearch.cluster-nodes
=
${biz.elasticsearch.address}:9300
spring.elasticsearch.rest.uris
=
http://${biz.elasticsearch.address}:9200
## unit(h)
alertcall.es.synchrony.time
=
48
#redis properties:
spring.redis.database
=
1
spring.redis.host
=
113.134.211.174
spring.redis.port
=
6379
spring.redis.password
=
yeejoin@2020
spring.redis.lettuce.pool.max-active
=
200
spring.redis.lettuce.pool.max-wait
=
-1
spring.redis.lettuce.pool.max-idle
=
10
spring.redis.lettuce.pool.min-idle
=
0
spring.redis.expire.time
=
300
## emqx properties:
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.broker
=
tcp://113.134.211.174:1883
emqx.user-name
=
admin
emqx.password
=
public
tzs.cti.appkey
=
4e805006-3fef-ae43-3915-a153731007c4
tzs.cti.secretkey
=
7bd29115-99ee-4f7d-1fb1-7c4719d5f43a
tzs.cti.url
=
http://36.46.151.113:8000
tzs.wechat.url
=
https://api.weixin.qq.com
tzs.wechat.appid
=
wx79aca5bb1cb4af92
tzs.wechat.secret
=
f3a12323ba731d282c3d4698c27c3e97
##wechatToken
tzs.wechat.token
=
yeejoin_2021
##wechatTicketUrl
tzs.wechat.ticketurl
=
https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=
tzs.wechat.tempId.kr
=
bxchKYhYW7aHbGKM2pVyR_yY2-bG4sRMNU3ZRQbMKYM
tzs.wechat.url.kr
=
tzs.yeeamos.com/persondetail.html
tzs.wechat.tempId.wx
=
rags-expfNSBB-h2WenuBI2c6pCEndH4uwTtOqlHqDM
tzs.wechat.url.wx
=
tzs.yeeamos.com/repairPersondetail.html
tzs.wechat.tempId.ts
=
rags-expfNSBB-h2WenuBI2c6pCEndH4uwTtOqlHqDM
tzs.wechat.url.ts
=
tzs.yeeamos.com/persondetail.html
mqtt.topic.task.newtask
=
tzs-task-newtask
mqtt.topic.task.personinfo
=
tzs-task-personinfo
mqtt.topic.elevator.push
=
/tzs/tcb_elevator
mqtt.topic.alertInfo.push
=
/tzs/tcb_alertInfo
mqtt.topic.alertReport.push
=
/tzs/tcb_alertReport
mqtt.topic.alertHeart.push
=
/tzs/tcb_alertHeart
mqtt.topic.alertMatrix.push
=
/tzs/tcb_alertMatrix
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