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
65628474
Commit
65628474
authored
Jan 03, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
刷新群发
parent
35ac6488
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
62 deletions
+31
-62
GroupChatPlanApiService.java
...oban/manage/api/service/chat/GroupChatPlanApiService.java
+2
-0
TabQywxErrorLogMapper.java
...oban/manage/service/dao/mapper/TabQywxErrorLogMapper.java
+0
-10
GroupChatPlanApiServiceImpl.java
...ce/service/out/impl/chat/GroupChatPlanApiServiceImpl.java
+14
-5
TabQywxErrorLogMapper.xml
...rvice/src/main/resources/mapper/TabQywxErrorLogMapper.xml
+0
-34
GroupChatPlanController.java
...manage/web/controller/haoban/GroupChatPlanController.java
+15
-13
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/chat/GroupChatPlanApiService.java
View file @
65628474
...
...
@@ -47,6 +47,8 @@ public interface GroupChatPlanApiService {
public
ServiceResponse
<
Void
>
doPlanSendInfoTimer
(
String
params
)
;
public
ServiceResponse
<
Void
>
reflushSendInfo
(
Long
ownerLogId
)
;
public
ServiceResponse
<
GroupChatPlanOwnerLogDTO
>
getOwnerSendInfo
(
Long
ownerLogId
)
;
public
ServiceResponse
<
Page
<
GroupChatPlanOwnerLogDTO
>>
listOwnerLogPage
(
Long
planId
,
GroupChatPlanSearchQDTO
qdto
,
BasePageInfo
basePageInfo
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabQywxErrorLogMapper.java
View file @
65628474
...
...
@@ -26,16 +26,6 @@ public interface TabQywxErrorLogMapper {
int
insert
(
TabQywxErrorLog
tabQywxErrorLog
);
/**
* 修改数据
*
* @param tabQywxErrorLog 选项卡qywx错误日志
* @return int
* @author mozhu
* @date 2022-04-18 16:18:28
*/
int
update
(
TabQywxErrorLog
tabQywxErrorLog
);
/**
* 通过主键删除数据
*
* @param id 主键
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/chat/GroupChatPlanApiServiceImpl.java
View file @
65628474
...
...
@@ -16,6 +16,7 @@ import com.gic.haoban.manage.api.dto.chat.GroupChatPlanLogDTO;
import
com.gic.haoban.manage.api.dto.chat.GroupChatPlanOwnerLogDTO
;
import
com.gic.haoban.manage.api.dto.qdto.chat.GroupChatPlanSearchQDTO
;
import
com.gic.haoban.manage.api.service.chat.GroupChatPlanApiService
;
import
com.gic.haoban.manage.service.entity.chat.TabGroupChatPlanOwnerLog
;
import
com.gic.haoban.manage.service.pojo.bo.chat.GroupChatPlanBO
;
import
com.gic.haoban.manage.service.service.chat.GroupChatPlanOwnerLogService
;
import
com.gic.haoban.manage.service.service.chat.GroupChatPlanService
;
...
...
@@ -56,14 +57,15 @@ public class GroupChatPlanApiServiceImpl implements GroupChatPlanApiService {
this
.
groupChatPlanService
.
updateRemark
(
dto
);
return
ServiceResponse
.
success
(
dto
);
}
@Override
public
ServiceResponse
<
GroupChatPlanOwnerLogDTO
>
getOwnerInfo
(
Long
planId
,
String
staffId
,
String
clerkId
,
String
wxEnterpriseId
)
{
GroupChatPlanOwnerLogDTO
dto
=
this
.
groupChatPlanOwnerLogService
.
getOwnerInfo
(
planId
,
staffId
,
clerkId
,
wxEnterpriseId
)
;
GroupChatPlanOwnerLogDTO
dto
=
this
.
groupChatPlanOwnerLogService
.
getOwnerInfo
(
planId
,
staffId
,
clerkId
,
wxEnterpriseId
);
return
ServiceResponse
.
success
(
dto
);
}
/**
*
* @Title: doPlan
...
...
@@ -93,6 +95,13 @@ public class GroupChatPlanApiServiceImpl implements GroupChatPlanApiService {
}
@Override
public
ServiceResponse
<
GroupChatPlanOwnerLogDTO
>
getOwnerSendInfo
(
Long
ownerLogId
)
{
TabGroupChatPlanOwnerLog
log
=
this
.
groupChatPlanOwnerLogService
.
getById
(
ownerLogId
);
GroupChatPlanOwnerLogDTO
dto
=
EntityUtil
.
changeEntityByJSON
(
GroupChatPlanOwnerLogDTO
.
class
,
log
);
return
ServiceResponse
.
success
(
dto
);
}
@Override
public
ServiceResponse
<
Page
<
GroupChatPlanLogDTO
>>
listLogPage
(
Long
planId
,
GroupChatPlanSearchQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
if
(
null
!=
qdto
.
getEndDate
())
{
...
...
@@ -108,8 +117,8 @@ public class GroupChatPlanApiServiceImpl implements GroupChatPlanApiService {
if
(
null
!=
qdto
.
getEndDate
())
{
qdto
.
setEndDate
(
DateUtil
.
getEndTimeOfDay
(
qdto
.
getEndDate
()));
}
if
(
StringUtils
.
isNotBlank
(
qdto
.
getSearchParams
()))
{
qdto
.
setSearchParams
(
"%"
+
qdto
.
getSearchParams
()+
"%"
);
if
(
StringUtils
.
isNotBlank
(
qdto
.
getSearchParams
()))
{
qdto
.
setSearchParams
(
"%"
+
qdto
.
getSearchParams
()
+
"%"
);
}
Page
<
GroupChatPlanOwnerLogDTO
>
page
=
this
.
groupChatPlanOwnerLogService
.
listPage
(
planId
,
qdto
,
basePageInfo
);
return
ServiceResponse
.
success
(
page
);
...
...
haoban-manage3-service/src/main/resources/mapper/TabQywxErrorLogMapper.xml
View file @
65628474
...
...
@@ -87,40 +87,6 @@
</trim>
</insert>
<!--通过主键修改数据-->
<update
id=
"update"
parameterType=
"com.gic.haoban.manage.service.entity.TabQywxErrorLog"
>
update tab_qywx_error_log
<set>
<if
test=
"wxEnterpriseId != null and wxEnterpriseId != ''"
>
wx_enterprise_id = #{wxEnterpriseId},
</if>
<if
test=
"corpid != null and corpid != ''"
>
corpid = #{corpid},
</if>
<if
test=
"qywxInterface != null and qywxInterface != ''"
>
qywx_interface = #{qywxInterface},
</if>
<if
test=
"scenario != null and scenario != ''"
>
scenario = #{scenario},
</if>
<if
test=
"errorContent != null and errorContent != ''"
>
error_content = #{errorContent},
</if>
<if
test=
"weworkErrorUrl != null and weworkErrorUrl != ''"
>
wework_error_url = #{weworkErrorUrl},
</if>
<if
test=
"traceId != null and traceId != ''"
>
trace_id = #{traceId},
</if>
<if
test=
"qywxErrorType != null"
>
qywx_error_type = #{qywxErrorType},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
</set>
where id = #{id}
</update>
<!--通过主键删除-->
<delete
id=
"deleteById"
>
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/haoban/GroupChatPlanController.java
View file @
65628474
...
...
@@ -87,11 +87,12 @@ public class GroupChatPlanController {
@RequestMapping
(
"reflush-send-msg"
)
public
RestResponse
<
Object
>
reflush
(
String
wxEnterpriseId
,
String
enterpriseId
,
Long
ownerLogId
)
{
this
.
groupChatPlanApiService
.
reflushSendInfo
(
ownerLogId
);
return
RestResponse
.
successResult
();
ServiceResponse
<
GroupChatPlanOwnerLogDTO
>
resp
=
this
.
groupChatPlanApiService
.
getOwnerSendInfo
(
ownerLogId
);
return
RestResponse
.
successResult
(
resp
.
getResult
());
}
@RequestMapping
(
"detail"
)
public
RestResponse
<
Object
>
detail
(
Long
planId
,
String
clerkId
,
String
staffId
,
String
wxEnterpriseId
)
{
public
RestResponse
<
Object
>
detail
(
Long
planId
,
String
clerkId
,
String
staffId
,
String
wxEnterpriseId
)
{
if
(
null
==
planId
)
{
return
RestResponse
.
failure
(
"1"
,
"planid为空"
);
}
...
...
@@ -112,24 +113,25 @@ public class GroupChatPlanController {
Map
<
String
,
Object
>
retMap
=
new
HashMap
<>();
retMap
.
put
(
"plan"
,
plan
);
retMap
.
put
(
"materialList"
,
materials
);
if
(
StringUtils
.
isNotEmpty
(
clerkId
))
{
ServiceResponse
<
GroupChatPlanOwnerLogDTO
>
resp
=
this
.
groupChatPlanApiService
.
getOwnerInfo
(
planId
,
staffId
,
clerkId
,
wxEnterpriseId
)
;
GroupChatPlanOwnerLogDTO
owner
=
resp
.
getResult
()
;
if
(!
resp
.
isSuccess
()||
null
==
owner
)
{
if
(
StringUtils
.
isNotEmpty
(
clerkId
))
{
ServiceResponse
<
GroupChatPlanOwnerLogDTO
>
resp
=
this
.
groupChatPlanApiService
.
getOwnerInfo
(
planId
,
staffId
,
clerkId
,
wxEnterpriseId
);
GroupChatPlanOwnerLogDTO
owner
=
resp
.
getResult
();
if
(!
resp
.
isSuccess
()
||
null
==
owner
)
{
return
RestResponse
.
failure
(
"1"
,
"记录不存在"
);
}
Map
<
String
,
Object
>
ownerInfo
=
new
HashMap
<>()
;
ownerInfo
.
put
(
"clerkName"
,
owner
.
getClerkName
())
;
ownerInfo
.
put
(
"ownerLogId"
,
owner
.
getOwnerLogId
())
;
ownerInfo
.
put
(
"sendStatus"
,
owner
.
getSendStatus
())
;
retMap
.
put
(
"ownerInfo"
,
ownerInfo
)
;
Map
<
String
,
Object
>
ownerInfo
=
new
HashMap
<>()
;
ownerInfo
.
put
(
"clerkName"
,
owner
.
getClerkName
());
ownerInfo
.
put
(
"ownerLogId"
,
owner
.
getOwnerLogId
());
ownerInfo
.
put
(
"sendStatus"
,
owner
.
getSendStatus
());
retMap
.
put
(
"ownerInfo"
,
ownerInfo
);
}
return
RestResponse
.
successResult
(
retMap
);
}
@RequestMapping
(
"owner-do-list"
)
public
RestResponse
<
Object
>
ownerDoList
(
Long
planId
,
String
clerkId
,
String
wxEnterpriseId
,
String
enterpriseId
,
String
staffId
,
Long
ownLogId
,
BasePageInfo
basePageInfo
)
{
public
RestResponse
<
Object
>
ownerDoList
(
Long
planId
,
String
clerkId
,
String
wxEnterpriseId
,
String
enterpriseId
,
String
staffId
,
Long
ownLogId
,
BasePageInfo
basePageInfo
)
{
if
(
null
==
planId
||
StringUtils
.
isEmpty
(
clerkId
))
{
return
RestResponse
.
failure
(
"1"
,
"参数未传"
);
}
...
...
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