Commit ba9fcf63 by fudahua

Merge branch 'developer' into 'master'

fix:好办通讯录同步更改

See merge request !171
parents 518f6ac3 39eab10b
...@@ -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("qywxGroupSyncOperation").dealSingleByMq(dealParamMqDTO, dataPre); operationMap.get("qywxDeptSyncOperation").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("qywxClerkSyncOperation").dealSingleByMq(dealParamMqDTO, dataPre); operationMap.get("qywxStaffSyncOperation").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);
......
...@@ -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]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment