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
20a191b2
Commit
20a191b2
authored
Dec 19, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
會員查詢
parent
b56dfe29
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletions
+27
-1
pom.xml
haoban-manage3-web/pom.xml
+5
-0
MemberController.java
...om/gic/haoban/manage/web/controller/MemberController.java
+12
-1
HmLinkChatVO.java
...in/java/com/gic/haoban/manage/web/vo/hm/HmLinkChatVO.java
+9
-0
dubbo-haoban-manage-web.xml
...3-web/src/main/webapp/WEB-INF/dubbo-haoban-manage-web.xml
+1
-0
No files found.
haoban-manage3-web/pom.xml
View file @
20a191b2
...
...
@@ -206,6 +206,11 @@
<artifactId>
gic-search-engine-api
</artifactId>
<version>
${gic-search-engine-api}
</version>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-marketing-api
</artifactId>
<version>
${gic-marketing-api}
</version>
</dependency>
</dependencies>
<build>
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/MemberController.java
View file @
20a191b2
...
...
@@ -5,6 +5,7 @@ import java.util.Date;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -15,6 +16,7 @@ import com.gic.enterprise.api.service.StoreService;
import
com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO
;
import
com.gic.haoban.common.utils.AuthWebRequestUtil
;
import
com.gic.haoban.manage.web.vo.MemberChatVO
;
import
com.gic.marketing.api.service.MemberTagMarketingApiService
;
import
com.gic.member.api.dto.MemberDTO
;
import
com.gic.member.api.service.MemberService
;
import
com.gic.search.engine.api.dto.ESResponseQueryCount
;
...
...
@@ -32,6 +34,8 @@ public class MemberController {
private
StoreService
storeService
;
@Autowired
private
ESDataDynamicOperationApiService
esApiService
;
@Autowired
private
MemberTagMarketingApiService
memberTagMarketingApiService
;
@RequestMapping
(
"member-info"
)
public
RestResponse
<
Object
>
memberInfo
(
String
memberId
)
{
...
...
@@ -50,12 +54,19 @@ public class MemberController {
*/
@RequestMapping
(
"member-count"
)
@ResponseBody
public
RestResponse
<
Object
>
getMemberCount
(
String
searchParams
)
{
public
RestResponse
<
Object
>
getMemberCount
(
String
searchParams
,
@RequestParam
(
defaultValue
=
"0"
)
int
memberType
)
{
if
(
StringUtils
.
isBlank
(
searchParams
))
{
return
RestResponse
.
successResult
(
0
);
}
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
String
enterpriseId
=
loginUser
.
getEnterpriseId
();
String
clerkId
=
loginUser
.
getClerkId
();
int
count
=
0
;
try
{
// 会员分组
if
(
memberType
==
1
)
{
searchParams
=
memberTagMarketingApiService
.
getMemberTagJson
(
enterpriseId
,
searchParams
,
clerkId
);
}
JSONObject
searchJson
=
new
JSONObject
();
if
(!
StringUtils
.
isBlank
(
searchParams
))
{
searchJson
=
JSON
.
parseObject
(
searchParams
);
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/vo/hm/HmLinkChatVO.java
View file @
20a191b2
...
...
@@ -22,6 +22,15 @@ public class HmLinkChatVO implements Serializable {
private
Long
chatHmId
;
/**会员类型(0:会员筛选,1:会员分组)*/
private
Integer
memberType
;
private
String
esId
;
public
String
getEsId
()
{
return
esId
;
}
public
void
setEsId
(
String
esId
)
{
this
.
esId
=
esId
;
}
public
void
setLinkChatId
(
Long
linkChatId
)
{
this
.
linkChatId
=
linkChatId
;
...
...
haoban-manage3-web/src/main/webapp/WEB-INF/dubbo-haoban-manage-web.xml
View file @
20a191b2
...
...
@@ -130,5 +130,6 @@
<dubbo:reference
interface=
"com.gic.haoban.manage.api.service.out.SecretSettingApiService"
id=
"secretSettingApiService"
/>
<dubbo:reference
interface=
"com.gic.member.api.service.MemberService"
id=
"memberService"
/>
<dubbo:reference
interface=
"com.gic.search.engine.api.service.dynamic.ESDataDynamicOperationApiService"
id=
"esApiService"
/>
<dubbo:reference
interface=
"com.gic.marketing.api.service.MemberTagMarketingApiService"
id=
"memberTagMarketingApiService"
/>
</beans>
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