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
4694e47c
Commit
4694e47c
authored
Jun 03, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-recommend3' into developer
parents
7082562c
5c1ca007
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
162 additions
and
4 deletions
+162
-4
ContactLogCheckQDTO.java
...c/haoban/manage/api/qdto/contact/ContactLogCheckQDTO.java
+44
-0
ContactLogApiService.java
...oban/manage/api/service/contact/ContactLogApiService.java
+9
-0
ContactLogService.java
...ban/manage/service/service/contact/ContactLogService.java
+9
-0
ContactLogServiceImpl.java
...e/service/service/contact/impl/ContactLogServiceImpl.java
+1
-0
ContactLogApiServiceImpl.java
...ce/service/out/impl/contact/ContactLogApiServiceImpl.java
+15
-0
ContactController.java
...an/manage/web/controller/potential/ContactController.java
+18
-4
ContactLogCheckQO.java
...m/gic/haoban/manage/web/qo/contact/ContactLogCheckQO.java
+44
-0
ContactLogCheckVO.java
...m/gic/haoban/manage/web/vo/contact/ContactLogCheckVO.java
+22
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/qdto/contact/ContactLogCheckQDTO.java
0 → 100644
View file @
4694e47c
package
com
.
gic
.
haoban
.
manage
.
api
.
qdto
.
contact
;
import
java.io.Serializable
;
public
class
ContactLogCheckQDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
973688857967269973L
;
/**
* 会员id
*/
private
String
memberId
;
/**
* 导购id
*/
private
String
clerkId
;
/**
* 企业id
*/
private
String
enterpriseId
;
public
String
getMemberId
()
{
return
memberId
;
}
public
void
setMemberId
(
String
memberId
)
{
this
.
memberId
=
memberId
;
}
public
String
getClerkId
()
{
return
clerkId
;
}
public
void
setClerkId
(
String
clerkId
)
{
this
.
clerkId
=
clerkId
;
}
public
String
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
String
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
}
\ No newline at end of file
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/contact/ContactLogApiService.java
View file @
4694e47c
...
...
@@ -2,6 +2,7 @@ package com.gic.haoban.manage.api.service.contact;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.haoban.manage.api.dto.contact.ContactLogDTO
;
import
com.gic.haoban.manage.api.qdto.contact.ContactLogCheckQDTO
;
import
com.gic.haoban.manage.api.qdto.contact.ContactLogQDTO
;
public
interface
ContactLogApiService
{
...
...
@@ -27,5 +28,13 @@ public interface ContactLogApiService {
*/
ServiceResponse
<
Void
>
autoContactLogForMQ
(
String
message
);
/**
* 是否可以建联校验
* @param checkQDTO
* @return
*/
ServiceResponse
<
Boolean
>
contactCheck
(
ContactLogCheckQDTO
checkQDTO
)
;
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/contact/ContactLogService.java
View file @
4694e47c
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
contact
;
import
com.gic.api.base.commons.BusinessException
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.haoban.manage.api.qdto.contact.ContactLogQDTO
;
import
com.gic.haoban.manage.service.entity.contact.TabContactLog
;
...
...
@@ -8,6 +9,14 @@ import java.util.Date;
public
interface
ContactLogService
{
/**
* 是否可以建联判断
* @param enterpriseId
* @param memberId
* @param clerkDTO
* @return
*/
boolean
contactCheck
(
String
enterpriseId
,
String
memberId
,
ClerkDTO
clerkDTO
)
;
/**
* 保存建联记录
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/contact/impl/ContactLogServiceImpl.java
View file @
4694e47c
...
...
@@ -74,6 +74,7 @@ public class ContactLogServiceImpl implements ContactLogService {
@Autowired
private
EnterpriseAdaptor
enterpriseAdaptor
;
@Override
public
boolean
contactCheck
(
String
enterpriseId
,
String
memberId
,
ClerkDTO
clerkDTO
)
{
if
(
clerkDTO
==
null
)
{
return
false
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/contact/ContactLogApiServiceImpl.java
View file @
4694e47c
...
...
@@ -3,8 +3,11 @@ package com.gic.haoban.manage.service.service.out.impl.contact;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.BusinessException
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.haoban.manage.api.dto.contact.ContactLogDTO
;
import
com.gic.haoban.manage.api.qdto.contact.ContactLogCheckQDTO
;
import
com.gic.haoban.manage.api.qdto.contact.ContactLogQDTO
;
import
com.gic.haoban.manage.api.service.contact.ContactLogApiService
;
import
com.gic.haoban.manage.service.entity.contact.TabContactLog
;
...
...
@@ -21,6 +24,8 @@ public class ContactLogApiServiceImpl implements ContactLogApiService {
@Autowired
private
ContactLogService
contactLogService
;
@Autowired
private
ClerkService
clerkService
;
@Override
public
ServiceResponse
<
ContactLogDTO
>
getClerkContactTime
(
String
memberId
)
{
...
...
@@ -48,4 +53,14 @@ public class ContactLogApiServiceImpl implements ContactLogApiService {
contactLogService
.
autoContactLog
(
contactLogQDTO
);
return
ServiceResponse
.
success
();
}
@Override
public
ServiceResponse
<
Boolean
>
contactCheck
(
ContactLogCheckQDTO
checkQDTO
)
{
ClerkDTO
clerkDTO
=
clerkService
.
getclerkById
(
checkQDTO
.
getClerkId
());
if
(
clerkDTO
==
null
)
{
return
ServiceResponse
.
success
(
Boolean
.
FALSE
);
}
boolean
check
=
contactLogService
.
contactCheck
(
checkQDTO
.
getEnterpriseId
(),
checkQDTO
.
getMemberId
(),
clerkDTO
);
return
ServiceResponse
.
success
(
check
);
}
}
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/potential/ContactController.java
View file @
4694e47c
...
...
@@ -11,14 +11,13 @@ import com.gic.haoban.manage.api.dto.contact.ContactConfigDTO;
import
com.gic.haoban.manage.api.dto.contact.ContactFollowDTO
;
import
com.gic.haoban.manage.api.qdto.contact.ContactFollowQDTO
;
import
com.gic.haoban.manage.api.qdto.contact.ContactFollowSearchQDTO
;
import
com.gic.haoban.manage.api.qdto.contact.ContactLogCheckQDTO
;
import
com.gic.haoban.manage.api.qdto.contact.ContactLogQDTO
;
import
com.gic.haoban.manage.api.service.contact.ContactConfigApiService
;
import
com.gic.haoban.manage.api.service.contact.ContactFollowApiService
;
import
com.gic.haoban.manage.api.service.contact.ContactLogApiService
;
import
com.gic.haoban.manage.web.qo.contact.ContactFollowPageQO
;
import
com.gic.haoban.manage.web.qo.contact.ContactFollowQO
;
import
com.gic.haoban.manage.web.qo.contact.ContactLastFollowQO
;
import
com.gic.haoban.manage.web.qo.contact.ContactLogQO
;
import
com.gic.haoban.manage.web.qo.contact.*
;
import
com.gic.haoban.manage.web.vo.contact.ContactLogCheckVO
;
import
com.google.common.collect.Lists
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
...
@@ -129,6 +128,21 @@ public class ContactController {
}
/**
* 是否可以建联校验
* @param contactLogCheckQO
* @return
*/
@RequestMapping
(
path
=
"/check"
)
public
RestResponse
<
ContactLogCheckVO
>
check
(
@RequestBody
ContactLogCheckQO
contactLogCheckQO
)
{
ContactLogCheckQDTO
logCheckQDTO
=
EntityUtil
.
changeEntityNew
(
ContactLogCheckQDTO
.
class
,
contactLogCheckQO
);
ServiceResponse
<
Boolean
>
serviceResponse
=
contactLogApiService
.
contactCheck
(
logCheckQDTO
);
if
(!
serviceResponse
.
isSuccess
())
{
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
}
return
RestResponse
.
successResult
(
new
ContactLogCheckVO
(
serviceResponse
.
getResult
()));
}
/**
* 建联配置
* @param enterpriseId
* @return
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/qo/contact/ContactLogCheckQO.java
0 → 100644
View file @
4694e47c
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
contact
;
import
java.io.Serializable
;
public
class
ContactLogCheckQO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
973688857967269973L
;
/**
* 会员id
*/
private
String
memberId
;
/**
* 导购id
*/
private
String
clerkId
;
/**
* 企业id
*/
private
String
enterpriseId
;
public
String
getMemberId
()
{
return
memberId
;
}
public
void
setMemberId
(
String
memberId
)
{
this
.
memberId
=
memberId
;
}
public
String
getClerkId
()
{
return
clerkId
;
}
public
void
setClerkId
(
String
clerkId
)
{
this
.
clerkId
=
clerkId
;
}
public
String
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
String
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
}
\ No newline at end of file
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/vo/contact/ContactLogCheckVO.java
0 → 100644
View file @
4694e47c
package
com
.
gic
.
haoban
.
manage
.
web
.
vo
.
contact
;
import
lombok.Data
;
import
java.io.Serializable
;
@Data
public
class
ContactLogCheckVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
973688857967269973L
;
/**
* 是否可以建联
*/
private
Boolean
check
;
public
ContactLogCheckVO
()
{
}
public
ContactLogCheckVO
(
Boolean
check
)
{
this
.
check
=
check
;
}
}
\ No newline at end of file
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