|
@@ -43,6 +43,9 @@ import org.jeecg.modules.splt.mapper.SyPackingListTailoringMapper;
|
|
|
import org.jeecg.modules.system.entity.SysUser;
|
|
|
import org.jeecg.modules.system.util.JsonChangeUtils;
|
|
|
import org.jeecg.modules.system.util.oConvertUtils;
|
|
|
+import org.quartz.Job;
|
|
|
+import org.quartz.JobExecutionContext;
|
|
|
+import org.quartz.JobExecutionException;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -66,7 +69,7 @@ import java.util.*;
|
|
|
* @Version: V1.0
|
|
|
*/
|
|
|
@Service
|
|
|
-public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFabricMapper, SyPackingListFabric> implements ISyPackingListFabricService {
|
|
|
+public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFabricMapper, SyPackingListFabric> implements ISyPackingListFabricService, Job {
|
|
|
|
|
|
@Autowired
|
|
|
private SyPackingListFabricMapper syPackingListFabricMapper;
|
|
@@ -1496,7 +1499,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
*/
|
|
|
//@Override
|
|
|
//@Transactional
|
|
|
- @Scheduled(fixedRate=1000*60*3)
|
|
|
+ //@Scheduled(fixedRate=1000*60*3)
|
|
|
public String getU8Data (){
|
|
|
String massage="";
|
|
|
int num=0;
|
|
@@ -1802,4 +1805,9 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void execute(JobExecutionContext context) throws JobExecutionException {
|
|
|
+ this.getU8Data();//定时任务直接调用本地方法
|
|
|
+ }
|
|
|
}
|