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
a869d0ea
Commit
a869d0ea
authored
Sep 30, 2022
by
limei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化厂站消防数据更新接口,修改综合报告查看接口
parent
dd057638
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
18 deletions
+67
-18
ReportStateEnum.java
...ejoin/amos/boot/module/tdc/api/enums/ReportStateEnum.java
+59
-0
CheckReportImpl.java
...mos/boot/module/tdc/biz/service/impl/CheckReportImpl.java
+8
-18
No files found.
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/java/com/yeejoin/amos/boot/module/tdc/api/enums/ReportStateEnum.java
0 → 100644
View file @
a869d0ea
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tdc
.
api
.
enums
;
import
java.util.HashMap
;
import
java.util.Map
;
public
enum
ReportStateEnum
{
WAIT_FILL_IN
(
"0"
,
"待填报"
,
"waitFillIn"
),
WAIT_HANDLE
(
"1"
,
"待处理"
,
"waitHandle"
),
HANDLED
(
"2"
,
"已处理"
,
"handled"
),
MY_CREATE
(
"3"
,
"我发起"
,
"myCreate"
),
IN_PROGRESS
(
"4"
,
"进行中"
,
"inProgress"
);
private
String
status
;
private
String
state
;
private
String
IState
;
ReportStateEnum
(
String
status
,
String
state
,
String
IState
)
{
this
.
status
=
status
;
this
.
state
=
state
;
this
.
IState
=
IState
;
}
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
public
String
getState
()
{
return
state
;
}
public
void
setState
(
String
state
)
{
this
.
state
=
state
;
}
public
String
getIState
()
{
return
IState
;
}
public
void
setIState
(
String
IState
)
{
this
.
IState
=
IState
;
}
public
static
final
Map
<
String
,
String
>
map
=
new
HashMap
<>();
public
static
String
getStateValue
(
String
status
){
return
map
.
get
(
status
);
}
static
{
for
(
ReportStateEnum
reportStateEnum:
ReportStateEnum
.
values
()){
map
.
put
(
reportStateEnum
.
getStatus
(),
reportStateEnum
.
getState
());
}
}
}
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/service/impl/CheckReportImpl.java
View file @
a869d0ea
...
@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...
@@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckReport
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckReport
;
import
com.yeejoin.amos.boot.module.tdc.api.enums.ReportStateEnum
;
import
com.yeejoin.amos.boot.module.tdc.api.feign.IdxFeignService
;
import
com.yeejoin.amos.boot.module.tdc.api.feign.IdxFeignService
;
import
com.yeejoin.amos.boot.module.tdc.api.mapper.CheckReportMapper
;
import
com.yeejoin.amos.boot.module.tdc.api.mapper.CheckReportMapper
;
import
com.yeejoin.amos.boot.module.tdc.api.service.CheckReportService
;
import
com.yeejoin.amos.boot.module.tdc.api.service.CheckReportService
;
...
@@ -32,10 +33,13 @@ public class CheckReportImpl extends ServiceImpl<CheckReportMapper, CheckReport>
...
@@ -32,10 +33,13 @@ public class CheckReportImpl extends ServiceImpl<CheckReportMapper, CheckReport>
public
IPage
<
CheckReport
>
selectAll
(
int
current
,
int
size
,
String
amosOrgCode
)
{
public
IPage
<
CheckReport
>
selectAll
(
int
current
,
int
size
,
String
amosOrgCode
)
{
Page
<
CheckReport
>
page
=
new
Page
<>(
current
,
size
);
Page
<
CheckReport
>
page
=
new
Page
<>(
current
,
size
);
LambdaQueryWrapper
<
CheckReport
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
orderByDesc
(
CheckReport:
:
getCreateDate
);
if
(
ValidationUtil
.
isEmpty
(
amosOrgCode
)){
if
(
ValidationUtil
.
isEmpty
(
amosOrgCode
)){
return
this
.
page
(
page
);
return
this
.
page
(
page
,
wrapper
);
}
else
{
}
else
{
LambdaQueryWrapper
<
CheckReport
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
likeRight
(
CheckReport:
:
getAmosOrgCode
,
amosOrgCode
);
wrapper
.
likeRight
(
CheckReport:
:
getAmosOrgCode
,
amosOrgCode
);
return
this
.
page
(
page
,
wrapper
);
return
this
.
page
(
page
,
wrapper
);
}
}
...
@@ -49,22 +53,8 @@ public class CheckReportImpl extends ServiceImpl<CheckReportMapper, CheckReport>
...
@@ -49,22 +53,8 @@ public class CheckReportImpl extends ServiceImpl<CheckReportMapper, CheckReport>
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++){
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++){
JSONObject
jsonObject
=
jsonArray
.
getJSONObject
(
i
);
JSONObject
jsonObject
=
jsonArray
.
getJSONObject
(
i
);
String
status
=
jsonObject
.
getString
(
"status"
);
String
status
=
jsonObject
.
getString
(
"status"
);
if
(
"0"
.
equals
(
status
)){
jsonObject
.
put
(
"state"
,
ReportStateEnum
.
map
.
get
(
status
));
jsonObject
.
put
(
"state"
,
"待填报"
);
}
if
(
"1"
.
equals
(
status
)){
jsonObject
.
put
(
"state"
,
"待处理"
);
}
if
(
"2"
.
equals
(
status
)){
jsonObject
.
put
(
"state"
,
"已处理"
);
}
if
(
"3"
.
equals
(
status
)){
jsonObject
.
put
(
"state"
,
"我发起"
);
}
if
(
"4"
.
equals
(
status
)){
jsonObject
.
put
(
"state"
,
"进行中"
);
}
}
map
.
put
(
"current"
,
object
.
getString
(
"pageNumber"
));
map
.
put
(
"current"
,
object
.
getString
(
"pageNumber"
));
map
.
put
(
"records"
,
jsonArray
);
map
.
put
(
"records"
,
jsonArray
);
map
.
put
(
"total"
,
object
.
getString
(
"total"
));
map
.
put
(
"total"
,
object
.
getString
(
"total"
));
...
...
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