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
1156d7c6
Commit
1156d7c6
authored
Aug 30, 2021
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.app维保记录详情
parent
06ce621a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
7 deletions
+71
-7
PlanTypeEnum.java
...m/yeejoin/amos/maintenance/common/enums/PlanTypeEnum.java
+54
-0
CheckServiceImpl.java
...s/maintenance/business/service/impl/CheckServiceImpl.java
+5
-4
dbTemplate_check.xml
...tenance/src/main/resources/db/mapper/dbTemplate_check.xml
+12
-3
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-maintenance-api/src/main/java/com/yeejoin/amos/maintenance/common/enums/PlanTypeEnum.java
0 → 100644
View file @
1156d7c6
package
com
.
yeejoin
.
amos
.
maintenance
.
common
.
enums
;
import
lombok.Data
;
import
java.util.Arrays
;
import
java.util.Optional
;
/**
* @author DELL
*/
public
enum
PlanTypeEnum
{
/**
* 计划类型枚举
*/
PLAN_TYPE_DAY
(
"1"
,
"日计划"
),
PLAN_TYPE_WEEK
(
"2"
,
"周计划"
),
PLAN_TYPE_MONTH
(
"3"
,
"月计划"
),
PLAN_TYPE_YEAR
(
"4"
,
"年计划"
);
/**
* 名称
*/
private
String
name
;
/**
* code
*/
private
String
code
;
PlanTypeEnum
(
String
code
,
String
name
){
this
.
code
=
code
;
this
.
name
=
name
;
}
public
String
getName
()
{
return
name
;
}
public
static
PlanTypeEnum
getEnumByCode
(
String
code
)
{
Optional
<
PlanTypeEnum
>
op
=
Arrays
.
stream
(
PlanTypeEnum
.
values
()).
filter
(
e
->
e
.
code
.
equals
(
code
)).
findFirst
();
return
op
.
orElse
(
null
);
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/service/impl/CheckServiceImpl.java
View file @
1156d7c6
...
@@ -33,10 +33,7 @@ import com.yeejoin.amos.maintenance.business.util.DaoCriteria;
...
@@ -33,10 +33,7 @@ import com.yeejoin.amos.maintenance.business.util.DaoCriteria;
import
com.yeejoin.amos.maintenance.business.util.ToolUtils
;
import
com.yeejoin.amos.maintenance.business.util.ToolUtils
;
import
com.yeejoin.amos.maintenance.business.vo.CheckAnalysisVo
;
import
com.yeejoin.amos.maintenance.business.vo.CheckAnalysisVo
;
import
com.yeejoin.amos.maintenance.business.vo.CheckInfoVo
;
import
com.yeejoin.amos.maintenance.business.vo.CheckInfoVo
;
import
com.yeejoin.amos.maintenance.common.enums.CheckStatusEnum
;
import
com.yeejoin.amos.maintenance.common.enums.*
;
import
com.yeejoin.amos.maintenance.common.enums.PlanTaskFinishStatusEnum
;
import
com.yeejoin.amos.maintenance.common.enums.PointLevelEnum
;
import
com.yeejoin.amos.maintenance.common.enums.PointStatusEnum
;
import
com.yeejoin.amos.maintenance.core.common.request.CommonPageable
;
import
com.yeejoin.amos.maintenance.core.common.request.CommonPageable
;
import
com.yeejoin.amos.maintenance.core.common.response.*
;
import
com.yeejoin.amos.maintenance.core.common.response.*
;
import
com.yeejoin.amos.maintenance.core.enums.QueryOperatorEnum
;
import
com.yeejoin.amos.maintenance.core.enums.QueryOperatorEnum
;
...
@@ -1125,6 +1122,10 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -1125,6 +1122,10 @@ public class CheckServiceImpl implements ICheckService {
if
(
facility
.
containsKey
(
"isOk"
))
{
if
(
facility
.
containsKey
(
"isOk"
))
{
facility
.
put
(
"isOkDesc"
,
CheckStatusEnum
.
getEnum
(
String
.
valueOf
(
facility
.
get
(
"isOk"
))).
getName
());
facility
.
put
(
"isOkDesc"
,
CheckStatusEnum
.
getEnum
(
String
.
valueOf
(
facility
.
get
(
"isOk"
))).
getName
());
}
}
if
(
facility
.
containsKey
(
"planType"
)){
PlanTypeEnum
planType
=
PlanTypeEnum
.
getEnumByCode
(
String
.
valueOf
(
facility
.
get
(
"planType"
)));
facility
.
put
(
"planTypeDesc"
,
planType
!=
null
?
planType
.
getName
()
:
"其他"
);
}
return
facility
;
return
facility
;
}
}
...
...
amos-boot-system-maintenance/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
1156d7c6
...
@@ -2033,9 +2033,18 @@
...
@@ -2033,9 +2033,18 @@
pc.plan_name as planName,
pc.plan_name as planName,
pc.plan_type as planType,
pc.plan_type as planType,
pc.owner_name as ownerName,
pc.owner_name as ownerName,
pc.begin_time as beginTime,
date_format(
pc.end_time as endTime,
pc.begin_time,
pc.check_time as checkTime,
'%Y-%m-%d %H:%i:%s'
) as beginTime,
date_format(
pc.end_time,
'%Y-%m-%d %H:%i:%s'
) as endTime,
date_format(
pc.check_time,
'%Y-%m-%d %H:%i:%s'
) as checkTime,
pc.risk_and_manage as riskAndManage,
pc.risk_and_manage as riskAndManage,
pc.remark
pc.remark
FROM p_check pc
FROM p_check pc
...
...
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