122 lines
3.1 KiB
Plaintext
122 lines
3.1 KiB
Plaintext
package kr.co.i4way.cmn.service;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import org.apache.log4j.Logger;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import kr.co.i4way.common.util.FileUtils;
|
|
import kr.co.i4way.cmn.dao.CmnDAO;
|
|
import kr.co.i4way.cmn.model.CmnHdayInfoVo;
|
|
import kr.co.i4way.cmn.model.CmnMenuInfoVo;
|
|
import kr.co.i4way.cmn.model.CmnQuickLinkVo;
|
|
import kr.co.i4way.cmn.model.CmnTreeInfoVo;
|
|
import kr.co.i4way.cmn.model.CmnUserInfoVo;
|
|
|
|
@Service("cmnService")
|
|
public class CmnServiceImpl implements CmnService{
|
|
|
|
Logger log = Logger.getLogger(this.getClass());
|
|
|
|
@Resource(name="cmnDAO")
|
|
private CmnDAO cmnDAO;
|
|
|
|
@Override
|
|
public Map<String, Object> getLoginInfo(CmnUserInfoVo vo) throws Exception {
|
|
return cmnDAO.getLoginInfo(vo);
|
|
}
|
|
|
|
@Override
|
|
public List<Map<String,Object>> getTreeInfo(String userGrade) throws Exception {
|
|
return cmnDAO.getTreeInfo(userGrade);
|
|
}
|
|
|
|
@Override
|
|
public List<Map<String,Object>> getTreeInfo_grid(String userGrade) throws Exception {
|
|
return cmnDAO.getTreeInfo_grid(userGrade);
|
|
}
|
|
|
|
@Override
|
|
public List<Map<String,Object>> getTreeInfo_quickLink(String userGrade) throws Exception {
|
|
return cmnDAO.getTreeInfo_quickLink(userGrade);
|
|
}
|
|
|
|
@Override
|
|
public ArrayList getQuickLinkList(String userid) throws Exception {
|
|
return cmnDAO.getQuickLinkList(userid);
|
|
}
|
|
|
|
@Override
|
|
public ArrayList getComCodeList(String userid) throws Exception {
|
|
return cmnDAO.getComCodeList(userid);
|
|
}
|
|
|
|
@Override
|
|
public ArrayList selectUserList() throws Exception {
|
|
return cmnDAO.selectUserList();
|
|
}
|
|
|
|
@Override
|
|
public ArrayList selectAgentList() throws Exception {
|
|
return cmnDAO.selectAgentList();
|
|
}
|
|
|
|
@Override
|
|
public ArrayList selectCodeList(String div_cd, String prnt_cd) throws Exception {
|
|
return cmnDAO.selectCodeList(div_cd, prnt_cd);
|
|
}
|
|
|
|
@Override
|
|
public void insertUserList(CmnUserInfoVo cmnuserinfovo) throws Exception {
|
|
cmnDAO.insertUserList(cmnuserinfovo);
|
|
}
|
|
@Override
|
|
public void updateUserList(CmnUserInfoVo cmnuserinfovo) throws Exception {
|
|
cmnDAO.updateUserList(cmnuserinfovo);
|
|
}
|
|
|
|
@Override
|
|
public void updateTreeData(CmnTreeInfoVo cmntreeinfovo) throws Exception {
|
|
cmnDAO.updateTreeData(cmntreeinfovo);
|
|
}
|
|
|
|
@Override
|
|
public void deleteUserList(CmnUserInfoVo cmnuserinfovo) throws Exception {
|
|
cmnDAO.deleteUserList(cmnuserinfovo);
|
|
}
|
|
|
|
@Override
|
|
public ArrayList selectHdayList() throws Exception {
|
|
return cmnDAO.selectHdayList();
|
|
}
|
|
|
|
@Override
|
|
public void insertHdayList(CmnHdayInfoVo cmnhdayinfovo) throws Exception {
|
|
cmnDAO.insertHdayList(cmnhdayinfovo);
|
|
}
|
|
@Override
|
|
public void updateHdayList(CmnHdayInfoVo cmnhdayinfovo) throws Exception {
|
|
cmnDAO.updateHdayList(cmnhdayinfovo);
|
|
}
|
|
|
|
@Override
|
|
public void deleteHdayList(CmnHdayInfoVo cmnhdayinfovo) throws Exception {
|
|
cmnDAO.deleteHdayList(cmnhdayinfovo);
|
|
}
|
|
|
|
@Override
|
|
public void updateQuickLink(CmnQuickLinkVo cmnquicklinkvo) throws Exception {
|
|
cmnDAO.updateQuickLink(cmnquicklinkvo);
|
|
// TODO Auto-generated method stub
|
|
|
|
}
|
|
|
|
@Override
|
|
public Map getAgentStatus(String agent_id) throws Exception {
|
|
return cmnDAO.getAgentStatus(agent_id);
|
|
}
|
|
}
|