package com.eactive.eai.rms.bap.manage.work.inst;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;

@Repository("bapSystemInstDao")
@SuppressWarnings({"deprecation","unchecked"})
public class BapSystemInstDao extends SqlMapClientTemplateDao {

    public int selectListCount(HashMap<String, Object> param) throws Exception {
        return (Integer)template.queryForObject("BapSystemInst.selectListCount", param);
    }

    public List<Map<String, Object>> selectList(HashMap<String, Object> param) throws Exception {
        return (List<Map<String, Object>>)template.queryForList("BapSystemInst.selectList", param);
    }

    public HashMap<String, Object> selectDetail(HashMap<String, Object> param) throws Exception {
        return (HashMap<String, Object>)template.queryForObject("BapSystemInst.selectDetail", param);
    }
    public List<Map<String, Object>> selectDetailSysconn(HashMap<String, Object> param) throws Exception {
        return (List<Map<String, Object>>)template.queryForList("BapSystemInst.detailSysconn", param);
    }
    public List<Map<String, Object>> getProps(HashMap<String, Object> param) throws Exception {
        return (List<Map<String, Object>>)template.queryForList("BapSystemInst.getProps", param);
    }

    public List<Map<String, Object>> getPrcssRule(HashMap<String, Object> param) throws Exception {
        return (List<Map<String, Object>>)template.queryForList("BapSystemInst.getPrcssRule", param);
    }

    public List<Map<String, Object>> getAdaptorGroup() throws Exception {
        return (List<Map<String, Object>>)template.queryForList("BapSystemInst.getAdaptorGroup", new HashMap<String, Object>());
    }

    public List<Map<String, Object>> getAdaptor(HashMap<String, Object> paramMap) throws Exception {
        return (List<Map<String, Object>>)template.queryForList("BapSystemInst.getAdaptor", paramMap);
    }



    public void insert(HashMap<String, Object> paramMap) throws Exception{
        this.template.insert("BapSystemInst.insert", paramMap);
    }

    public void insertSysconn(HashMap<String, Object> paramMap) throws Exception{
        this.template.insert("BapSystemInst.insertSysconn", paramMap);
    }



    public void insertPropInfo(HashMap<String, Object> paramMap) throws Exception{
        this.template.insert("BapSystemInst.insertPropInfo", paramMap);
    }

    public void update(HashMap<String, Object> paramMap) throws Exception{
        this.template.update("BapSystemInst.update", paramMap);
    }

    public void delete(HashMap<String, Object> paramMap) throws Exception{
        this.template.delete("BapSystemInst.delete", paramMap);
    }

    public void deleteSysconn(HashMap<String, Object> paramMap) throws Exception{
        this.template.delete("BapSystemInst.deleteSysconn", paramMap);
    }


    public void deletePropInfo(HashMap<String, Object> paramMap) throws Exception{
        this.template.delete("BapSystemInst.deletePropInfo", paramMap);
    }

    public List<Map<String, Object>> selectBjobMsgDstcd(HashMap<String, Object> param) throws Exception {
        return (List<Map<String, Object>>)template.queryForList("BapSystemInst.selectBjobMsgDstcd", param);
    }

    public List<Map<String, Object>> selectOsidInstiDstcd(HashMap<String, Object> param) throws Exception {
        return (List<Map<String, Object>>)template.queryForList("BapSystemInst.selectOsidInstiDstcd", param);
    }

    public List<Map<String, Object>> selectBjobPtrnDstcd(HashMap<String, Object> param) throws Exception {
        return (List<Map<String, Object>>)template.queryForList("BapSystemInst.selectBjobPtrnDstcd", param);
    }
}