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
7a8b0329
Commit
7a8b0329
authored
Dec 13, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_dl_plan6_temp' of…
Merge branch 'develop_dl_plan6_temp' of
http://39.98.45.134:8090/moa/amos-boot-biz
into develop_dl_plan6_temp
parents
2bf6a45a
64b41969
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
75 additions
and
43 deletions
+75
-43
PersonIdentifyAspect.java
...odule/common/api/core/framework/PersonIdentifyAspect.java
+1
-0
OrgPersonController.java
...oot/module/common/biz/controller/OrgPersonController.java
+19
-0
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+5
-0
PersonIdentifyAspect.java
.../com/yeejoin/equipmanage/config/PersonIdentifyAspect.java
+1
-1
ConfigureController.java
...m/yeejoin/equipmanage/controller/ConfigureController.java
+1
-1
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+1
-1
StatisticsController.java
.../yeejoin/equipmanage/controller/StatisticsController.java
+1
-7
TopographyController.java
.../yeejoin/equipmanage/controller/TopographyController.java
+3
-3
SystemctlFeign.java
...in/java/com/yeejoin/equipmanage/fegin/SystemctlFeign.java
+5
-4
EquipmentSpecificMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
+1
-1
IStatisticsService.java
...a/com/yeejoin/equipmanage/service/IStatisticsService.java
+1
-1
EquipmentSpecificAlarmServiceImpl.java
...anage/service/impl/EquipmentSpecificAlarmServiceImpl.java
+18
-15
StatisticsServiceImpl.java
...ejoin/equipmanage/service/impl/StatisticsServiceImpl.java
+1
-5
PersonIdentifyAspect.java
.../com/yeejoin/amos/patrol/config/PersonIdentifyAspect.java
+1
-1
wl-3.6.0.xml
...ot-system-equip/src/main/resources/changelog/wl-3.6.0.xml
+15
-0
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+1
-3
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/core/framework/PersonIdentifyAspect.java
View file @
7a8b0329
...
@@ -47,6 +47,7 @@ public class PersonIdentifyAspect {
...
@@ -47,6 +47,7 @@ public class PersonIdentifyAspect {
personIdentity
.
setPersonSeq
(
userDto
.
getPersonSeq
());
personIdentity
.
setPersonSeq
(
userDto
.
getPersonSeq
());
personIdentity
.
setPersonName
(
userDto
.
getPersonName
());
personIdentity
.
setPersonName
(
userDto
.
getPersonName
());
personIdentity
.
setIdentityType
(
userDto
.
getIdentityType
());
personIdentity
.
setIdentityType
(
userDto
.
getIdentityType
());
personIdentity
.
setCompanyBizOrgCode
(
userDto
.
getCompanyBizOrgCode
());
reginParam
.
setPersonIdentity
(
personIdentity
);
reginParam
.
setPersonIdentity
(
personIdentity
);
redisUtils
.
set
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
()),
JSONObject
.
toJSONString
(
reginParam
));
redisUtils
.
set
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
()),
JSONObject
.
toJSONString
(
reginParam
));
}
}
...
...
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 @
7a8b0329
...
@@ -245,6 +245,25 @@ public class OrgPersonController extends BaseController {
...
@@ -245,6 +245,25 @@ public class OrgPersonController extends BaseController {
}
}
@PersonIdentify
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/listAllByCurrentUserALL"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表分页查询(表单用)"
,
notes
=
"列表分页查询(表单用)"
)
public
ResponseModel
<
Object
>
listAllByCurrentUserALL
()
{
Map
<
String
,
Object
>
req
=
new
HashMap
<>();
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
bizOrgCode
=
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
();
req
.
put
(
"bizOrgCode"
,
bizOrgCode
);
// if(redisUtils.get("userList:" + bizOrgCode) != null){
// return ResponseHelper.buildResponse(redisUtils.get("userList:" + bizOrgCode));
// }
return
ResponseHelper
.
buildResponse
(
iOrgUsrService
.
listAllByCurrentUser
(
null
,
null
,
req
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/getUserByCode/list"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/getUserByCode/list"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表分页查询"
,
notes
=
"列表分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表分页查询"
,
notes
=
"列表分页查询"
)
...
...
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 @
7a8b0329
...
@@ -2798,6 +2798,11 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -2798,6 +2798,11 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
userDto
.
setBizOrgCode
(
bizOrg
.
getBizOrgCode
());
userDto
.
setBizOrgCode
(
bizOrg
.
getBizOrgCode
());
userDto
.
setCompanyId
(
String
.
valueOf
(
bizOrg
.
getSequenceNbr
()));
userDto
.
setCompanyId
(
String
.
valueOf
(
bizOrg
.
getSequenceNbr
()));
userDto
.
setCompanyName
(
bizOrg
.
getBizOrgName
());
userDto
.
setCompanyName
(
bizOrg
.
getBizOrgName
());
if
(
bizOrg
.
getBizOrgType
().
equals
(
"COMPANY"
)){
userDto
.
setCompanyBizOrgCode
(
bizOrg
.
getBizOrgCode
());
}
else
{
userDto
.
setCompanyBizOrgCode
(
getCompany
(
bizOrg
));
}
}
else
{
}
else
{
throw
new
RuntimeException
(
"人员所在公司不存在"
);
throw
new
RuntimeException
(
"人员所在公司不存在"
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/config/PersonIdentifyAspect.java
View file @
7a8b0329
...
@@ -50,7 +50,7 @@ public class PersonIdentifyAspect {
...
@@ -50,7 +50,7 @@ public class PersonIdentifyAspect {
ReginParams
reginParam
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
ReginParams
reginParam
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
if
(
reginParam
!=
null
)
{
if
(
reginParam
!=
null
)
{
if
(
reginParam
.
getPersonIdentity
()
==
null
||
reginParam
.
getPersonIdentity
().
getBizOrgCode
()
==
null
)
{
if
(
reginParam
.
getPersonIdentity
()
==
null
||
StringUtils
.
isEmpty
(
reginParam
.
getPersonIdentity
().
getBizOrgCode
())
||
StringUtils
.
isEmpty
(
reginParam
.
getPersonIdentity
().
getCompanyBizOrgCode
())
)
{
String
userId
=
reginParam
.
getUserModel
().
getUserId
();
String
userId
=
reginParam
.
getUserModel
().
getUserId
();
if
(
userId
!=
null
)
{
if
(
userId
!=
null
)
{
FeignClientResult
responseModel
=
jcsFeignClient
.
selectById
(
userId
);
FeignClientResult
responseModel
=
jcsFeignClient
.
selectById
(
userId
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/ConfigureController.java
View file @
7a8b0329
...
@@ -709,7 +709,7 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -709,7 +709,7 @@ public class ConfigureController extends AbstractBaseController {
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
.
PersonIdentity
personIdentity
=
reginParams
.
getPersonIdentity
();
ReginParams
.
PersonIdentity
personIdentity
=
reginParams
.
getPersonIdentity
();
if
(!
ValidationUtil
.
isEmpty
(
personIdentity
))
{
if
(!
ValidationUtil
.
isEmpty
(
personIdentity
))
{
bizOrgCode
=
personIdentity
.
getBizOrgCode
();
bizOrgCode
=
personIdentity
.
get
Company
BizOrgCode
();
}
}
}
}
if
(
ObjectUtils
.
isEmpty
(
bizOrgCode
)){
if
(
ObjectUtils
.
isEmpty
(
bizOrgCode
)){
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
7a8b0329
...
@@ -923,7 +923,7 @@ public class FireFightingSystemController extends AbstractBaseController {
...
@@ -923,7 +923,7 @@ public class FireFightingSystemController extends AbstractBaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"装备信息导出"
,
notes
=
"装备信息导出"
)
@ApiOperation
(
value
=
"装备信息导出"
,
notes
=
"装备信息导出"
)
@PostMapping
(
value
=
"/downParameter"
)
@PostMapping
(
value
=
"/downParameter"
)
public
void
export
(
HttpServletResponse
response
,
EquipTypeAmountPageDTO
dto
)
{
public
void
export
(
HttpServletResponse
response
,
@RequestBody
EquipTypeAmountPageDTO
dto
)
{
List
<
EquipmentExportVO
>
list
=
fireFightingSystemMapper
.
exportEquipmentList
(
dto
);
List
<
EquipmentExportVO
>
list
=
fireFightingSystemMapper
.
exportEquipmentList
(
dto
);
if
(!
CollectionUtils
.
isEmpty
(
list
))
{
if
(!
CollectionUtils
.
isEmpty
(
list
))
{
for
(
EquipmentExportVO
vo
:
list
)
{
for
(
EquipmentExportVO
vo
:
list
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/StatisticsController.java
View file @
7a8b0329
...
@@ -45,13 +45,7 @@ public class StatisticsController {
...
@@ -45,13 +45,7 @@ public class StatisticsController {
}
}
@RequestMapping
(
value
=
"/getwarehouseId"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据id查询"
,
notes
=
"根据id查询"
)
public
Map
<
String
,
Object
>
getEquipmentStatusByWarehouseId
()
{
return
iStatisticsService
.
getWarehouseId
(
stationCode
);
}
/**
/**
* 根据装备状态统计总数(按仓库)
* 根据装备状态统计总数(按仓库)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/TopographyController.java
View file @
7a8b0329
...
@@ -1211,7 +1211,7 @@ public class TopographyController extends AbstractBaseController {
...
@@ -1211,7 +1211,7 @@ public class TopographyController extends AbstractBaseController {
if
(
Integer
.
parseInt
(
arr
[
0
])
<
10
)
{
if
(
Integer
.
parseInt
(
arr
[
0
])
<
10
)
{
sStr
=
"0"
+
arr
[
0
];
sStr
=
"0"
+
arr
[
0
];
}
else
{
}
else
{
sStr
=
arr
[
1
];
sStr
=
arr
[
0
];
}
}
if
(
Integer
.
parseInt
(
arr
[
1
])
<
10
)
{
if
(
Integer
.
parseInt
(
arr
[
1
])
<
10
)
{
eStr
=
"0"
+
arr
[
1
];
eStr
=
"0"
+
arr
[
1
];
...
@@ -1222,11 +1222,11 @@ public class TopographyController extends AbstractBaseController {
...
@@ -1222,11 +1222,11 @@ public class TopographyController extends AbstractBaseController {
bDate
=
DateUtils
.
dateParse
(
DateUtils
.
dateToStringMonth
(
beginDate
)
+
"-"
+
sStr
+
" 00:00:00"
,
DateUtils
.
DATE_TIME_PATTERN
);
bDate
=
DateUtils
.
dateParse
(
DateUtils
.
dateToStringMonth
(
beginDate
)
+
"-"
+
sStr
+
" 00:00:00"
,
DateUtils
.
DATE_TIME_PATTERN
);
dDate
=
DateUtils
.
dateParse
(
DateUtils
.
dateToStringMonth
(
beginDate
)
+
"-"
+
eStr
+
" 23:59:59"
dDate
=
DateUtils
.
dateParse
(
DateUtils
.
dateToStringMonth
(
beginDate
)
+
"-"
+
eStr
+
" 23:59:59"
,
DateUtils
.
DATE_PATTERN
);
,
DateUtils
.
DATE_
TIME_
PATTERN
);
}
else
{
}
else
{
bDate
=
DateUtils
.
dateParse
(
DateUtils
.
dateToStringMonth
(
beginDate
)
+
"-"
+
sStr
+
" 00:00:00"
,
DateUtils
.
DATE_TIME_PATTERN
);
bDate
=
DateUtils
.
dateParse
(
DateUtils
.
dateToStringMonth
(
beginDate
)
+
"-"
+
sStr
+
" 00:00:00"
,
DateUtils
.
DATE_TIME_PATTERN
);
dDate
=
DateUtils
.
dateParse
(
DateUtils
.
dateToStringMonth
(
beginDate
)
+
"-"
+
eStr
+
"
00:00:00
"
,
DateUtils
.
DATE_TIME_PATTERN
);
dDate
=
DateUtils
.
dateParse
(
DateUtils
.
dateToStringMonth
(
beginDate
)
+
"-"
+
eStr
+
"
23:59:59
"
,
DateUtils
.
DATE_TIME_PATTERN
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/fegin/SystemctlFeign.java
View file @
7a8b0329
package
com
.
yeejoin
.
equipmanage
.
fegin
;
package
com
.
yeejoin
.
equipmanage
.
fegin
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestHeader
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
com.yeejoin.amos.boot.biz.common.feign.MultipartSupportConfig
;
import
com.yeejoin.amos.boot.biz.common.feign.MultipartSupportConfig
;
...
@@ -29,4 +26,8 @@ public interface SystemctlFeign {
...
@@ -29,4 +26,8 @@ public interface SystemctlFeign {
@RequestHeader
(
"token"
)
String
token
,
@RequestHeader
(
"token"
)
String
token
,
@RequestBody
MessageModel
model
);
@RequestBody
MessageModel
model
);
@RequestMapping
(
value
=
"/systemctl/v1/message/{sequenceNbr}"
,
method
=
RequestMethod
.
PUT
,
consumes
=
"application/json"
)
ResponseModel
<
MessageModel
>
updateIsRead
(
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
View file @
7a8b0329
...
@@ -174,7 +174,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -174,7 +174,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
Map
<
String
,
Double
>
getEquipLocationInfo
(
Long
equipmentSpecificId
);
Map
<
String
,
Double
>
getEquipLocationInfo
(
Long
equipmentSpecificId
);
Map
<
String
,
Object
>
getEquipSpeInfo
(
@Param
(
"equipmentSpecificId"
)
Long
equipmentSpecificId
);
Map
<
String
,
Object
>
getEquipSpeInfo
(
@Param
(
"equipmentSpecificId"
)
Long
equipmentSpecificId
);
Map
<
String
,
Object
>
getWarehouseId
(
@Param
(
"code"
)
String
code
);
/**
/**
* 根据specificId删除装备相关数据
* 根据specificId删除装备相关数据
* @param specificId specificId
* @param specificId specificId
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IStatisticsService.java
View file @
7a8b0329
...
@@ -22,5 +22,5 @@ public interface IStatisticsService {
...
@@ -22,5 +22,5 @@ public interface IStatisticsService {
*/
*/
List
<
EquipCategoryVo
>
equipCategoryVoList
(
String
systemCode
);
List
<
EquipCategoryVo
>
equipCategoryVoList
(
String
systemCode
);
Map
<
String
,
Object
>
getWarehouseId
(
String
orgcode
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificAlarmServiceImpl.java
View file @
7a8b0329
package
com
.
yeejoin
.
equipmanage
.
service
.
impl
;
package
com
.
yeejoin
.
equipmanage
.
service
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
...
@@ -13,10 +14,7 @@ import com.yeejoin.equipmanage.common.entity.*;
...
@@ -13,10 +14,7 @@ import com.yeejoin.equipmanage.common.entity.*;
import
com.yeejoin.equipmanage.common.entity.dto.AlarmDTO
;
import
com.yeejoin.equipmanage.common.entity.dto.AlarmDTO
;
import
com.yeejoin.equipmanage.common.entity.dto.EquipSpecificAlarmDTO
;
import
com.yeejoin.equipmanage.common.entity.dto.EquipSpecificAlarmDTO
;
import
com.yeejoin.equipmanage.common.entity.vo.VideoVO
;
import
com.yeejoin.equipmanage.common.entity.vo.VideoVO
;
import
com.yeejoin.equipmanage.common.enums.AlarmGridColumnEnum
;
import
com.yeejoin.equipmanage.common.enums.*
;
import
com.yeejoin.equipmanage.common.enums.AlarmTypeEnum
;
import
com.yeejoin.equipmanage.common.enums.ConfirmAlamEnum
;
import
com.yeejoin.equipmanage.common.enums.EquipmentDataEnum
;
import
com.yeejoin.equipmanage.common.utils.CommonPageInfoParam
;
import
com.yeejoin.equipmanage.common.utils.CommonPageInfoParam
;
import
com.yeejoin.equipmanage.common.utils.DateUtils
;
import
com.yeejoin.equipmanage.common.utils.DateUtils
;
import
com.yeejoin.equipmanage.common.utils.StringUtil
;
import
com.yeejoin.equipmanage.common.utils.StringUtil
;
...
@@ -95,6 +93,9 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
...
@@ -95,6 +93,9 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
@Autowired
@Autowired
JcsFeign
jcsFeign
;
JcsFeign
jcsFeign
;
@Autowired
MqttSendGateway
mqttSendGateway
;
@Override
@Override
public
void
handleExport
(
HttpServletResponse
response
,
List
<
Long
>
ids
,
String
alarmType
)
{
public
void
handleExport
(
HttpServletResponse
response
,
List
<
Long
>
ids
,
String
alarmType
)
{
CommonPageInfoParam
param
=
new
CommonPageInfoParam
();
CommonPageInfoParam
param
=
new
CommonPageInfoParam
();
...
@@ -796,18 +797,20 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
...
@@ -796,18 +797,20 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
MarqueeData
marqueeData
=
marqueeDataMapper
.
selectById
(
messageId
);
MarqueeData
marqueeData
=
marqueeDataMapper
.
selectById
(
messageId
);
marqueeData
.
setIsRead
(
1
);
marqueeData
.
setIsRead
(
1
);
int
i
=
marqueeDataMapper
.
updateById
(
marqueeData
);
int
i
=
marqueeDataMapper
.
updateById
(
marqueeData
);
MessageModel
model
=
new
MessageModel
();
//
MessageModel model = new MessageModel();
model
.
setMsgType
(
"pressurePump"
);
//
model.setMsgType("pressurePump");
model
.
setSendTime
(
new
Date
());
//
model.setSendTime(new Date());
model
.
setIsSendWeb
(
true
);
//
model.setIsSendWeb(true);
model
.
setCategory
(
1
);
//
model.setCategory(1);
model
.
setIsSendApp
(
false
);
//
model.setIsSendApp(false);
model
.
setTerminal
(
"WEB"
);
//
model.setTerminal("WEB");
Map
<
String
,
String
>
ext
=
new
HashMap
<>();
//
Map<String, String> ext = new HashMap<>();
ext
.
put
(
"isRead"
,
"1"
);
//
ext.put("isRead", "1");
model
.
setExtras
(
ext
);
//
model.setExtras(ext);
Token
token
=
remoteSecurityService
.
getServerToken
();
Token
token
=
remoteSecurityService
.
getServerToken
();
systemctlFeign
.
create
(
token
.
getAppKey
(),
token
.
getProduct
(),
token
.
getToke
(),
model
);
// systemctlFeign.create(token.getAppKey(), token.getProduct(), token.getToke(), model);
systemctlFeign
.
updateIsRead
(
Long
.
valueOf
(
messageId
));
mqttSendGateway
.
sendToMqtt
(
"pressurePump"
,
"1"
);
return
i
;
return
i
;
}
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/StatisticsServiceImpl.java
View file @
7a8b0329
...
@@ -221,11 +221,7 @@ public class StatisticsServiceImpl implements IStatisticsService {
...
@@ -221,11 +221,7 @@ public class StatisticsServiceImpl implements IStatisticsService {
return
equipmentSpecificMapper
.
selectEquipCategoryNumber
(
fightingSystemEntity
.
getId
());
return
equipmentSpecificMapper
.
selectEquipCategoryNumber
(
fightingSystemEntity
.
getId
());
}
}
@Override
public
Map
<
String
,
Object
>
getWarehouseId
(
String
orgcode
)
{
Map
<
String
,
Object
>
map
=
equipmentSpecificMapper
.
getWarehouseId
(
orgcode
);
return
map
;
}
private
Double
getExtinguishingCountByWarehouseId
(
String
categoryCode
,
Long
warehouseId
)
{
private
Double
getExtinguishingCountByWarehouseId
(
String
categoryCode
,
Long
warehouseId
)
{
List
<
EquipmentCategory
>
categoryList
=
iEquipmentCategoryService
List
<
EquipmentCategory
>
categoryList
=
iEquipmentCategoryService
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/config/PersonIdentifyAspect.java
View file @
7a8b0329
...
@@ -56,7 +56,7 @@ public class PersonIdentifyAspect {
...
@@ -56,7 +56,7 @@ public class PersonIdentifyAspect {
}
else
{
}
else
{
ReginParams
reginParam
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
ReginParams
reginParam
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
if
(
reginParam
!=
null
)
{
if
(
reginParam
!=
null
)
{
if
(
reginParam
.
getPersonIdentity
()
==
null
||
reginParam
.
getPersonIdentity
().
getCompanyBizOrgCode
()
==
null
)
{
if
(
reginParam
.
getPersonIdentity
()
==
null
||
StringUtils
.
isEmpty
(
reginParam
.
getPersonIdentity
().
getBizOrgCode
())
||
StringUtils
.
isEmpty
(
reginParam
.
getPersonIdentity
().
getCompanyBizOrgCode
())
)
{
String
userId
=
reginParam
.
getUserModel
().
getUserId
();
String
userId
=
reginParam
.
getUserModel
().
getUserId
();
if
(
userId
!=
null
)
{
if
(
userId
!=
null
)
{
...
...
amos-boot-system-equip/src/main/resources/changelog/wl-3.6.0.xml
View file @
7a8b0329
...
@@ -512,4 +512,18 @@
...
@@ -512,4 +512,18 @@
</sql>
</sql>
</changeSet>
</changeSet>
<changeSet
author=
"tw"
id=
"20221213-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"idx_biz_station_info"
/>
</preConditions>
<comment>
删除字段
</comment>
<sql>
alter table idx_biz_station_info DROP COLUMN warehouse_id;
</sql>
</changeSet>
</databaseChangeLog>
</databaseChangeLog>
\ No newline at end of file
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
7a8b0329
...
@@ -1406,9 +1406,7 @@
...
@@ -1406,9 +1406,7 @@
<select
id=
"getWarehouseId"
resultType=
"Map"
>
select warehouse_id as warehouseId from idx_biz_station_info where code = #{code}
</select>
<delete
id=
"deleteEquipDataBySpecificId"
>
<delete
id=
"deleteEquipDataBySpecificId"
>
...
...
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