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
357fa981
Commit
357fa981
authored
May 13, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-recommend2' into developer
parents
3d9ad68d
9681a4f3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
0 deletions
+55
-0
QwMomentPlanServiceImpl.java
.../service/service/moment/impl/QwMomentPlanServiceImpl.java
+4
-0
ServiceTest.java
haoban-manage3-service/src/test/java/ServiceTest.java
+0
-0
OfflinePreController.java
...n/manage/web/controller/offline/OfflinePreController.java
+3
-0
ContactController.java
...an/manage/web/controller/potential/ContactController.java
+27
-0
ContactLastFollowQO.java
...gic/haoban/manage/web/qo/contact/ContactLastFollowQO.java
+21
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/moment/impl/QwMomentPlanServiceImpl.java
View file @
357fa981
...
...
@@ -486,6 +486,10 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
@Override
public
void
getMomentId
(
Long
planId
)
{
TabQwMomentPlan
plan
=
this
.
qwMomentPlanMapper
.
getById
(
planId
)
;
if
(
null
==
plan
)
{
logger
.
info
(
"计划已删除"
);
return
;
}
String
wxEnterpriseId
=
plan
.
getWxEnterpriseId
()
;
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
);
ServiceResponse
<
Object
>
resp2
=
this
.
qywxExternalUserService
.
getMomentTaskResult
(
qwDTO
.
getThirdCorpid
(),
...
...
haoban-manage3-service/src/test/java/ServiceTest.java
View file @
357fa981
This diff is collapsed.
Click to expand it.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/offline/OfflinePreController.java
View file @
357fa981
...
...
@@ -139,6 +139,9 @@ public class OfflinePreController {
if
(
StringUtils
.
isBlank
(
offlinePreId
)
||
!
offlinePreId
.
trim
().
chars
().
allMatch
(
Character:
:
isDigit
))
{
return
RestResponse
.
failure
(
"9999"
,
"参数错误"
)
;
}
if
(
offlinePreId
.
length
()>
18
)
{
return
RestResponse
.
failure
(
"9999"
,
"参数错误"
)
;
}
ServiceResponse
<
Void
>
countOfflinePre
=
offlinePreApiService
.
checkOfflinePreWriteOff
(
Long
.
valueOf
(
offlinePreId
.
trim
()),
storeId
);
return
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
countOfflinePre
,
SerializerFeature
.
WriteMapNullValue
),
RestResponse
.
class
);
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/potential/ContactController.java
View file @
357fa981
...
...
@@ -15,14 +15,18 @@ 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.google.common.collect.Lists
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -63,6 +67,29 @@ public class ContactController {
}
/**
* 会员最后一次跟进记录
* @param contactLastFollowQO
* @return
*/
@RequestMapping
(
path
=
"/last-follow"
)
public
RestResponse
<
ContactFollowDTO
>
lastFollow
(
@RequestBody
ContactLastFollowQO
contactLastFollowQO
)
{
String
memberId
=
contactLastFollowQO
.
getMemberId
();
String
enterpriseId
=
contactLastFollowQO
.
getEnterpriseId
();
if
(
StringUtils
.
isAnyBlank
(
memberId
,
enterpriseId
))
{
return
RestResponse
.
successResult
();
}
ServiceResponse
<
Map
<
String
,
ContactFollowDTO
>>
serviceResponse
=
contactFollowApiService
.
mapMemberLastFollow
(
enterpriseId
,
null
,
Lists
.
newArrayList
(
memberId
));
if
(!
serviceResponse
.
isSuccess
())
{
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
}
if
(
serviceResponse
.
getResult
()
==
null
)
{
return
RestResponse
.
successResult
();
}
ContactFollowDTO
contactFollowDTO
=
serviceResponse
.
getResult
().
get
(
memberId
);
return
RestResponse
.
successResult
(
contactFollowDTO
);
}
/**
* 分页查询跟进记录
* @param contactFollowPageQO
* @return
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/qo/contact/ContactLastFollowQO.java
0 → 100644
View file @
357fa981
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
contact
;
import
lombok.Data
;
/**
* Created by wangzubo on 2025/3/15.
*/
@Data
public
class
ContactLastFollowQO
{
/**
* 会员id列表
*/
private
String
memberId
;
/**
* 企业id
*/
private
String
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