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
3ee0181d
Commit
3ee0181d
authored
Jan 04, 2023
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
a13e212c
110f6e66
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
23 additions
and
17 deletions
+23
-17
OrgPersonController.java
...oot/module/common/biz/controller/OrgPersonController.java
+1
-1
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+2
-2
EquipmentSpecificController.java
...n/equipmanage/controller/EquipmentSpecificController.java
+4
-1
EquipmentSpecificMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
+1
-1
IEquipmentSpecificSerivce.java
...eejoin/equipmanage/service/IEquipmentSpecificSerivce.java
+1
-1
EquipmentInfoOnPlanServiceImpl.java
...ipmanage/service/impl/EquipmentInfoOnPlanServiceImpl.java
+1
-1
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+2
-2
VideoServiceImpl.java
...om/yeejoin/equipmanage/service/impl/VideoServiceImpl.java
+8
-8
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+3
-0
No files found.
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 @
3ee0181d
...
@@ -253,7 +253,7 @@ public class OrgPersonController extends BaseController {
...
@@ -253,7 +253,7 @@ public class OrgPersonController extends BaseController {
Map
<
String
,
Object
>
req
=
new
HashMap
<>();
Map
<
String
,
Object
>
req
=
new
HashMap
<>();
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
bizOrgCode
=
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
();
String
bizOrgCode
=
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
();
req
.
put
(
"
biz
OrgCode"
,
bizOrgCode
);
req
.
put
(
"OrgCode"
,
bizOrgCode
);
// if(redisUtils.get("userList:" + bizOrgCode) != null){
// if(redisUtils.get("userList:" + bizOrgCode) != null){
// return ResponseHelper.buildResponse(redisUtils.get("userList:" + bizOrgCode));
// return ResponseHelper.buildResponse(redisUtils.get("userList:" + bizOrgCode));
// }
// }
...
...
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 @
3ee0181d
...
@@ -676,7 +676,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -676,7 +676,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
}
}
public
IPage
<
Map
<
String
,
Object
>>
listAllByCurrentUser
(
String
pageNum
,
String
pageSize
,
Map
<
String
,
Object
>
req
)
{
public
IPage
<
Map
<
String
,
Object
>>
listAllByCurrentUser
(
String
pageNum
,
String
pageSize
,
Map
<
String
,
Object
>
req
)
{
String
bizOrgCode
=
req
.
get
(
"bizOrgCode"
).
toString
();
IPage
<
Map
<
String
,
Object
>>
pageBean
=
null
;
IPage
<
Map
<
String
,
Object
>>
pageBean
=
null
;
if
(
StringUtils
.
isBlank
(
pageNum
)
||
StringUtils
.
isBlank
(
pageSize
))
{
if
(
StringUtils
.
isBlank
(
pageNum
)
||
StringUtils
.
isBlank
(
pageSize
))
{
pageBean
=
new
Page
<>(
0
,
Long
.
MAX_VALUE
);
pageBean
=
new
Page
<>(
0
,
Long
.
MAX_VALUE
);
...
@@ -3173,7 +3173,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -3173,7 +3173,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
dynamicFormInstance
.
setFieldValueLabel
(
dataDictionaryService
.
getById
(
dynamicFormInstance
.
getFieldValue
()).
getName
());
dynamicFormInstance
.
setFieldValueLabel
(
dataDictionaryService
.
getById
(
dynamicFormInstance
.
getFieldValue
()).
getName
());
}
}
if
(
"positionType"
.
equals
(
dynamicFormInstance
.
getFieldCode
())
&&
peopleInfoDto
.
getFirefighters
().
getJobTitleCode
()
!=
null
){
if
(
"positionType"
.
equals
(
dynamicFormInstance
.
getFieldCode
())
&&
peopleInfoDto
.
getFirefighters
().
getJobTitleCode
()
!=
null
){
dynamicFormInstance
.
setFieldValueLabel
(
dataDictionaryService
.
getById
(
peopleInfoDto
.
getFirefighters
().
getJobTitleCode
()).
getNam
e
());
dynamicFormInstance
.
setFieldValueLabel
(
peopleInfoDto
.
getFirefighters
().
getJobTitl
e
());
}
}
if
(
"administrativePositionCode"
.
equals
(
dynamicFormInstance
.
getFieldCode
())
&&
firefightersPost
.
getAdministrativePositionCode
()
!=
null
){
if
(
"administrativePositionCode"
.
equals
(
dynamicFormInstance
.
getFieldCode
())
&&
firefightersPost
.
getAdministrativePositionCode
()
!=
null
){
dynamicFormInstance
.
setFieldValueLabel
(
dataDictionaryService
.
getById
(
map1
.
get
(
"administrativePositionCode"
).
toString
()).
getName
());
dynamicFormInstance
.
setFieldValueLabel
(
dataDictionaryService
.
getById
(
map1
.
get
(
"administrativePositionCode"
).
toString
()).
getName
());
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentSpecificController.java
View file @
3ee0181d
...
@@ -380,7 +380,10 @@ public class EquipmentSpecificController extends AbstractBaseController {
...
@@ -380,7 +380,10 @@ public class EquipmentSpecificController extends AbstractBaseController {
@GetMapping
(
value
=
"/getListByEquipmentCode/{code}"
)
@GetMapping
(
value
=
"/getListByEquipmentCode/{code}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据装备分类code获取装备list"
,
notes
=
"根据装备分类code获取装备list"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据装备分类code获取装备list"
,
notes
=
"根据装备分类code获取装备list"
)
public
List
<
Map
<
String
,
Object
>>
getListByEquipmentCode
(
@PathVariable
String
code
){
public
List
<
Map
<
String
,
Object
>>
getListByEquipmentCode
(
@PathVariable
String
code
){
return
equipmentSpecificSerivce
.
getListByEquipmentCode
(
code
);
ReginParams
ReginParams
=
getSelectedOrgInfo
();
String
bizCode
=
ReginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
();
return
equipmentSpecificSerivce
.
getListByEquipmentCode
(
code
,
bizCode
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
View file @
3ee0181d
...
@@ -229,7 +229,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -229,7 +229,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
List
<
Map
<
String
,
Object
>>
getFireMonitorInfo
(
@Param
(
"equipmentId"
)
Long
fireEquipmentId
,
@Param
(
"list"
)
String
[]
strings
);
List
<
Map
<
String
,
Object
>>
getFireMonitorInfo
(
@Param
(
"equipmentId"
)
Long
fireEquipmentId
,
@Param
(
"list"
)
String
[]
strings
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfo
(
@Param
(
"list"
)
String
[]
strings
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfo
(
@Param
(
"list"
)
String
[]
strings
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfoEQ
(
@Param
(
"list"
)
String
[]
strings
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfoEQ
(
@Param
(
"list"
)
String
[]
strings
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IEquipmentSpecificSerivce.java
View file @
3ee0181d
...
@@ -227,7 +227,7 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
...
@@ -227,7 +227,7 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
* @param code 装备分类逗号隔开
* @param code 装备分类逗号隔开
* @return 装备list
* @return 装备list
*/
*/
List
<
Map
<
String
,
Object
>>
getListByEquipmentCode
(
String
code
);
List
<
Map
<
String
,
Object
>>
getListByEquipmentCode
(
String
code
,
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfoEQ
(
String
code
,
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfoEQ
(
String
code
,
String
bizOrgCode
);
/**
/**
* 根据装备id获取物联日志
* 根据装备id获取物联日志
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentInfoOnPlanServiceImpl.java
View file @
3ee0181d
...
@@ -58,7 +58,7 @@ public class EquipmentInfoOnPlanServiceImpl implements IEquipmentInfoOnPlanServi
...
@@ -58,7 +58,7 @@ public class EquipmentInfoOnPlanServiceImpl implements IEquipmentInfoOnPlanServi
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
getFirePumpInfo
()
{
public
List
<
Map
<
String
,
Object
>>
getFirePumpInfo
()
{
String
[]
strings
=
pumpCodes
.
split
(
","
);
String
[]
strings
=
pumpCodes
.
split
(
","
);
List
<
Map
<
String
,
Object
>>
list
=
equipmentSpecificMapper
.
getFirePumpInfo
(
strings
);
List
<
Map
<
String
,
Object
>>
list
=
equipmentSpecificMapper
.
getFirePumpInfo
(
strings
,
null
);
return
Optional
.
ofNullable
(
list
).
orElse
(
Lists
.
newArrayList
());
return
Optional
.
ofNullable
(
list
).
orElse
(
Lists
.
newArrayList
());
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
3ee0181d
...
@@ -1831,11 +1831,11 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -1831,11 +1831,11 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
}
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
getListByEquipmentCode
(
String
code
)
{
public
List
<
Map
<
String
,
Object
>>
getListByEquipmentCode
(
String
code
,
String
bizOrgCode
)
{
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
if
(
StringUtil
.
isNotEmpty
(
code
))
{
if
(
StringUtil
.
isNotEmpty
(
code
))
{
String
[]
strings
=
code
.
split
(
","
);
String
[]
strings
=
code
.
split
(
","
);
list
=
equipmentSpecificMapper
.
getFirePumpInfo
(
strings
);
list
=
equipmentSpecificMapper
.
getFirePumpInfo
(
strings
,
bizOrgCode
);
}
}
return
list
;
return
list
;
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/VideoServiceImpl.java
View file @
3ee0181d
...
@@ -440,34 +440,34 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
...
@@ -440,34 +440,34 @@ public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements
//字段长度效验
//字段长度效验
if
(!
ValidationUtil
.
isEmpty
(
x
.
getName
())&&
x
.
getName
().
length
()>
100
)
{
if
(!
ValidationUtil
.
isEmpty
(
x
.
getName
())&&
x
.
getName
().
length
()>
100
)
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":名字
过长
"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":名字
不能大于100
"
);
}
}
if
(!
ValidationUtil
.
isEmpty
(
x
.
getCode
())&&
x
.
getCode
().
length
()>
100
)
{
if
(!
ValidationUtil
.
isEmpty
(
x
.
getCode
())&&
x
.
getCode
().
length
()>
100
)
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":编号
过长
"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":编号
不能大于100
"
);
}
}
if
(!
ValidationUtil
.
isEmpty
(
x
.
getUrl
())&&
x
.
getUrl
().
length
()>
255
)
{
if
(!
ValidationUtil
.
isEmpty
(
x
.
getUrl
())&&
x
.
getUrl
().
length
()>
255
)
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":视频地址过长"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":视频地址过长"
);
}
}
if
(!
ValidationUtil
.
isEmpty
(
x
.
getToken
())&&
x
.
getToken
().
length
()>
255
)
{
if
(!
ValidationUtil
.
isEmpty
(
x
.
getToken
())&&
x
.
getToken
().
length
()>
255
)
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":token
过长
"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":token
不能大于255
"
);
}
}
if
(!
ValidationUtil
.
isEmpty
(
x
.
getBizOrgCode
())&&
x
.
getBizOrgCode
().
length
()>
64
)
{
if
(!
ValidationUtil
.
isEmpty
(
x
.
getBizOrgCode
())&&
x
.
getBizOrgCode
().
length
()>
64
)
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":机构编码
过长
"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":机构编码
不能大于64
"
);
}
}
if
(!
ValidationUtil
.
isEmpty
(
x
.
getBizOrgName
())&&
x
.
getBizOrgName
().
length
()>
128
)
{
if
(!
ValidationUtil
.
isEmpty
(
x
.
getBizOrgName
())&&
x
.
getBizOrgName
().
length
()>
128
)
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":机构名称
过长
"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":机构名称
不能大于128
"
);
}
}
if
(!
ValidationUtil
.
isEmpty
(
x
.
getAddress
())&&
x
.
getAddress
().
length
()>
2000
)
{
if
(!
ValidationUtil
.
isEmpty
(
x
.
getAddress
())&&
x
.
getAddress
().
length
()>
2000
)
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":地址
过长
"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":地址
不能大于2000
"
);
}
}
if
(
ValidationUtil
.
isEmpty
(
x
.
getRemark
())&&
x
.
getRemark
().
length
()>
255
)
{
if
(
ValidationUtil
.
isEmpty
(
x
.
getRemark
())&&
x
.
getRemark
().
length
()>
255
)
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":备注
过长
"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":备注
不能大于255
"
);
}
}
if
(!
ValidationUtil
.
isEmpty
(
x
.
getImg
())&&
x
.
getImg
().
length
()>
100
)
{
if
(!
ValidationUtil
.
isEmpty
(
x
.
getImg
())&&
x
.
getImg
().
length
()>
100
)
{
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":备注
过长
"
);
throw
new
RuntimeException
(
"错误行"
+
rowNum
+
":备注
不能大于100
"
);
}
}
// if (!urlPattern.matcher(x.getUrl().trim()).matches()) {
// if (!urlPattern.matcher(x.getUrl().trim()).matches()) {
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
3ee0181d
...
@@ -1706,6 +1706,9 @@
...
@@ -1706,6 +1706,9 @@
wes.equipment_code LIKE
<![CDATA[CONCAT(#{item},'%')]]>
wes.equipment_code LIKE
<![CDATA[CONCAT(#{item},'%')]]>
</foreach>
</foreach>
</if>
</if>
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
and wes.biz_org_code LIKE concat(#{bizOrgCode}, '%')
</if>
</where>
</where>
ORDER BY realtiemIotIndexUpdateDate DESC
ORDER BY realtiemIotIndexUpdateDate DESC
</select>
</select>
...
...
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