/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  org.apache.commons.logging.Log
 *  org.apache.commons.logging.LogFactory
 *  org.springframework.beans.BeanUtils
 *  org.springframework.beans.factory.annotation.Autowired
 *  org.springframework.orm.ibatis.SqlMapClientTemplate
 *  org.springframework.stereotype.Repository
 *  org.springframework.transaction.annotation.Propagation
 *  org.springframework.transaction.annotation.Transactional
 */
package com.hst.task.dao;

import com.hst.common.domain.TaxCommonReturnDomain;
import com.hst.framework.dao.BaseDao;
import com.hst.task.domain.zhdtmq.BaseReturnDomain;
import com.hst.task.domain.zhdtmq.BsdtGetBsdtRltjxxReturnDomain;
import com.hst.task.domain.zhdtmq.BsdtGetBsdtYwtjxxReturnDomain;
import com.hst.task.domain.zhdtmq.DqYjdjDomain;
import com.hst.task.domain.zhdtmq.DqYjzbZtqkDomain;
import com.hst.task.domain.zhdtmq.DqckxxDomain;
import com.hst.task.domain.zhdtmq.DqdhrsfbDomain;
import com.hst.task.domain.zhdtmq.DqyjzbYwflDomain;
import com.hst.task.domain.zhdtmq.QhjGetYwflReturnDomain;
import java.util.HashMap;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Repository
public class ZhdMqDaoImp
implements BaseDao {
    public static Log _logger = LogFactory.getLog(ZhdMqDaoImp.class);
    @Autowired
    private SqlMapClientTemplate smzbsSqlMapClientTemplate;

    public QhjGetYwflReturnDomain doYWFL() throws Exception {
        QhjGetYwflReturnDomain returnDomain = new QhjGetYwflReturnDomain();
        HashMap map = new HashMap();
        List datas = this.smzbsSqlMapClientTemplate.queryForList("pDataGetYwfl", map);
        returnDomain.setDataList(datas);
        String code = (String)map.get("code");
        String mess = (String)map.get("mess");
        returnDomain.setCode(code);
        returnDomain.setMess(mess);
        return returnDomain;
    }

    public BsdtGetBsdtYwtjxxReturnDomain doYWLTJ() throws Exception {
        BsdtGetBsdtYwtjxxReturnDomain returnDomain = new BsdtGetBsdtYwtjxxReturnDomain();
        HashMap map = new HashMap();
        List datas = this.smzbsSqlMapClientTemplate.queryForList("pBskjMqYwltj", map);
        returnDomain.setDataList(datas);
        String code = (String)map.get("code");
        String mess = (String)map.get("mess");
        returnDomain.setCode(code);
        returnDomain.setMess(mess);
        return returnDomain;
    }

    public BsdtGetBsdtRltjxxReturnDomain doRLLXX() throws Exception {
        BsdtGetBsdtRltjxxReturnDomain returnDomain = new BsdtGetBsdtRltjxxReturnDomain();
        HashMap map = new HashMap();
        List datas = this.smzbsSqlMapClientTemplate.queryForList("pBskjMqRllxx", map);
        if (datas.size() > 0 && datas.get(0) != null) {
            BeanUtils.copyProperties(datas.get(0), (Object)returnDomain);
        }
        String code = (String)map.get("code");
        String mess = (String)map.get("mess");
        returnDomain.setCode(code);
        returnDomain.setMess(mess);
        return returnDomain;
    }

    public BaseReturnDomain<DqYjdjDomain> doDQYJDJ() {
        BaseReturnDomain<DqYjdjDomain> returnDomain = new BaseReturnDomain<DqYjdjDomain>();
        HashMap map = new HashMap();
        List datas = this.smzbsSqlMapClientTemplate.queryForList("pBskjMqYjDqyyjdj", map);
        returnDomain.setDataList(datas);
        String code = (String)map.get("code");
        String mess = (String)map.get("mess");
        returnDomain.setCode(code);
        returnDomain.setMess(mess);
        return returnDomain;
    }

    public BaseReturnDomain<DqYjzbZtqkDomain> doDQYJZBZTQK() {
        BaseReturnDomain<DqYjzbZtqkDomain> returnDomain = new BaseReturnDomain<DqYjzbZtqkDomain>();
        HashMap map = new HashMap();
        List datas = this.smzbsSqlMapClientTemplate.queryForList("pBskjMqYjYjzbZtqk", map);
        returnDomain.setDataList(datas);
        String code = (String)map.get("code");
        String mess = (String)map.get("mess");
        returnDomain.setCode(code);
        returnDomain.setMess(mess);
        return returnDomain;
    }

    public BaseReturnDomain<DqyjzbYwflDomain> doDQYJZBYWFL() {
        BaseReturnDomain<DqyjzbYwflDomain> returnDomain = new BaseReturnDomain<DqyjzbYwflDomain>();
        HashMap map = new HashMap();
        List datas = this.smzbsSqlMapClientTemplate.queryForList("pBskjMqYjYjzbYfwl", map);
        returnDomain.setDataList(datas);
        String code = (String)map.get("code");
        String mess = (String)map.get("mess");
        returnDomain.setCode(code);
        returnDomain.setMess(mess);
        return returnDomain;
    }

    public BaseReturnDomain<DqdhrsfbDomain> doDQDHRSFB() {
        BaseReturnDomain<DqdhrsfbDomain> returnDomain = new BaseReturnDomain<DqdhrsfbDomain>();
        HashMap map = new HashMap();
        List datas = this.smzbsSqlMapClientTemplate.queryForList("pBskjMqYjDhrsfb", map);
        returnDomain.setDataList(datas);
        String code = (String)map.get("code");
        String mess = (String)map.get("mess");
        returnDomain.setCode(code);
        returnDomain.setMess(mess);
        return returnDomain;
    }

    public BaseReturnDomain<DqckxxDomain> doDQCKXX() {
        BaseReturnDomain<DqckxxDomain> returnDomain = new BaseReturnDomain<DqckxxDomain>();
        HashMap map = new HashMap();
        List datas = this.smzbsSqlMapClientTemplate.queryForList("pBskjMqYjDqCKXX", map);
        returnDomain.setDataList(datas);
        String code = (String)map.get("code");
        String mess = (String)map.get("mess");
        returnDomain.setCode(code);
        returnDomain.setMess(mess);
        return returnDomain;
    }

    @Transactional(propagation=Propagation.REQUIRED, value="myTransactionManager_smzbs")
    public TaxCommonReturnDomain doYjJs() {
        TaxCommonReturnDomain returnDomain = new TaxCommonReturnDomain();
        HashMap map = new HashMap();
        this.smzbsSqlMapClientTemplate.queryForList("pNsfwYjJs", map);
        String code = (String)map.get("code");
        String mess = (String)map.get("mess");
        returnDomain.setCode(code);
        returnDomain.setMess(mess);
        return returnDomain;
    }
}
