/*
 * 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.FwhZxzcZcjd;
import com.hst.framework.constants.WebConstants;
import com.hst.taxService.pageProcessor.dao.TaxWxfwZcjdDao;
import com.hst.taxService.pageProcessor.domain.ZcjdDomain;
import java.lang.reflect.InvocationTargetException;
import org.apache.commons.beanutils.BeanUtils;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.pipeline.PageModelPipeline;

public class ZcjdPipeLine
implements PageModelPipeline<ZcjdDomain> {
    public void process(ZcjdDomain dom, Task task) {
        System.out.println("1111");
        TaxWxfwZcjdDao dao = (TaxWxfwZcjdDao)WebConstants.WEB_APP_CONTEXT.getBean("taxWxfwZcjdDaoImp");
        FwhZxzcZcjd bo = new FwhZxzcZcjd();
        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();
        }
    }
}
