demand: TMS系统 - 运输管理 -添加清除autoScanSiteBatch任务状态接口

committer: heyu
This commit is contained in:
aike 2025-10-23 11:44:21 +08:00
parent aa83c06225
commit d50efbdf17

View File

@ -955,6 +955,28 @@ public class EmisCommonController extends EmisBaseController
}
}
/**
* 清除autoScanSiteBatch任务状态
*
* @return
*/
@GetMapping("/clearAutoScanSiteBatchStatus")
public AjaxResult clearAutoScanSiteBatchStatus() {
String statusKey = "autoScanSiteBatch_status";
log.info("clearAutoScanSiteBatchStatus start");
try {
// 清除任务状态
redissonService.setStr(statusKey, "", 0);
log.info("autoScanSiteBatch status cleared successfully");
return AjaxResult.success("任务状态已清除");
} catch (Exception ex) {
ex.printStackTrace();
log.error("clearAutoScanSiteBatchStatus exception:" + ex.getMessage());
return AjaxResult.error("清除状态失败:" + ex.getMessage());
}
}
/**
* 单独出账
* @return