com.ruoyi.common.utils.bean.BeanUtils Java Examples

The following examples show how to use com.ruoyi.common.utils.bean.BeanUtils. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractQuartzJob.java    From supplierShop with MIT License 6 votes vote down vote up
@Override
public void execute(JobExecutionContext context) throws JobExecutionException
{
    SysJob sysJob = new SysJob();
    BeanUtils.copyBeanProp(sysJob, context.getMergedJobDataMap().get(ScheduleConstants.TASK_PROPERTIES));
    try
    {
        before(context, sysJob);
        if (sysJob != null)
        {
            doExecute(context, sysJob);
        }
        after(context, sysJob, null);
    }
    catch (Exception e)
    {
        log.error("任务执行异常  - :", e);
        after(context, sysJob, e);
    }
}
 
Example #2
Source File: AbstractQuartzJob.java    From RuoYi-Vue with MIT License 6 votes vote down vote up
@Override
public void execute(JobExecutionContext context) throws JobExecutionException
{
    SysJob sysJob = new SysJob();
    BeanUtils.copyBeanProp(sysJob, context.getMergedJobDataMap().get(ScheduleConstants.TASK_PROPERTIES));
    try
    {
        before(context, sysJob);
        if (sysJob != null)
        {
            doExecute(context, sysJob);
        }
        after(context, sysJob, null);
    }
    catch (Exception e)
    {
        log.error("任务执行异常  - :", e);
        after(context, sysJob, e);
    }
}