diff --git a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisCommonController.java b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisCommonController.java index e23d42d09..114df9f00 100644 --- a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisCommonController.java +++ b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisCommonController.java @@ -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