Commit 283693d4 by fudahua

刷新好友状态

parent f10dc728
...@@ -165,4 +165,13 @@ public interface DealSyncOperationApiService { ...@@ -165,4 +165,13 @@ public interface DealSyncOperationApiService {
public void quartWxFriendClerk(String res); public void quartWxFriendClerk(String res);
void test(String wxEnterpriseId, String taskId); void test(String wxEnterpriseId, String taskId);
/**
* 获取刷新状态
*
* @param wxEnterpriseId
* @param staffId
* @return true 刷新中 false 没刷新或刷新完成
*/
public boolean getFreshFriendSyncTask(String wxEnterpriseId, String staffId);
} }
...@@ -869,4 +869,14 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ ...@@ -869,4 +869,14 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
e.printStackTrace(); e.printStackTrace();
} }
} }
@Override
public boolean getFreshFriendSyncTask(String wxEnterpriseId, String staffId) {
String staffLockKey = FRIEND_LOCK + staffId;
Object cache = RedisUtil.getCache(staffLockKey);
if (null == cache) {
return false;
}
return true;
}
} }
...@@ -459,6 +459,21 @@ public class ClerkController extends WebBaseController{ ...@@ -459,6 +459,21 @@ public class ClerkController extends WebBaseController{
return resultResponse(HaoBanErrCode.ERR_1); return resultResponse(HaoBanErrCode.ERR_1);
} }
/**
* 刷新好友状态
*
* @param staffId
* @param storeId
* @param wxEnterpriseId
* @return
*/
@HttpLimit
@RequestMapping("/check-fresh-friend")
public HaobanResponse checkFreshFriend(String staffId, String storeId, String wxEnterpriseId) {
boolean freshFriendSyncTask = dealSyncOperationApiService.getFreshFriendSyncTask(wxEnterpriseId, staffId);
return resultResponse(HaoBanErrCode.ERR_1, freshFriendSyncTask);
}
//获取门店详情 //获取门店详情
public boolean isEnterpriseOver(String eid) { public boolean isEnterpriseOver(String eid) {
......
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