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

import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
import org.springframework.stereotype.Repository;

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

@Repository("bapInterfaceProcDao")
@SuppressWarnings({"deprecation","unchecked"})
public class BapInterfaceProcDao extends SqlMapClientTemplateDao {

   public int selectListCountBatch(Map<String, Object> paramMap) {
        return (Integer) this.template.queryForObject("BapInterfaceProc.selectListCountBatch", paramMap);
    }
    public List<Map<String, Object>> selectListBatch(Map<String, Object> paramMap) {
        return this.template.queryForList("BapInterfaceProc.selectListBatch", paramMap);
    }
    
    public List<Map<String, Object>> selectAuthAppCode(Map<String, Object> paramMap) {
        return this.template.queryForList("BapInterfaceProc.selectAuthAppCode", paramMap);
    }

    public Map<String, Object> selectDetailBatch(Map<String, Object> paramMap) {
        return (Map<String, Object>) this.template.queryForObject("BapInterfaceProc.selectDetailBatch", paramMap);
    }
    
   public void insertBJ01(Map<String, Object> paramMap) throws Exception{
      this.template.insert("BapInterfaceProc.insertBJ01", paramMap);
   }

   public void generateSequence(Map<String, Object> paramMap) throws Exception{
      this.template.insert("BapInterfaceProc.generateSequence", paramMap);
   }
   
   public String selectSequence(Map<String, Object> paramMap) throws Exception{
      return (String)this.template.queryForObject("BapInterfaceProc.selectSequence", paramMap);
   }

   public int selectCountBJ01(Map<String, Object> paramMap) throws Exception{
      return (Integer)this.template.queryForObject("BapInterfaceProc.selectCountBJ01", paramMap);
   }
   
   public void updateBJ01(Map<String, Object> paramMap) throws Exception{
      this.template.update("BapInterfaceProc.updateBJ01", paramMap);        
   }
   
   public void deleteBJ01(Map<String, Object> paramMap) throws Exception{
      this.template.delete("BapInterfaceProc.deleteBJ01", paramMap);
   }
   
   public String selectBzwkDstCd(Map<String, Object> paramMap) throws Exception{
      return (String)this.template.queryForObject("BapInterfaceProc.selectBzwkDstCd", paramMap);
   }
}
