| | |
| | | import cn.hutool.core.date.DateUtil; |
| | | import com.dy.common.schedulerTask.TaskJob; |
| | | import com.dy.common.springUtil.SpringContextUtil; |
| | | import com.dy.common.util.SysUtil; |
| | | import com.dy.pmsGlobal.daoPr.PrAssemblyPlanMapper; |
| | | import com.dy.pmsGlobal.daoPr.PrDeviceMapper; |
| | | import com.dy.pmsGlobal.pojoPr.PrAssemblyPlan; |
| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.quartz.JobExecutionContext; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | |
| | | public class AssemblyPlanTask extends TaskJob { |
| | | |
| | | @Override |
| | | @Transactional |
| | | public void execute(JobExecutionContext ctx) { |
| | | log.info("开始执行 组装计划任务定时检查"); |
| | | try{ |
| | |
| | | assemblyDao.updateByPrimaryKeySelective(plan); |
| | | } |
| | | } |
| | | if(assemblyDao!=null){ |
| | | throw new RuntimeException(""); |
| | | } |
| | | }catch (Exception e){ |
| | | log.error("组装计划任务定时检查异常",e); |
| | | try{ |
| | | SysUtil.InfoVo vo = SysUtil.info() ; |
| | | System.out.println(vo.toString()); |
| | | }catch (Exception e1){} |
| | | } |
| | | log.info("完成 组装计划任务定时检查"); |
| | | } |