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
21639892
Commit
21639892
authored
Aug 11, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/订单储值' into 'master'
刷新好友-代码回退 See merge request
!1389
parents
7508ef58
286a254a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
PreDealServiceImpl.java
...aoban/manage/service/service/impl/PreDealServiceImpl.java
+4
-4
DealSyncOperationApiServiceImpl.java
...ice/service/out/impl/DealSyncOperationApiServiceImpl.java
+2
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/PreDealServiceImpl.java
View file @
21639892
...
@@ -94,7 +94,7 @@ public class PreDealServiceImpl implements PreDealService {
...
@@ -94,7 +94,7 @@ public class PreDealServiceImpl implements PreDealService {
@Override
@Override
public
boolean
checkTask
(
String
taskId
,
int
dataType
)
{
public
boolean
checkTask
(
String
taskId
,
int
dataType
)
{
String
key
=
taskId
+
"_checkTask"
+
dataType
;
String
key
=
taskId
+
"_checkTask"
+
dataType
;
Object
o
=
RedisUtil
.
getCache
(
key
)
;
Object
o
=
null
;
//
RedisUtil.getCache(key) ;
if
(
null
==
o
)
{
if
(
null
==
o
)
{
int
i
=
preDealLogMapper
.
checkTask
(
taskId
,
dataType
,
PreDealStatusEnum
.
pre
.
getVal
());
int
i
=
preDealLogMapper
.
checkTask
(
taskId
,
dataType
,
PreDealStatusEnum
.
pre
.
getVal
());
boolean
flag
=
(
i
==
0
)
;
boolean
flag
=
(
i
==
0
)
;
...
@@ -118,7 +118,7 @@ public class PreDealServiceImpl implements PreDealService {
...
@@ -118,7 +118,7 @@ public class PreDealServiceImpl implements PreDealService {
@Override
@Override
public
int
countByTaskId
(
String
taskId
)
{
public
int
countByTaskId
(
String
taskId
)
{
String
key
=
taskId
+
"countByTaskId"
;
String
key
=
taskId
+
"countByTaskId"
;
Object
o
=
RedisUtil
.
getCache
(
key
)
;
Object
o
=
null
;
//
RedisUtil.getCache(key) ;
if
(
null
==
o
)
{
if
(
null
==
o
)
{
int
count
=
this
.
preDealLogMapper
.
countByTaskId
(
taskId
,-
1
,
0
)
;
int
count
=
this
.
preDealLogMapper
.
countByTaskId
(
taskId
,-
1
,
0
)
;
RedisUtil
.
setCache
(
key
,
count
,
60
*
3
l
);
RedisUtil
.
setCache
(
key
,
count
,
60
*
3
l
);
...
@@ -193,7 +193,7 @@ public class PreDealServiceImpl implements PreDealService {
...
@@ -193,7 +193,7 @@ public class PreDealServiceImpl implements PreDealService {
@Override
@Override
public
boolean
checkFriendTask
(
String
taskId
,
int
dataType
)
{
public
boolean
checkFriendTask
(
String
taskId
,
int
dataType
)
{
String
key
=
taskId
+
"_checkFriendTask"
+
dataType
;
String
key
=
taskId
+
"_checkFriendTask"
+
dataType
;
Object
o
=
RedisUtil
.
getCache
(
key
)
;
Object
o
=
null
;
//
RedisUtil.getCache(key) ;
if
(
null
==
o
)
{
if
(
null
==
o
)
{
int
i
=
preDealLogMapper
.
checkTaskFriend
(
taskId
,
null
,
dataType
);
int
i
=
preDealLogMapper
.
checkTaskFriend
(
taskId
,
null
,
dataType
);
boolean
flag
=
(
i
==
0
)
;
boolean
flag
=
(
i
==
0
)
;
...
@@ -207,7 +207,7 @@ public class PreDealServiceImpl implements PreDealService {
...
@@ -207,7 +207,7 @@ public class PreDealServiceImpl implements PreDealService {
@Override
@Override
public
boolean
checkFriendTaskByPDataId
(
String
taskId
,
String
pDataId
,
int
dataType
)
{
public
boolean
checkFriendTaskByPDataId
(
String
taskId
,
String
pDataId
,
int
dataType
)
{
String
key
=
taskId
+
"_checkFriendTaskByPDataId"
+
dataType
;
String
key
=
taskId
+
"_checkFriendTaskByPDataId"
+
dataType
;
Object
o
=
RedisUtil
.
getCache
(
key
)
;
Object
o
=
null
;
//
RedisUtil.getCache(key) ;
if
(
null
==
o
)
{
if
(
null
==
o
)
{
int
i
=
preDealLogMapper
.
checkTaskFriend
(
taskId
,
pDataId
,
dataType
);
int
i
=
preDealLogMapper
.
checkTaskFriend
(
taskId
,
pDataId
,
dataType
);
boolean
flag
=
(
i
==
0
)
;
boolean
flag
=
(
i
==
0
)
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DealSyncOperationApiServiceImpl.java
View file @
21639892
...
@@ -460,13 +460,13 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
...
@@ -460,13 +460,13 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
}
}
TabHaobanSyncTask
syncTask
=
syncTaskService
.
getSyncTask
(
taskId
);
TabHaobanSyncTask
syncTask
=
syncTaskService
.
getSyncTask
(
taskId
);
int
status
=
syncTask
.
getStatusFlag
()
;
/*
int status = syncTask.getStatusFlag() ;
if(status != 4) {
if(status != 4) {
int count = this.preDealService.countByTaskId(taskId) ;
int count = this.preDealService.countByTaskId(taskId) ;
if(count <= 0) {
if(count <= 0) {
this.syncTaskService.updateTaskStatus(taskId,4) ;
this.syncTaskService.updateTaskStatus(taskId,4) ;
}
}
}
}
*/
syncCheckDTO
.
setSyncStatus
(
syncTask
.
getStatusFlag
());
syncCheckDTO
.
setSyncStatus
(
syncTask
.
getStatusFlag
());
PreDealLogInfoDTO
dealLogInfoDTO
=
preDealService
.
getLastPreDataByTaskId
(
taskId
);
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