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
ba9fcf63
Commit
ba9fcf63
authored
Mar 25, 2022
by
fudahua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
fix:好办通讯录同步更改 See merge request
!171
parents
518f6ac3
39eab10b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
28 deletions
+39
-28
DealSyncOperationApiServiceImpl.java
...ice/service/out/impl/DealSyncOperationApiServiceImpl.java
+2
-2
test.java
haoban-manage3-service/src/test/java/test.java
+37
-26
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DealSyncOperationApiServiceImpl.java
View file @
ba9fcf63
...
@@ -112,7 +112,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
...
@@ -112,7 +112,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
if
(
syncTask
.
getTaskType
().
equals
(
0
))
{
if
(
syncTask
.
getTaskType
().
equals
(
0
))
{
operationMap
.
get
(
"groupSyncOperation"
).
dealSingleByMq
(
dealParamMqDTO
,
dataPre
);
operationMap
.
get
(
"groupSyncOperation"
).
dealSingleByMq
(
dealParamMqDTO
,
dataPre
);
}
else
{
}
else
{
operationMap
.
get
(
"qywx
Group
SyncOperation"
).
dealSingleByMq
(
dealParamMqDTO
,
dataPre
);
operationMap
.
get
(
"qywx
Dept
SyncOperation"
).
dealSingleByMq
(
dealParamMqDTO
,
dataPre
);
}
}
//门店处理
//门店处理
}
else
if
(
dataPre
.
getDataType
().
equals
(
PreDealTypeEnum
.
store
.
getVal
()))
{
}
else
if
(
dataPre
.
getDataType
().
equals
(
PreDealTypeEnum
.
store
.
getVal
()))
{
...
@@ -124,7 +124,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
...
@@ -124,7 +124,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
if
(
syncTask
.
getTaskType
().
equals
(
0
))
{
if
(
syncTask
.
getTaskType
().
equals
(
0
))
{
operationMap
.
get
(
"clerkSyncOperation"
).
dealSingleByMq
(
dealParamMqDTO
,
dataPre
);
operationMap
.
get
(
"clerkSyncOperation"
).
dealSingleByMq
(
dealParamMqDTO
,
dataPre
);
}
else
{
}
else
{
operationMap
.
get
(
"qywx
Clerk
SyncOperation"
).
dealSingleByMq
(
dealParamMqDTO
,
dataPre
);
operationMap
.
get
(
"qywx
Staff
SyncOperation"
).
dealSingleByMq
(
dealParamMqDTO
,
dataPre
);
}
}
}
else
if
(
dataPre
.
getDataType
().
equals
(
PreDealTypeEnum
.
friend_clerk
.
getVal
()))
{
}
else
if
(
dataPre
.
getDataType
().
equals
(
PreDealTypeEnum
.
friend_clerk
.
getVal
()))
{
logger
.
info
(
"好友导购处理:{}"
,
params
);
logger
.
info
(
"好友导购处理:{}"
,
params
);
...
...
haoban-manage3-service/src/test/java/test.java
View file @
ba9fcf63
...
@@ -20,34 +20,45 @@ import org.apache.commons.lang3.time.DateUtils;
...
@@ -20,34 +20,45 @@ import org.apache.commons.lang3.time.DateUtils;
public
class
test
{
public
class
test
{
private
static
final
TimedCache
<
String
,
TestQo
>
cache
=
CacheUtil
.
newTimedCache
(
3000L
);
private
static
final
TimedCache
<
String
,
TestQo
>
cache
=
CacheUtil
.
newTimedCache
(
3000L
);
public
static
void
main
(
String
[]
args
)
throws
InterruptedException
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
Date
date
=
new
Date
();
Date
tomrrow
=
DateUtils
.
addDays
(
date
,
1
);
Date
yestory
=
DateUtils
.
addDays
(
date
,
-
1
);
long
l
=
DateUtil
.
betweenDay
(
tomrrow
,
date
,
true
);
long
l2
=
DateUtil
.
betweenDay
(
date
,
tomrrow
,
true
);
try
{
TestQo
qo
=
new
TestQo
();
System
.
out
.
println
(
"start"
);
qo
.
setName
(
"test"
);
throw
new
Exception
(
"111"
);
System
.
out
.
println
(
l
+
"="
+
l2
);
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
"ex"
);
cache
.
put
(
"test"
,
qo
);
throw
e
;
Thread
.
sleep
(
1000L
);
}
finally
{
TestQo
test
=
cache
.
get
(
"test"
);
System
.
out
.
println
(
"end1"
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
test
));
Thread
.
sleep
(
2000L
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
test
));
Thread
.
sleep
(
2000L
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
test
));
test
=
cache
.
get
(
"test"
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
test
));
int
i
=
20
;
while
(
i
-->
0
)
{
Thread
.
sleep
(
2000L
);
}
}
// String key = "3.2.1";
// Date date = new Date();
// Date tomrrow = DateUtils.addDays(date, 1);
// Date yestory = DateUtils.addDays(date, -1);
// long l = DateUtil.betweenDay(tomrrow, date, true);
//
// long l2 = DateUtil.betweenDay(date, tomrrow, true);
// TestQo qo=new TestQo();
// qo.setName("test");
// System.out.println(l + "=" + l2);
//
// cache.put("test",qo);
// Thread.sleep(1000L);
// TestQo test = cache.get("test");
// System.out.println(JSONObject.toJSONString(test));
//
// Thread.sleep(2000L);
// System.out.println(JSONObject.toJSONString(test));
// Thread.sleep(2000L);
// System.out.println(JSONObject.toJSONString(test));
// test = cache.get("test");
// System.out.println(JSONObject.toJSONString(test));
//
// int i=20;
// while (i-->0) {
// Thread.sleep(2000L);
// }
//// String key = "3.2.1";
// String[] split = key.split(".");
// String[] split = key.split(".");
//
//
// System.out.println(split[1]);
// System.out.println(split[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