/*
 * 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.dao.BaseDao;
import com.hst.taxService.domain.wxfwh.YbsxCxDbrwAppDomain;
import com.hst.taxService.domain.wxfwh.YbsxCxDbrwListReturnDomain;
import com.hst.taxService.domain.wxfwh.YbsxCxDbrwReturnDomain;
import com.hst.taxService.domain.wxfwh.YbsxCxGztxAppDomain;
import com.hst.taxService.domain.wxfwh.YbsxCxGztxListReturnDomain;
import com.hst.taxService.domain.wxfwh.YbsxCxGztxReturnDomain;
import com.hst.taxService.domain.wxfwh.YbsxXxxxDbrwAppDomain;
import com.hst.taxService.domain.wxfwh.YbsxXxxxDbrwReturnDomain;
import com.hst.taxService.domain.wxfwh.YbsxXxxxGztxAppDomain;
import com.hst.taxService.domain.wxfwh.YbsxXxxxGztxReturnDomain;
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 TaxWxfwhYbsxAppDaoImp
implements BaseDao {
    @Autowired
    private HstSqlMapClientTemplate sqlMapClientTemplate;
    private static Logger _log = Logger.getLogger(TaxWxfwhYbsxAppDaoImp.class);

    public TaxCommonReturnDomain YbsxCxGztx(YbsxCxGztxAppDomain domain) throws Exception {
        YbsxCxGztxReturnDomain returnDomain = null;
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("swjgDm", domain.getSwjgDm());
        map.put("openId", domain.getOpenId());
        map.put("jsrSwryDm", domain.getJsrSwryDm());
        map.put("ckbz", domain.getCkbz());
        ArrayList<YbsxCxGztxListReturnDomain> dataList = new ArrayList();
        dataList = (List)this.sqlMapClientTemplate.queryForObject("queryYbsxCxGztx", map);
        returnDomain.setDataList(dataList);
        return returnDomain;
    }

    public TaxCommonReturnDomain YbsxXxxxGztx(YbsxXxxxGztxAppDomain domain) throws Exception {
        YbsxXxxxGztxReturnDomain returnDomain = null;
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("swjgDm", domain.getSwjgDm());
        map.put("openId", domain.getOpenId());
        map.put("gztxXh", domain.getGztxXh());
        List dataList = new ArrayList();
        dataList = (List)this.sqlMapClientTemplate.queryForObject("queryYbsxXxxxGztx", map);
        returnDomain = (YbsxXxxxGztxReturnDomain)dataList.get(0);
        return returnDomain;
    }

    public TaxCommonReturnDomain YbsxCxDbrw(YbsxCxDbrwAppDomain domain) throws Exception {
        YbsxCxDbrwReturnDomain returnDomain = null;
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("swjgDm", domain.getSwjgDm());
        map.put("openId", domain.getOpenId());
        map.put("jsrSwryDm", domain.getJsrSwryDm());
        ArrayList<YbsxCxDbrwListReturnDomain> dataList = new ArrayList();
        dataList = (List)this.sqlMapClientTemplate.queryForObject("queryYbsxCxDbrw", map);
        returnDomain.setDataList(dataList);
        return returnDomain;
    }

    public TaxCommonReturnDomain YbsxXxxxDbrw(YbsxXxxxDbrwAppDomain domain) throws Exception {
        YbsxXxxxDbrwReturnDomain returnDomain = null;
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("swjgDm", domain.getSwjgDm());
        map.put("openId", domain.getOpenId());
        map.put("sxsqXh", domain.getSxsqXh());
        List dataList = new ArrayList();
        dataList = (List)this.sqlMapClientTemplate.queryForObject("queryYbsxXxxxDbrw", map);
        returnDomain = (YbsxXxxxDbrwReturnDomain)dataList.get(0);
        return returnDomain;
    }
}
