Commit e302c82b by fudahua

同步优化初步3-同步成员

parent 30789641
......@@ -329,10 +329,10 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
@Override
public SyncCheckDTO getTaskCheck(String wxEnterpriseId) {
String taskId = getTaskLock(wxEnterpriseId);
SyncCheckDTO syncCheckDTO = new SyncCheckDTO();
if (null == taskId) {
return null;
return syncCheckDTO;
}
SyncCheckDTO syncCheckDTO = new SyncCheckDTO();
TabHaobanSyncTask syncTask = syncTaskService.getSyncTask(taskId);
syncCheckDTO.setSyncStatus(syncTask.getStatusFlag());
......
......@@ -112,5 +112,17 @@ public class SyncDealContoller extends WebBaseController {
}
@RequestMapping("/close-sync")
@ResponseBody
public HaobanResponse closeReSync(String wxEnterpriseId) {
if (StringUtils.isBlank(wxEnterpriseId)) {
LoginVO login = (LoginVO) AuthRequestUtil.getSessionUser();
wxEnterpriseId = login.getWxEnterpriseId();
}
dealSyncOperationApiService.closeTask(wxEnterpriseId);
return resultResponse(HaoBanErrCode.ERR_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