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
1636d40b
Commit
1636d40b
authored
Oct 09, 2021
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐患提交
parent
a200ce07
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
16 deletions
+16
-16
LatentDangerProcessStateEnum.java
...tentdanger/common/enums/LatentDangerProcessStateEnum.java
+1
-1
LatentDanger.java
...om/yeejoin/amos/latentdanger/dao/entity/LatentDanger.java
+4
-5
LatentDangerServiceImpl.java
...danger/business/service/impl/LatentDangerServiceImpl.java
+9
-8
LatentDangerMapper.xml
...anger/src/main/resources/db/mapper/LatentDangerMapper.xml
+2
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-latentdanger-api/src/main/java/com/yeejoin/amos/latentdanger/common/enums/LatentDangerProcessStateEnum.java
View file @
1636d40b
...
...
@@ -71,7 +71,7 @@ public enum LatentDangerProcessStateEnum {
public
static
LatentDangerProcessStateEnum
getByCode
(
String
code
)
{
for
(
LatentDangerProcessStateEnum
l
:
LatentDangerProcessStateEnum
.
values
())
{
if
(
code
.
equals
(
l
.
getCode
()
))
{
if
(
l
.
getCode
().
equals
(
code
))
{
return
l
;
}
}
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-latentdanger-api/src/main/java/com/yeejoin/amos/latentdanger/dao/entity/LatentDanger.java
View file @
1636d40b
...
...
@@ -4,16 +4,12 @@ import com.alibaba.fastjson.JSONObject;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
org.hibernate.annotations.Where
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
import
java.util.Date
;
/**
...
...
@@ -94,6 +90,7 @@ public class LatentDanger extends BasicEntity {
/**
* 限制时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
reformLimitDate
;
private
Integer
overtimeState
;
...
...
@@ -127,11 +124,13 @@ public class LatentDanger extends BasicEntity {
/**
* 记录修改时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
updateDate
;
/**
* 延期治理时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
delayLimitDate
;
/**
...
...
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 @
1636d40b
...
...
@@ -1805,27 +1805,28 @@ public class LatentDangerServiceImpl extends BaseService<LatentDangerBo, LatentD
IPage
<
LatentDanger
>
iPage
=
this
.
baseMapper
.
selectPageByParam
(
new
Page
(
Long
.
valueOf
(
pageParam
.
getCurrent
()),
Long
.
valueOf
(
pageParam
.
getSize
())),
(
Map
<
String
,
Object
>)
pageParam
);
Map
<
Long
,
String
>
buildingAbsolutePositionMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
buildingAbsolutePositionMap
=
new
HashMap
<>();
if
(!
ValidationUtil
.
isEmpty
(
iPage
.
getRecords
()))
{
try
{
LinkedHashMap
<
String
,
Object
>
buildingAbsolutePosition
=
(
LinkedHashMap
<
String
,
Object
>)
equipFeign
.
getBuildingAbsolutePosition
().
getResult
();
if
(
buildingAbsolutePosition
==
null
||
!
"200"
.
equals
(
buildingAbsolutePosition
.
get
(
"status"
).
toString
()
))
{
buildingAbsolutePositionMap
=
equipFeign
.
getBuildingAbsolutePosition
().
getResult
();
if
(
ValidationUtil
.
isEmpty
(
buildingAbsolutePositionMap
))
{
throw
new
YeeException
(
"获取建筑树出错"
);
}
buildingAbsolutePositionMap
=
(
Map
<
Long
,
String
>)
buildingAbsolutePosition
.
get
(
"result"
);
}
catch
(
Exception
e
)
{
}
Map
<
Long
,
String
>
finalBuildingAbsolutePositionMap
=
buildingAbsolutePositionMap
;
Map
<
String
,
Object
>
finalBuildingAbsolutePositionMap
=
buildingAbsolutePositionMap
;
iPage
.
getRecords
().
forEach
(
danger
->
{
danger
.
setStructureName
(
finalBuildingAbsolutePositionMap
.
get
(
danger
.
getStructureId
()));
if
(!
ValidationUtil
.
isEmpty
(
danger
.
getStructureId
())
&&
!
ValidationUtil
.
isEmpty
(
finalBuildingAbsolutePositionMap
.
get
(
danger
.
getStructureId
().
toString
())))
{
danger
.
setStructureName
(
finalBuildingAbsolutePositionMap
.
get
(
danger
.
getStructureId
().
toString
()).
toString
());
}
LatentDangerBizTypeEnum
bizTypeEnum
=
LatentDangerBizTypeEnum
.
getByCode
(
danger
.
getBizType
());
if
(
bizType
.
equals
(
danger
.
getBizType
()))
{
LatentDangerState
.
SupervisionDangerStateEnum
dangerStateEnum
=
LatentDangerState
.
SupervisionDangerStateEnum
.
getEnumByCode
(
danger
.
getDangerState
());
danger
.
setProcessState
(
dangerStateEnum
.
getProcessState
());
LatentDangerProcessStateEnum
processStateEnum
=
LatentDangerProcessStateEnum
.
getByCode
(
danger
.
getProcessState
());
danger
.
setProcessStateName
(
processStateEnum
.
getName
());
}
danger
.
setBizTypeName
(
bizTypeEnum
.
getName
());
LatentDangerProcessStateEnum
processStateEnum
=
LatentDangerProcessStateEnum
.
getByCode
(
danger
.
getProcessState
());
danger
.
setProcessStateName
(
processStateEnum
.
getName
());
});
}
...
...
amos-boot-system-latentdanger/src/main/resources/db/mapper/LatentDangerMapper.xml
View file @
1636d40b
...
...
@@ -978,7 +978,7 @@
<if
test=
"key == 'name' and value != null and value != ''"
>
and a.danger_name like concat('%', #{value}, '%')
</if>
<if
test=
"key == 'structureId' and value != null"
>
<if
test=
"key == 'structureId
List
' and value != null"
>
and a.structure_id in
<foreach
collection=
"value"
item=
"structureId"
open=
"("
separator=
","
close=
")"
>
#{structureId}
...
...
@@ -992,7 +992,7 @@
</if>
</foreach>
</where>
<if
test=
"paramMap.order != null and paramMap.order ==
'1'
"
>
<if
test=
"paramMap.order != null and paramMap.order ==
1
"
>
order by a.create_date desc
</if>
</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