fix (farm): 农事记录定时任务
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
package cn.iocoder.yudao.module.farm.scheduled;
|
||||
|
||||
import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
|
||||
import cn.iocoder.yudao.framework.tenant.core.job.TenantJob;
|
||||
import cn.iocoder.yudao.module.farm.service.farmingrecord.FarmingRecordService;
|
||||
import cn.iocoder.yudao.module.farm.service.productionplan.ProductionPlanService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @description: 农事记录
|
||||
* * 表关系
|
||||
* * 模型管理: farm_model_management
|
||||
* * 模型管理-管理周期: farm_model_cycle
|
||||
* * 模型管理-管理周期-环境指标: farm_model_environment_index
|
||||
* * 模型管理-管理周期-病虫草害: farm_model_pest_disease_weed
|
||||
* * 模型管理-管理周期-气象灾害: farm_model_weather_disaster
|
||||
* * 模型管理-管理周期-农事事操: farm_model_farming_operation
|
||||
* * 模型管理-管理周期-农事操作-投入品: farm_model_farming_operation_input
|
||||
* @author: binda
|
||||
* @date: 2025/8/29 17:59
|
||||
*/
|
||||
@Component
|
||||
@TenantJob
|
||||
@Slf4j
|
||||
public class FarmingRecordJob implements JobHandler {
|
||||
|
||||
private final ProductionPlanService productionPlanService;
|
||||
private final FarmingRecordService farmingRecordService;
|
||||
|
||||
public FarmingRecordJob(ProductionPlanService productionPlanService, FarmingRecordService farmingRecordService) {
|
||||
this.productionPlanService = productionPlanService;
|
||||
this.farmingRecordService = farmingRecordService;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String execute(String param) throws Exception {
|
||||
this.insertRecordHandler();
|
||||
return "success";
|
||||
}
|
||||
|
||||
private void insertRecordHandler() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user