/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  org.apache.commons.beanutils.BeanUtils
 *  us.codecraft.webmagic.Task
 *  us.codecraft.webmagic.pipeline.PageModelPipeline
 */
package com.hst.taxService.pageProcessor.pipeline;

import com.hst.common.bo.FwhZxzcZxwj;
import com.hst.framework.constants.WebConstants;
import com.hst.taxService.pageProcessor.dao.TaxWxfwZxwjDao;
import com.hst.taxService.pageProcessor.domain.ZxwjDomain;
import java.lang.reflect.InvocationTargetException;
import org.apache.commons.beanutils.BeanUtils;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.pipeline.PageModelPipeline;

public class ZxwjPipeLine
implements PageModelPipeline<ZxwjDomain> {
    public void process(ZxwjDomain dom, Task task) {
        TaxWxfwZxwjDao dao = (TaxWxfwZxwjDao)WebConstants.WEB_APP_CONTEXT.getBean("taxWxfwZxwjDaoImp");
        FwhZxzcZxwj bo = new FwhZxzcZxwj();
        Thread.currentThread();
        try {
            BeanUtils.copyProperties((Object)bo, (Object)dom);
            dao.saveWxYhxx(bo);
        }
        catch (IllegalAccessException e) {
            e.printStackTrace();
        }
        catch (InvocationTargetException e) {
            e.printStackTrace();
        }
        catch (Exception e) {
            e.printStackTrace();
        }
    }
}
