zhaoqiaobo
4 days ago
5 changed files with 56 additions and 0 deletions
@ -0,0 +1,33 @@
|
||||
package com.logpm.basicdata.job; |
||||
|
||||
import com.logpm.basicdata.service.IBasicdataWarehouseService; |
||||
import com.xxl.job.core.biz.model.ReturnT; |
||||
import com.xxl.job.core.handler.annotation.XxlJob; |
||||
import lombok.AllArgsConstructor; |
||||
import org.springframework.stereotype.Component; |
||||
|
||||
/** |
||||
* @author zhaoqiaobo |
||||
* @create 2024-04-02 |
||||
*/ |
||||
@AllArgsConstructor |
||||
@Component |
||||
public class WarehouseJob { |
||||
|
||||
private final IBasicdataWarehouseService warehouseService; |
||||
|
||||
/** |
||||
* 定时维护仓库库位 |
||||
* |
||||
* @param param |
||||
* @return |
||||
* @throws Exception |
||||
*/ |
||||
@XxlJob("initWarehouseSeating") |
||||
public ReturnT<String> initWarehouseSeating(String param) throws Exception { |
||||
warehouseService.initWarehouseSeating(param); |
||||
return ReturnT.SUCCESS; |
||||
} |
||||
|
||||
|
||||
} |
Loading…
Reference in new issue