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
d9f411c0
Commit
d9f411c0
authored
Mar 26, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
朋友圈
parent
a3079dc9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
14 deletions
+34
-14
QwMomentPlanAttendMapper.java
...e/service/dao/mapper/moment/QwMomentPlanAttendMapper.java
+1
-1
QwMomentPlanServiceImpl.java
.../service/service/moment/impl/QwMomentPlanServiceImpl.java
+32
-12
qwMomentPlanAttendMapper.xml
...main/resources/mapper/moment/qwMomentPlanAttendMapper.xml
+1
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/moment/QwMomentPlanAttendMapper.java
View file @
d9f411c0
...
@@ -42,7 +42,7 @@ public interface QwMomentPlanAttendMapper {
...
@@ -42,7 +42,7 @@ public interface QwMomentPlanAttendMapper {
TaskDetailDTO
taskDetail
(
@Param
(
"planId"
)
Long
planId
,
@Param
(
"clerkId"
)
String
execClerkId
);
TaskDetailDTO
taskDetail
(
@Param
(
"planId"
)
Long
planId
,
@Param
(
"clerkId"
)
String
execClerkId
);
TabQwMomentPlanAttend
getByStaff
(
@Param
(
"planId"
)
Long
planId
,
@Param
(
"staffId"
)
String
staffId
);
List
<
TabQwMomentPlanAttend
>
getByStaff
(
@Param
(
"planId"
)
Long
planId
,
@Param
(
"staffId"
)
String
staffId
);
List
<
TaskListWxaDTO
>
taskListWxa
(
TaskListWxaQDTO
qdto
);
List
<
TaskListWxaDTO
>
taskListWxa
(
TaskListWxaQDTO
qdto
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/moment/impl/QwMomentPlanServiceImpl.java
View file @
d9f411c0
...
@@ -492,7 +492,11 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
...
@@ -492,7 +492,11 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
TabQwMomentPlan
plan
=
this
.
qwMomentPlanMapper
.
getById
(
planId
)
;
TabQwMomentPlan
plan
=
this
.
qwMomentPlanMapper
.
getById
(
planId
)
;
List
<
TabQwMomentPlanAttend
>
list
=
this
.
qwMomentPlanAttendMapper
.
listForData
(
planId
)
;
List
<
TabQwMomentPlanAttend
>
list
=
this
.
qwMomentPlanAttendMapper
.
listForData
(
planId
)
;
for
(
TabQwMomentPlanAttend
item
:
list
)
{
for
(
TabQwMomentPlanAttend
item
:
list
)
{
this
.
getQwData
(
item
,
0
,
plan
.
getMomentId
());
try
{
this
.
getQwData
(
item
,
0
,
plan
.
getMomentId
());
}
catch
(
Exception
e
)
{
logger
.
info
(
"异常"
,
e
);
}
}
}
CountBO
bo
=
this
.
qwMomentPlanAttendMapper
.
getQwCount
(
planId
)
;
CountBO
bo
=
this
.
qwMomentPlanAttendMapper
.
getQwCount
(
planId
)
;
if
(
null
!=
bo
&&
(
null
!=
bo
.
getLikeCount
()
||
null
!=
bo
.
getCommentCount
()))
{
if
(
null
!=
bo
&&
(
null
!=
bo
.
getLikeCount
()
||
null
!=
bo
.
getCommentCount
()))
{
...
@@ -589,17 +593,25 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
...
@@ -589,17 +593,25 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
cursor
=
dto
.
getNext_cursor
();
cursor
=
dto
.
getNext_cursor
();
List
<
MomentUserDTO
>
list
=
dto
.
getTask_list
()
;
List
<
MomentUserDTO
>
list
=
dto
.
getTask_list
()
;
for
(
MomentUserDTO
item
:
list
)
{
for
(
MomentUserDTO
item
:
list
)
{
String
userid
=
item
.
getUserid
()
;
try
{
int
chatStatus
=
item
.
getPublish_status
()
;
String
userid
=
item
.
getUserid
()
;
if
(
chatStatus
==
1
)
{
int
chatStatus
=
item
.
getPublish_status
()
;
TabHaobanStaff
staff
=
this
.
staffMapper
.
selectByUserIdAndEnterpriseId
(
userid
,
wxEnterpriseId
);
if
(
chatStatus
==
1
)
{
if
(
null
!=
staff
)
{
TabHaobanStaff
staff
=
this
.
staffMapper
.
selectByUserIdAndEnterpriseId
(
userid
,
wxEnterpriseId
);
String
staffId
=
staff
.
getStaffId
();
if
(
null
!=
staff
)
{
TabQwMomentPlanAttend
attend
=
this
.
qwMomentPlanAttendMapper
.
getByStaff
(
planId
,
staffId
);
String
staffId
=
staff
.
getStaffId
();
if
(
attend
.
getTaskStatus
()==
1
)
{
List
<
TabQwMomentPlanAttend
>
tabList
=
this
.
qwMomentPlanAttendMapper
.
getByStaff
(
planId
,
staffId
);
this
.
qwMomentPlanAttendService
.
finishTaskUpdateData
(
attend
.
getAttendId
(),
attend
.
getPlanId
(),
new
Date
(),
null
)
;
if
(
CollectionUtils
.
isNotEmpty
(
tabList
))
{
for
(
TabQwMomentPlanAttend
attend
:
tabList
)
{
if
(
attend
.
getTaskStatus
()==
1
)
{
this
.
qwMomentPlanAttendService
.
finishTaskUpdateData
(
attend
.
getAttendId
(),
attend
.
getPlanId
(),
new
Date
(),
null
)
;
}
}
}
}
}
}
}
}
catch
(
Exception
e
)
{
logger
.
info
(
"异常"
,
e
);
}
}
}
}
// 从企微拉取下一批数据
// 从企微拉取下一批数据
...
@@ -617,7 +629,11 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
...
@@ -617,7 +629,11 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
List
<
Long
>
planIdList
=
this
.
qwMomentPlanMapper
.
listForData
(
1
)
;
List
<
Long
>
planIdList
=
this
.
qwMomentPlanMapper
.
listForData
(
1
)
;
if
(
CollectionUtils
.
isNotEmpty
(
planIdList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
planIdList
))
{
for
(
Long
planId
:
planIdList
)
{
for
(
Long
planId
:
planIdList
)
{
this
.
getQwPublishData
(
planId
,
null
)
;
try
{
this
.
getQwPublishData
(
planId
,
null
)
;
}
catch
(
Exception
e
)
{
logger
.
info
(
"异常"
,
e
);
}
}
}
}
}
}
}
...
@@ -627,7 +643,11 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
...
@@ -627,7 +643,11 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
List
<
Long
>
planIdList
=
this
.
qwMomentPlanMapper
.
listForData
(
2
)
;
List
<
Long
>
planIdList
=
this
.
qwMomentPlanMapper
.
listForData
(
2
)
;
if
(
CollectionUtils
.
isNotEmpty
(
planIdList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
planIdList
))
{
for
(
Long
planId
:
planIdList
)
{
for
(
Long
planId
:
planIdList
)
{
this
.
getQwData
(
planId
);
try
{
this
.
getQwData
(
planId
);
}
catch
(
Exception
e
)
{
logger
.
info
(
"异常"
,
e
);
}
}
}
}
}
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/moment/qwMomentPlanAttendMapper.xml
View file @
d9f411c0
...
@@ -160,7 +160,7 @@
...
@@ -160,7 +160,7 @@
</if>
</if>
</select>
</select>
<select
id=
"listForData"
resultMap=
"result-map-tabHaobanQwMomentPlanAttend"
parameterType=
"java.lang.Long"
>
<select
id=
"listForData"
resultMap=
"result-map-tabHaobanQwMomentPlanAttend"
parameterType=
"java.lang.Long"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_qw_moment_plan_attend where plan_id =#{planId} and delete_flag = 0
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_qw_moment_plan_attend where plan_id =#{planId} and delete_flag = 0
and task_status = 2
</select>
</select>
<select
id=
"getQwCount"
resultType=
"com.gic.haoban.manage.service.pojo.bo.moment.CountBO"
>
<select
id=
"getQwCount"
resultType=
"com.gic.haoban.manage.service.pojo.bo.moment.CountBO"
>
...
...
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