demand: TMS系统 - 运输管理 -添加清除autoScanSiteBatch任务状态接口
committer: heyu
This commit is contained in:
parent
aa83c06225
commit
d50efbdf17
@ -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
|
* @return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user