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
21ac79b6
Commit
21ac79b6
authored
Sep 09, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://172.16.10.76/moa/amos-boot-biz
into developer
parents
1f2da0ab
a6ccc740
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
196 additions
and
89 deletions
+196
-89
ControllerAop.java
...a/com/yeejoin/amos/boot/biz/common/aop/ControllerAop.java
+3
-1
DataDictionaryController.java
.../boot/biz/common/controller/DataDictionaryController.java
+63
-18
DataDictionaryServiceImpl.java
...ot/biz/common/service/impl/DataDictionaryServiceImpl.java
+6
-3
FirefightersWorkexperience.java
.../module/common/api/entity/FirefightersWorkexperience.java
+21
-17
OrgPersonController.java
...oot/module/common/biz/controller/OrgPersonController.java
+1
-1
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+3
-2
LatentDangerController.java
...os/patrol/business/controller/LatentDangerController.java
+14
-0
PlanTaskController.java
...n/amos/patrol/business/controller/PlanTaskController.java
+4
-0
TaskController.java
...ejoin/amos/patrol/business/controller/TaskController.java
+3
-1
CatalogTreeServiceImpl.java
.../patrol/business/service/impl/CatalogTreeServiceImpl.java
+1
-1
CheckServiceImpl.java
...n/amos/patrol/business/service/impl/CheckServiceImpl.java
+11
-6
MessageServiceImpl.java
...amos/patrol/business/service/impl/MessageServiceImpl.java
+5
-3
AmosJcsApplication.java
...cs/src/main/java/com/yeejoin/amos/AmosJcsApplication.java
+50
-27
application.properties
...boot-system-jcs/src/main/resources/application.properties
+11
-9
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/aop/ControllerAop.java
View file @
21ac79b6
...
@@ -52,7 +52,9 @@ public class ControllerAop {
...
@@ -52,7 +52,9 @@ public class ControllerAop {
@Autowired
@Autowired
private
RedisUtils
redisUtils
;
private
RedisUtils
redisUtils
;
@Pointcut
(
"execution(public * com.yeejoin.amos.boot.module.*.biz.controller..*(..)) || execution(public * com.yeejoin.amos.*.business.controller..*(..))"
)
@Pointcut
(
"(execution(public * com.yeejoin.amos.boot.module.*.biz.controller..*(..)) "
+
"|| execution(public * com.yeejoin.amos.*.business.controller..*(..)))"
+
" && !@annotation(org.springframework.scheduling.annotation.Scheduled))"
)
public
void
userCache
()
{
public
void
userCache
()
{
}
}
...
...
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/controller/DataDictionaryController.java
View file @
21ac79b6
This diff is collapsed.
Click to expand it.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/service/impl/DataDictionaryServiceImpl.java
View file @
21ac79b6
...
@@ -49,7 +49,8 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da
...
@@ -49,7 +49,8 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da
}
else
{
}
else
{
Collection
<
DataDictionary
>
list
=
this
.
list
(
queryWrapper
);
Collection
<
DataDictionary
>
list
=
this
.
list
(
queryWrapper
);
// 数据字典生成树方法 原先通过getCode做主键 现修改为 getSequenceNbr 后期数据字典parent字段保存id 而不要保存code by kongfm 2021-09-08
// 数据字典生成树方法 原先通过getCode做主键 现修改为 getSequenceNbr 后期数据字典parent字段保存id 而不要保存code by kongfm 2021-09-08
List
<
MenuFrom
>
menus
=
TreeParser
.
getTreexin
(
null
,
list
,
DataDictionary
.
class
.
getName
(),
"getSequenceNbr"
,
2
,
// 数据字典还原 by kongfm 2021-09-09
List
<
MenuFrom
>
menus
=
TreeParser
.
getTreexin
(
null
,
list
,
DataDictionary
.
class
.
getName
(),
"getCode"
,
0
,
"getName"
,
"getParent"
,
null
);
"getName"
,
"getParent"
,
null
);
MenuFrom
Me
=
new
MenuFrom
(
"-1"
,
"-1"
,
"-1"
,
"危化品库"
,
"危化品库"
,
"危化品库"
,
"-1"
,
null
);
MenuFrom
Me
=
new
MenuFrom
(
"-1"
,
"-1"
,
"-1"
,
"危化品库"
,
"危化品库"
,
"危化品库"
,
"-1"
,
null
);
Me
.
setIsLeaf
(
false
);
Me
.
setIsLeaf
(
false
);
...
@@ -71,7 +72,8 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da
...
@@ -71,7 +72,8 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da
}
else
{
}
else
{
Collection
<
DataDictionary
>
list
=
this
.
list
(
queryWrapper
);
Collection
<
DataDictionary
>
list
=
this
.
list
(
queryWrapper
);
// 数据字典生成树方法 原先通过getCode做主键 现修改为 getSequenceNbr 后期数据字典parent字段保存id 而不要保存code by kongfm 2021-09-08
// 数据字典生成树方法 原先通过getCode做主键 现修改为 getSequenceNbr 后期数据字典parent字段保存id 而不要保存code by kongfm 2021-09-08
List
<
Menu
>
menus
=
TreeParser
.
getTree
(
null
,
list
,
DataDictionary
.
class
.
getName
(),
"getSequenceNbr"
,
2
,
"getName"
// 数据字典还原 by kongfm 2021-09-09
List
<
Menu
>
menus
=
TreeParser
.
getTree
(
null
,
list
,
DataDictionary
.
class
.
getName
(),
"getCode"
,
0
,
"getName"
,
"getParent"
,
null
);
,
"getParent"
,
null
);
redisUtils
.
set
(
RedisKey
.
DATA_DICTIONARY_CODE
+
type
,
JSON
.
toJSON
(
menus
),
time
);
redisUtils
.
set
(
RedisKey
.
DATA_DICTIONARY_CODE
+
type
,
JSON
.
toJSON
(
menus
),
time
);
return
menus
;
return
menus
;
...
@@ -85,7 +87,8 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da
...
@@ -85,7 +87,8 @@ public class DataDictionaryServiceImpl extends BaseService<DataDictionaryDto, Da
Collection
<
DataDictionary
>
list
=
this
.
list
(
queryWrapper
);
Collection
<
DataDictionary
>
list
=
this
.
list
(
queryWrapper
);
// 数据字典生成树方法 原先通过getCode做主键 现修改为 getSequenceNbr 后期数据字典parent字段保存id 而不要保存code by kongfm 2021-09-08
// 数据字典生成树方法 原先通过getCode做主键 现修改为 getSequenceNbr 后期数据字典parent字段保存id 而不要保存code by kongfm 2021-09-08
List
<
MenuFrom
>
menus
=
TreeParser
.
getTreexin
(
null
,
list
,
DataDictionary
.
class
.
getName
(),
"getSequenceNbr"
,
2
,
"getName"
// 数据字典还原 by kongfm 2021-09-09
List
<
MenuFrom
>
menus
=
TreeParser
.
getTreexin
(
null
,
list
,
DataDictionary
.
class
.
getName
(),
"getCode"
,
0
,
"getName"
,
"getParent"
,
null
);
,
"getParent"
,
null
);
return
menus
;
return
menus
;
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/entity/FirefightersWorkexperience.java
View file @
21ac79b6
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.common.api.entity;
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.common.api.entity;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -13,35 +14,38 @@ import lombok.experimental.Accessors;
...
@@ -13,35 +14,38 @@ import lombok.experimental.Accessors;
import
java.util.Date
;
import
java.util.Date
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
org.springframework.format.annotation.DateTimeFormat
;
/**
/**
* 工作经历
* 工作经历
*
*
* @author tb
* @author tb
* @date 2021-06-07
* @date 2021-06-07
*/
*/
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"cb_firefighters_workexperience"
)
@TableName
(
"cb_firefighters_workexperience"
)
@ApiModel
(
value
=
"FirefightersWorkexperience对象"
,
description
=
"工作经历"
)
@ApiModel
(
value
=
"FirefightersWorkexperience对象"
,
description
=
"工作经历"
)
public
class
FirefightersWorkexperience
extends
BaseEntity
{
public
class
FirefightersWorkexperience
extends
BaseEntity
{
/**
/**
*
*
*/
*/
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"参加工作时间"
)
@ApiModelProperty
(
value
=
"参加工作时间"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
workingHours
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
workingHours
;
@ApiModelProperty
(
value
=
"参加消防部门工作时间"
)
@ApiModelProperty
(
value
=
"参加消防部门工作时间"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
fireWorkingHours
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
fireWorkingHours
;
@ApiModelProperty
(
value
=
"人员id"
)
@ApiModelProperty
(
value
=
"人员id"
)
private
Long
firefightersId
;
private
Long
firefightersId
;
@ApiModelProperty
(
value
=
"更新时间"
)
@ApiModelProperty
(
value
=
"更新时间"
)
@TableField
(
fill
=
FieldFill
.
UPDATE
)
@TableField
(
fill
=
FieldFill
.
UPDATE
)
private
Date
updateTime
;
private
Date
updateTime
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/OrgPersonController.java
View file @
21ac79b6
...
@@ -79,7 +79,7 @@ public class OrgPersonController {
...
@@ -79,7 +79,7 @@ public class OrgPersonController {
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"更新单位数据"
,
notes
=
"更新单位数据"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"更新单位数据"
,
notes
=
"更新单位数据"
)
public
ResponseModel
<?>
updateByIdOrgUsr
(
HttpServletRequest
request
,
@RequestBody
OrgPersonDto
OrgPersonVo
,
public
ResponseModel
<?>
updateByIdOrgUsr
(
HttpServletRequest
request
,
@RequestBody
OrgPersonDto
OrgPersonVo
,
@PathVariable
Long
id
)
throws
Exception
{
@PathVariable
Long
id
)
throws
Exception
{
OrgPersonVo
.
setBizOrgType
(
CommonConstant
.
BIZ_ORG_TYPE_PERSON
);
//
OrgPersonVo.setBizOrgType(CommonConstant.BIZ_ORG_TYPE_PERSON);
iOrgUsrService
.
updateByIdOrgPerson
(
OrgPersonVo
,
id
);
iOrgUsrService
.
updateByIdOrgPerson
(
OrgPersonVo
,
id
);
return
ResponseHelper
.
buildResponse
(
null
);
return
ResponseHelper
.
buildResponse
(
null
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
21ac79b6
...
@@ -350,7 +350,6 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -350,7 +350,6 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
pageBean
.
setTotal
(
this
.
baseMapper
.
selectPersonListCount
(
map
));
pageBean
.
setTotal
(
this
.
baseMapper
.
selectPersonListCount
(
map
));
map
.
put
(
"pageNum"
,
(
pageBean
.
getCurrent
()
-
1
)
*
pageBean
.
getSize
());
map
.
put
(
"pageNum"
,
(
pageBean
.
getCurrent
()
-
1
)
*
pageBean
.
getSize
());
map
.
put
(
"pageSize"
,
pageBean
.
getSize
());
map
.
put
(
"pageSize"
,
pageBean
.
getSize
());
List
<
Map
<
String
,
Object
>>
list
=
this
.
baseMapper
.
selectPersonList
(
map
);
List
<
Map
<
String
,
Object
>>
list
=
this
.
baseMapper
.
selectPersonList
(
map
);
/*Bug2652 根据名字和工号模糊查询失效 已添加模糊匹配 2021-09-01 陈召 结束*/
/*Bug2652 根据名字和工号模糊查询失效 已添加模糊匹配 2021-09-01 陈召 结束*/
...
@@ -640,7 +639,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -640,7 +639,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
orgUsr
.
setSequenceNbr
(
id
);
orgUsr
.
setSequenceNbr
(
id
);
/* Bug 2647 编辑用户所属单位后按单位筛选人员结果错误 增加了 638 639 两行代码 根据修改的部门调整部门code 2021-09-03 陈召 开始*/
/* Bug 2647 编辑用户所属单位后按单位筛选人员结果错误 增加了 638 639 两行代码 根据修改的部门调整部门code 2021-09-03 陈召 开始*/
OrgUsr
parent
=
getById
(
OrgPersonVo
.
getParentId
());
OrgUsr
parent
=
getById
(
OrgPersonVo
.
getParentId
());
orgUsr
.
setBizOrgCode
(
parent
.
getBizOrgCode
()
+
getOrgCodeStr
());
if
(!
ObjectUtils
.
isEmpty
(
parent
)){
orgUsr
.
setBizOrgCode
(
parent
.
getBizOrgCode
()
+
getOrgCodeStr
());
}
/* Bug 2647 编辑用户所属单位后按单位筛选人员结果错误 增加了 638 639 两行代码 根据修改的部门调整部门code 2021-09-03 陈召 结束*/
/* Bug 2647 编辑用户所属单位后按单位筛选人员结果错误 增加了 638 639 两行代码 根据修改的部门调整部门code 2021-09-03 陈召 结束*/
if
(!
ObjectUtils
.
isEmpty
(
OrgPersonVo
.
getAmosOrgId
()))
{
if
(!
ObjectUtils
.
isEmpty
(
OrgPersonVo
.
getAmosOrgId
()))
{
AgencyUserModel
user
=
Privilege
.
agencyUserClient
.
queryByUserId
(
OrgPersonVo
.
getAmosOrgId
()).
getResult
();
AgencyUserModel
user
=
Privilege
.
agencyUserClient
.
queryByUserId
(
OrgPersonVo
.
getAmosOrgId
()).
getResult
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/LatentDangerController.java
View file @
21ac79b6
...
@@ -17,6 +17,8 @@ import org.springframework.web.bind.annotation.RequestBody;
...
@@ -17,6 +17,8 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
...
@@ -52,6 +54,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -52,6 +54,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"创建无码无计划隐患"
,
notes
=
"创建无码无计划隐患"
)
@ApiOperation
(
value
=
"创建无码无计划隐患"
,
notes
=
"创建无码无计划隐患"
)
@PostMapping
(
value
=
"/normal/save"
)
@PostMapping
(
value
=
"/normal/save"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
saveNormal
(
@ApiParam
(
value
=
"隐患对象"
,
required
=
true
)
@RequestBody
LatentDangerNormalParam
latentDangerParam
)
{
public
CommonResponse
saveNormal
(
@ApiParam
(
value
=
"隐患对象"
,
required
=
true
)
@RequestBody
LatentDangerNormalParam
latentDangerParam
)
{
CommonResponse
commonResponse
=
new
CommonResponse
();
CommonResponse
commonResponse
=
new
CommonResponse
();
try
{
try
{
...
@@ -80,6 +83,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -80,6 +83,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"创建巡检隐患"
,
notes
=
"创建巡检隐患"
)
@ApiOperation
(
value
=
"创建巡检隐患"
,
notes
=
"创建巡检隐患"
)
@PostMapping
(
value
=
"/patrol/save"
)
@PostMapping
(
value
=
"/patrol/save"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
savePatrol
(
@ApiParam
(
value
=
"隐患对象"
,
required
=
true
)
@RequestBody
LatentDangerPatrolParam
latentDangerPatrolParam
)
{
public
CommonResponse
savePatrol
(
@ApiParam
(
value
=
"隐患对象"
,
required
=
true
)
@RequestBody
LatentDangerPatrolParam
latentDangerPatrolParam
)
{
try
{
try
{
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
...
@@ -102,6 +106,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -102,6 +106,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"隐患列表"
,
notes
=
"隐患列表"
)
@ApiOperation
(
value
=
"隐患列表"
,
notes
=
"隐患列表"
)
@PostMapping
(
value
=
"/list"
)
@PostMapping
(
value
=
"/list"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
list
(
@ApiParam
(
value
=
"隐患对象"
,
required
=
true
)
@RequestBody
LatentDangerListParam
latentDangerListParam
)
{
public
CommonResponse
list
(
@ApiParam
(
value
=
"隐患对象"
,
required
=
true
)
@RequestBody
LatentDangerListParam
latentDangerListParam
)
{
Date
startDate
=
new
Date
();
Date
startDate
=
new
Date
();
try
{
try
{
...
@@ -124,6 +129,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -124,6 +129,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"隐患详情"
,
notes
=
"隐患详情"
)
@ApiOperation
(
value
=
"隐患详情"
,
notes
=
"隐患详情"
)
@GetMapping
(
value
=
"/detail"
)
@GetMapping
(
value
=
"/detail"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
detail
(
@ApiParam
(
value
=
"任务Id"
,
required
=
true
)
@RequestParam
String
id
,
public
CommonResponse
detail
(
@ApiParam
(
value
=
"任务Id"
,
required
=
true
)
@RequestParam
String
id
,
@ApiParam
(
value
=
"是否完成"
,
required
=
true
)
@RequestParam
boolean
isFinish
)
{
@ApiParam
(
value
=
"是否完成"
,
required
=
true
)
@RequestParam
boolean
isFinish
)
{
try
{
try
{
...
@@ -140,6 +146,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -140,6 +146,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"隐患执行记录"
,
notes
=
"隐患执行记录"
)
@ApiOperation
(
value
=
"隐患执行记录"
,
notes
=
"隐患执行记录"
)
@GetMapping
(
value
=
"/listFlowRecord"
)
@GetMapping
(
value
=
"/listFlowRecord"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
listFlowRecord
(
@ApiParam
(
value
=
"隐患编号"
,
required
=
true
)
@RequestParam
Long
id
)
{
public
CommonResponse
listFlowRecord
(
@ApiParam
(
value
=
"隐患编号"
,
required
=
true
)
@RequestParam
Long
id
)
{
try
{
try
{
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
...
@@ -155,6 +162,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -155,6 +162,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"流程执行"
,
notes
=
"流程执行"
)
@ApiOperation
(
value
=
"流程执行"
,
notes
=
"流程执行"
)
@PostMapping
(
value
=
"/excute"
)
@PostMapping
(
value
=
"/excute"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
excute
(
@ApiParam
(
value
=
"隐患对象"
,
required
=
true
)
@RequestBody
LatentDangerExcuteParam
latentDangerExcuteParam
)
{
public
CommonResponse
excute
(
@ApiParam
(
value
=
"隐患对象"
,
required
=
true
)
@RequestBody
LatentDangerExcuteParam
latentDangerExcuteParam
)
{
try
{
try
{
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
...
@@ -186,6 +194,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -186,6 +194,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"根据流程实例编号获取隐患信息"
,
notes
=
"根据流程实例编号获取隐患信息"
)
@ApiOperation
(
value
=
"根据流程实例编号获取隐患信息"
,
notes
=
"根据流程实例编号获取隐患信息"
)
@GetMapping
(
value
=
"/getByInstanceId"
)
@GetMapping
(
value
=
"/getByInstanceId"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
getByInstanceId
(
@ApiParam
(
value
=
"流程实例编号"
,
required
=
true
)
@RequestParam
String
instanceId
)
{
public
CommonResponse
getByInstanceId
(
@ApiParam
(
value
=
"流程实例编号"
,
required
=
true
)
@RequestParam
String
instanceId
)
{
try
{
try
{
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
...
@@ -201,6 +210,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -201,6 +210,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"隐患按错计划流程执行回调"
,
notes
=
"隐患按错计划流程执行回调"
)
@ApiOperation
(
value
=
"隐患按错计划流程执行回调"
,
notes
=
"隐患按错计划流程执行回调"
)
@PostMapping
(
value
=
"/plan/flow/excuteCallBack"
)
@PostMapping
(
value
=
"/plan/flow/excuteCallBack"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
excuteCallBack
(
@ApiParam
(
value
=
"隐患按错计划流程执行回调对象"
)
@RequestBody
JSONObject
json
)
{
public
CommonResponse
excuteCallBack
(
@ApiParam
(
value
=
"隐患按错计划流程执行回调对象"
)
@RequestBody
JSONObject
json
)
{
try
{
try
{
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
...
@@ -231,6 +241,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -231,6 +241,7 @@ public class LatentDangerController extends AbstractBaseController {
@ApiOperation
(
value
=
"获取隐患等级"
,
notes
=
"获取隐患等级"
)
@ApiOperation
(
value
=
"获取隐患等级"
,
notes
=
"获取隐患等级"
)
@GetMapping
(
value
=
"/dangerLevel"
)
@GetMapping
(
value
=
"/dangerLevel"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
getDangerLevel
()
{
public
CommonResponse
getDangerLevel
()
{
return
CommonResponseUtil
.
success
(
iLatentDangerService
.
getDangerLevel
(
getToken
(),
getProduct
(),
getAppKey
(),
DictTypeEnum
.
DANGERLEVEL
.
getCode
()));
return
CommonResponseUtil
.
success
(
iLatentDangerService
.
getDangerLevel
(
getToken
(),
getProduct
(),
getAppKey
(),
DictTypeEnum
.
DANGERLEVEL
.
getCode
()));
}
}
...
@@ -246,6 +257,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -246,6 +257,7 @@ public class LatentDangerController extends AbstractBaseController {
*/
*/
@ApiOperation
(
value
=
"隐患清单"
,
notes
=
"隐患清单"
)
@ApiOperation
(
value
=
"隐患清单"
,
notes
=
"隐患清单"
)
@PostMapping
(
value
=
"/page/list"
)
@PostMapping
(
value
=
"/page/list"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
listDanger
(
@ApiParam
(
value
=
"查询条件"
,
required
=
true
)
@RequestBody
PageParam
pageParam
)
{
public
CommonResponse
listDanger
(
@ApiParam
(
value
=
"查询条件"
,
required
=
true
)
@RequestBody
PageParam
pageParam
)
{
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
if
(
ObjectUtils
.
isEmpty
(
user
))
{
if
(
ObjectUtils
.
isEmpty
(
user
))
{
...
@@ -260,6 +272,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -260,6 +272,7 @@ public class LatentDangerController extends AbstractBaseController {
*/
*/
@ApiOperation
(
value
=
"导出隐患清单"
,
notes
=
"导出隐患清单"
)
@ApiOperation
(
value
=
"导出隐患清单"
,
notes
=
"导出隐患清单"
)
@PostMapping
(
value
=
"/export"
)
@PostMapping
(
value
=
"/export"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
void
exportDangerList
(
@ApiParam
(
value
=
"查询条件"
)
@RequestBody
PageParam
pageParam
,
public
void
exportDangerList
(
@ApiParam
(
value
=
"查询条件"
)
@RequestBody
PageParam
pageParam
,
HttpServletResponse
response
)
{
HttpServletResponse
response
)
{
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
...
@@ -286,6 +299,7 @@ public class LatentDangerController extends AbstractBaseController {
...
@@ -286,6 +299,7 @@ public class LatentDangerController extends AbstractBaseController {
*/
*/
@ApiOperation
(
value
=
"隐患日志"
,
notes
=
"查询隐患节点信息"
)
@ApiOperation
(
value
=
"隐患日志"
,
notes
=
"查询隐患节点信息"
)
@GetMapping
(
value
=
"/listDangerTimeAxis"
)
@GetMapping
(
value
=
"/listDangerTimeAxis"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
CommonResponse
listTimeAxis
(
@ApiParam
(
value
=
"时间"
)
@RequestParam
(
required
=
false
)
Integer
dateTime
)
{
public
CommonResponse
listTimeAxis
(
@ApiParam
(
value
=
"时间"
)
@RequestParam
(
required
=
false
)
Integer
dateTime
)
{
AgencyUserModel
user
=
getUserInfo
();
AgencyUserModel
user
=
getUserInfo
();
if
(
ObjectUtils
.
isEmpty
(
user
))
{
if
(
ObjectUtils
.
isEmpty
(
user
))
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PlanTaskController.java
View file @
21ac79b6
...
@@ -32,6 +32,8 @@ import org.springframework.data.domain.Page;
...
@@ -32,6 +32,8 @@ import org.springframework.data.domain.Page;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.context.request.RequestAttributes
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
...
@@ -206,6 +208,8 @@ public class PlanTaskController extends AbstractBaseController {
...
@@ -206,6 +208,8 @@ public class PlanTaskController extends AbstractBaseController {
@RequestMapping
(
value
=
"/queryOmission"
,
method
=
RequestMethod
.
GET
,
produces
=
"application/json;charset=UTF-8"
)
@RequestMapping
(
value
=
"/queryOmission"
,
method
=
RequestMethod
.
GET
,
produces
=
"application/json;charset=UTF-8"
)
public
CommonResponse
pushCarData
()
{
public
CommonResponse
pushCarData
()
{
try
{
try
{
RequestAttributes
reqs
=
RequestContextHolder
.
getRequestAttributes
();
RequestContextHolder
.
setRequestAttributes
(
reqs
,
true
);
planTaskService
.
taskExecution
(
null
);
planTaskService
.
taskExecution
(
null
);
return
CommonResponseUtil
.
success
();
return
CommonResponseUtil
.
success
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/TaskController.java
View file @
21ac79b6
...
@@ -802,7 +802,9 @@ public class TaskController extends AbstractBaseController{
...
@@ -802,7 +802,9 @@ public class TaskController extends AbstractBaseController{
String
userIds
=
""
;
String
userIds
=
""
;
Set
<
String
>
set
=
new
HashSet
<>();
Set
<
String
>
set
=
new
HashSet
<>();
list
.
forEach
(
s
->
{
list
.
forEach
(
s
->
{
set
.
add
(
s
.
getName
());
if
(!
ObjectUtils
.
isEmpty
(
s
)){
set
.
add
(
s
.
getName
());
}
});
});
List
<
String
>
list1
=
new
ArrayList
<>(
set
);
List
<
String
>
list1
=
new
ArrayList
<>(
set
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/CatalogTreeServiceImpl.java
View file @
21ac79b6
...
@@ -176,7 +176,7 @@ public Page<HashMap<String, Object>> getCatalogTreeInfo(String toke,String produ
...
@@ -176,7 +176,7 @@ public Page<HashMap<String, Object>> getCatalogTreeInfo(String toke,String produ
String
userIds
=
""
;
String
userIds
=
""
;
Set
<
String
>
set
=
new
HashSet
<>();
Set
<
String
>
set
=
new
HashSet
<>();
content
.
forEach
(
s
->
{
content
.
forEach
(
s
->
{
if
(
s
.
containsKey
(
"createBy"
))
{
if
(
s
.
containsKey
(
"createBy"
)
&&
!
ObjectUtils
.
isEmpty
(
s
.
get
(
"createBy"
))
)
{
set
.
add
(
s
.
get
(
"createBy"
).
toString
());
set
.
add
(
s
.
get
(
"createBy"
).
toString
());
}
}
});
});
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/CheckServiceImpl.java
View file @
21ac79b6
...
@@ -161,7 +161,7 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -161,7 +161,7 @@ public class CheckServiceImpl implements ICheckService {
deptIds
.
remove
(
null
);
deptIds
.
remove
(
null
);
String
joinUserId
=
""
;
String
joinUserId
=
""
;
for
(
String
userId:
userIds
)
{
for
(
String
userId:
userIds
)
{
if
(
userId
!=
null
&&!
userId
.
trim
().
equals
(
""
)){
if
(
!
ObjectUtils
.
isEmpty
(
userId
)){
joinUserId
=
joinUserId
+
userId
+
","
;
joinUserId
=
joinUserId
+
userId
+
","
;
}
}
}
}
...
@@ -808,7 +808,7 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -808,7 +808,7 @@ public class CheckServiceImpl implements ICheckService {
deptIds
.
remove
(
null
);
deptIds
.
remove
(
null
);
String
joinUserId
=
""
;
String
joinUserId
=
""
;
for
(
String
userId:
userIds
)
{
for
(
String
userId:
userIds
)
{
if
(
userId
!=
null
&&!
userId
.
trim
().
equals
(
""
)){
if
(
!
ObjectUtils
.
isEmpty
(
userId
)){
joinUserId
=
joinUserId
+
userId
+
","
;
joinUserId
=
joinUserId
+
userId
+
","
;
}
}
}
}
...
@@ -1194,8 +1194,9 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -1194,8 +1194,9 @@ public class CheckServiceImpl implements ICheckService {
//处理用户信息
//处理用户信息
String
userIds
=
""
;
String
userIds
=
""
;
Set
<
String
>
set
=
new
HashSet
<>();
Set
<
String
>
set
=
new
HashSet
<>();
set
.
add
(
checkDetailBo
.
getCheckUserName
());
if
(!
ObjectUtils
.
isEmpty
(
checkDetailBo
.
getCheckUserName
())){
set
.
add
(
checkDetailBo
.
getCheckUserName
());
}
List
<
String
>
list1
=
new
ArrayList
<>(
set
);
List
<
String
>
list1
=
new
ArrayList
<>(
set
);
userIds
=
String
.
join
(
","
,
list1
);
userIds
=
String
.
join
(
","
,
list1
);
List
<
AgencyUserModel
>
listd
=
remoteSecurityService
.
listUserByUserIds
(
toke
,
product
,
appKey
,
userIds
);
List
<
AgencyUserModel
>
listd
=
remoteSecurityService
.
listUserByUserIds
(
toke
,
product
,
appKey
,
userIds
);
...
@@ -1315,7 +1316,9 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -1315,7 +1316,9 @@ public class CheckServiceImpl implements ICheckService {
if
(!
CollectionUtils
.
isEmpty
(
content
))
{
if
(!
CollectionUtils
.
isEmpty
(
content
))
{
Set
<
String
>
userIds
=
new
HashSet
<>();
Set
<
String
>
userIds
=
new
HashSet
<>();
content
.
forEach
(
e
->
{
content
.
forEach
(
e
->
{
userIds
.
add
(
e
.
get
(
"userID"
)+
""
);
if
(!
ObjectUtils
.
isEmpty
(
e
.
get
(
"userID"
))){
userIds
.
add
(
e
.
get
(
"userID"
)+
""
);
}
});
});
List
<
AgencyUserModel
>
userModels
=
remoteSecurityService
.
listUserByUserIds
(
toke
,
product
,
appKey
,
Joiner
.
on
(
","
).
join
(
userIds
));
List
<
AgencyUserModel
>
userModels
=
remoteSecurityService
.
listUserByUserIds
(
toke
,
product
,
appKey
,
Joiner
.
on
(
","
).
join
(
userIds
));
Map
<
String
,
String
>
userModelMap
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
String
>
userModelMap
=
new
HashMap
<
String
,
String
>();
...
@@ -1512,7 +1515,9 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -1512,7 +1515,9 @@ public class CheckServiceImpl implements ICheckService {
String
userIds
=
""
;
String
userIds
=
""
;
Set
<
String
>
set
=
new
HashSet
<>();
Set
<
String
>
set
=
new
HashSet
<>();
checkAnalysisVos
.
forEach
(
s
->
{
checkAnalysisVos
.
forEach
(
s
->
{
set
.
add
(
s
.
getName
());
if
(!
ObjectUtils
.
isEmpty
(
s
.
getName
())){
set
.
add
(
s
.
getName
());
}
});
});
List
<
String
>
list1
=
new
ArrayList
<>(
set
);
List
<
String
>
list1
=
new
ArrayList
<>(
set
);
userIds
=
String
.
join
(
","
,
list1
);
userIds
=
String
.
join
(
","
,
list1
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/MessageServiceImpl.java
View file @
21ac79b6
...
@@ -151,9 +151,11 @@ public class MessageServiceImpl implements IMessageService {
...
@@ -151,9 +151,11 @@ public class MessageServiceImpl implements IMessageService {
// List<PushTargetBo> jpushUser = msgMapper.getPushUserBo("app", String.join(",", needUserIds), checkMsgBo.getRouteId(),getAppPushConfig(checkMsgBo.getStatus()));
// List<PushTargetBo> jpushUser = msgMapper.getPushUserBo("app", String.join(",", needUserIds), checkMsgBo.getRouteId(),getAppPushConfig(checkMsgBo.getStatus()));
List
<
PushTargetBo
>
jpushUser
=
new
ArrayList
<>();
List
<
PushTargetBo
>
jpushUser
=
new
ArrayList
<>();
needUserIds
.
stream
().
forEach
(
action
->{
needUserIds
.
stream
().
forEach
(
action
->{
PushTargetBo
pb
=
new
PushTargetBo
();
if
(!
ObjectUtils
.
isEmpty
(
action
)){
pb
.
setUserId
(
action
);
PushTargetBo
pb
=
new
PushTargetBo
();
jpushUser
.
add
(
pb
);
pb
.
setUserId
(
action
);
jpushUser
.
add
(
pb
);
}
});
});
//获取需要推送的email的用户
//获取需要推送的email的用户
List
<
PushTargetBo
>
emailUser
=
msgMapper
.
getPushUserBo
(
"email"
,
String
.
join
(
","
,
needUserIds
),
checkMsgBo
.
getRouteId
(),
getEmailPushConfig
(
checkMsgBo
.
getStatus
()));
List
<
PushTargetBo
>
emailUser
=
msgMapper
.
getPushUserBo
(
"email"
,
String
.
join
(
","
,
needUserIds
),
checkMsgBo
.
getRouteId
(),
getEmailPushConfig
(
checkMsgBo
.
getStatus
()));
...
...
amos-boot-system-jcs/src/main/java/com/yeejoin/amos/AmosJcsApplication.java
View file @
21ac79b6
package
com
.
yeejoin
.
amos
;
package
com
.
yeejoin
.
amos
;
import
com.yeejoin.amos.boot.biz.common.utils.oConvertUtils
;
import
java.net.InetAddress
;
import
java.net.UnknownHostException
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -14,16 +16,17 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
...
@@ -14,16 +16,17 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
import
org.springframework.context.ConfigurableApplicationContext
;
import
org.springframework.context.ConfigurableApplicationContext
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.core.env.Environment
;
import
org.springframework.core.env.Environment
;
import
org.springframework.data.redis.connection.RedisConnection
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
org.typroject.tyboot.core.restful.exception.GlobalExceptionHandler
;
import
org.typroject.tyboot.core.restful.exception.GlobalExceptionHandler
;
import
java.net.InetAddress
;
import
com.yeejoin.amos.boot.biz.common.utils.oConvertUtils
;
import
java.net.UnknownHostException
;
/**
/**
* <pre>
* <pre>
*
机场服务启动类
*
机场服务启动类
* </pre>
* </pre>
*
*
*/
*/
...
@@ -35,28 +38,48 @@ import java.net.UnknownHostException;
...
@@ -35,28 +38,48 @@ import java.net.UnknownHostException;
@EnableFeignClients
@EnableFeignClients
@EnableAsync
@EnableAsync
@EnableEurekaClient
@EnableEurekaClient
@MapperScan
({
"org.typroject.tyboot.demo.face.orm.dao*"
,
@MapperScan
({
"org.typroject.tyboot.demo.face.orm.dao*"
,
"org.typroject.tyboot.face.*.orm.dao*"
,
"org.typroject.tyboot.face.*.orm.dao*"
,
"org.typroject.tyboot.core.auth.face.orm.dao*"
,
"org.typroject.tyboot.component.*.face.orm.dao*"
,
"org.typroject.tyboot.core.auth.face.orm.dao*"
,
"com.yeejoin.amos.boot.module.*.api.mapper"
,
"com.yeejoin.amos.boot.biz.common.dao.mapper"
})
"org.typroject.tyboot.component.*.face.orm.dao*"
,
"com.yeejoin.amos.boot.module.*.api.mapper"
,
"com.yeejoin.amos.boot.biz.common.dao.mapper"
})
@ComponentScan
(
basePackages
=
{
"org.typroject"
,
"com.yeejoin.amos"
})
@ComponentScan
(
basePackages
=
{
"org.typroject"
,
"com.yeejoin.amos"
})
public
class
AmosJcsApplication
public
class
AmosJcsApplication
{
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AmosJcsApplication
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AmosJcsApplication
.
class
);
public
static
void
main
(
String
[]
args
)
throws
UnknownHostException
{
public
static
void
main
(
String
[]
args
)
throws
UnknownHostException
ConfigurableApplicationContext
context
=
SpringApplication
.
run
(
AmosJcsApplication
.
class
,
args
);
{
Environment
env
=
context
.
getEnvironment
();
ConfigurableApplicationContext
context
=
SpringApplication
.
run
(
AmosJcsApplication
.
class
,
args
);
delKey
(
env
,
context
);
// 添加全部清空redis缓存的方法 2021-09-09
Environment
env
=
context
.
getEnvironment
();
String
ip
=
InetAddress
.
getLocalHost
().
getHostAddress
();
String
ip
=
InetAddress
.
getLocalHost
().
getHostAddress
();
String
port
=
env
.
getProperty
(
"server.port"
);
String
port
=
env
.
getProperty
(
"server.port"
);
String
path
=
oConvertUtils
.
getString
(
env
.
getProperty
(
"server.servlet.context-path"
));
String
path
=
oConvertUtils
.
getString
(
env
.
getProperty
(
"server.servlet.context-path"
));
GlobalExceptionHandler
.
setAlwaysOk
(
true
);
GlobalExceptionHandler
.
setAlwaysOk
(
true
);
logger
.
info
(
"\n----------------------------------------------------------\n\t"
logger
.
info
(
"\n----------------------------------------------------------\n\t"
+
+
"Application Amos-Biz-Boot is running! Access URLs:\n\t"
+
"Swagger文档: \thttp://"
+
ip
+
":"
+
port
"Application Amos-Biz-Boot is running! Access URLs:\n\t"
+
+
path
+
"/doc.html\n"
+
"----------------------------------------------------------"
);
"Swagger文档: \thttp://"
+
ip
+
":"
+
port
+
path
+
"/doc.html\n"
+
}
"----------------------------------------------------------"
);
}
/**
* 清空redis缓存数据
*
* @author 陈浩
* @param env
* @param context
*/
public
static
void
delKey
(
Environment
env
,
ConfigurableApplicationContext
context
)
{
if
(
Boolean
.
parseBoolean
(
env
.
getProperty
(
"my.spring.redis.cache.isclean"
)))
{
@SuppressWarnings
(
"rawtypes"
)
RedisTemplate
redisTemplate
=
context
.
getBean
(
"redisTemplate"
,
RedisTemplate
.
class
);
RedisConnection
redisConnection
=
null
;
try
{
redisConnection
=
redisTemplate
.
getConnectionFactory
().
getConnection
();
redisConnection
.
flushAll
();
}
catch
(
Exception
e
)
{
logger
.
info
(
"删除redis 缓存的key 失败"
);
}
finally
{
redisConnection
.
close
();
}
}
}
}
}
amos-boot-system-jcs/src/main/resources/application.properties
View file @
21ac79b6
spring.application.name
=
JCS
spring.application.name
=
JCS
-chenhao
server.servlet.context-path
=
/jcs
server.servlet.context-path
=
/jcs
server.port
=
11100
server.port
=
11100
spring.profiles.active
=
dev
spring.profiles.active
=
dev
...
@@ -7,10 +7,10 @@ spring.jackson.time-zone=GMT+8
...
@@ -7,10 +7,10 @@ spring.jackson.time-zone=GMT+8
spring.jackson.date-format
=
yyyy-MM-dd HH:mm:ss
spring.jackson.date-format
=
yyyy-MM-dd HH:mm:ss
logging.config
=
classpath:logback-${spring.profiles.active}.xml
logging.config
=
classpath:logback-${spring.profiles.active}.xml
## mybatis-plus
配置控制台打印完整带参数SQL语句
## mybatis-plus
é ç½®æ§å¶å°æå°å®æ´å¸¦åæ°SQLè¯å¥
mybatis-plus.configuration.log-impl
=
org.apache.ibatis.logging.stdout.StdOutImpl
mybatis-plus.configuration.log-impl
=
org.apache.ibatis.logging.stdout.StdOutImpl
## redis
失效时间
## redis
å¤±ææ¶é´
redis.cache.failure.time
=
10800
redis.cache.failure.time
=
10800
## unit(h)
## unit(h)
...
@@ -50,14 +50,15 @@ spring.redis.lettuce.pool.max-wait=-1
...
@@ -50,14 +50,15 @@ spring.redis.lettuce.pool.max-wait=-1
spring.redis.lettuce.pool.max-idle
=
10
spring.redis.lettuce.pool.max-idle
=
10
spring.redis.lettuce.pool.min-idle
=
0
spring.redis.lettuce.pool.min-idle
=
0
spring.redis.expire.time
=
300
spring.redis.expire.time
=
300
#在重启服务的过程中是否清空缓存的标识符 --2021-09-09
## mqtt-警情初报消息主题
my.spring.redis.cache.isclean
=
false
## mqtt-è¦æ åæ¥æ¶æ¯ä¸»é¢
mqtt.topic.alert.reporting
=
alertReporting
mqtt.topic.alert.reporting
=
alertReporting
##
实战指挥新警情�?�报主题
##
å®æææ¥æ°è¦æ �?�æ¥ä¸»é¢
mqtt.topic.command.alert.notice
=
alertNotice
mqtt.topic.command.alert.notice
=
alertNotice
##
跑马灯地震,天气预警信息
##
è·é©¬ç¯å°éï¼å¤©æ°é¢è¦ä¿¡æ¯
mqtt.topic.command.meteorological.notice
=
meteorological
mqtt.topic.command.meteorological.notice
=
meteorological
mqtt.topic.command.power.deployment
=
power
mqtt.topic.command.power.deployment
=
power
...
@@ -71,8 +72,8 @@ iot.fegin.name=AMOS-API-IOT
...
@@ -71,8 +72,8 @@ iot.fegin.name=AMOS-API-IOT
equip.fegin.name
=
AMOS-EQUIPMANAGE
equip.fegin.name
=
AMOS-EQUIPMANAGE
##
设备联动服务(车库门、广播、警铃)
##
设å¤è卿å¡ï¼è½¦åºé¨ã广æãè¦éï¼
control.fegin.name
=
JCS-API-CONTROL
control.fegin.name
=
JCS-API-CONTROL
##
故障报修流程
##
æ éæ¥ä¿®æµç¨
failure.work.flow.processDefinitionKey
=
malfunction_repair
failure.work.flow.processDefinitionKey
=
malfunction_repair
\ No newline at end of file
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