Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
ef70f995
Commit
ef70f995
authored
Dec 17, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待办以及消息
parent
b63e78b6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
1 deletions
+35
-1
PendingTaskDetailDTO.java
...aoban/manage/api/dto/notify/dto/PendingTaskDetailDTO.java
+12
-0
PendingTaskApiServiceImpl.java
...service/service/notify/out/PendingTaskApiServiceImpl.java
+18
-0
NotifyController.java
...om/gic/haoban/manage/web/controller/NotifyController.java
+5
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/notify/dto/PendingTaskDetailDTO.java
View file @
ef70f995
...
...
@@ -67,12 +67,24 @@ public class PendingTaskDetailDTO implements Serializable {
* 创建时间
*/
private
Date
createTime
;
/**
* 月指标的时候传入
*/
private
String
extendContent
;
/**
*/
private
static
final
long
serialVersionUID
=
1L
;
public
String
getExtendContent
()
{
return
extendContent
;
}
public
void
setExtendContent
(
String
extendContent
)
{
this
.
extendContent
=
extendContent
;
}
public
Integer
getFinishFlag
()
{
return
finishFlag
;
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/notify/out/PendingTaskApiServiceImpl.java
View file @
ef70f995
...
...
@@ -20,6 +20,8 @@ import org.springframework.stereotype.Service;
import
java.util.Date
;
import
java.util.List
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
/**
* Created 2021/12/16.
...
...
@@ -52,7 +54,14 @@ public class PendingTaskApiServiceImpl implements PendingTaskApiService {
return
ServiceResponse
.
success
(
retPage
);
}
/**
* 组装
*
* @param list
*/
private
void
buildPending
(
List
<
PendingTaskDetailDTO
>
list
)
{
String
pattern
=
".*([0-1]{6}).*"
;
list
.
forEach
(
dto
->
{
String
title
=
dto
.
getTitle
();
PendingTaskTypeEnum
taskTypeEnum
=
PendingTaskTypeEnum
.
getByType
(
dto
.
getTaskType
());
...
...
@@ -62,6 +71,15 @@ public class PendingTaskApiServiceImpl implements PendingTaskApiService {
dto
.
setDescription
(
taskTypeEnum
.
getDescription
().
replace
(
"{}"
,
title
));
dto
.
setStatusFlag
(
dto
.
getOverdueFlag
()
==
1
?
PendingStatusFlagEnum
.
OVERDUE
.
getType
()
:
PendingStatusFlagEnum
.
NORMAL
.
getType
());
dto
.
setTitle
(
taskTypeEnum
.
getName
());
if
(
dto
.
getTaskType
()
==
PendingTaskTypeEnum
.
PERFORMANCE
.
getType
())
{
Pattern
r
=
Pattern
.
compile
(
pattern
);
Matcher
matcher
=
r
.
matcher
(
title
);
String
s
=
matcher
.
find
()
?
matcher
.
group
(
1
)
:
""
;
dto
.
setExtendContent
(
s
);
}
});
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/NotifyController.java
View file @
ef70f995
...
...
@@ -2,8 +2,10 @@ package com.gic.haoban.manage.web.controller;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.haoban.base.api.common.PageResult2
;
import
com.gic.haoban.common.utils.EntityUtil
;
import
com.gic.haoban.common.utils.HaobanResponse
;
import
com.gic.haoban.common.utils.PageUtil
;
import
com.gic.haoban.manage.api.dto.notify.dto.PendingTaskDetailDTO
;
import
com.gic.haoban.manage.api.dto.notify.qdto.PendingListQDTO
;
import
com.gic.haoban.manage.api.enums.PendingTaskTypeEnum
;
...
...
@@ -48,7 +50,9 @@ public class NotifyController extends WebBaseController {
pendingListQDTO
.
setOverdueFlag
(
1
);
}
ServiceResponse
<
Page
<
PendingTaskDetailDTO
>>
retPage
=
pendingTaskApiService
.
pagePendingTask
(
pendingListQDTO
,
qo
.
getBasePageInfo
());
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
retPage
.
getResult
());
PageResult2
pageInfo
=
PageUtil
.
getPageInfo
(
retPage
.
getResult
());
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
pageInfo
);
}
/**
...
...
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