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
1
Merge Requests
1
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
91b3f0fa
Commit
91b3f0fa
authored
Dec 16, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待办-今日待办
parent
96b5ee18
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
6 deletions
+17
-6
PendingTaskApiServiceImpl.java
...service/service/notify/out/PendingTaskApiServiceImpl.java
+9
-0
dubbo-haoban-manage-service.xml
...ervice/src/main/resources/dubbo-haoban-manage-service.xml
+1
-1
PendingTaskMapper.xml
...3-service/src/main/resources/mapper/PendingTaskMapper.xml
+5
-4
PendingListQO.java
...main/java/com/gic/haoban/manage/web/qo/PendingListQO.java
+2
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/notify/out/PendingTaskApiServiceImpl.java
View file @
91b3f0fa
...
...
@@ -64,6 +64,15 @@ public class PendingTaskApiServiceImpl implements PendingTaskApiService {
String
endDate
=
yyyyMMdd
+
" 23:59:59"
;
List
<
PendingTaskBO
>
todayPending
=
pendingTaskService
.
listPendingTaskByCreateTime
(
enterpriseId
,
storeId
,
clerkId
,
startDate
,
endDate
);
List
<
PendingTaskDetailDTO
>
retList
=
EntityUtil
.
changeEntityListByJSON
(
PendingTaskDetailDTO
.
class
,
todayPending
);
if
(
CollectionUtils
.
isEmpty
(
retList
))
{
return
ServiceResponse
.
success
(
retList
);
}
retList
.
forEach
(
dto
->
{
String
title
=
dto
.
getTitle
();
PendingTaskTypeEnum
taskTypeEnum
=
PendingTaskTypeEnum
.
getByType
(
dto
.
getTaskType
());
dto
.
setDescription
(
taskTypeEnum
.
getDescription
().
replace
(
"{}"
,
title
));
dto
.
setTitle
(
taskTypeEnum
.
getName
());
});
return
ServiceResponse
.
success
(
retList
);
}
}
haoban-manage3-service/src/main/resources/dubbo-haoban-manage-service.xml
View file @
91b3f0fa
...
...
@@ -60,7 +60,7 @@
timeout=
"10000"
/>
<dubbo:service
interface=
"com.gic.haoban.manage.api.service.notify.PendingTaskApiService"
ref=
"
P
endingTaskApiServiceImpl"
ref=
"
p
endingTaskApiServiceImpl"
timeout=
"10000"
/>
<dubbo:reference
interface=
"com.gic.enterprise.api.service.DepartmentService"
id=
"gicDepartmentService"
/>
...
...
haoban-manage3-service/src/main/resources/mapper/PendingTaskMapper.xml
View file @
91b3f0fa
...
...
@@ -261,15 +261,16 @@
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_pending_task
where enterprise_id = #{enterpriseId} and store_id =#{storeId}
<if
test=
"clerkId != -1"
>
where enterprise_id = #{enterpriseId}
and store_id =#{storeId}
<if
test=
"clerkId != null"
>
and clerk_id = #{clerkId}
</if>
<if
test=
"startDate != null"
>
and create_time
>=
#{startDate}
and create_time
<![CDATA[ >= ]]>
#{startDate}
</if>
<if
test=
"endDate != null"
>
and create_time
<
=
#{endDate}
and create_time
<![CDATA[ <= ]]>
#{endDate}
</if>
order by create_time desc limit 20
</select>
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/qo/PendingListQO.java
View file @
91b3f0fa
...
...
@@ -3,13 +3,14 @@ package com.gic.haoban.manage.web.qo;
import
com.gic.commons.web.qo.PageQo
;
import
javax.validation.constraints.NotNull
;
import
java.io.Serializable
;
/**
* Created 2021/12/16.
*
* @author hua
*/
public
class
PendingListQO
extends
PageQo
{
public
class
PendingListQO
extends
PageQo
implements
Serializable
{
/**
* 企业id
*/
...
...
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