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
0354406e
Commit
0354406e
authored
Oct 19, 2021
by
chenhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://172.16.10.76/moa/amos-boot-biz
into developer
parents
561a1f05
a6d88dfb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
12 deletions
+35
-12
MaintenanceCompanyServiceImpl.java
...ommon/biz/service/impl/MaintenanceCompanyServiceImpl.java
+3
-0
PageParam.java
...m/yeejoin/amos/latentdanger/business/param/PageParam.java
+12
-3
LatentDangerServiceImpl.java
...danger/business/service/impl/LatentDangerServiceImpl.java
+20
-9
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/service/impl/MaintenanceCompanyServiceImpl.java
View file @
0354406e
...
@@ -634,6 +634,9 @@ public class MaintenanceCompanyServiceImpl
...
@@ -634,6 +634,9 @@ public class MaintenanceCompanyServiceImpl
}
}
MaintenanceCompany
person
=
this
.
getOne
(
new
LambdaQueryWrapper
<
MaintenanceCompany
>()
MaintenanceCompany
person
=
this
.
getOne
(
new
LambdaQueryWrapper
<
MaintenanceCompany
>()
.
eq
(
MaintenanceCompany:
:
getInstanceId
,
dyFormInstance
.
getInstanceId
()));
.
eq
(
MaintenanceCompany:
:
getInstanceId
,
dyFormInstance
.
getInstanceId
()));
if
(
ValidationUtil
.
isEmpty
(
person
))
{
throw
new
BadRequest
(
"维保账号不存在或未关联系统账号."
);
}
maintenanceCompany
=
this
.
getOne
(
new
LambdaQueryWrapper
<
MaintenanceCompany
>()
maintenanceCompany
=
this
.
getOne
(
new
LambdaQueryWrapper
<
MaintenanceCompany
>()
.
eq
(
MaintenanceCompany:
:
getSequenceNbr
,
person
.
getParentId
()));
.
eq
(
MaintenanceCompany:
:
getSequenceNbr
,
person
.
getParentId
()));
if
(
ValidationUtil
.
isEmpty
(
maintenanceCompany
))
{
if
(
ValidationUtil
.
isEmpty
(
maintenanceCompany
))
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/param/PageParam.java
View file @
0354406e
package
com
.
yeejoin
.
amos
.
latentdanger
.
business
.
param
;
package
com
.
yeejoin
.
amos
.
latentdanger
.
business
.
param
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.OrderItem
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Sort
;
import
org.springframework.data.domain.Sort
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
/**
/**
* @author DELL
* @author DELL
...
@@ -107,4 +105,15 @@ public class PageParam<K, V> extends HashMap<K, V> implements Pageable {
...
@@ -107,4 +105,15 @@ public class PageParam<K, V> extends HashMap<K, V> implements Pageable {
public
boolean
hasPrevious
()
{
public
boolean
hasPrevious
()
{
return
false
;
return
false
;
}
}
public
int
getParamCurrent
()
{
if
(!
ValidationUtil
.
isEmpty
(
this
.
get
(
"current"
)))
{
return
current
;
}
if
(
this
.
get
(
"current"
)
instanceof
String
&&
this
.
get
(
"size"
)
instanceof
String
)
{
return
Integer
.
parseInt
((
String
)
this
.
get
(
"current"
));
}
else
{
return
(
Integer
)(
this
.
get
(
"current"
));
}
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/service/impl/LatentDangerServiceImpl.java
View file @
0354406e
...
@@ -1814,20 +1814,19 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
...
@@ -1814,20 +1814,19 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
pageParam
.
put
(
"dangerIds"
,
dangerIdList
);
pageParam
.
put
(
"dangerIds"
,
dangerIdList
);
}
}
Page
page
=
new
Page
();
Page
page
=
new
Page
();
if
(
pageParam
.
get
(
"current"
)
instanceof
String
&&
pageParam
.
get
(
"size"
)
instanceof
String
)
{
initPage
(
pageParam
,
page
);
int
current
=
Integer
.
valueOf
((
String
)
pageParam
.
get
(
"current"
));
int
size
=
Integer
.
valueOf
((
String
)
pageParam
.
get
(
"current"
));
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
}
else
{
page
.
setCurrent
((
Integer
)(
pageParam
.
get
(
"current"
)));
page
.
setSize
((
Integer
)(
pageParam
.
get
(
"size"
)));
}
if
(
ValidationUtil
.
isEmpty
(
pageParam
.
get
(
"order"
)))
{
if
(
ValidationUtil
.
isEmpty
(
pageParam
.
get
(
"order"
)))
{
pageParam
.
put
(
"order"
,
"1"
);
pageParam
.
put
(
"order"
,
"1"
);
}
}
IPage
<
LatentDanger
>
iPage
=
this
.
baseMapper
.
selectPageByParam
(
page
,
(
Map
<
String
,
Object
>)
pageParam
);
IPage
<
LatentDanger
>
iPage
=
this
.
baseMapper
.
selectPageByParam
(
page
,
(
Map
<
String
,
Object
>)
pageParam
);
if
(
iPage
.
getCurrent
()
!=
pageParam
.
getParamCurrent
())
{
iPage
.
setRecords
(
Lists
.
newArrayList
());
iPage
.
setTotal
(
0
);
iPage
.
setCurrent
(
pageParam
.
getParamCurrent
());
return
iPage
;
}
Map
<
String
,
Object
>
buildingAbsolutePositionMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
buildingAbsolutePositionMap
=
new
HashMap
<>();
if
(!
ValidationUtil
.
isEmpty
(
iPage
.
getRecords
()))
{
if
(!
ValidationUtil
.
isEmpty
(
iPage
.
getRecords
()))
{
try
{
try
{
...
@@ -1866,6 +1865,18 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
...
@@ -1866,6 +1865,18 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
return
iPage
;
return
iPage
;
}
}
public
void
initPage
(
PageParam
pageParam
,
Page
page
)
{
if
(
pageParam
.
get
(
"current"
)
instanceof
String
&&
pageParam
.
get
(
"size"
)
instanceof
String
)
{
int
current
=
Integer
.
valueOf
((
String
)
pageParam
.
get
(
"current"
));
int
size
=
Integer
.
valueOf
((
String
)
pageParam
.
get
(
"size"
));
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
}
else
{
page
.
setCurrent
((
Integer
)(
pageParam
.
get
(
"current"
)));
page
.
setSize
((
Integer
)(
pageParam
.
get
(
"size"
)));
}
}
private
List
<
Map
<
String
,
Object
>>
getAllNodes
(
List
<
Map
<
String
,
Object
>>
buildingTree
)
{
private
List
<
Map
<
String
,
Object
>>
getAllNodes
(
List
<
Map
<
String
,
Object
>>
buildingTree
)
{
List
<
Map
<
String
,
Object
>>
res
=
new
LinkedList
<>();
List
<
Map
<
String
,
Object
>>
res
=
new
LinkedList
<>();
if
(
buildingTree
!=
null
&&
!
buildingTree
.
isEmpty
())
{
if
(
buildingTree
!=
null
&&
!
buildingTree
.
isEmpty
())
{
...
...
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