/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  org.apache.log4j.Logger
 *  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.framework.common.HstSqlMapClientTemplate;
import com.hst.framework.constants.WebConstants;
import com.hst.framework.dao.BaseDao;
import com.hst.task.domain.ApiUrlData;
import com.hst.task.domain.DsBsdtDybDto;
import com.hst.task.domain.JhxtBsdtTbsjDomain;
import com.hst.task.domain.JhxxData;
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.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

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

    @Transactional(propagation=Propagation.REQUIRED, value="myTransactionManager_smzbs")
    public List<JhxxData> doGetJhxtJhxxList() throws Exception {
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("bsdt_djxh", "");
        map.put("rows", "9999");
        map.put("page", "1");
        ArrayList<JhxxData> dataList = new ArrayList();
        dataList = this.smzbsSqlMapClientTemplate.queryForList("jhxtGetJhxxList", map);
        return dataList;
    }

    public void doUpdateBsdtTbsj(JhxtBsdtTbsjDomain domain) throws Exception {
        this.sqlMapClientTemplate.delete("deleteNsfwJhBsdtTbsjByKey", domain);
        this.sqlMapClientTemplate.delete("insertNsfwJhBsdtTbsjByKey", domain);
    }

    public List<DsBsdtDybDto> queryBsdtDsDygx() throws Exception {
        return this.sqlMapClientTemplate.queryForList("queryBsdtDsDygx");
    }

    public List<ApiUrlData> doInitApiUrl() throws Exception {
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("bsdt_djxh", WebConstants.SMZ_RXBD_BSDT_DJXH);
        ArrayList<ApiUrlData> dataList = new ArrayList();
        this.sqlMapClientTemplate.queryForObjectByCurr("pNsfwJhxtGetApiUrl", "dataList", map);
        dataList = (List)map.get("dataList");
        return dataList;
    }
}
