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
4afd56e4
Commit
4afd56e4
authored
Aug 21, 2023
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 销售线索
parent
7f113eb4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
InteractRecordMessageServiceTest.java
...rvice/src/test/java/InteractRecordMessageServiceTest.java
+29
-0
PotentialCustomerController.java
...e/web/controller/content/PotentialCustomerController.java
+2
-0
No files found.
haoban-manage3-service/src/test/java/InteractRecordMessageServiceTest.java
View file @
4afd56e4
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.haoban.manage.api.dto.content.PotentialCustomerDTO
;
import
com.gic.haoban.manage.api.dto.qdto.content.PotentialCustomerQDTO
;
import
com.gic.haoban.manage.api.service.content.MallOrderStatusChangeApiService
;
import
com.gic.haoban.manage.api.service.content.PotentialCustomerApiService
;
import
com.gic.haoban.manage.service.pojo.bo.content.message.InteractRecordMessageBO
;
import
com.gic.haoban.manage.service.service.content.PotentialCustomerService
;
import
com.gic.haoban.manage.service.service.content.message.InteractRecordMessageService
;
import
com.sun.org.apache.bcel.internal.generic.DADD
;
import
org.junit.Test
;
...
...
@@ -26,6 +33,8 @@ public class InteractRecordMessageServiceTest {
InteractRecordMessageService
interactRecordMessageService
;
@Autowired
MallOrderStatusChangeApiService
mallOrderStatusChangeApiService
;
@Autowired
private
PotentialCustomerApiService
potentialCustomerApiService
;
String
eid
=
"ff8080815dacd3a2015dacd3ef5c0000"
;
String
wxEid
=
"ca66a01b79474c40b3e7c7f93daf1a3b"
;
...
...
@@ -60,4 +69,24 @@ public class InteractRecordMessageServiceTest {
String
params
=
"{\"orderNumber\":\"6230408781099580\",\"toStatus\":2,\"fromStatus\":1,\"orderId\":\"c08691af8297480db3d25ef5ef19e863\",\"enterpriseId\":\"ff8080815dacd3a2015dacd3ef5c0000\",\"mqTraceId\":\"244806167-1-1680932807.425-/gic-thirdparty/wxmall_payment_result_notice\",\"memberId\":\"ff8080818147efc8018148d1759903c8\"}"
;
mallOrderStatusChangeApiService
.
mallOrderStatusChange
(
params
);
}
@Test
public
void
dealGoodsRecord
(){
String
json
=
"{\"businessUUId\":\"IcB5ZMEvmzir1uvjgc6ohJFMmexraBak\",\"durationTime\":21990,\"enterpriseId\":\"ff8080815dacd3a2015dacd3ef5c0000\",\"eventType\":2,\"goodsId\":\"ff808081890a1b4201890a54b479001d\",\"lastAccessTime\":1692580759467,\"memberId\":\"ff80808189fd5ba6018a01ea3e070673\",\"refUrl\":\"pages/authorize/authorize\",\"unionId\":\"orXl9tyHOI4qP1QxwVcA7A3sB7zg\"}"
;
InteractRecordMessageBO
interactRecordMessageBO
=
JSONObject
.
parseObject
(
json
,
InteractRecordMessageBO
.
class
);
interactRecordMessageBO
.
setChannelSource
(
3
);
interactRecordMessageBO
.
setClerkId
(
"415b123576674913b365005b81037551"
);
interactRecordMessageService
.
dealRecord
(
interactRecordMessageBO
);
}
@Test
public
void
queryPotentialCustomer
()
{
PotentialCustomerQDTO
potentialCustomerQDTO
=
new
PotentialCustomerQDTO
();
potentialCustomerQDTO
.
setEnterpriseId
(
"ff8080815dacd3a2015dacd3ef5c0000"
);
potentialCustomerQDTO
.
setClerkId
(
"415b123576674913b365005b81037551"
);
potentialCustomerQDTO
.
setWxEnterpriseId
(
"ca66a01b79474c40b3e7c7f93daf1a3b"
);
ServiceResponse
<
Page
<
PotentialCustomerDTO
>>
pageServiceResponse
=
potentialCustomerApiService
.
queryPotentialCustomer
(
potentialCustomerQDTO
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
pageServiceResponse
));
}
}
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/content/PotentialCustomerController.java
View file @
4afd56e4
...
...
@@ -108,6 +108,7 @@ public class PotentialCustomerController {
PotentialCustomerVO
temp
=
new
PotentialCustomerVO
();
BeanUtils
.
copyProperties
(
item
,
temp
);
temp
.
setPotentialCustomerId
(
item
.
getPotentialCustomerId
());
if
(
ShareBizType
.
MATERIAL
.
getCode
().
equals
(
item
.
getBizType
()))
{
ContentMaterialBaseDTO
contentMaterialBaseDTO
=
materialInfoMap
.
get
(
Long
.
parseLong
(
item
.
getBizId
()));
if
(
contentMaterialBaseDTO
!=
null
)
{
ContentMaterialInfoVO
contentMaterialInfoVO
=
new
ContentMaterialInfoVO
();
...
...
@@ -126,6 +127,7 @@ public class PotentialCustomerController {
}
Integer
visitNum
=
memberVisitMap
.
get
(
item
.
getMemberId
());
temp
.
setVisitNum
(
Optional
.
ofNullable
(
visitNum
).
orElse
(
0
));
}
return
temp
;
})
.
collect
(
Collectors
.
toList
());
...
...
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