Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-evaluate
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
base_platform_enterprise
gic-evaluate
Commits
a39b4aa4
Commit
a39b4aa4
authored
Feb 06, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接受订单信息
parent
d68b80ae
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
8 deletions
+21
-8
OrderReplyEnum.java
...c/main/java/com/gic/evaluate/constant/OrderReplyEnum.java
+3
-1
EvaluateOutApiService.java
.../java/com/gic/evaluate/service/EvaluateOutApiService.java
+1
-1
EvaluateMsgLogApiServiceImpl.java
...uate/service/outer/impl/EvaluateMsgLogApiServiceImpl.java
+11
-5
EvaluateOutApiServiceImpl.java
...valuate/service/outer/impl/EvaluateOutApiServiceImpl.java
+5
-1
dubbo-gic-evaluate-service.xml
...service/src/main/resources/dubbo-gic-evaluate-service.xml
+1
-0
No files found.
gic-evaluate-api/src/main/java/com/gic/evaluate/constant/OrderReplyEnum.java
View file @
a39b4aa4
...
...
@@ -13,7 +13,7 @@ public enum OrderReplyEnum {
REPLIED
(
1
),
// 有新的追评
HAS_NEW
(
2
),
// 评价逾期
// 评价逾期
并且没评价过
EVALUATE_OVERDUE
(
3
),
// 不支持追评
REPLY_NOT_SUPPORT
(
4
),
...
...
@@ -21,6 +21,8 @@ public enum OrderReplyEnum {
REPLY_OVERDUE
(
5
),
// 追评超过最大数量
REPLY_OVER_MAX_TIMES
(
6
),
// 评价逾期 并且评价过
EVALUATE_HAS_OVERDUE
(
7
),
;
private
Integer
code
;
...
...
gic-evaluate-api/src/main/java/com/gic/evaluate/service/EvaluateOutApiService.java
View file @
a39b4aa4
...
...
@@ -72,7 +72,7 @@ public interface EvaluateOutApiService {
ServiceResponse
<
EvaluateDTO
>
listEvaluateByOrderId
(
EvaluateOutQO
evaluateOutQO
);
/**
* 查询订单号对应的回复状态 key是订单号, value是状态(-1:未评价 0管理员没有回复过 1管理员回复了 2有新的追评管理员没回复 3逾期
不可评价 4不支持追评 6超过最大追评次数
)
* 查询订单号对应的回复状态 key是订单号, value是状态(-1:未评价 0管理员没有回复过 1管理员回复了 2有新的追评管理员没回复 3逾期
并且没有评价过 4不支持追评 6超过最大追评次数 7逾期并且评价过
)
* @Title: queryRelayStatusByOrderId
* @Description:
* @author zhiwj
...
...
gic-evaluate-service/src/main/java/com/gic/evaluate/service/outer/impl/EvaluateMsgLogApiServiceImpl.java
View file @
a39b4aa4
...
...
@@ -5,7 +5,9 @@ import com.gic.api.base.commons.ServiceResponse;
import
com.gic.commons.util.DateUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.GICMQClientUtil
;
import
com.gic.enterprise.dto.EnterpriseDTO
;
import
com.gic.enterprise.response.EnterpriseServiceResponse
;
import
com.gic.enterprise.service.EnterpriseApiService
;
import
com.gic.evaluate.constant.Constants
;
import
com.gic.evaluate.dto.EvaluateMsgLogDTO
;
import
com.gic.evaluate.entity.TabEvaluateMsgLog
;
...
...
@@ -16,7 +18,6 @@ import com.gic.evaluate.service.EvaluateOrderConfigService;
import
com.gic.marketing.process.api.dto.notice.MQNoticeSendDTO
;
import
com.gic.marketing.process.api.service.notice.NoticeRouterApiService
;
import
com.gic.marketing.process.api.utils.NoticeConstant
;
import
com.gic.member.api.dto.McuBaseInfoDTO
;
import
com.gic.member.api.service.CuDetailService
;
import
com.gic.mq.sdk.GicMQClient
;
import
org.apache.logging.log4j.LogManager
;
...
...
@@ -25,6 +26,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
*
...
...
@@ -45,6 +47,8 @@ public class EvaluateMsgLogApiServiceImpl implements EvaluateMsgLogApiService {
private
CuDetailService
cuDetailService
;
@Autowired
private
NoticeRouterApiService
noticeRouterApiService
;
@Autowired
private
EnterpriseApiService
enterpriseApiService
;
@Override
public
ServiceResponse
<
Void
>
saveEvaluateMsgLog
(
EvaluateMsgLogDTO
evaluateMsgLogDTO
)
{
...
...
@@ -84,8 +88,10 @@ public class EvaluateMsgLogApiServiceImpl implements EvaluateMsgLogApiService {
@Override
public
ServiceResponse
<
Void
>
timerSendMemberMessage
()
{
// todo 查询到所有的企业id
List
<
Integer
>
enterpriseIds
=
Arrays
.
asList
(
1129
);
// 查询到所有的企业id
List
<
EnterpriseDTO
>
enterpriseList
=
enterpriseApiService
.
listEnterpriseByName
(
null
).
getResult
();
List
<
Integer
>
enterpriseIds
=
Optional
.
ofNullable
(
enterpriseList
).
orElse
(
Collections
.
emptyList
()).
stream
().
map
(
EnterpriseDTO:
:
getEnterpriseId
).
collect
(
Collectors
.
toList
());
// List<Integer> enterpriseIds = enterpriseList
for
(
Integer
enterpriseId
:
enterpriseIds
)
{
GicMQClient
client
=
GICMQClientUtil
.
getClientInstance
();
try
{
...
...
@@ -139,8 +145,8 @@ public class EvaluateMsgLogApiServiceImpl implements EvaluateMsgLogApiService {
notice
.
setNoticeCode
(
NoticeConstant
.
NOTICE_ORDER_EVALUATE
);
// 会员ecuId
McuBaseInfoDTO
mcuDTO
=
cuDetailService
.
getMcuPopoutInfo
(
log
.
getMcuId
(),
log
.
getEnterpriseId
()).
getResult
();
// notice.setEcuId(mcuDTO.get
);
Long
ecuId
=
cuDetailService
.
getEcuIdByMcuId
(
log
.
getMcuId
(),
log
.
getEnterpriseId
()).
getResult
();
notice
.
setEcuId
(
ecuId
);
Map
<
String
,
String
>
valueMap
=
new
HashMap
<>();
//订单编号
...
...
gic-evaluate-service/src/main/java/com/gic/evaluate/service/outer/impl/EvaluateOutApiServiceImpl.java
View file @
a39b4aa4
...
...
@@ -313,7 +313,11 @@ public class EvaluateOutApiServiceImpl implements EvaluateOutApiService {
// 判断是否超过评价时间
if
(
overLimitTime
(
evaluateOrderConfig
,
orderListDetailDTO
.
getOrderDTO
().
getReceiptsTime
()))
{
// 超过评价时间
resultMap
.
put
(
statusQO
.
getOrderId
(),
OrderReplyEnum
.
EVALUATE_OVERDUE
.
getCode
());
if
(
evaluate
==
null
)
{
resultMap
.
put
(
statusQO
.
getOrderId
(),
OrderReplyEnum
.
EVALUATE_OVERDUE
.
getCode
());
}
else
{
resultMap
.
put
(
statusQO
.
getOrderId
(),
OrderReplyEnum
.
EVALUATE_HAS_OVERDUE
.
getCode
());
}
}
else
{
// 没有超过评价时间
if
(
evaluate
!=
null
)
{
...
...
gic-evaluate-service/src/main/resources/dubbo-gic-evaluate-service.xml
View file @
a39b4aa4
...
...
@@ -25,6 +25,7 @@
<dubbo:reference
interface=
"com.gic.member.api.service.CuDetailService"
id=
"cuDetailService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.marketing.process.api.service.notice.NoticeRouterApiService"
id=
"noticeRouterApiService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.store.service.StoreApiService"
id=
"storeApiService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.enterprise.service.EnterpriseApiService"
id=
"enterpriseApiService"
timeout=
"6000"
/>
<!--<dubbo:reference interface="com.gic.enterprise.service.EnterpriseApiService" id="enterpriseApiService" timeout="6000" />-->
<dubbo:reference
interface=
"com.gic.order.api.service.OrderApiService"
id=
"orderApiService"
timeout=
"6000"
/>
...
...
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