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
29ffd98c
Commit
29ffd98c
authored
Dec 29, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
参数校验
parent
4daa16d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletions
+17
-1
GroupChatPlanOwnerLogServiceImpl.java
...e/service/chat/impl/GroupChatPlanOwnerLogServiceImpl.java
+5
-1
GroupChatPlanController.java
...manage/web/controller/haoban/GroupChatPlanController.java
+12
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatPlanOwnerLogServiceImpl.java
View file @
29ffd98c
...
@@ -176,9 +176,12 @@ public class GroupChatPlanOwnerLogServiceImpl implements GroupChatPlanOwnerLogSe
...
@@ -176,9 +176,12 @@ public class GroupChatPlanOwnerLogServiceImpl implements GroupChatPlanOwnerLogSe
@Override
@Override
public
Page
<
ChatOwnerTotalDTO
>
listOwnerLogPageForWxaTotal
(
GroupChatPlanSearchQDTO
qdto
,
public
Page
<
ChatOwnerTotalDTO
>
listOwnerLogPageForWxaTotal
(
GroupChatPlanSearchQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
BasePageInfo
basePageInfo
)
{
PageHelper
.
startPage
(
basePageInfo
);
String
clerkId
=
qdto
.
getClerkId
();
String
clerkId
=
qdto
.
getClerkId
();
ClerkDTO
clerk
=
this
.
clerkService
.
getclerkById
(
clerkId
);
ClerkDTO
clerk
=
this
.
clerkService
.
getclerkById
(
clerkId
);
if
(
null
==
clerk
)
{
logger
.
info
(
"导购不存在"
);
return
new
Page
<
ChatOwnerTotalDTO
>();
}
int
clerkType
=
clerk
.
getClerkType
();
int
clerkType
=
clerk
.
getClerkType
();
String
storeId
=
null
;
String
storeId
=
null
;
if
(
clerkType
==
1
)
{
if
(
clerkType
==
1
)
{
...
@@ -186,6 +189,7 @@ public class GroupChatPlanOwnerLogServiceImpl implements GroupChatPlanOwnerLogSe
...
@@ -186,6 +189,7 @@ public class GroupChatPlanOwnerLogServiceImpl implements GroupChatPlanOwnerLogSe
clerkId
=
null
;
clerkId
=
null
;
}
}
qdto
.
setStoreId
(
storeId
);
qdto
.
setStoreId
(
storeId
);
PageHelper
.
startPage
(
basePageInfo
);
List
<
ChatOwnerTotalDTO
>
list
=
this
.
groupChatPlanOwnerLogMapper
.
listOwnerLogPageForWxaTotal
(
qdto
);
List
<
ChatOwnerTotalDTO
>
list
=
this
.
groupChatPlanOwnerLogMapper
.
listOwnerLogPageForWxaTotal
(
qdto
);
Page
<
ChatOwnerTotalDTO
>
retPage
=
PageHelperUtils
.
changePageHelperToCurrentPage
(
list
,
ChatOwnerTotalDTO
.
class
);
Page
<
ChatOwnerTotalDTO
>
retPage
=
PageHelperUtils
.
changePageHelperToCurrentPage
(
list
,
ChatOwnerTotalDTO
.
class
);
return
retPage
;
return
retPage
;
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/haoban/GroupChatPlanController.java
View file @
29ffd98c
...
@@ -49,6 +49,9 @@ public class GroupChatPlanController {
...
@@ -49,6 +49,9 @@ public class GroupChatPlanController {
@RequestMapping
(
"total-list"
)
@RequestMapping
(
"total-list"
)
public
RestResponse
<
Object
>
totalList
(
String
clerkId
,
String
wxEnterpriseId
,
String
enterpriseId
,
public
RestResponse
<
Object
>
totalList
(
String
clerkId
,
String
wxEnterpriseId
,
String
enterpriseId
,
String
searchParams
,
BasePageInfo
basePageInfo
)
{
String
searchParams
,
BasePageInfo
basePageInfo
)
{
if
(
StringUtils
.
isEmpty
(
clerkId
))
{
return
RestResponse
.
failure
(
"1"
,
"clerkId为空"
);
}
GroupChatPlanSearchQDTO
qdto
=
new
GroupChatPlanSearchQDTO
();
GroupChatPlanSearchQDTO
qdto
=
new
GroupChatPlanSearchQDTO
();
qdto
.
setWxEnterpriseId
(
wxEnterpriseId
);
qdto
.
setWxEnterpriseId
(
wxEnterpriseId
);
qdto
.
setEnterpriseId
(
enterpriseId
);
qdto
.
setEnterpriseId
(
enterpriseId
);
...
@@ -73,6 +76,9 @@ public class GroupChatPlanController {
...
@@ -73,6 +76,9 @@ public class GroupChatPlanController {
@RequestMapping
(
"owner-list"
)
@RequestMapping
(
"owner-list"
)
public
RestResponse
<
Object
>
ownerList
(
GroupChatPlanSearchQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
public
RestResponse
<
Object
>
ownerList
(
GroupChatPlanSearchQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
if
(
null
==
qdto
.
getPlanId
())
{
return
RestResponse
.
failure
(
"1"
,
"planid为空"
);
}
ServiceResponse
<
Page
<
GroupChatPlanOwnerLogDTO
>>
page
=
this
.
groupChatPlanApiService
.
listOwnerLogPageForWxa
(
qdto
,
ServiceResponse
<
Page
<
GroupChatPlanOwnerLogDTO
>>
page
=
this
.
groupChatPlanApiService
.
listOwnerLogPageForWxa
(
qdto
,
basePageInfo
);
basePageInfo
);
return
RestResponse
.
successResult
(
page
.
getResult
());
return
RestResponse
.
successResult
(
page
.
getResult
());
...
@@ -86,6 +92,9 @@ public class GroupChatPlanController {
...
@@ -86,6 +92,9 @@ public class GroupChatPlanController {
@RequestMapping
(
"detail"
)
@RequestMapping
(
"detail"
)
public
RestResponse
<
Object
>
detail
(
Long
planId
)
{
public
RestResponse
<
Object
>
detail
(
Long
planId
)
{
if
(
null
==
planId
)
{
return
RestResponse
.
failure
(
"1"
,
"planid为空"
);
}
ServiceResponse
<
GroupChatPlanDTO
>
linkResp
=
this
.
groupChatPlanApiService
.
detail
(
planId
);
ServiceResponse
<
GroupChatPlanDTO
>
linkResp
=
this
.
groupChatPlanApiService
.
detail
(
planId
);
if
(!
linkResp
.
isSuccess
()
||
null
==
linkResp
.
getResult
())
{
if
(!
linkResp
.
isSuccess
()
||
null
==
linkResp
.
getResult
())
{
return
RestResponse
.
failure
(
"1"
,
"计划不存在"
);
return
RestResponse
.
failure
(
"1"
,
"计划不存在"
);
...
@@ -109,6 +118,9 @@ public class GroupChatPlanController {
...
@@ -109,6 +118,9 @@ public class GroupChatPlanController {
@RequestMapping
(
"owner-do-list"
)
@RequestMapping
(
"owner-do-list"
)
public
RestResponse
<
Object
>
ownerDoList
(
Long
planId
,
String
clerkId
,
String
wxEnterpriseId
,
String
enterpriseId
,
public
RestResponse
<
Object
>
ownerDoList
(
Long
planId
,
String
clerkId
,
String
wxEnterpriseId
,
String
enterpriseId
,
Long
ownLogId
,
BasePageInfo
basePageInfo
)
{
Long
ownLogId
,
BasePageInfo
basePageInfo
)
{
if
(
null
==
ownLogId
||
null
==
planId
||
StringUtils
.
isEmpty
(
clerkId
))
{
return
RestResponse
.
failure
(
"1"
,
"参数未传"
);
}
GroupChatPlanSearchQDTO
qdto
=
new
GroupChatPlanSearchQDTO
();
GroupChatPlanSearchQDTO
qdto
=
new
GroupChatPlanSearchQDTO
();
qdto
.
setWxEnterpriseId
(
wxEnterpriseId
);
qdto
.
setWxEnterpriseId
(
wxEnterpriseId
);
qdto
.
setEnterpriseId
(
enterpriseId
);
qdto
.
setEnterpriseId
(
enterpriseId
);
...
...
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