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
40c90cf1
Commit
40c90cf1
authored
Mar 12, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
朋友圈
parent
066bfdd5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
QwMomentPlanAttendServiceImpl.java
...ce/service/moment/impl/QwMomentPlanAttendServiceImpl.java
+13
-0
qwMomentPlanAttendMapper.xml
...main/resources/mapper/moment/qwMomentPlanAttendMapper.xml
+2
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/moment/impl/QwMomentPlanAttendServiceImpl.java
View file @
40c90cf1
...
...
@@ -64,6 +64,16 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService
@Override
public
ServiceResponse
<
Page
<
QwMomentPlanAttendDTO
>>
attendList
(
PlanClerkListQDTO
qdto
)
{
// 0已失效 1待完成 2已完成
int
sendStatus
=
qdto
.
getSendStatus
()
;
TabQwMomentPlan
plan
=
this
.
qwMomentPlanMapper
.
getById
(
qdto
.
getPlanId
())
;
boolean
isEnd
=
plan
.
getStatusFlag
()==
2
||
plan
.
getEndDate
().
getTime
()
<=
System
.
currentTimeMillis
()
;
if
(
isEnd
&&
sendStatus
==
1
)
{
return
ServiceResponse
.
success
(
new
Page
<>());
}
if
(!
isEnd
&&
sendStatus
==
0
)
{
return
ServiceResponse
.
success
(
new
Page
<>());
}
PageHelper
.
startPage
(
qdto
);
if
(
StringUtils
.
isNotEmpty
(
qdto
.
getClerkParams
()))
{
qdto
.
setClerkParamsLike
(
"%"
+
qdto
.
getClerkParams
()+
"%"
);
...
...
@@ -79,6 +89,9 @@ public class QwMomentPlanAttendServiceImpl implements QwMomentPlanAttendService
}
List
<
QwMomentPlanAttendDTO
>
list
=
this
.
qwMomentPlanAttendMapper
.
list
(
qdto
);
Page
<
QwMomentPlanAttendDTO
>
retPage
=
PageHelperUtils
.
changePageHelperToCurrentPage
(
list
,
QwMomentPlanAttendDTO
.
class
);
if
(
CollectionUtils
.
isNotEmpty
(
retPage
.
getResult
())
&&
sendStatus
==
0
)
{
retPage
.
getResult
().
forEach
(
o
->
o
.
setTaskStatus
(
0
));
}
return
ServiceResponse
.
success
(
retPage
);
}
...
...
haoban-manage3-service/src/main/resources/mapper/moment/qwMomentPlanAttendMapper.xml
View file @
40c90cf1
...
...
@@ -74,13 +74,13 @@
and ( a.create_time >= #{startTime} and a.create_time
<![CDATA[ <= ]]>
#{endTime} )
</if>
<if
test=
"sendStatus==0"
>
and a.task_status =
2 and b.end_time > now()
and a.task_status =
1
</if>
<if
test=
"sendStatus==1"
>
and a.task_status = 1
</if>
<if
test=
"sendStatus==2"
>
and a.task_status = 2
and b.end_time
<![CDATA[ <= ]]>
now()
and a.task_status = 2
</if>
and a.status_flag = #{statusFlag}
</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