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
f1d812ca
Commit
f1d812ca
authored
Feb 13, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-qdcms' into 'master'
Feature qdcms See merge request
!2466
parents
9b2042f2
28199c51
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
68 additions
and
8 deletions
+68
-8
MemberOrderBo.java
.../manage/service/pojo/bo/content/binlog/MemberOrderBo.java
+12
-0
InteractRecordApiServiceImpl.java
...ervice/out/impl/content/InteractRecordApiServiceImpl.java
+5
-2
MallOrderStatusChangeApiServiceImpl.java
...out/impl/content/MallOrderStatusChangeApiServiceImpl.java
+25
-6
OrderCheckUtil.java
...va/com/gic/haoban/manage/service/util/OrderCheckUtil.java
+25
-0
dubbo-haoban-manage-service.xml
...ervice/src/main/resources/dubbo-haoban-manage-service.xml
+1
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/pojo/bo/content/binlog/MemberOrderBo.java
View file @
f1d812ca
...
@@ -49,6 +49,10 @@ public class MemberOrderBo implements Serializable {
...
@@ -49,6 +49,10 @@ public class MemberOrderBo implements Serializable {
*/
*/
private
Integer
times
;
private
Integer
times
;
/**
* 订单类型
*/
private
Integer
orderType
;
public
Integer
getOrderStatus
()
{
public
Integer
getOrderStatus
()
{
return
orderStatus
;
return
orderStatus
;
...
@@ -121,4 +125,12 @@ public class MemberOrderBo implements Serializable {
...
@@ -121,4 +125,12 @@ public class MemberOrderBo implements Serializable {
public
void
setTimes
(
Integer
times
)
{
public
void
setTimes
(
Integer
times
)
{
this
.
times
=
times
;
this
.
times
=
times
;
}
}
public
Integer
getOrderType
()
{
return
orderType
;
}
public
void
setOrderType
(
Integer
orderType
)
{
this
.
orderType
=
orderType
;
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/content/InteractRecordApiServiceImpl.java
View file @
f1d812ca
...
@@ -17,6 +17,7 @@ import com.gic.haoban.manage.service.service.content.InteractRecordService;
...
@@ -17,6 +17,7 @@ import com.gic.haoban.manage.service.service.content.InteractRecordService;
import
com.gic.haoban.manage.service.service.content.PotentialCustomerService
;
import
com.gic.haoban.manage.service.service.content.PotentialCustomerService
;
import
com.gic.haoban.manage.service.service.content.adaptor.MaterialEnterpriseAdaptor
;
import
com.gic.haoban.manage.service.service.content.adaptor.MaterialEnterpriseAdaptor
;
import
com.gic.haoban.manage.service.task.KafkaMessageServiceImpl
;
import
com.gic.haoban.manage.service.task.KafkaMessageServiceImpl
;
import
com.gic.haoban.manage.service.util.OrderCheckUtil
;
import
com.gic.member.api.dto.event.lifecycle.CreateMemberEventParam
;
import
com.gic.member.api.dto.event.lifecycle.CreateMemberEventParam
;
import
com.gic.member.api.dto.info.MemberSummaryInfoDTO
;
import
com.gic.member.api.dto.info.MemberSummaryInfoDTO
;
import
com.gic.member.api.dto.info.qo.QueryMemberInfoDTO
;
import
com.gic.member.api.dto.info.qo.QueryMemberInfoDTO
;
...
@@ -184,8 +185,9 @@ public class InteractRecordApiServiceImpl implements InteractRecordApiService {
...
@@ -184,8 +185,9 @@ public class InteractRecordApiServiceImpl implements InteractRecordApiService {
return
ServiceResponse
.
success
();
return
ServiceResponse
.
success
();
}
}
OrderInfoResp
orderInfoResp
=
serviceResponse
.
getResult
();
OrderInfoResp
orderInfoResp
=
serviceResponse
.
getResult
();
if
(
orderInfoResp
.
getOrderType
()
==
null
||
OrderChannelEnum
.
WEIMOB
.
getSort
()
!=
orderInfoResp
.
getOrderType
())
{
if
(
orderInfoResp
.
getOrderType
()
==
null
||
log
.
info
(
"订单 {} 非微盟渠道"
,
orderId
);
!
OrderCheckUtil
.
checkOrderType
(
orderInfoResp
.
getOrderType
()))
{
log
.
info
(
"订单 {} 非微盟/自研渠道"
,
orderId
);
return
ServiceResponse
.
success
();
return
ServiceResponse
.
success
();
}
}
...
@@ -195,6 +197,7 @@ public class InteractRecordApiServiceImpl implements InteractRecordApiService {
...
@@ -195,6 +197,7 @@ public class InteractRecordApiServiceImpl implements InteractRecordApiService {
memberOrderBo
.
setOrderId
(
orderSaveNotifyDTO
.
getOrderId
());
memberOrderBo
.
setOrderId
(
orderSaveNotifyDTO
.
getOrderId
());
memberOrderBo
.
setOrderNumber
(
orderInfoResp
.
getRorderNumber
());
memberOrderBo
.
setOrderNumber
(
orderInfoResp
.
getRorderNumber
());
memberOrderBo
.
setOrderTime
(
orderInfoResp
.
getOrderTime
());
memberOrderBo
.
setOrderTime
(
orderInfoResp
.
getOrderTime
());
memberOrderBo
.
setOrderType
(
orderInfoResp
.
getOrderType
());
if
(
isOnlineOrder
)
{
if
(
isOnlineOrder
)
{
memberOrderBo
.
setTableName
(
KafkaMessageServiceImpl
.
tab_gic_eorder
);
memberOrderBo
.
setTableName
(
KafkaMessageServiceImpl
.
tab_gic_eorder
);
}
else
{
}
else
{
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/content/MallOrderStatusChangeApiServiceImpl.java
View file @
f1d812ca
...
@@ -9,8 +9,11 @@ import com.gic.business.order.enums.OrderEnum;
...
@@ -9,8 +9,11 @@ import com.gic.business.order.enums.OrderEnum;
import
com.gic.business.order.qdto.ordermanage.OrderInfoQDTO
;
import
com.gic.business.order.qdto.ordermanage.OrderInfoQDTO
;
import
com.gic.business.order.service.ordermanage.OrderInfoOutApiService
;
import
com.gic.business.order.service.ordermanage.OrderInfoOutApiService
;
import
com.gic.commons.util.GICMQClientUtil
;
import
com.gic.commons.util.GICMQClientUtil
;
import
com.gic.content.api.dto.burypoint.ContentMemberBuryPointDTO
;
import
com.gic.content.api.dto.setting.ContentSettingDTO
;
import
com.gic.content.api.dto.setting.ContentSettingDTO
;
import
com.gic.content.api.enums.ContentMallShopType
;
import
com.gic.content.api.enums.ContentMallShopType
;
import
com.gic.content.api.qdto.burypoint.MemberBuryPointOrderQDTO
;
import
com.gic.content.api.service.ContentMemberBuryPointApiService
;
import
com.gic.content.api.service.ContentSettingApiService
;
import
com.gic.content.api.service.ContentSettingApiService
;
import
com.gic.enterprise.api.constant.EnterpriseServiceEnum
;
import
com.gic.enterprise.api.constant.EnterpriseServiceEnum
;
import
com.gic.enterprise.api.dto.enterprise.EnterpriseUsingStatusDTO
;
import
com.gic.enterprise.api.dto.enterprise.EnterpriseUsingStatusDTO
;
...
@@ -61,6 +64,8 @@ public class MallOrderStatusChangeApiServiceImpl implements MallOrderStatusChang
...
@@ -61,6 +64,8 @@ public class MallOrderStatusChangeApiServiceImpl implements MallOrderStatusChang
private
EnterpriseUseForbidService
enterpriseUseForbidService
;
private
EnterpriseUseForbidService
enterpriseUseForbidService
;
@Autowired
@Autowired
private
ContentSettingApiService
contentSettingApiService
;
private
ContentSettingApiService
contentSettingApiService
;
@Autowired
private
ContentMemberBuryPointApiService
contentMemberBuryPointApiService
;
private
static
final
String
ORDER_EVENT_RETRY
=
"orderEventRetryMQ"
;
private
static
final
String
ORDER_EVENT_RETRY
=
"orderEventRetryMQ"
;
...
@@ -184,7 +189,7 @@ public class MallOrderStatusChangeApiServiceImpl implements MallOrderStatusChang
...
@@ -184,7 +189,7 @@ public class MallOrderStatusChangeApiServiceImpl implements MallOrderStatusChang
}
}
/**
/**
* 处理微盟订单
* 处理微盟
/自研
订单
* MQ: dealWeimoOrder
* MQ: dealWeimoOrder
* @param params
* @param params
* @return
* @return
...
@@ -192,7 +197,7 @@ public class MallOrderStatusChangeApiServiceImpl implements MallOrderStatusChang
...
@@ -192,7 +197,7 @@ public class MallOrderStatusChangeApiServiceImpl implements MallOrderStatusChang
@Override
@Override
public
ServiceResponse
<
Void
>
dealWeimoOrder
(
String
params
)
{
public
ServiceResponse
<
Void
>
dealWeimoOrder
(
String
params
)
{
log
.
info
(
"处理微盟订单 {}"
,
params
);
log
.
info
(
"处理微盟
/自研
订单 {}"
,
params
);
//订单分为tab_gic_eorder 和 tab_gic_ordeer
//订单分为tab_gic_eorder 和 tab_gic_ordeer
MemberOrderBo
memberOrderBo
=
JSON
.
parseObject
(
params
,
MemberOrderBo
.
class
);
MemberOrderBo
memberOrderBo
=
JSON
.
parseObject
(
params
,
MemberOrderBo
.
class
);
...
@@ -232,8 +237,9 @@ public class MallOrderStatusChangeApiServiceImpl implements MallOrderStatusChang
...
@@ -232,8 +237,9 @@ public class MallOrderStatusChangeApiServiceImpl implements MallOrderStatusChang
return
ServiceResponse
.
success
();
return
ServiceResponse
.
success
();
}
}
if
(!
ContentMallShopType
.
WEIMO_MALL
.
getCode
().
equals
(
response
.
getResult
().
getMallShopType
()))
{
if
(!
ContentMallShopType
.
WEIMO_MALL
.
getCode
().
equals
(
response
.
getResult
().
getMallShopType
())
log
.
info
(
"当前企业内容配置非微盟商城 {}"
,
JSON
.
toJSONString
(
response
));
&&
!
ContentMallShopType
.
THIRD_MALL
.
getCode
().
equals
(
response
.
getResult
().
getMallShopType
()))
{
log
.
info
(
"当前企业内容配置非微盟/自研商城 {}"
,
JSON
.
toJSONString
(
response
));
return
ServiceResponse
.
success
();
return
ServiceResponse
.
success
();
}
}
...
@@ -241,11 +247,24 @@ public class MallOrderStatusChangeApiServiceImpl implements MallOrderStatusChang
...
@@ -241,11 +247,24 @@ public class MallOrderStatusChangeApiServiceImpl implements MallOrderStatusChang
String
orderId
=
memberOrderBo
.
getOrderId
();
String
orderId
=
memberOrderBo
.
getOrderId
();
String
orderNumber
=
memberOrderBo
.
getOrderNumber
();
String
orderNumber
=
memberOrderBo
.
getOrderNumber
();
Date
orderTime
=
memberOrderBo
.
getOrderTime
();
Date
orderTime
=
memberOrderBo
.
getOrderTime
();
Integer
orderType
=
memberOrderBo
.
getOrderType
();
InteractRecordMessageBO
interactRecordMessageBO
=
new
InteractRecordMessageBO
();
InteractRecordMessageBO
interactRecordMessageBO
=
new
InteractRecordMessageBO
();
interactRecordMessageBO
.
setEnterpriseId
(
enterpriseId
);
interactRecordMessageBO
.
setEnterpriseId
(
enterpriseId
);
interactRecordMessageBO
.
setMemberId
(
memberId
);
interactRecordMessageBO
.
setMemberId
(
memberId
);
MaterialDataAdaptor
.
MaterialBizInfo
materialBizInfo
=
materialDataAdaptor
.
queryMaterialBizInfo
(
enterpriseId
,
memberId
,
orderTime
,
null
);
MaterialDataAdaptor
.
MaterialBizInfo
materialBizInfo
=
null
;
MemberBuryPointOrderQDTO
memberBuryPointOrderQDTO
=
new
MemberBuryPointOrderQDTO
();
memberBuryPointOrderQDTO
.
setEnterpriseId
(
enterpriseId
);
memberBuryPointOrderQDTO
.
setOrderCreateTime
(
orderTime
);
memberBuryPointOrderQDTO
.
setMemberId
(
memberId
);
memberBuryPointOrderQDTO
.
setConvFlag
(
1
);
memberBuryPointOrderQDTO
.
setMallType
(
2
);
memberBuryPointOrderQDTO
.
setOrderType
(
orderType
);
ServiceResponse
<
ContentMemberBuryPointDTO
>
buryPointResponse
=
contentMemberBuryPointApiService
.
queryMemberBuryPoint
(
memberBuryPointOrderQDTO
);
if
(
buryPointResponse
.
isSuccess
()
&&
buryPointResponse
.
getResult
()
!=
null
)
{
ContentMemberBuryPointDTO
result
=
buryPointResponse
.
getResult
();
materialBizInfo
=
new
MaterialDataAdaptor
.
MaterialBizInfo
(
result
.
getClerkId
(),
String
.
valueOf
(
result
.
getContentMaterialId
()),
result
.
getStoreId
());
}
// MaterialDataAdaptor.MaterialBizInfo materialBizInfo = materialDataAdaptor.queryMaterialBizInfo(enterpriseId, memberId, orderTime, null);
if
(
materialBizInfo
==
null
)
{
if
(
materialBizInfo
==
null
)
{
if
(
memberOrderBo
.
getTimes
()
==
null
)
{
if
(
memberOrderBo
.
getTimes
()
==
null
)
{
memberOrderBo
.
setTimes
(
1
);
memberOrderBo
.
setTimes
(
1
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/util/OrderCheckUtil.java
0 → 100644
View file @
f1d812ca
package
com
.
gic
.
haoban
.
manage
.
service
.
util
;
import
com.gic.enterprise.api.enums.PlatformChannelEnum
;
import
com.gic.orderecommerce.api.constant.OrderChannelEnum
;
import
com.google.common.collect.Lists
;
import
java.util.List
;
public
class
OrderCheckUtil
{
private
static
final
List
<
Integer
>
DEAL_ORDER_TYPE_LIST
=
Lists
.
newArrayList
(
OrderChannelEnum
.
WEIMOB
.
getSort
(),
OrderChannelEnum
.
BRAND_MALL
.
getSort
());
/**
* 销售线索是否需要处理订单类型
* @param orderType
* @return
*/
public
static
boolean
checkOrderType
(
Integer
orderType
)
{
return
DEAL_ORDER_TYPE_LIST
.
contains
(
orderType
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/resources/dubbo-haoban-manage-service.xml
View file @
f1d812ca
...
@@ -244,6 +244,7 @@
...
@@ -244,6 +244,7 @@
<dubbo:reference
id=
"contentProducerApiService"
interface=
"com.gic.content.api.service.ContentProducerApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
id=
"contentProducerApiService"
interface=
"com.gic.content.api.service.ContentProducerApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
interface=
"com.gic.content.api.service.ContentMaterialApiService"
id=
"contentMaterialApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
interface=
"com.gic.content.api.service.ContentMaterialApiService"
id=
"contentMaterialApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
interface=
"com.gic.content.api.service.ContentSettingApiService"
id=
"contentSettingApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
interface=
"com.gic.content.api.service.ContentSettingApiService"
id=
"contentSettingApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
interface=
"com.gic.content.api.service.ContentMemberBuryPointApiService"
id=
"contentMemberBuryPointApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
interface=
"com.gic.clerk.api.service.MenuApiService"
id=
"menuApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
interface=
"com.gic.clerk.api.service.MenuApiService"
id=
"menuApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
interface=
"com.gic.member.ext.api.service.MemberGrowthWriteApiService"
id=
"memberGrowthWriteApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
interface=
"com.gic.member.ext.api.service.MemberGrowthWriteApiService"
id=
"memberGrowthWriteApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
interface=
"com.gic.member.api.service.integral.IntegralWriteApiService"
id=
"integralWriteApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
interface=
"com.gic.member.api.service.integral.IntegralWriteApiService"
id=
"integralWriteApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
...
...
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