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
7508ef58
Commit
7508ef58
authored
Aug 11, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/订单储值' into 'master'
刷新好友 See merge request
!1388
parents
9839b21c
ea7cfc40
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
PreDealService.java
...com/gic/haoban/manage/service/service/PreDealService.java
+2
-0
PreDealServiceImpl.java
...aoban/manage/service/service/impl/PreDealServiceImpl.java
+13
-0
DealSyncOperationApiServiceImpl.java
...ice/service/out/impl/DealSyncOperationApiServiceImpl.java
+8
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/PreDealService.java
View file @
7508ef58
...
...
@@ -92,6 +92,8 @@ public interface PreDealService {
*/
public
int
countByTaskId
(
String
taskId
,
int
dataType
,
int
status
);
public
int
countByTaskId
(
String
taskId
);
/**
* 获取任务数量
*
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/PreDealServiceImpl.java
View file @
7508ef58
...
...
@@ -116,6 +116,19 @@ public class PreDealServiceImpl implements PreDealService {
}
@Override
public
int
countByTaskId
(
String
taskId
)
{
String
key
=
taskId
+
"countByTaskId"
;
Object
o
=
RedisUtil
.
getCache
(
key
)
;
if
(
null
==
o
)
{
int
count
=
this
.
preDealLogMapper
.
countByTaskId
(
taskId
,-
1
,
0
)
;
RedisUtil
.
setCache
(
key
,
count
,
60
*
3
l
);
return
count
;
}
else
{
return
(
int
)
o
;
}
}
@Override
public
int
countExcepAndPreByTaskId
(
String
taskId
,
int
dataType
)
{
return
preDealLogMapper
.
countExcepAndPreByTaskId
(
taskId
,
dataType
);
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DealSyncOperationApiServiceImpl.java
View file @
7508ef58
...
...
@@ -459,6 +459,14 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
return
syncCheckDTO
;
}
TabHaobanSyncTask
syncTask
=
syncTaskService
.
getSyncTask
(
taskId
);
int
status
=
syncTask
.
getStatusFlag
()
;
if
(
status
!=
4
)
{
int
count
=
this
.
preDealService
.
countByTaskId
(
taskId
)
;
if
(
count
<=
0
)
{
this
.
syncTaskService
.
updateTaskStatus
(
taskId
,
4
)
;
}
}
syncCheckDTO
.
setSyncStatus
(
syncTask
.
getStatusFlag
());
PreDealLogInfoDTO
dealLogInfoDTO
=
preDealService
.
getLastPreDataByTaskId
(
taskId
);
...
...
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