/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  org.springframework.stereotype.Service
 */
package com.hst.taxService.service.imp;

import com.hst.common.domain.BaseAppServiceDomain;
import com.hst.common.domain.TaxCommonReturnDomain;
import com.hst.common.service.imp.BaseBusinessServiceImp;
import com.hst.framework.constants.AppServiceConstants;
import com.hst.framework.constants.WebConstants;
import com.hst.taxService.dao.TaxCtais2AppDao;
import com.hst.taxService.dao.imp.TaxCtais2FpfskcxxAppDaoImp;
import com.hst.taxService.dao.imp.TaxCtais2FplgbdyAppDaoImp;
import com.hst.taxService.dao.imp.TaxCtais2FplgbhsAppDaoImp;
import com.hst.taxService.dao.imp.TaxCtais2FppzxxcxAppDaoImp;
import com.hst.taxService.dao.imp.TaxCtais2FpxsAppDaoImp;
import com.hst.taxService.dao.imp.TaxCtais2FpyjAppDaoImp;
import com.hst.taxService.dao.imp.TaxCtais2NsrfpjcAppDaoImp;
import com.hst.taxService.dao.imp.TaxCtais2NsrfplgxxAppDaoImp;
import com.hst.taxService.dao.imp.TaxCtais2NsrfpyjxxAppDaoImp;
import com.hst.taxService.domain.ctais2.FpfskcxxAppDomain;
import com.hst.taxService.domain.ctais2.FplgbdyAppDomain;
import com.hst.taxService.domain.ctais2.FplgbdyReturnDomain;
import com.hst.taxService.domain.ctais2.FplgbhsAppDomain;
import com.hst.taxService.domain.ctais2.FplgxxAppDomain;
import com.hst.taxService.domain.ctais2.FppzjbxxcxAppDomain;
import com.hst.taxService.domain.ctais2.FpxsAppDomain;
import com.hst.taxService.domain.ctais2.FpyjAppDomain;
import com.hst.taxService.domain.ctais2.NsrFpjcAppDomain;
import com.hst.taxService.domain.ctais2.NsrFpyjxxAppDomain;
import com.hst.taxService.service.TaxCtais2CommonAppService;
import org.springframework.stereotype.Service;

@Service
public class TaxCtais2CommonAppServiceImp
extends BaseBusinessServiceImp
implements TaxCtais2CommonAppService {
    private TaxCtais2AppDao dao;

    @Override
    public TaxCommonReturnDomain queryFppzjbxxcx(BaseAppServiceDomain appDomain, String ywId) throws Exception {
        FppzjbxxcxAppDomain domain = (FppzjbxxcxAppDomain)appDomain;
        if ("Y".equals(WebConstants.CTAIS2_TO_GT3)) {
            return ((TaxCtais2FppzxxcxAppDaoImp)this.getDao(ywId)).queryGt3(domain);
        }
        return ((TaxCtais2FppzxxcxAppDaoImp)this.getDao(ywId)).query(domain);
    }

    @Override
    public TaxCommonReturnDomain queryNsrfpjc(BaseAppServiceDomain appDomain, String ywId) throws Exception {
        NsrFpjcAppDomain domain = (NsrFpjcAppDomain)appDomain;
        if ("Y".equals(WebConstants.CTAIS2_TO_GT3)) {
            return ((TaxCtais2NsrfpjcAppDaoImp)this.getDao(ywId)).queryGt3(domain);
        }
        return ((TaxCtais2NsrfpjcAppDaoImp)this.getDao(ywId)).query(domain);
    }

    @Override
    public TaxCommonReturnDomain queryNsrfpyjxx(BaseAppServiceDomain appDomain, String ywId) throws Exception {
        NsrFpyjxxAppDomain domain = (NsrFpyjxxAppDomain)appDomain;
        return ((TaxCtais2NsrfpyjxxAppDaoImp)this.getDao(ywId)).query(domain);
    }

    @Override
    public TaxCommonReturnDomain queryFpxs(BaseAppServiceDomain appDomain, String ywId) throws Exception {
        FpxsAppDomain domain = (FpxsAppDomain)appDomain;
        return ((TaxCtais2FpxsAppDaoImp)this.getDao(ywId)).queryEjb(domain);
    }

    @Override
    public TaxCommonReturnDomain queryFpyj(BaseAppServiceDomain appDomain, String ywId) throws Exception {
        FpyjAppDomain domain = (FpyjAppDomain)appDomain;
        return ((TaxCtais2FpyjAppDaoImp)this.getDao(ywId)).queryEjb(domain);
    }

    @Override
    public TaxCommonReturnDomain queryNsrFplgxx(BaseAppServiceDomain appDomain, String ywId) throws Exception {
        FplgxxAppDomain domain = (FplgxxAppDomain)appDomain;
        if ("Y".equals(WebConstants.CTAIS2_TO_GT3)) {
            return ((TaxCtais2NsrfplgxxAppDaoImp)this.getDao(ywId)).queryGt3(domain);
        }
        return ((TaxCtais2NsrfplgxxAppDaoImp)this.getDao(ywId)).query(domain);
    }

    @Override
    public TaxCommonReturnDomain queryFplgbdy(BaseAppServiceDomain appDomain, String ywId) throws Exception {
        FplgbdyAppDomain domain = (FplgbdyAppDomain)appDomain;
        if ("Y".equals(WebConstants.CTAIS2_TO_GT3)) {
            FplgbdyReturnDomain returnDomain = new FplgbdyReturnDomain();
            returnDomain.setCode("00");
            return returnDomain;
        }
        return ((TaxCtais2FplgbdyAppDaoImp)this.getDao(ywId)).queryEjb(domain);
    }

    @Override
    public TaxCommonReturnDomain queryFplgbhs(BaseAppServiceDomain appDomain, String ywId) throws Exception {
        FplgbhsAppDomain domain = (FplgbhsAppDomain)appDomain;
        if ("Y".equals(WebConstants.INTERFACE_PROCEDURE_CONTROL)) {
            return ((TaxCtais2FplgbhsAppDaoImp)this.getDao(ywId)).queryEjb(domain);
        }
        return ((TaxCtais2FplgbhsAppDaoImp)this.getDao(ywId)).query(domain);
    }

    @Override
    public TaxCommonReturnDomain queryFpfskcxx(BaseAppServiceDomain appDomain, String ywId) throws Exception {
        FpfskcxxAppDomain domain = (FpfskcxxAppDomain)appDomain;
        return ((TaxCtais2FpfskcxxAppDaoImp)this.getDao(ywId)).query(domain);
    }

    public TaxCtais2AppDao getDao(String ywId) {
        this.dao = (TaxCtais2AppDao)WebConstants.WEB_APP_CONTEXT.getBean(AppServiceConstants.HST_DAO_MAP.get(ywId));
        return this.dao;
    }
}
