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

import com.hst.framework.constants.WebConstants;
import com.hst.framework.dao.BaseDao;
import com.hst.framework.service.BaseService;
import com.hst.task.dao.JhsjTsDaoImp;
import com.hst.task.domain.SqlScriptData;
import com.hst.task.domain.TaskData;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;

@Service
public class JhsjTsService
implements BaseService {
    private BaseDao dao;

    public BaseDao getDao(String daoName) {
        this.dao = (BaseDao)WebConstants.WEB_APP_CONTEXT.getBean(daoName);
        return this.dao;
    }

    public List<TaskData> queryTaskList(String csbz) throws Exception {
        return ((JhsjTsDaoImp)this.getDao("jhsjTsDaoImp")).queryTaskList(csbz);
    }

    public void doExecuteSqlScript() throws Exception {
        List<SqlScriptData> dataList = ((JhsjTsDaoImp)this.getDao("jhsjTsDaoImp")).querySqlScriptList();
        for (SqlScriptData data : dataList) {
            Map<String, Object> map = ((JhsjTsDaoImp)this.getDao("jhsjTsDaoImp")).doExecuteSqlScript(data);
            ((JhsjTsDaoImp)this.getDao("jhsjTsDaoImp")).doExecuteSqlScriptHxcl(data, map);
        }
    }
}
