/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  org.apache.log4j.Logger
 *  org.springframework.beans.factory.annotation.Autowired
 *  org.springframework.stereotype.Repository
 */
package com.hst.taxService.dao.imp;

import com.hst.common.domain.TaxCommonReturnDomain;
import com.hst.framework.common.HstSqlMapClientTemplate;
import com.hst.framework.constants.WebConstants;
import com.hst.framework.dao.BaseDao;
import com.hst.taxService.domain.wxfwh.GywmGzdtAppDomain;
import com.hst.taxService.domain.wxfwh.GywmGzdtDomain;
import com.hst.taxService.domain.wxfwh.GywmGzdtReturnDomain;
import com.hst.taxService.domain.wxfwh.GywmJgszAppDomain;
import com.hst.taxService.domain.wxfwh.GywmJgszDomain;
import com.hst.taxService.domain.wxfwh.GywmJgszReturnDomain;
import com.hst.taxService.domain.wxfwh.GywmJkjsAppDomain;
import com.hst.taxService.domain.wxfwh.GywmJkjsReturnDomain;
import com.hst.taxService.domain.wxfwh.GywmLdzlAppDomain;
import com.hst.taxService.domain.wxfwh.GywmLdzlDomain;
import com.hst.taxService.domain.wxfwh.GywmLdzlReturnDomain;
import com.hst.taxService.domain.wxfwh.GywmZyznAppDomain;
import com.hst.taxService.domain.wxfwh.GywmZyznReturnDomain;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class TaxWxfwhGywmAppDaoImp
implements BaseDao {
    @Autowired
    private HstSqlMapClientTemplate sqlMapClientTemplate;
    private static Logger _log = Logger.getLogger(TaxWxfwhGywmAppDaoImp.class);

    public TaxCommonReturnDomain gywmJkjs(GywmJkjsAppDomain domain) throws Exception {
        GywmJkjsReturnDomain returnDomain = new GywmJkjsReturnDomain();
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("swjgDm", domain.getSwjgDm());
        String DATABASEUSERNAME = WebConstants.HST_PROP_MAP.get("hst.SCHEMA_TM");
        map.put("databaseUsername", DATABASEUSERNAME);
        List dataList = new ArrayList();
        dataList = this.sqlMapClientTemplate.queryForList("queryGywmJkjs", map);
        if (dataList != null && !dataList.isEmpty()) {
            returnDomain = (GywmJkjsReturnDomain)dataList.get(0);
        }
        returnDomain.setCode("00");
        return returnDomain;
    }

    public TaxCommonReturnDomain gywmZyzn(GywmZyznAppDomain domain) throws Exception {
        GywmZyznReturnDomain returnDomain = new GywmZyznReturnDomain();
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("swjgDm", domain.getSwjgDm());
        String DATABASEUSERNAME = WebConstants.HST_PROP_MAP.get("hst.SCHEMA_TM");
        map.put("databaseUsername", DATABASEUSERNAME);
        List dataList = new ArrayList();
        dataList = this.sqlMapClientTemplate.queryForList("queryGywmZyzn", map);
        if (dataList != null && !dataList.isEmpty()) {
            returnDomain = (GywmZyznReturnDomain)dataList.get(0);
        }
        returnDomain.setCode("00");
        return returnDomain;
    }

    public TaxCommonReturnDomain gywmLdzl(GywmLdzlAppDomain domain) throws Exception {
        GywmLdzlReturnDomain returnDomain = new GywmLdzlReturnDomain();
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("swjgDm", domain.getSwjgDm());
        String DATABASEUSERNAME = WebConstants.HST_PROP_MAP.get("hst.SCHEMA_TM");
        map.put("databaseUsername", DATABASEUSERNAME);
        List<GywmLdzlDomain> dataList = new ArrayList();
        dataList = this.sqlMapClientTemplate.queryForList("queryGywmLdzl", map);
        if (dataList != null && !dataList.isEmpty()) {
            returnDomain.setDataList(dataList);
        }
        returnDomain.setCode("00");
        return returnDomain;
    }

    public TaxCommonReturnDomain gywmJgsz(GywmJgszAppDomain domain) throws Exception {
        GywmJgszReturnDomain returnDomain = new GywmJgszReturnDomain();
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("swjgDm", domain.getSwjgDm());
        String DATABASEUSERNAME = WebConstants.HST_PROP_MAP.get("hst.SCHEMA_TM");
        map.put("databaseUsername", DATABASEUSERNAME);
        List<GywmJgszDomain> dataList = new ArrayList();
        dataList = this.sqlMapClientTemplate.queryForList("queryGywmJgsz", map);
        if (dataList != null && !dataList.isEmpty()) {
            returnDomain.setDataList(dataList);
        }
        returnDomain.setCode("00");
        return returnDomain;
    }

    public TaxCommonReturnDomain gywmGzdt(GywmGzdtAppDomain domain) throws Exception {
        GywmGzdtReturnDomain returnDomain = new GywmGzdtReturnDomain();
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("swjgDm", domain.getSwjgDm());
        String DATABASEUSERNAME = WebConstants.HST_PROP_MAP.get("hst.SCHEMA_TM");
        map.put("databaseUsername", DATABASEUSERNAME);
        List<GywmGzdtDomain> dataList = new ArrayList();
        dataList = this.sqlMapClientTemplate.queryForList("queryGywmGzdt", map);
        if (dataList != null && !dataList.isEmpty()) {
            returnDomain.setDataList(dataList);
        }
        returnDomain.setCode("00");
        return returnDomain;
    }
}
