Commit 660fb7b1 by qwmqiuwenmin

Merge branch 'developer' of http://115.159.76.241/haoban3.0/haoban-manage3.0.git into developer

parents 9619c1f8 ee3f677c
......@@ -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