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
9c7b4e9c
Commit
9c7b4e9c
authored
Jun 09, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
清除建联逻辑
parent
a105918f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
ContactOrderApiServiceImpl.java
.../service/out/impl/contact/ContactOrderApiServiceImpl.java
+10
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/contact/ContactOrderApiServiceImpl.java
View file @
9c7b4e9c
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
out
.
impl
.
contact
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.gic.api.base.commons.BasePageInfo
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
...
...
@@ -11,13 +13,17 @@ import com.gic.haoban.manage.service.service.contact.ContactLogService;
import
com.gic.haoban.manage.service.service.contact.ContactOrderService
;
import
com.gic.order.api.dto.resp.OrderInfoResp
;
import
com.gic.order.api.service.member.MemberOrderReadApiService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
/**
* Created by wangzubo on 2022/11/1.
*/
@Slf4j
@Service
(
"contactOrderApiService"
)
public
class
ContactOrderApiServiceImpl
implements
ContactOrderApiService
{
...
...
@@ -40,8 +46,11 @@ public class ContactOrderApiServiceImpl implements ContactOrderApiService {
return
ServiceResponse
.
success
();
}
OrderInfoResp
result
=
serviceResponse
.
getResult
();
boolean
clearFlag
=
CollectionUtils
.
isNotEmpty
(
result
.
getOrderItems
())
&&
result
.
getPaidAmount
()
>
0
;
boolean
clearFlag
=
CollectionUtils
.
isNotEmpty
(
result
.
getOrderItems
())
&&
result
.
getPaidAmount
()
>
0
&&
(
result
.
getReceiptsDate
()
!=
null
&&
DateUtil
.
compare
(
DateUtil
.
offsetDay
(
new
Date
(),
-
14
),
result
.
getReceiptsDate
())
<=
0
);
log
.
info
(
"获取订单时间,orderId:{},单据时间:{},应收:{}"
,
result
.
getOrderId
(),
result
.
getReceiptsDate
(),
result
.
getPaidAmount
());
boolean
contactOrder
=
contactOrderService
.
saveContactOrder
(
result
);
log
.
info
(
"clearFlag:{},contactOrder:{}"
,
clearFlag
,
contactOrder
);
if
(
clearFlag
||
contactOrder
)
{
contactLogService
.
clearContactLog
(
memberId
,
1
,
""
);
}
...
...
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