init
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup;
|
||||
|
||||
public class AlreadyBackupException extends BackupException {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public AlreadyBackupException() {
|
||||
super();
|
||||
}
|
||||
|
||||
public AlreadyBackupException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public AlreadyBackupException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
|
||||
public AlreadyBackupException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup;
|
||||
|
||||
public class BackupException extends RuntimeException {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public BackupException() {
|
||||
super();
|
||||
}
|
||||
|
||||
public BackupException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public BackupException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public BackupException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.onl.common.util.DateUtil;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.service.DailyBackupService;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.service.MonthlyBackupService;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.service.NewLogDailyBackupService;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : dailyBackupTest
|
||||
* </pre>
|
||||
*
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.4 $
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Controller
|
||||
public class BackupTestController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("dailyBackupService")
|
||||
private DailyBackupService dailyBackupService ;
|
||||
|
||||
@Autowired
|
||||
@Qualifier("monthlyBackupService")
|
||||
private MonthlyBackupService monthlyBackupService ;
|
||||
|
||||
@Autowired
|
||||
@Qualifier("newLogDailyBackupService")
|
||||
private NewLogDailyBackupService newLogDailyBackupService ;
|
||||
|
||||
@RequestMapping("/backup/excute/day.do")
|
||||
public ModelAndView DayHandleRequest(HttpServletRequest request,
|
||||
HttpServletResponse response,String day,String service) throws Exception {
|
||||
|
||||
try {
|
||||
//DataSourceType d = DataSourceTypeManager.getDataSourceType(service);
|
||||
if (day == null){
|
||||
// dailyBackupService.backup(DateUtil.getDate(-1), d);
|
||||
dailyBackupService.doAction(DateUtil.getDate(-1), service);
|
||||
}else{
|
||||
// dailyBackupService.backup(day, d);//20121212 입력한 일을 통계낸다
|
||||
dailyBackupService.doAction(day, service);//20121212 입력한 일을 통계낸다
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("DayHandleRequest Error", e);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
@RequestMapping("/backup/excute/month.do")
|
||||
public ModelAndView monthHandleRequest(HttpServletRequest request,
|
||||
HttpServletResponse response,String month) throws Exception {
|
||||
try {
|
||||
if (month == null){
|
||||
// monthlyBackupService.backup(DateUtil.getDate());
|
||||
monthlyBackupService.doAction(DateUtil.getDate());
|
||||
}else{
|
||||
// monthlyBackupService.backup(month);//201212 입력한 달을 통계낸다
|
||||
monthlyBackupService.doAction(month);//201212 입력한 달을 통계낸다
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("monthHandleRequest Error", e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@RequestMapping("/backup/excute/dayForNewLog.do")
|
||||
public ModelAndView DayForNewLogHandleRequest(HttpServletRequest request,
|
||||
HttpServletResponse response,String day,String service) throws Exception {
|
||||
|
||||
try {
|
||||
if (day == null){
|
||||
newLogDailyBackupService.doAction(DateUtil.getDate(-1), service);
|
||||
}else{
|
||||
newLogDailyBackupService.doAction(day, service);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("DayHandleRequest Error", e);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup;
|
||||
|
||||
public class DuplicateBackupException extends RuntimeException {
|
||||
|
||||
public DuplicateBackupException() {
|
||||
super();
|
||||
}
|
||||
|
||||
public DuplicateBackupException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public DuplicateBackupException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public DuplicateBackupException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup.dao;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.orm.ibatis.SqlMapClientCallback;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
import com.eactive.eai.rms.common.util.CommonUtil;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.vo.Tseaist02VO;
|
||||
import com.ibatis.sqlmap.client.SqlMapExecutor;
|
||||
|
||||
/**
|
||||
* 사용목적 : Daily Backup에서 실행 하는 DAO<br>
|
||||
* 사용법 : <br>
|
||||
* 작성 날짜 :
|
||||
* @author 박기섭
|
||||
* @version $Revision: 1.5 $
|
||||
*/
|
||||
@Repository
|
||||
public class DailyBackupDAO extends SqlMapClientTemplateDao {
|
||||
/**
|
||||
* Logger for this class
|
||||
*/
|
||||
private static final Logger logger = Logger.getLogger(DailyBackupDAO.class);
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Set<Tseaist02VO> findDailyTseaist02(String yyyyMMdd) throws Exception {
|
||||
Map<String, Object> paramMap = new HashMap<String, Object>();
|
||||
paramMap.put("date", yyyyMMdd);
|
||||
paramMap.put("tableName", CommonUtil.getLogTable(yyyyMMdd, true));
|
||||
|
||||
List<Tseaist02VO> hourlyList = new ArrayList<Tseaist02VO>();
|
||||
|
||||
List<Tseaist02VO> procList = this.template.queryForList("DailyBackup.findDailyProcData", paramMap);
|
||||
|
||||
List<Tseaist02VO> errorList = this.template.queryForList("DailyBackup.findDailyErrorData", paramMap);
|
||||
|
||||
if (procList != null && procList.size() > 0) {
|
||||
hourlyList.addAll(procList);
|
||||
}
|
||||
|
||||
if (errorList != null && errorList.size() > 0) {
|
||||
hourlyList.addAll(errorList);
|
||||
}
|
||||
|
||||
for (Tseaist02VO vo : hourlyList) {
|
||||
vo.toHourlyValue();
|
||||
}
|
||||
|
||||
Set<Tseaist02VO> dailySet = merge(hourlyList);
|
||||
|
||||
return dailySet;
|
||||
}
|
||||
|
||||
public Set<Tseaist02VO> merge(List<Tseaist02VO> hourlyList) throws Exception {
|
||||
|
||||
// proc list의 list와 동일 한 날짜의 데이터가 있는지 확인 한다.
|
||||
Set<Tseaist02VO> dailySet = new HashSet<Tseaist02VO>();
|
||||
|
||||
for (Tseaist02VO vo : hourlyList) {
|
||||
if (dailySet.contains(vo)) {
|
||||
for (Tseaist02VO dailyVo : dailySet) {
|
||||
if (dailyVo.equals(vo)) {
|
||||
dailyVo.merge(vo);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
dailySet.add(vo);
|
||||
}
|
||||
}
|
||||
return dailySet;
|
||||
}
|
||||
|
||||
public int insertDailyBackupData(final String date,
|
||||
final Set<Tseaist02VO> list) throws Exception{
|
||||
Integer batchCount = (Integer) this.template.execute(new SqlMapClientCallback() {
|
||||
public Object doInSqlMapClient(SqlMapExecutor executor)
|
||||
throws SQLException {
|
||||
executor.startBatch();
|
||||
|
||||
for (Tseaist02VO vo : list) {
|
||||
vo.setStatcYmd(date);
|
||||
executor.insert("DailyBackup.insertDailyData", vo);
|
||||
}
|
||||
|
||||
return executor.executeBatch();
|
||||
}
|
||||
});
|
||||
|
||||
if (logger.isInfoEnabled()) {
|
||||
logger.info("총 " + list.size()
|
||||
+ "의 크기를 가진 List<Tseaist02VO> 를 저장 하여 " + batchCount + " 개의 배치 작업 결과를 리턴 받았습니다. ");
|
||||
}
|
||||
|
||||
return batchCount;
|
||||
}
|
||||
|
||||
public void deleteDailBackupData(final String date) throws Exception{
|
||||
Map<String, Object> paramMap = new HashMap<String, Object>();
|
||||
paramMap.put("date", date);
|
||||
template.delete("DailyBackup.deleteDailyData", paramMap);
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
public BigDecimal selectLogCount(String yyyyMMdd) throws Exception {
|
||||
Map<String, Object> paramMap = new HashMap<String, Object>();
|
||||
paramMap.put("date", yyyyMMdd);
|
||||
paramMap.put("tableName", CommonUtil.getLogTable(yyyyMMdd, true));
|
||||
|
||||
return (BigDecimal) this.template.queryForObject("DailyBackup.selectLogCount", paramMap);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup.dao;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.orm.ibatis.SqlMapClientCallback;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.vo.Tseaist03VO;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.vo.Tseaist04VO;
|
||||
import com.ibatis.sqlmap.client.SqlMapExecutor;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : 박기섭
|
||||
* @version : $Revision: 1.4 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="monthlyBackupDAO"
|
||||
* @spring.property name="dataSource"
|
||||
* ref="dataSource"
|
||||
*/
|
||||
@Repository("monthlyBackupDAO")
|
||||
public class MonthlyBackupDAO extends SqlMapClientTemplateDao {
|
||||
/**
|
||||
* Default Logger
|
||||
*/
|
||||
protected final Logger logger = Logger.getLogger(getClass());
|
||||
|
||||
public List findMonthlyTseaist03(String month) {
|
||||
List<Tseaist03VO> al = new ArrayList<Tseaist03VO>();
|
||||
try{
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("month", month);
|
||||
|
||||
al = template.queryForList("MonthlyBackup.findMonthlyTseaist03", paramMap);
|
||||
}catch(DataAccessException e){
|
||||
logger.error("findMonthlyTseaist03 error", e);
|
||||
}
|
||||
return al;
|
||||
}
|
||||
public void deleteMonthlyData(String month) {
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("month", month);
|
||||
template.delete("MonthlyBackup.deleteMonthlyData", paramMap);
|
||||
}
|
||||
|
||||
public void insertMonthlyBackupData(final List list ) throws Exception {
|
||||
try {
|
||||
Integer batchCount = (Integer) this.template.execute(new SqlMapClientCallback() {
|
||||
public Object doInSqlMapClient(SqlMapExecutor executor)
|
||||
throws SQLException {
|
||||
executor.startBatch();
|
||||
for (Iterator it = list.iterator(); it.hasNext();) {
|
||||
Tseaist03VO vo = (Tseaist03VO) it.next();
|
||||
executor.insert("MonthlyBackup.insertMonthlyBackupData", vo);
|
||||
}
|
||||
return executor.executeBatch();
|
||||
}
|
||||
});
|
||||
|
||||
if (logger.isInfoEnabled()) {
|
||||
logger.info("총 " + list.size()
|
||||
+ "의 크기를 가진 List<Tseaist03VO> 를 저장 하여 " + batchCount + " 개의 배치 작업 결과를 리턴 받았습니다. ");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
public List findYearlyTseaist04(String year ) {
|
||||
List<Tseaist04VO> al = new ArrayList<Tseaist04VO>();
|
||||
try{
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("year", year);
|
||||
|
||||
al = template.queryForList("MonthlyBackup.findYearlyTseaist04", paramMap);
|
||||
} catch (DataAccessException e) {
|
||||
logger.error("findYearlyTseaist04 error", e);
|
||||
}
|
||||
return al;
|
||||
}
|
||||
|
||||
public void insertYearlyBackupData(final List list, String yyyy) throws Exception {
|
||||
try {
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("year", yyyy);
|
||||
|
||||
template.delete("MonthlyBackup.deleteTseaist04", paramMap);
|
||||
|
||||
Integer batchCount = (Integer) this.template.execute(new SqlMapClientCallback() {
|
||||
public Object doInSqlMapClient(SqlMapExecutor executor)
|
||||
throws SQLException {
|
||||
executor.startBatch();
|
||||
for (Iterator it = list.iterator(); it.hasNext();) {
|
||||
Tseaist04VO vo = (Tseaist04VO) it.next();
|
||||
executor.insert("MonthlyBackup.insertYearlyTseaist04", vo);
|
||||
}
|
||||
return executor.executeBatch();
|
||||
}
|
||||
});
|
||||
logger.debug("MonthlyBackup] batchCount=" + batchCount);
|
||||
|
||||
} catch (Exception e) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
public int getBackupCount(String month) {
|
||||
//DataSourceType dt = DataSourceContextHolder.getDataSourceType();
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("month", month);
|
||||
|
||||
return (Integer) template.queryForObject("MonthlyBackup.getBackupCount", paramMap);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup.dao;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
import com.eactive.eai.rms.common.util.CommonUtil;
|
||||
|
||||
/**
|
||||
* 사용목적 : New Log Daily Backup에서 실행 하는 DAO<br>
|
||||
* 사용법 : <br>
|
||||
* 작성 날짜 :
|
||||
* @author
|
||||
* @version
|
||||
*/
|
||||
@Repository
|
||||
public class NewLogDailyBackupDAO extends SqlMapClientTemplateDao {
|
||||
/**
|
||||
* Logger for this class
|
||||
*/
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public void insert(HashMap paramMap) throws Exception {
|
||||
template.insert("NewLogDailyBackup.insert", paramMap);
|
||||
}
|
||||
|
||||
|
||||
public void delete(HashMap paramMap) throws Exception{
|
||||
template.delete("NewLogDailyBackup.delete", paramMap);
|
||||
}
|
||||
|
||||
public BigDecimal selectLogCount(String yyyyMMdd) throws Exception {
|
||||
Map<String, Object> paramMap = new HashMap<String, Object>();
|
||||
paramMap.put("date", yyyyMMdd);
|
||||
paramMap.put("tableName", CommonUtil.getLogTable(yyyyMMdd, true));
|
||||
|
||||
return (BigDecimal) this.template.queryForObject("NewLogDailyBackup.selectLogCount", paramMap);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup.dao;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import org.springframework.dao.IncorrectResultSizeDataAccessException;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
import com.eactive.eai.rms.common.datasource.DataSourceContextHolder;
|
||||
import com.eactive.eai.rms.common.datasource.DataSourceType;
|
||||
import com.eactive.eai.rms.common.datasource.SpecifiedDataSourceExecutor;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.vo.Tseaist01VO;
|
||||
|
||||
@Repository
|
||||
public class Tseaist01DAO extends SqlMapClientTemplateDao {
|
||||
|
||||
public Tseaist01VO findTseaist01(String date, String statcJobCyclDstcd) {
|
||||
Tseaist01VO result = new Tseaist01VO();
|
||||
DataSourceType dt = DataSourceContextHolder.getDataSourceType();
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("statcJobYmd", date);
|
||||
paramMap.put("statcJobCyclDstcd", statcJobCyclDstcd);
|
||||
|
||||
try {
|
||||
result = new SpecifiedDataSourceExecutor<Tseaist01VO>(dt) {
|
||||
protected Tseaist01VO doExecute() throws Exception {
|
||||
return (Tseaist01VO)template.queryForObject("Tseaist01.findTseaist01", paramMap);
|
||||
}
|
||||
}.execute();
|
||||
} catch (IncorrectResultSizeDataAccessException e) {
|
||||
return null;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public void insertTseaist01(String date, String statcJobCyclDstcd,
|
||||
String statcJobStartHMS, String statcJobEndHMS, String sucssYn,
|
||||
String errMsg) {
|
||||
DataSourceType dt = DataSourceContextHolder.getDataSourceType();
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("statcJobYmd", date);
|
||||
paramMap.put("statcJobCyclDstcd", statcJobCyclDstcd);
|
||||
paramMap.put("statcJobStartHMS", statcJobStartHMS);
|
||||
paramMap.put("statcJobEndHMS", statcJobEndHMS);
|
||||
paramMap.put("sucssYn", sucssYn);
|
||||
paramMap.put("errMsg", errMsg);
|
||||
|
||||
new SpecifiedDataSourceExecutor<Integer>(dt) {
|
||||
protected Integer doExecute() throws Exception {
|
||||
return (Integer)template.insert("Tseaist01.insertTseaist01", paramMap);
|
||||
}
|
||||
}.execute();
|
||||
}
|
||||
|
||||
public void insertTseaist01(Tseaist01VO tseaist01VO) {
|
||||
insertTseaist01(tseaist01VO.getStatcJobYmd(),
|
||||
tseaist01VO.getStatcJobCyclDstcd(),
|
||||
tseaist01VO.getStatcJobStartHMS(), tseaist01VO.getStatcJobEndHMS(),
|
||||
tseaist01VO.getSucssYn(), tseaist01VO.getErrMsg());
|
||||
}
|
||||
|
||||
public void updateTseaist01(String date, String statcJobCyclDstcd,
|
||||
String statcJobStartHMS, String statcJobEndHMS, String sucssYn,
|
||||
String errMsg) {
|
||||
DataSourceType dt = DataSourceContextHolder.getDataSourceType();
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("statcJobYmd", date);
|
||||
paramMap.put("statcJobCyclDstcd", statcJobCyclDstcd);
|
||||
paramMap.put("statcJobStartHMS", statcJobStartHMS);
|
||||
paramMap.put("statcJobEndHMS", statcJobEndHMS);
|
||||
paramMap.put("sucssYn", sucssYn);
|
||||
paramMap.put("errMsg", errMsg);
|
||||
|
||||
new SpecifiedDataSourceExecutor<Integer>(dt) {
|
||||
protected Integer doExecute() throws Exception {
|
||||
return (Integer)template.update("Tseaist01.updateTseaist01", paramMap);
|
||||
}
|
||||
}.execute();
|
||||
}
|
||||
|
||||
public void updateTseaist01(Tseaist01VO tseaist01VO) {
|
||||
updateTseaist01(tseaist01VO.getStatcJobYmd(),
|
||||
tseaist01VO.getStatcJobCyclDstcd(),
|
||||
tseaist01VO.getStatcJobStartHMS(), tseaist01VO.getStatcJobEndHMS(),
|
||||
tseaist01VO.getSucssYn(), tseaist01VO.getErrMsg());
|
||||
|
||||
}
|
||||
|
||||
public void deleteTseaist01(String date, String statcJobCyclDstcd) {
|
||||
DataSourceType dt = DataSourceContextHolder.getDataSourceType();
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("statcJobYmd", date);
|
||||
paramMap.put("statcJobCyclDstcd", statcJobCyclDstcd);
|
||||
|
||||
new SpecifiedDataSourceExecutor<Integer>(dt) {
|
||||
protected Integer doExecute() throws Exception {
|
||||
return (Integer)template.delete("Tseaist01.deleteTseaist01", paramMap);
|
||||
}
|
||||
}.execute();
|
||||
}
|
||||
|
||||
public void deleteAllMonthlyData(String month) {
|
||||
|
||||
DataSourceType dt = DataSourceContextHolder.getDataSourceType();
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("month", month);
|
||||
|
||||
new SpecifiedDataSourceExecutor<Integer>(dt) {
|
||||
protected Integer doExecute() throws Exception {
|
||||
return (Integer)template.delete("Tseaist01.deleteTSEAIST01", paramMap);
|
||||
}
|
||||
}.execute();
|
||||
new SpecifiedDataSourceExecutor<Integer>(dt) {
|
||||
protected Integer doExecute() throws Exception {
|
||||
return (Integer)template.delete("Tseaist01.deleteTSEAIST02", paramMap);
|
||||
}
|
||||
}.execute();
|
||||
new SpecifiedDataSourceExecutor<Integer>(dt) {
|
||||
protected Integer doExecute() throws Exception {
|
||||
return (Integer)template.delete("Tseaist01.deleteTSEAIST03", paramMap);
|
||||
}
|
||||
}.execute();
|
||||
new SpecifiedDataSourceExecutor<Integer>(dt) {
|
||||
protected Integer doExecute() throws Exception {
|
||||
return (Integer)template.delete("Tseaist01.deleteTSEAIST04", paramMap);
|
||||
}
|
||||
}.execute();
|
||||
}
|
||||
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup.service;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.backup.dao.Tseaist01DAO;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.vo.Tseaist01VO;
|
||||
|
||||
@Service("backupResultService")
|
||||
public class BackupResultService {
|
||||
/**
|
||||
* Logger for this class
|
||||
*/
|
||||
|
||||
@Autowired
|
||||
private Tseaist01DAO tseaist01DAO;
|
||||
|
||||
|
||||
public void requiresNewInsertBackupResult(String date, String statcJobCyclDstcd, String statcJobStartHMS, String statcJobEndHMS, String sucssYn, String errMsg) {
|
||||
Tseaist01VO tseaist01VO = tseaist01DAO.findTseaist01(date, statcJobCyclDstcd);
|
||||
|
||||
if (tseaist01VO != null) {
|
||||
tseaist01DAO.updateTseaist01(date, statcJobCyclDstcd,
|
||||
statcJobStartHMS, statcJobEndHMS, sucssYn, errMsg);
|
||||
} else {
|
||||
tseaist01DAO.insertTseaist01(date, statcJobCyclDstcd,
|
||||
statcJobStartHMS, statcJobEndHMS, sucssYn, errMsg);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup.service;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.quartz.Job;
|
||||
import org.quartz.JobExecutionContext;
|
||||
import org.quartz.JobExecutionException;
|
||||
import org.quartz.SchedulerException;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
|
||||
import com.eactive.eai.rms.onl.common.util.DateUtil;
|
||||
|
||||
public class DailyBackupJob implements Job {
|
||||
/**
|
||||
* Logger for this class
|
||||
*/
|
||||
private static final Logger logger = Logger.getLogger(DailyBackupJob.class);
|
||||
|
||||
|
||||
private DailyBackupService dailyBackupService;
|
||||
|
||||
/**
|
||||
* 1. 통계대상 조회
|
||||
* 2. 백업 이력 확인
|
||||
* 3. 없으면 이력 INSERT
|
||||
* 4. TSEAIST02 에 데이터 INSERT
|
||||
* 5. 성공 이력이면 '이미 백업이 정상적으로 처리 되었습니다.' 메세지만 update
|
||||
* 6. 실패면 TSEAIST02 삭제 후 INSERT 결과 UPDATE
|
||||
*
|
||||
*/
|
||||
|
||||
// @ScheduleMethod(concurrent = false, type = ScheduleType.CRON, cronExpression = "0 0 3 * * ?")
|
||||
@Override
|
||||
public void execute(JobExecutionContext context) throws JobExecutionException {
|
||||
//JobKey jobKey = context.getJobDetail().getKey();
|
||||
|
||||
ApplicationContext appContext = null;
|
||||
try {
|
||||
appContext = (ApplicationContext)context.getScheduler().getContext().get("applicationContext");
|
||||
} catch (SchedulerException e) {
|
||||
logger.error("applicationContext get module error",e);
|
||||
return ;
|
||||
}
|
||||
|
||||
dailyBackupService = (DailyBackupService)appContext.getBean("dailyBackupService");
|
||||
|
||||
String date = DateUtil.getDate(-1);
|
||||
dailyBackupService.doAction(date);
|
||||
}
|
||||
|
||||
}
|
||||
+154
@@ -0,0 +1,154 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup.service;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Set;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.eactive.eai.rms.common.base.BaseService;
|
||||
import com.eactive.eai.rms.common.datasource.DataSourceContextHolder;
|
||||
import com.eactive.eai.rms.common.datasource.DataSourceType;
|
||||
import com.eactive.eai.rms.common.datasource.DataSourceTypeManager;
|
||||
import com.eactive.eai.rms.common.util.StringUtils;
|
||||
import com.eactive.eai.rms.onl.common.util.DateUtil;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.AlreadyBackupException;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.BackupException;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.dao.DailyBackupDAO;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.dao.Tseaist01DAO;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.vo.Tseaist01VO;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.vo.Tseaist02VO;
|
||||
|
||||
@Service("dailyBackupService")
|
||||
public class DailyBackupService extends BaseService{
|
||||
/**
|
||||
* Logger for this class
|
||||
*/
|
||||
private static final Logger logger = Logger.getLogger(DailyBackupService.class);
|
||||
|
||||
private static final String STATC_JOB_CYCL_DSTCD = "D";
|
||||
private static final String BACKUP_SUCCESS = "1";
|
||||
private static final String BACKUP_SUCCESS_MESSAGE = "정상";
|
||||
private static final String BACKUP_EMPTY_MESSAGE = "백업할 데이터가 없습니다.";
|
||||
// private static final String BACKUP_ALREADY_MESSAGE = "이미 백업이 정상적으로 처리 되었습니다.";
|
||||
private static final String BACKUP_FAIL = "0";
|
||||
|
||||
@Autowired
|
||||
private DailyBackupDAO dao;
|
||||
|
||||
@Autowired
|
||||
private Tseaist01DAO tseaist01DAO;
|
||||
|
||||
@Autowired
|
||||
private BackupResultService backupResultService;
|
||||
|
||||
public void doAction(final String date){
|
||||
doAction(date,null);
|
||||
}
|
||||
public void doAction(final String date, final String serviceType){
|
||||
//self 로 하는 이유는 proxy를 설정해서 transaction을 삽입하기 위해서
|
||||
//datasource는 transaction이 시작하면 바꿀수 없음.
|
||||
DailyBackupService self =(DailyBackupService)appContext.getBean("dailyBackupService");
|
||||
|
||||
if (logger.isInfoEnabled()){
|
||||
logger.info("Daily Backup Begin date="+date +" serviceType="+serviceType);
|
||||
}
|
||||
|
||||
if(serviceType == null)
|
||||
{
|
||||
for (DataSourceType dataSourceType : DataSourceTypeManager.getOnlineDataSourceTypes())
|
||||
{
|
||||
if(DataSourceTypeManager.APIGW.equals(dataSourceType.getName())) {
|
||||
DataSourceContextHolder.setDataSourceType(dataSourceType);
|
||||
self.backup(date);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DataSourceType dataSourceType = DataSourceTypeManager.getDataSourceType(serviceType);
|
||||
DataSourceContextHolder.setDataSourceType(dataSourceType);
|
||||
self.backup(date);
|
||||
}
|
||||
if (logger.isInfoEnabled()){
|
||||
logger.info("Daily Backup End date="+date+" serviceType="+serviceType);
|
||||
}
|
||||
}
|
||||
public void doDelete(final String date, final String serviceType) throws Exception{
|
||||
if(serviceType == null){
|
||||
throw new Exception("서비스 타입 코드가 존재하지 않습니다.");
|
||||
}
|
||||
if ( BigDecimal.ZERO.compareTo(dao.selectLogCount(date))==0){
|
||||
throw new Exception("소스 데이터가 존재하지 않습니다.");
|
||||
}
|
||||
if (logger.isInfoEnabled()){
|
||||
logger.info("Daily Backup Delete Begin date="+date +" serviceType="+serviceType);
|
||||
}
|
||||
|
||||
DataSourceType dataSourceType = DataSourceTypeManager.getDataSourceType(serviceType);
|
||||
DataSourceContextHolder.setDataSourceType(dataSourceType);
|
||||
|
||||
tseaist01DAO.deleteTseaist01(date, STATC_JOB_CYCL_DSTCD);
|
||||
try {
|
||||
dao.deleteDailBackupData(date);
|
||||
} catch (Exception e) {
|
||||
logger.error("DailyBackUp Data delete fail date ="+ date,e);
|
||||
}
|
||||
if (logger.isInfoEnabled()){
|
||||
logger.info("Daily Backup Delete End date="+date+" serviceType="+serviceType);
|
||||
}
|
||||
}
|
||||
|
||||
public void backup(String date ){
|
||||
|
||||
|
||||
String sucssYn = BACKUP_FAIL;
|
||||
String errMsg = "";
|
||||
String statcJobCyclDstcd = STATC_JOB_CYCL_DSTCD;
|
||||
String statcJobStartHMS = DateUtil.getDateTimeMilliSecound();
|
||||
|
||||
try {
|
||||
|
||||
final Set<Tseaist02VO> list = dao.findDailyTseaist02(date);
|
||||
if (list == null || list.size() < 1) {
|
||||
throw new BackupException(BACKUP_EMPTY_MESSAGE);
|
||||
}
|
||||
|
||||
Tseaist01VO tseaist01VO = tseaist01DAO.findTseaist01(date, statcJobCyclDstcd);
|
||||
|
||||
if (tseaist01VO == null) {
|
||||
// 백업로그 생성
|
||||
backupResultService.requiresNewInsertBackupResult(date, statcJobCyclDstcd, statcJobStartHMS, " ", " ", " ");
|
||||
|
||||
dao.insertDailyBackupData(date, list);
|
||||
sucssYn = BACKUP_SUCCESS;
|
||||
errMsg = BACKUP_SUCCESS_MESSAGE;
|
||||
} else if (BACKUP_FAIL.equals(tseaist01VO.getSucssYn())) {
|
||||
//inboundErrorInfoDao.deleteDailBackupData(date);
|
||||
dao.insertDailyBackupData(date, list);
|
||||
sucssYn = BACKUP_SUCCESS;
|
||||
errMsg = BACKUP_SUCCESS_MESSAGE;
|
||||
} else {
|
||||
logger.info("백업 진행을 중단합니다.");
|
||||
return;
|
||||
}
|
||||
} catch (AlreadyBackupException e) {
|
||||
sucssYn = BACKUP_SUCCESS;
|
||||
errMsg = StringUtils.cutting(e.getMessage(), 2000, "");
|
||||
} catch (BackupException e) { // 백업할 데이터가 없습니다.
|
||||
sucssYn = BACKUP_SUCCESS;
|
||||
errMsg = StringUtils.cutting(e.getMessage(), 2000, "");
|
||||
} catch (Exception e) {
|
||||
sucssYn = BACKUP_FAIL;
|
||||
errMsg = StringUtils.cutting(e.getMessage(), 2000, "");
|
||||
}
|
||||
|
||||
String statcJobEndHMS = DateUtil.getDateTimeMilliSecound();
|
||||
|
||||
backupResultService.requiresNewInsertBackupResult(date, statcJobCyclDstcd, statcJobStartHMS, statcJobEndHMS, sucssYn, errMsg);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup.service;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.quartz.Job;
|
||||
import org.quartz.JobExecutionContext;
|
||||
import org.quartz.JobExecutionException;
|
||||
import org.quartz.SchedulerException;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : Daily Backup의 비즈니스 로직이 담겨져 있다.
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : 박기섭
|
||||
* @version : $Revision: 1.5 $
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Service("monthlyBackupJob")
|
||||
public class MonthlyBackupJob implements Job {
|
||||
|
||||
/**
|
||||
* Logger for this class
|
||||
*/
|
||||
private static final Logger logger = Logger.getLogger(MonthlyBackupJob.class);
|
||||
|
||||
private MonthlyBackupService monthlyBackupService;
|
||||
|
||||
|
||||
// @ScheduleMethod(concurrent = false, type = ScheduleType.CRON, cronExpression = "0 0 4 1 * ?")
|
||||
@Override
|
||||
public void execute(JobExecutionContext context) throws JobExecutionException {
|
||||
// JobKey jobKey = context.getJobDetail().getKey();
|
||||
|
||||
ApplicationContext appContext = null;
|
||||
try {
|
||||
appContext = (ApplicationContext)context.getScheduler().getContext().get("applicationContext");
|
||||
} catch (SchedulerException e) {
|
||||
logger.error("applicationContext get module error",e);
|
||||
return ;
|
||||
}
|
||||
|
||||
monthlyBackupService = (MonthlyBackupService)appContext.getBean("monthlyBackupService");
|
||||
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.add(Calendar.MONTH, -1);
|
||||
Date beforeMonth = cal.getTime();
|
||||
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyyMM");
|
||||
String date = format.format(beforeMonth);
|
||||
|
||||
monthlyBackupService.doAction(date);
|
||||
}
|
||||
}
|
||||
+172
@@ -0,0 +1,172 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.eactive.eai.rms.common.base.BaseService;
|
||||
import com.eactive.eai.rms.common.datasource.DataSourceContextHolder;
|
||||
import com.eactive.eai.rms.common.datasource.DataSourceType;
|
||||
import com.eactive.eai.rms.common.datasource.DataSourceTypeManager;
|
||||
import com.eactive.eai.rms.common.util.StringUtils;
|
||||
import com.eactive.eai.rms.onl.common.util.DateUtil;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.AlreadyBackupException;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.BackupException;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.dao.MonthlyBackupDAO;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.dao.Tseaist01DAO;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.vo.Tseaist01VO;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : Daily Backup의 비즈니스 로직이 담겨져 있다.
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : 박기섭
|
||||
* @version : $Revision: 1.5 $
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Service("monthlyBackupService")
|
||||
public class MonthlyBackupService extends BaseService{
|
||||
|
||||
/**
|
||||
* Logger for this class
|
||||
*/
|
||||
private static final Logger logger = Logger.getLogger(MonthlyBackupService.class);
|
||||
|
||||
private static final String STATC_JOB_CYCL_DSTCD = "M";
|
||||
private static final String BACKUP_SUCCESS = "1";
|
||||
private static final String BACKUP_FAIL = "0";
|
||||
|
||||
@Autowired
|
||||
@Qualifier("monthlyBackupDAO")
|
||||
private MonthlyBackupDAO dao = null;
|
||||
|
||||
@Autowired
|
||||
@Qualifier("tseaist01DAO")
|
||||
private Tseaist01DAO tseaist01DAO = null;
|
||||
|
||||
@Autowired
|
||||
private BackupResultService backupResultService;
|
||||
|
||||
public void doAction(final String date){
|
||||
doAction(date, null);
|
||||
}
|
||||
|
||||
public void doAction(final String date, final String serviceType){
|
||||
//self 로 하는 이유는 proxy를 설정해서 transaction을 삽입하기 위해서
|
||||
//datasource는 transaction이 시작하면 바꿀수 없음.
|
||||
MonthlyBackupService self =(MonthlyBackupService)appContext.getBean("monthlyBackupService");
|
||||
if (logger.isInfoEnabled()){
|
||||
logger.info("Monthly Backup Begin date="+date +" serviceType="+serviceType);
|
||||
}
|
||||
if(serviceType == null)
|
||||
{
|
||||
for (DataSourceType dataSourceType : DataSourceTypeManager.getOnlineDataSourceTypes())
|
||||
{
|
||||
if(DataSourceTypeManager.APIGW.equals(dataSourceType.getName())) {
|
||||
DataSourceContextHolder.setDataSourceType(dataSourceType);
|
||||
self.backup(date);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DataSourceType dataSourceType = DataSourceTypeManager.getDataSourceType(serviceType);
|
||||
DataSourceContextHolder.setDataSourceType(dataSourceType);
|
||||
self.backup(date);
|
||||
}
|
||||
if (logger.isInfoEnabled()){
|
||||
logger.info("Monthly Backup Begin date="+date +" serviceType="+serviceType);
|
||||
}
|
||||
}
|
||||
public void doDelete(final String date, final String serviceType) throws Exception{
|
||||
if(serviceType == null){
|
||||
throw new Exception("서비스 타입 코드가 존재하지 않습니다.");
|
||||
}
|
||||
|
||||
if (logger.isInfoEnabled()){
|
||||
logger.info("Monthly Backup Delete Begin date="+date +" serviceType="+serviceType);
|
||||
}
|
||||
String month = date.substring(0,6);
|
||||
String month00 = month+"00";
|
||||
|
||||
|
||||
DataSourceType dataSourceType = DataSourceTypeManager.getDataSourceType(serviceType);
|
||||
DataSourceContextHolder.setDataSourceType(dataSourceType);
|
||||
tseaist01DAO.deleteTseaist01(month00, STATC_JOB_CYCL_DSTCD);
|
||||
dao.deleteMonthlyData(month);
|
||||
if (logger.isInfoEnabled()){
|
||||
logger.info("Monthly Backup Delete Begin date="+date +" serviceType="+serviceType);
|
||||
}
|
||||
}
|
||||
|
||||
public void backup(String date ){
|
||||
|
||||
String sucssYn = BACKUP_FAIL;
|
||||
String errMsg = "";
|
||||
String statcJobCyclDstcd = STATC_JOB_CYCL_DSTCD;
|
||||
String statcJobStartHMS = DateUtil.getDateTimeMilliSecound();
|
||||
String year = date.substring(0, 4);
|
||||
String month = date.substring(0, 6);
|
||||
String backupDate = month + "00";
|
||||
|
||||
try {
|
||||
//String schemaId = dataSourceType.getSchema();
|
||||
List list = dao.findMonthlyTseaist03(month);
|
||||
if (list == null || list.size() < 1) {
|
||||
throw new BackupException("백업할 데이터가 없습니다.");
|
||||
}
|
||||
|
||||
Tseaist01VO tseaist01VO = findTseaiSt01(backupDate,statcJobCyclDstcd);
|
||||
|
||||
if (tseaist01VO == null) {
|
||||
// 백업로그 생성
|
||||
backupResultService.requiresNewInsertBackupResult(backupDate, statcJobCyclDstcd, statcJobStartHMS, " ", " ", " ");
|
||||
|
||||
dao.insertMonthlyBackupData(list);
|
||||
List yearList = dao.findYearlyTseaist04(year);
|
||||
dao.insertYearlyBackupData(yearList, year);
|
||||
|
||||
sucssYn = BACKUP_SUCCESS;
|
||||
errMsg = "정상";
|
||||
} else if (BACKUP_FAIL.equals(tseaist01VO.getSucssYn())) {
|
||||
dao.insertMonthlyBackupData(list);
|
||||
List yearList = dao.findYearlyTseaist04(year);
|
||||
dao.insertYearlyBackupData(yearList, year);
|
||||
sucssYn = BACKUP_SUCCESS;
|
||||
errMsg = "정상";
|
||||
} else {
|
||||
logger.info("백업 진행을 중단합니다.");
|
||||
return;
|
||||
}
|
||||
} catch (AlreadyBackupException e) {
|
||||
sucssYn = BACKUP_SUCCESS;
|
||||
errMsg = StringUtils.cutting(e.getMessage(), 2000, "");
|
||||
} catch (BackupException e) { // 백업할 데이터가 없습니다.
|
||||
sucssYn = BACKUP_SUCCESS;
|
||||
errMsg = StringUtils.cutting(e.getMessage(), 2000, "");
|
||||
} catch (Exception e) {
|
||||
sucssYn = BACKUP_FAIL;
|
||||
errMsg = StringUtils.cutting(e.getMessage(), 2000, "");
|
||||
}
|
||||
|
||||
String statcJobEndHMS = DateUtil.getDateTimeMilliSecound();
|
||||
|
||||
backupResultService.requiresNewInsertBackupResult(backupDate, statcJobCyclDstcd, statcJobStartHMS, statcJobEndHMS, sucssYn, errMsg);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public Tseaist01VO findTseaiSt01(String date,String statcJobCyclDstcd) {
|
||||
if (date.length() > 6) {
|
||||
date = date.substring(0, 6) + "00";
|
||||
}
|
||||
return tseaist01DAO.findTseaist01(date, statcJobCyclDstcd);
|
||||
|
||||
}
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup.service;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.quartz.Job;
|
||||
import org.quartz.JobExecutionContext;
|
||||
import org.quartz.JobExecutionException;
|
||||
import org.quartz.SchedulerException;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.eactive.eai.rms.onl.common.util.DateUtil;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : New Log Daily Backup의 비즈니스 로직이 담겨져 있다.
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author :
|
||||
* @version :
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Service("newLogDailyBackupJob")
|
||||
public class NewLogDailyBackupJob implements Job {
|
||||
|
||||
/**
|
||||
* Logger for this class
|
||||
*/
|
||||
private static final Logger logger = Logger.getLogger(NewLogDailyBackupJob.class);
|
||||
|
||||
private NewLogDailyBackupService service;
|
||||
|
||||
|
||||
@Override
|
||||
public void execute(JobExecutionContext context) throws JobExecutionException {
|
||||
//JobKey jobKey = context.getJobDetail().getKey();
|
||||
|
||||
ApplicationContext appContext = null;
|
||||
try {
|
||||
appContext = (ApplicationContext)context.getScheduler().getContext().get("applicationContext");
|
||||
} catch (SchedulerException e) {
|
||||
logger.error("applicationContext get module error",e);
|
||||
return ;
|
||||
}
|
||||
|
||||
service = (NewLogDailyBackupService)appContext.getBean("newLogDailyBackupService");
|
||||
|
||||
String date = DateUtil.getDate(-1);
|
||||
service.doAction(date);
|
||||
}
|
||||
}
|
||||
+164
@@ -0,0 +1,164 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup.service;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.HashMap;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.eactive.eai.rms.common.base.BaseService;
|
||||
import com.eactive.eai.rms.common.datasource.DataSourceContextHolder;
|
||||
import com.eactive.eai.rms.common.datasource.DataSourceType;
|
||||
import com.eactive.eai.rms.common.datasource.DataSourceTypeManager;
|
||||
import com.eactive.eai.rms.common.util.CommonUtil;
|
||||
import com.eactive.eai.rms.common.util.StringUtils;
|
||||
import com.eactive.eai.rms.onl.common.util.DateUtil;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.AlreadyBackupException;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.BackupException;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.dao.NewLogDailyBackupDAO;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.dao.Tseaist01DAO;
|
||||
import com.eactive.eai.rms.onl.statistics.backup.vo.Tseaist01VO;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : New Log Daily Backup의 비즈니스 로직이 담겨져 있다.
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author :
|
||||
* @version :
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Service("newLogDailyBackupService")
|
||||
public class NewLogDailyBackupService extends BaseService{
|
||||
|
||||
/**
|
||||
* Logger for this class
|
||||
*/
|
||||
private static final Logger logger = Logger.getLogger(NewLogDailyBackupService.class);
|
||||
|
||||
private static final String STATC_JOB_CYCL_DSTCD = "L";
|
||||
private static final String BACKUP_SUCCESS = "1";
|
||||
private static final String BACKUP_FAIL = "0";
|
||||
|
||||
@Autowired
|
||||
@Qualifier("newLogDailyBackupDAO")
|
||||
private NewLogDailyBackupDAO dao = null;
|
||||
|
||||
@Autowired
|
||||
@Qualifier("tseaist01DAO")
|
||||
private Tseaist01DAO tseaist01DAO = null;
|
||||
|
||||
@Autowired
|
||||
private BackupResultService backupResultService;
|
||||
|
||||
public void doAction(final String date){
|
||||
doAction(date,null);
|
||||
}
|
||||
public void doAction(final String date, final String serviceType){
|
||||
//self 로 하는 이유는 proxy를 설정해서 transaction을 삽입하기 위해서
|
||||
//datasource는 transaction이 시작하면 바꿀수 없음.
|
||||
NewLogDailyBackupService self =(NewLogDailyBackupService)appContext.getBean("newLogDailyBackupService");
|
||||
if (logger.isInfoEnabled()){
|
||||
logger.info("New Log Daily Backup Begin date="+date+" serviceType="+serviceType);
|
||||
}
|
||||
if(serviceType == null)
|
||||
{
|
||||
for (DataSourceType dataSourceType : DataSourceTypeManager.getOnlineDataSourceTypes())
|
||||
{
|
||||
DataSourceContextHolder.setDataSourceType(dataSourceType);
|
||||
self.backup(date);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DataSourceType dataSourceType = DataSourceTypeManager.getDataSourceType(serviceType);
|
||||
DataSourceContextHolder.setDataSourceType(dataSourceType);
|
||||
self.backup(date);
|
||||
|
||||
}
|
||||
if (logger.isInfoEnabled()){
|
||||
logger.info("New Log Daily Backup End date="+date+" serviceType="+serviceType);
|
||||
}
|
||||
}
|
||||
public void doDelete(final String date, final String serviceType) throws Exception{
|
||||
if(serviceType == null){
|
||||
throw new Exception("서비스 타입 코드가 존재하지 않습니다.");
|
||||
}
|
||||
if ( BigDecimal.ZERO.compareTo(dao.selectLogCount(date))==0){
|
||||
throw new Exception("소스 데이터가 존재하지 않습니다.");
|
||||
}
|
||||
if (logger.isInfoEnabled()){
|
||||
logger.info("New Log Daily Backup Delete Begin date="+date+" serviceType="+serviceType);
|
||||
}
|
||||
|
||||
DataSourceType dataSourceType = DataSourceTypeManager.getDataSourceType(serviceType);
|
||||
DataSourceContextHolder.setDataSourceType(dataSourceType);
|
||||
tseaist01DAO.deleteTseaist01(date, STATC_JOB_CYCL_DSTCD);
|
||||
try {
|
||||
dao.delete(new HashMap(){{put("date",date);}});
|
||||
} catch (Exception e) {
|
||||
logger.error("New Log Daily Data delete fail date ="+ date,e);
|
||||
}
|
||||
|
||||
if (logger.isInfoEnabled()){
|
||||
logger.info("New Log Daily Backup Delete End date="+date+" serviceType="+serviceType);
|
||||
}
|
||||
}
|
||||
|
||||
public void backup(String date ){
|
||||
|
||||
String sucssYn = BACKUP_FAIL;
|
||||
String errMsg = "";
|
||||
String statcJobCyclDstcd = STATC_JOB_CYCL_DSTCD;
|
||||
String statcJobStartHMS = DateUtil.getDateTimeMilliSecound();
|
||||
|
||||
try {
|
||||
Tseaist01VO tseaist01VO = tseaist01DAO.findTseaist01(date, statcJobCyclDstcd);
|
||||
|
||||
HashMap<String, Object> paramMap = new HashMap<String, Object>();
|
||||
paramMap.put("date", date);
|
||||
paramMap.put("tableName", CommonUtil.getLogTable(date, true));
|
||||
|
||||
|
||||
if (tseaist01VO == null) {
|
||||
// 백업로그 생성
|
||||
backupResultService.requiresNewInsertBackupResult(date, statcJobCyclDstcd, statcJobStartHMS, " ", " ", " ");
|
||||
//내부일경우 제외 20201015
|
||||
if(!"NSG".equals(DataSourceContextHolder.getDataSourceType().getName())){
|
||||
dao.insert(paramMap);
|
||||
}
|
||||
sucssYn = BACKUP_SUCCESS;
|
||||
errMsg = "정상";
|
||||
} else if (BACKUP_FAIL.equals(tseaist01VO.getSucssYn())) {
|
||||
//내부일경우 제외 20201015
|
||||
if(!"NSG".equals(DataSourceContextHolder.getDataSourceType().getName())){
|
||||
dao.insert(paramMap);
|
||||
}
|
||||
sucssYn = BACKUP_SUCCESS;
|
||||
errMsg = "정상";
|
||||
} else {
|
||||
logger.info("백업 진행을 중단합니다.");
|
||||
return;
|
||||
}
|
||||
} catch (AlreadyBackupException e) {
|
||||
sucssYn = BACKUP_SUCCESS;
|
||||
errMsg = StringUtils.cutting(e.getMessage(), 2000, "");
|
||||
} catch (BackupException e) { // 백업할 데이터가 없습니다.
|
||||
sucssYn = BACKUP_SUCCESS;
|
||||
errMsg = StringUtils.cutting(e.getMessage(), 2000, "");
|
||||
} catch (Exception e) {
|
||||
sucssYn = BACKUP_FAIL;
|
||||
errMsg = StringUtils.cutting(e.getMessage(), 2000, "");
|
||||
}
|
||||
|
||||
String statcJobEndHMS = DateUtil.getDateTimeMilliSecound();
|
||||
|
||||
backupResultService.requiresNewInsertBackupResult(date, statcJobCyclDstcd, statcJobStartHMS, statcJobEndHMS, sucssYn, errMsg);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup.vo;
|
||||
|
||||
public class Tseaist01VO {
|
||||
|
||||
private String statcJobYmd;
|
||||
private String statcJobStartHMS;
|
||||
private String statcJobEndHMS;
|
||||
private String sucssYn;
|
||||
private String errMsg = "확인되지 않은 에러";
|
||||
private String statcJobCyclDstcd;
|
||||
|
||||
private boolean isNew = true;
|
||||
|
||||
public String getErrMsg() {
|
||||
return errMsg;
|
||||
}
|
||||
|
||||
public void setErrMsg(String errMsg) {
|
||||
this.errMsg = errMsg;
|
||||
}
|
||||
|
||||
public String getStatcJobCyclDstcd() {
|
||||
return statcJobCyclDstcd;
|
||||
}
|
||||
|
||||
public void setStatcJobCyclDstcd(String statcJobCyclDstcd) {
|
||||
this.statcJobCyclDstcd = statcJobCyclDstcd;
|
||||
}
|
||||
|
||||
public String getStatcJobEndHMS() {
|
||||
return statcJobEndHMS;
|
||||
}
|
||||
|
||||
public void setStatcJobEndHMS(String statcJobEndHMS) {
|
||||
this.statcJobEndHMS = statcJobEndHMS;
|
||||
}
|
||||
|
||||
public String getStatcJobStartHMS() {
|
||||
return statcJobStartHMS;
|
||||
}
|
||||
|
||||
public void setStatcJobStartHMS(String statcJobStartHMS) {
|
||||
this.statcJobStartHMS = statcJobStartHMS;
|
||||
}
|
||||
|
||||
public String getStatcJobYmd() {
|
||||
return statcJobYmd;
|
||||
}
|
||||
|
||||
public void setStatcJobYmd(String statcJobYmd) {
|
||||
this.statcJobYmd = statcJobYmd;
|
||||
}
|
||||
|
||||
public String getSucssYn() {
|
||||
return sucssYn;
|
||||
}
|
||||
|
||||
public void setSucssYn(String sucssYn) {
|
||||
this.sucssYn = sucssYn;
|
||||
}
|
||||
|
||||
public boolean isNew() {
|
||||
return isNew;
|
||||
}
|
||||
|
||||
public void setNew(boolean backupUpdated) {
|
||||
this.isNew = backupUpdated;
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,894 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup.vo;
|
||||
|
||||
import com.eactive.eai.rms.common.datasource.DataSourceContextHolder;
|
||||
import com.eactive.eai.rms.onl.vo.PersistentVo;
|
||||
|
||||
public class Tseaist03VO implements PersistentVo {
|
||||
private String statcYm;
|
||||
private String eaiBzwkDstcd;
|
||||
private String eaiSvcName;
|
||||
private String intfacPtrnCd;
|
||||
private String chnlMdiaDstcd;
|
||||
private String logPrcssSerno;
|
||||
private String stndMsgUseYn;
|
||||
|
||||
private String eaiSvcDesc;
|
||||
|
||||
private long ddTrsmtNoitm1, ddErrNoitm1;
|
||||
private long ddTrsmtNoitm2, ddErrNoitm2;
|
||||
private long ddTrsmtNoitm3, ddErrNoitm3;
|
||||
private long ddTrsmtNoitm4, ddErrNoitm4;
|
||||
private long ddTrsmtNoitm5, ddErrNoitm5;
|
||||
private long ddTrsmtNoitm6, ddErrNoitm6;
|
||||
private long ddTrsmtNoitm7, ddErrNoitm7;
|
||||
private long ddTrsmtNoitm8, ddErrNoitm8;
|
||||
private long ddTrsmtNoitm9, ddErrNoitm9;
|
||||
private long ddTrsmtNoitm10, ddErrNoitm10;
|
||||
private long ddTrsmtNoitm11, ddErrNoitm11;
|
||||
private long ddTrsmtNoitm12, ddErrNoitm12;
|
||||
private long ddTrsmtNoitm13, ddErrNoitm13;
|
||||
private long ddTrsmtNoitm14, ddErrNoitm14;
|
||||
private long ddTrsmtNoitm15, ddErrNoitm15;
|
||||
private long ddTrsmtNoitm16, ddErrNoitm16;
|
||||
private long ddTrsmtNoitm17, ddErrNoitm17;
|
||||
private long ddTrsmtNoitm18, ddErrNoitm18;
|
||||
private long ddTrsmtNoitm19, ddErrNoitm19;
|
||||
private long ddTrsmtNoitm20, ddErrNoitm20;
|
||||
private long ddTrsmtNoitm21, ddErrNoitm21;
|
||||
private long ddTrsmtNoitm22, ddErrNoitm22;
|
||||
private long ddTrsmtNoitm23, ddErrNoitm23;
|
||||
private long ddTrsmtNoitm24, ddErrNoitm24;
|
||||
private long ddTrsmtNoitm25, ddErrNoitm25;
|
||||
private long ddTrsmtNoitm26, ddErrNoitm26;
|
||||
private long ddTrsmtNoitm27, ddErrNoitm27;
|
||||
private long ddTrsmtNoitm28, ddErrNoitm28;
|
||||
private long ddTrsmtNoitm29, ddErrNoitm29;
|
||||
private long ddTrsmtNoitm30, ddErrNoitm30;
|
||||
private long ddTrsmtNoitm31, ddErrNoitm31;
|
||||
|
||||
private float ddRspnsAvgVal1;
|
||||
private float ddRspnsAvgVal2;
|
||||
private float ddRspnsAvgVal3;
|
||||
private float ddRspnsAvgVal4;
|
||||
private float ddRspnsAvgVal5;
|
||||
private float ddRspnsAvgVal6;
|
||||
private float ddRspnsAvgVal7;
|
||||
private float ddRspnsAvgVal8;
|
||||
private float ddRspnsAvgVal9;
|
||||
private float ddRspnsAvgVal10;
|
||||
private float ddRspnsAvgVal11;
|
||||
private float ddRspnsAvgVal12;
|
||||
private float ddRspnsAvgVal13;
|
||||
private float ddRspnsAvgVal14;
|
||||
private float ddRspnsAvgVal15;
|
||||
private float ddRspnsAvgVal16;
|
||||
private float ddRspnsAvgVal17;
|
||||
private float ddRspnsAvgVal18;
|
||||
private float ddRspnsAvgVal19;
|
||||
private float ddRspnsAvgVal20;
|
||||
private float ddRspnsAvgVal21;
|
||||
private float ddRspnsAvgVal22;
|
||||
private float ddRspnsAvgVal23;
|
||||
private float ddRspnsAvgVal24;
|
||||
private float ddRspnsAvgVal25;
|
||||
private float ddRspnsAvgVal26;
|
||||
private float ddRspnsAvgVal27;
|
||||
private float ddRspnsAvgVal28;
|
||||
private float ddRspnsAvgVal29;
|
||||
private float ddRspnsAvgVal30;
|
||||
private float ddRspnsAvgVal31;
|
||||
|
||||
public String getSchemaId() {
|
||||
return DataSourceContextHolder.getDataSourceType().getSchema();
|
||||
}
|
||||
|
||||
public String getChnlMdiaDstcd() {
|
||||
return chnlMdiaDstcd;
|
||||
}
|
||||
|
||||
public void setChnlMdiaDstcd(String chnlMdiaDstcd) {
|
||||
this.chnlMdiaDstcd = chnlMdiaDstcd;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm1() {
|
||||
return ddErrNoitm1;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm1(long ddErrNoitm1) {
|
||||
this.ddErrNoitm1 = ddErrNoitm1;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm10() {
|
||||
return ddErrNoitm10;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm10(long ddErrNoitm10) {
|
||||
this.ddErrNoitm10 = ddErrNoitm10;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm11() {
|
||||
return ddErrNoitm11;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm11(long ddErrNoitm11) {
|
||||
this.ddErrNoitm11 = ddErrNoitm11;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm12() {
|
||||
return ddErrNoitm12;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm12(long ddErrNoitm12) {
|
||||
this.ddErrNoitm12 = ddErrNoitm12;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm13() {
|
||||
return ddErrNoitm13;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm13(long ddErrNoitm13) {
|
||||
this.ddErrNoitm13 = ddErrNoitm13;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm14() {
|
||||
return ddErrNoitm14;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm14(long ddErrNoitm14) {
|
||||
this.ddErrNoitm14 = ddErrNoitm14;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm15() {
|
||||
return ddErrNoitm15;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm15(long ddErrNoitm15) {
|
||||
this.ddErrNoitm15 = ddErrNoitm15;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm16() {
|
||||
return ddErrNoitm16;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm16(long ddErrNoitm16) {
|
||||
this.ddErrNoitm16 = ddErrNoitm16;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm17() {
|
||||
return ddErrNoitm17;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm17(long ddErrNoitm17) {
|
||||
this.ddErrNoitm17 = ddErrNoitm17;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm18() {
|
||||
return ddErrNoitm18;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm18(long ddErrNoitm18) {
|
||||
this.ddErrNoitm18 = ddErrNoitm18;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm19() {
|
||||
return ddErrNoitm19;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm19(long ddErrNoitm19) {
|
||||
this.ddErrNoitm19 = ddErrNoitm19;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm2() {
|
||||
return ddErrNoitm2;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm2(long ddErrNoitm2) {
|
||||
this.ddErrNoitm2 = ddErrNoitm2;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm20() {
|
||||
return ddErrNoitm20;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm20(long ddErrNoitm20) {
|
||||
this.ddErrNoitm20 = ddErrNoitm20;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm21() {
|
||||
return ddErrNoitm21;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm21(long ddErrNoitm21) {
|
||||
this.ddErrNoitm21 = ddErrNoitm21;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm22() {
|
||||
return ddErrNoitm22;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm22(long ddErrNoitm22) {
|
||||
this.ddErrNoitm22 = ddErrNoitm22;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm23() {
|
||||
return ddErrNoitm23;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm23(long ddErrNoitm23) {
|
||||
this.ddErrNoitm23 = ddErrNoitm23;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm24() {
|
||||
return ddErrNoitm24;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm24(long ddErrNoitm24) {
|
||||
this.ddErrNoitm24 = ddErrNoitm24;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm25() {
|
||||
return ddErrNoitm25;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm25(long ddErrNoitm25) {
|
||||
this.ddErrNoitm25 = ddErrNoitm25;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm26() {
|
||||
return ddErrNoitm26;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm26(long ddErrNoitm26) {
|
||||
this.ddErrNoitm26 = ddErrNoitm26;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm27() {
|
||||
return ddErrNoitm27;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm27(long ddErrNoitm27) {
|
||||
this.ddErrNoitm27 = ddErrNoitm27;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm28() {
|
||||
return ddErrNoitm28;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm28(long ddErrNoitm28) {
|
||||
this.ddErrNoitm28 = ddErrNoitm28;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm29() {
|
||||
return ddErrNoitm29;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm29(long ddErrNoitm29) {
|
||||
this.ddErrNoitm29 = ddErrNoitm29;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm3() {
|
||||
return ddErrNoitm3;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm3(long ddErrNoitm3) {
|
||||
this.ddErrNoitm3 = ddErrNoitm3;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm30() {
|
||||
return ddErrNoitm30;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm30(long ddErrNoitm30) {
|
||||
this.ddErrNoitm30 = ddErrNoitm30;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm31() {
|
||||
return ddErrNoitm31;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm31(long ddErrNoitm31) {
|
||||
this.ddErrNoitm31 = ddErrNoitm31;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm4() {
|
||||
return ddErrNoitm4;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm4(long ddErrNoitm4) {
|
||||
this.ddErrNoitm4 = ddErrNoitm4;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm5() {
|
||||
return ddErrNoitm5;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm5(long ddErrNoitm5) {
|
||||
this.ddErrNoitm5 = ddErrNoitm5;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm6() {
|
||||
return ddErrNoitm6;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm6(long ddErrNoitm6) {
|
||||
this.ddErrNoitm6 = ddErrNoitm6;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm7() {
|
||||
return ddErrNoitm7;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm7(long ddErrNoitm7) {
|
||||
this.ddErrNoitm7 = ddErrNoitm7;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm8() {
|
||||
return ddErrNoitm8;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm8(long ddErrNoitm8) {
|
||||
this.ddErrNoitm8 = ddErrNoitm8;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm9() {
|
||||
return ddErrNoitm9;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm9(long ddErrNoitm9) {
|
||||
this.ddErrNoitm9 = ddErrNoitm9;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal1() {
|
||||
return ddRspnsAvgVal1;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal1(float ddRspnsAvgVal1) {
|
||||
this.ddRspnsAvgVal1 = ddRspnsAvgVal1;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal10() {
|
||||
return ddRspnsAvgVal10;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal10(float ddRspnsAvgVal10) {
|
||||
this.ddRspnsAvgVal10 = ddRspnsAvgVal10;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal11() {
|
||||
return ddRspnsAvgVal11;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal11(float ddRspnsAvgVal11) {
|
||||
this.ddRspnsAvgVal11 = ddRspnsAvgVal11;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal12() {
|
||||
return ddRspnsAvgVal12;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal12(float ddRspnsAvgVal12) {
|
||||
this.ddRspnsAvgVal12 = ddRspnsAvgVal12;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal13() {
|
||||
return ddRspnsAvgVal13;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal13(float ddRspnsAvgVal13) {
|
||||
this.ddRspnsAvgVal13 = ddRspnsAvgVal13;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal14() {
|
||||
return ddRspnsAvgVal14;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal14(float ddRspnsAvgVal14) {
|
||||
this.ddRspnsAvgVal14 = ddRspnsAvgVal14;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal15() {
|
||||
return ddRspnsAvgVal15;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal15(float ddRspnsAvgVal15) {
|
||||
this.ddRspnsAvgVal15 = ddRspnsAvgVal15;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal16() {
|
||||
return ddRspnsAvgVal16;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal16(float ddRspnsAvgVal16) {
|
||||
this.ddRspnsAvgVal16 = ddRspnsAvgVal16;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal17() {
|
||||
return ddRspnsAvgVal17;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal17(float ddRspnsAvgVal17) {
|
||||
this.ddRspnsAvgVal17 = ddRspnsAvgVal17;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal18() {
|
||||
return ddRspnsAvgVal18;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal18(float ddRspnsAvgVal18) {
|
||||
this.ddRspnsAvgVal18 = ddRspnsAvgVal18;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal19() {
|
||||
return ddRspnsAvgVal19;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal19(float ddRspnsAvgVal19) {
|
||||
this.ddRspnsAvgVal19 = ddRspnsAvgVal19;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal2() {
|
||||
return ddRspnsAvgVal2;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal2(float ddRspnsAvgVal2) {
|
||||
this.ddRspnsAvgVal2 = ddRspnsAvgVal2;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal20() {
|
||||
return ddRspnsAvgVal20;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal20(float ddRspnsAvgVal20) {
|
||||
this.ddRspnsAvgVal20 = ddRspnsAvgVal20;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal21() {
|
||||
return ddRspnsAvgVal21;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal21(float ddRspnsAvgVal21) {
|
||||
this.ddRspnsAvgVal21 = ddRspnsAvgVal21;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal22() {
|
||||
return ddRspnsAvgVal22;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal22(float ddRspnsAvgVal22) {
|
||||
this.ddRspnsAvgVal22 = ddRspnsAvgVal22;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal23() {
|
||||
return ddRspnsAvgVal23;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal23(float ddRspnsAvgVal23) {
|
||||
this.ddRspnsAvgVal23 = ddRspnsAvgVal23;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal24() {
|
||||
return ddRspnsAvgVal24;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal24(float ddRspnsAvgVal24) {
|
||||
this.ddRspnsAvgVal24 = ddRspnsAvgVal24;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal25() {
|
||||
return ddRspnsAvgVal25;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal25(float ddRspnsAvgVal25) {
|
||||
this.ddRspnsAvgVal25 = ddRspnsAvgVal25;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal26() {
|
||||
return ddRspnsAvgVal26;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal26(float ddRspnsAvgVal26) {
|
||||
this.ddRspnsAvgVal26 = ddRspnsAvgVal26;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal27() {
|
||||
return ddRspnsAvgVal27;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal27(float ddRspnsAvgVal27) {
|
||||
this.ddRspnsAvgVal27 = ddRspnsAvgVal27;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal28() {
|
||||
return ddRspnsAvgVal28;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal28(float ddRspnsAvgVal28) {
|
||||
this.ddRspnsAvgVal28 = ddRspnsAvgVal28;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal29() {
|
||||
return ddRspnsAvgVal29;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal29(float ddRspnsAvgVal29) {
|
||||
this.ddRspnsAvgVal29 = ddRspnsAvgVal29;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal3() {
|
||||
return ddRspnsAvgVal3;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal3(float ddRspnsAvgVal3) {
|
||||
this.ddRspnsAvgVal3 = ddRspnsAvgVal3;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal30() {
|
||||
return ddRspnsAvgVal30;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal30(float ddRspnsAvgVal30) {
|
||||
this.ddRspnsAvgVal30 = ddRspnsAvgVal30;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal31() {
|
||||
return ddRspnsAvgVal31;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal31(float ddRspnsAvgVal31) {
|
||||
this.ddRspnsAvgVal31 = ddRspnsAvgVal31;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal4() {
|
||||
return ddRspnsAvgVal4;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal4(float ddRspnsAvgVal4) {
|
||||
this.ddRspnsAvgVal4 = ddRspnsAvgVal4;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal5() {
|
||||
return ddRspnsAvgVal5;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal5(float ddRspnsAvgVal5) {
|
||||
this.ddRspnsAvgVal5 = ddRspnsAvgVal5;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal6() {
|
||||
return ddRspnsAvgVal6;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal6(float ddRspnsAvgVal6) {
|
||||
this.ddRspnsAvgVal6 = ddRspnsAvgVal6;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal7() {
|
||||
return ddRspnsAvgVal7;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal7(float ddRspnsAvgVal7) {
|
||||
this.ddRspnsAvgVal7 = ddRspnsAvgVal7;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal8() {
|
||||
return ddRspnsAvgVal8;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal8(float ddRspnsAvgVal8) {
|
||||
this.ddRspnsAvgVal8 = ddRspnsAvgVal8;
|
||||
}
|
||||
|
||||
public float getDdRspnsAvgVal9() {
|
||||
return ddRspnsAvgVal9;
|
||||
}
|
||||
|
||||
public void setDdRspnsAvgVal9(float ddRspnsAvgVal9) {
|
||||
this.ddRspnsAvgVal9 = ddRspnsAvgVal9;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm1() {
|
||||
return ddTrsmtNoitm1;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm1(long ddTrsmtNoitm1) {
|
||||
this.ddTrsmtNoitm1 = ddTrsmtNoitm1;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm10() {
|
||||
return ddTrsmtNoitm10;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm10(long ddTrsmtNoitm10) {
|
||||
this.ddTrsmtNoitm10 = ddTrsmtNoitm10;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm11() {
|
||||
return ddTrsmtNoitm11;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm11(long ddTrsmtNoitm11) {
|
||||
this.ddTrsmtNoitm11 = ddTrsmtNoitm11;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm12() {
|
||||
return ddTrsmtNoitm12;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm12(long ddTrsmtNoitm12) {
|
||||
this.ddTrsmtNoitm12 = ddTrsmtNoitm12;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm13() {
|
||||
return ddTrsmtNoitm13;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm13(long ddTrsmtNoitm13) {
|
||||
this.ddTrsmtNoitm13 = ddTrsmtNoitm13;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm14() {
|
||||
return ddTrsmtNoitm14;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm14(long ddTrsmtNoitm14) {
|
||||
this.ddTrsmtNoitm14 = ddTrsmtNoitm14;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm15() {
|
||||
return ddTrsmtNoitm15;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm15(long ddTrsmtNoitm15) {
|
||||
this.ddTrsmtNoitm15 = ddTrsmtNoitm15;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm16() {
|
||||
return ddTrsmtNoitm16;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm16(long ddTrsmtNoitm16) {
|
||||
this.ddTrsmtNoitm16 = ddTrsmtNoitm16;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm17() {
|
||||
return ddTrsmtNoitm17;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm17(long ddTrsmtNoitm17) {
|
||||
this.ddTrsmtNoitm17 = ddTrsmtNoitm17;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm18() {
|
||||
return ddTrsmtNoitm18;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm18(long ddTrsmtNoitm18) {
|
||||
this.ddTrsmtNoitm18 = ddTrsmtNoitm18;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm19() {
|
||||
return ddTrsmtNoitm19;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm19(long ddTrsmtNoitm19) {
|
||||
this.ddTrsmtNoitm19 = ddTrsmtNoitm19;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm2() {
|
||||
return ddTrsmtNoitm2;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm2(long ddTrsmtNoitm2) {
|
||||
this.ddTrsmtNoitm2 = ddTrsmtNoitm2;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm20() {
|
||||
return ddTrsmtNoitm20;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm20(long ddTrsmtNoitm20) {
|
||||
this.ddTrsmtNoitm20 = ddTrsmtNoitm20;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm21() {
|
||||
return ddTrsmtNoitm21;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm21(long ddTrsmtNoitm21) {
|
||||
this.ddTrsmtNoitm21 = ddTrsmtNoitm21;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm22() {
|
||||
return ddTrsmtNoitm22;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm22(long ddTrsmtNoitm22) {
|
||||
this.ddTrsmtNoitm22 = ddTrsmtNoitm22;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm23() {
|
||||
return ddTrsmtNoitm23;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm23(long ddTrsmtNoitm23) {
|
||||
this.ddTrsmtNoitm23 = ddTrsmtNoitm23;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm24() {
|
||||
return ddTrsmtNoitm24;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm24(long ddTrsmtNoitm24) {
|
||||
this.ddTrsmtNoitm24 = ddTrsmtNoitm24;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm25() {
|
||||
return ddTrsmtNoitm25;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm25(long ddTrsmtNoitm25) {
|
||||
this.ddTrsmtNoitm25 = ddTrsmtNoitm25;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm26() {
|
||||
return ddTrsmtNoitm26;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm26(long ddTrsmtNoitm26) {
|
||||
this.ddTrsmtNoitm26 = ddTrsmtNoitm26;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm27() {
|
||||
return ddTrsmtNoitm27;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm27(long ddTrsmtNoitm27) {
|
||||
this.ddTrsmtNoitm27 = ddTrsmtNoitm27;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm28() {
|
||||
return ddTrsmtNoitm28;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm28(long ddTrsmtNoitm28) {
|
||||
this.ddTrsmtNoitm28 = ddTrsmtNoitm28;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm29() {
|
||||
return ddTrsmtNoitm29;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm29(long ddTrsmtNoitm29) {
|
||||
this.ddTrsmtNoitm29 = ddTrsmtNoitm29;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm3() {
|
||||
return ddTrsmtNoitm3;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm3(long ddTrsmtNoitm3) {
|
||||
this.ddTrsmtNoitm3 = ddTrsmtNoitm3;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm30() {
|
||||
return ddTrsmtNoitm30;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm30(long ddTrsmtNoitm30) {
|
||||
this.ddTrsmtNoitm30 = ddTrsmtNoitm30;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm31() {
|
||||
return ddTrsmtNoitm31;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm31(long ddTrsmtNoitm31) {
|
||||
this.ddTrsmtNoitm31 = ddTrsmtNoitm31;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm4() {
|
||||
return ddTrsmtNoitm4;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm4(long ddTrsmtNoitm4) {
|
||||
this.ddTrsmtNoitm4 = ddTrsmtNoitm4;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm5() {
|
||||
return ddTrsmtNoitm5;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm5(long ddTrsmtNoitm5) {
|
||||
this.ddTrsmtNoitm5 = ddTrsmtNoitm5;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm6() {
|
||||
return ddTrsmtNoitm6;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm6(long ddTrsmtNoitm6) {
|
||||
this.ddTrsmtNoitm6 = ddTrsmtNoitm6;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm7() {
|
||||
return ddTrsmtNoitm7;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm7(long ddTrsmtNoitm7) {
|
||||
this.ddTrsmtNoitm7 = ddTrsmtNoitm7;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm8() {
|
||||
return ddTrsmtNoitm8;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm8(long ddTrsmtNoitm8) {
|
||||
this.ddTrsmtNoitm8 = ddTrsmtNoitm8;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm9() {
|
||||
return ddTrsmtNoitm9;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm9(long ddTrsmtNoitm9) {
|
||||
this.ddTrsmtNoitm9 = ddTrsmtNoitm9;
|
||||
}
|
||||
|
||||
public String getEaiBzwkDstcd() {
|
||||
return eaiBzwkDstcd;
|
||||
}
|
||||
|
||||
public void setEaiBzwkDstcd(String eaiBzwkDstcd) {
|
||||
this.eaiBzwkDstcd = eaiBzwkDstcd;
|
||||
}
|
||||
|
||||
public String getEaiSvcDesc() {
|
||||
return eaiSvcDesc;
|
||||
}
|
||||
|
||||
public void setEaiSvcDesc(String eaiSvcDesc) {
|
||||
this.eaiSvcDesc = eaiSvcDesc;
|
||||
}
|
||||
|
||||
public String getEaiSvcName() {
|
||||
return eaiSvcName;
|
||||
}
|
||||
|
||||
public void setEaiSvcName(String eaiSvcName) {
|
||||
this.eaiSvcName = eaiSvcName;
|
||||
}
|
||||
|
||||
public String getIntfacPtrnCd() {
|
||||
return intfacPtrnCd;
|
||||
}
|
||||
|
||||
public void setIntfacPtrnCd(String intfacPtrnCd) {
|
||||
this.intfacPtrnCd = intfacPtrnCd;
|
||||
}
|
||||
|
||||
public String getLogPrcssSerno() {
|
||||
return logPrcssSerno;
|
||||
}
|
||||
|
||||
public void setLogPrcssSerno(String logPrcssSerno) {
|
||||
this.logPrcssSerno = logPrcssSerno;
|
||||
}
|
||||
|
||||
public String getStatcYm() {
|
||||
return statcYm;
|
||||
}
|
||||
|
||||
public void setStatcYm(String statcYm) {
|
||||
this.statcYm = statcYm;
|
||||
}
|
||||
|
||||
public String getStndMsgUseYn() {
|
||||
return stndMsgUseYn;
|
||||
}
|
||||
|
||||
public void setStndMsgUseYn(String stndMsgUseYn) {
|
||||
this.stndMsgUseYn = stndMsgUseYn;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,459 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup.vo;
|
||||
|
||||
import com.eactive.eai.rms.common.datasource.DataSourceContextHolder;
|
||||
import com.eactive.eai.rms.onl.vo.PersistentVo;
|
||||
|
||||
public class Tseaist04VO implements PersistentVo{
|
||||
|
||||
private String statcYm;
|
||||
private String statcY;
|
||||
private String eaiBzwkDstcd;
|
||||
private String eaiSvcName;
|
||||
private String intfacPtrnCd;
|
||||
private String chnlMdiaDstcd;
|
||||
private String logPrcssSerno;
|
||||
private String stndMsgUseYn;
|
||||
private String eaiSvcDesc;
|
||||
private long mnTrsmtNoitm1, mnErrNoitm1;
|
||||
private long mnTrsmtNoitm2, mnErrNoitm2;
|
||||
private long mnTrsmtNoitm3, mnErrNoitm3;
|
||||
private long mnTrsmtNoitm4, mnErrNoitm4;
|
||||
private long mnTrsmtNoitm5, mnErrNoitm5;
|
||||
private long mnTrsmtNoitm6, mnErrNoitm6;
|
||||
private long mnTrsmtNoitm7, mnErrNoitm7;
|
||||
private long mnTrsmtNoitm8, mnErrNoitm8;
|
||||
private long mnTrsmtNoitm9, mnErrNoitm9;
|
||||
private long mnTrsmtNoitm10, mnErrNoitm10;
|
||||
private long mnTrsmtNoitm11, mnErrNoitm11;
|
||||
private long mnTrsmtNoitm12, mnErrNoitm12;
|
||||
private float mnRspnsAvgVal1;
|
||||
private float mnRspnsAvgVal2;
|
||||
private float mnRspnsAvgVal3;
|
||||
private float mnRspnsAvgVal4;
|
||||
private float mnRspnsAvgVal5;
|
||||
private float mnRspnsAvgVal6;
|
||||
private float mnRspnsAvgVal7;
|
||||
private float mnRspnsAvgVal8;
|
||||
private float mnRspnsAvgVal9;
|
||||
private float mnRspnsAvgVal10;
|
||||
private float mnRspnsAvgVal11;
|
||||
private float mnRspnsAvgVal12;
|
||||
private long ynTrsmtNoitm, ynErrNoitm;
|
||||
private long thisMonthProcColumnName, lastMonthProcColumnName;
|
||||
private long thisMonthErrColumnName, lastMonthErrColumnName;
|
||||
|
||||
public String getSchemaId() {
|
||||
return DataSourceContextHolder.getDataSourceType().getSchema();
|
||||
}
|
||||
|
||||
public String getChnlMdiaDstcd() {
|
||||
return chnlMdiaDstcd;
|
||||
}
|
||||
|
||||
public void setChnlMdiaDstcd(String chnlMdiaDstcd) {
|
||||
this.chnlMdiaDstcd = chnlMdiaDstcd;
|
||||
}
|
||||
|
||||
public String getEaiBzwkDstcd() {
|
||||
return eaiBzwkDstcd;
|
||||
}
|
||||
|
||||
public void setEaiBzwkDstcd(String eaiBzwkDstcd) {
|
||||
this.eaiBzwkDstcd = eaiBzwkDstcd;
|
||||
}
|
||||
|
||||
public String getEaiSvcDesc() {
|
||||
return eaiSvcDesc;
|
||||
}
|
||||
|
||||
public void setEaiSvcDesc(String eaiSvcDesc) {
|
||||
this.eaiSvcDesc = eaiSvcDesc;
|
||||
}
|
||||
|
||||
public String getEaiSvcName() {
|
||||
return eaiSvcName;
|
||||
}
|
||||
|
||||
public void setEaiSvcName(String eaiSvcName) {
|
||||
this.eaiSvcName = eaiSvcName;
|
||||
}
|
||||
|
||||
public String getIntfacPtrnCd() {
|
||||
return intfacPtrnCd;
|
||||
}
|
||||
|
||||
public void setIntfacPtrnCd(String intfacPtrnCd) {
|
||||
this.intfacPtrnCd = intfacPtrnCd;
|
||||
}
|
||||
|
||||
public long getLastMonthErrColumnName() {
|
||||
return lastMonthErrColumnName;
|
||||
}
|
||||
|
||||
public void setLastMonthErrColumnName(long lastMonthErrColumnName) {
|
||||
this.lastMonthErrColumnName = lastMonthErrColumnName;
|
||||
}
|
||||
|
||||
public long getLastMonthProcColumnName() {
|
||||
return lastMonthProcColumnName;
|
||||
}
|
||||
|
||||
public void setLastMonthProcColumnName(long lastMonthProcColumnName) {
|
||||
this.lastMonthProcColumnName = lastMonthProcColumnName;
|
||||
}
|
||||
|
||||
public String getLogPrcssSerno() {
|
||||
return logPrcssSerno;
|
||||
}
|
||||
|
||||
public void setLogPrcssSerno(String logPrcssSerno) {
|
||||
this.logPrcssSerno = logPrcssSerno;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm1() {
|
||||
return mnErrNoitm1;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm1(long mnErrNoitm1) {
|
||||
this.mnErrNoitm1 = mnErrNoitm1;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm10() {
|
||||
return mnErrNoitm10;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm10(long mnErrNoitm10) {
|
||||
this.mnErrNoitm10 = mnErrNoitm10;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm11() {
|
||||
return mnErrNoitm11;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm11(long mnErrNoitm11) {
|
||||
this.mnErrNoitm11 = mnErrNoitm11;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm12() {
|
||||
return mnErrNoitm12;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm12(long mnErrNoitm12) {
|
||||
this.mnErrNoitm12 = mnErrNoitm12;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm2() {
|
||||
return mnErrNoitm2;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm2(long mnErrNoitm2) {
|
||||
this.mnErrNoitm2 = mnErrNoitm2;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm3() {
|
||||
return mnErrNoitm3;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm3(long mnErrNoitm3) {
|
||||
this.mnErrNoitm3 = mnErrNoitm3;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm4() {
|
||||
return mnErrNoitm4;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm4(long mnErrNoitm4) {
|
||||
this.mnErrNoitm4 = mnErrNoitm4;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm5() {
|
||||
return mnErrNoitm5;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm5(long mnErrNoitm5) {
|
||||
this.mnErrNoitm5 = mnErrNoitm5;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm6() {
|
||||
return mnErrNoitm6;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm6(long mnErrNoitm6) {
|
||||
this.mnErrNoitm6 = mnErrNoitm6;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm7() {
|
||||
return mnErrNoitm7;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm7(long mnErrNoitm7) {
|
||||
this.mnErrNoitm7 = mnErrNoitm7;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm8() {
|
||||
return mnErrNoitm8;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm8(long mnErrNoitm8) {
|
||||
this.mnErrNoitm8 = mnErrNoitm8;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm9() {
|
||||
return mnErrNoitm9;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm9(long mnErrNoitm9) {
|
||||
this.mnErrNoitm9 = mnErrNoitm9;
|
||||
}
|
||||
|
||||
public float getMnRspnsAvgVal1() {
|
||||
return mnRspnsAvgVal1;
|
||||
}
|
||||
|
||||
public void setMnRspnsAvgVal1(float mnRspnsAvgVal1) {
|
||||
this.mnRspnsAvgVal1 = mnRspnsAvgVal1;
|
||||
}
|
||||
|
||||
public float getMnRspnsAvgVal10() {
|
||||
return mnRspnsAvgVal10;
|
||||
}
|
||||
|
||||
public void setMnRspnsAvgVal10(float mnRspnsAvgVal10) {
|
||||
this.mnRspnsAvgVal10 = mnRspnsAvgVal10;
|
||||
}
|
||||
|
||||
public float getMnRspnsAvgVal11() {
|
||||
return mnRspnsAvgVal11;
|
||||
}
|
||||
|
||||
public void setMnRspnsAvgVal11(float mnRspnsAvgVal11) {
|
||||
this.mnRspnsAvgVal11 = mnRspnsAvgVal11;
|
||||
}
|
||||
|
||||
public float getMnRspnsAvgVal12() {
|
||||
return mnRspnsAvgVal12;
|
||||
}
|
||||
|
||||
public void setMnRspnsAvgVal12(float mnRspnsAvgVal12) {
|
||||
this.mnRspnsAvgVal12 = mnRspnsAvgVal12;
|
||||
}
|
||||
|
||||
public float getMnRspnsAvgVal2() {
|
||||
return mnRspnsAvgVal2;
|
||||
}
|
||||
|
||||
public void setMnRspnsAvgVal2(float mnRspnsAvgVal2) {
|
||||
this.mnRspnsAvgVal2 = mnRspnsAvgVal2;
|
||||
}
|
||||
|
||||
public float getMnRspnsAvgVal3() {
|
||||
return mnRspnsAvgVal3;
|
||||
}
|
||||
|
||||
public void setMnRspnsAvgVal3(float mnRspnsAvgVal3) {
|
||||
this.mnRspnsAvgVal3 = mnRspnsAvgVal3;
|
||||
}
|
||||
|
||||
public float getMnRspnsAvgVal4() {
|
||||
return mnRspnsAvgVal4;
|
||||
}
|
||||
|
||||
public void setMnRspnsAvgVal4(float mnRspnsAvgVal4) {
|
||||
this.mnRspnsAvgVal4 = mnRspnsAvgVal4;
|
||||
}
|
||||
|
||||
public float getMnRspnsAvgVal5() {
|
||||
return mnRspnsAvgVal5;
|
||||
}
|
||||
|
||||
public void setMnRspnsAvgVal5(float mnRspnsAvgVal5) {
|
||||
this.mnRspnsAvgVal5 = mnRspnsAvgVal5;
|
||||
}
|
||||
|
||||
public float getMnRspnsAvgVal6() {
|
||||
return mnRspnsAvgVal6;
|
||||
}
|
||||
|
||||
public void setMnRspnsAvgVal6(float mnRspnsAvgVal6) {
|
||||
this.mnRspnsAvgVal6 = mnRspnsAvgVal6;
|
||||
}
|
||||
|
||||
public float getMnRspnsAvgVal7() {
|
||||
return mnRspnsAvgVal7;
|
||||
}
|
||||
|
||||
public void setMnRspnsAvgVal7(float mnRspnsAvgVal7) {
|
||||
this.mnRspnsAvgVal7 = mnRspnsAvgVal7;
|
||||
}
|
||||
|
||||
public float getMnRspnsAvgVal8() {
|
||||
return mnRspnsAvgVal8;
|
||||
}
|
||||
|
||||
public void setMnRspnsAvgVal8(float mnRspnsAvgVal8) {
|
||||
this.mnRspnsAvgVal8 = mnRspnsAvgVal8;
|
||||
}
|
||||
|
||||
public float getMnRspnsAvgVal9() {
|
||||
return mnRspnsAvgVal9;
|
||||
}
|
||||
|
||||
public void setMnRspnsAvgVal9(float mnRspnsAvgVal9) {
|
||||
this.mnRspnsAvgVal9 = mnRspnsAvgVal9;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm1() {
|
||||
return mnTrsmtNoitm1;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm1(long mnTrsmtNoitm1) {
|
||||
this.mnTrsmtNoitm1 = mnTrsmtNoitm1;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm10() {
|
||||
return mnTrsmtNoitm10;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm10(long mnTrsmtNoitm10) {
|
||||
this.mnTrsmtNoitm10 = mnTrsmtNoitm10;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm11() {
|
||||
return mnTrsmtNoitm11;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm11(long mnTrsmtNoitm11) {
|
||||
this.mnTrsmtNoitm11 = mnTrsmtNoitm11;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm12() {
|
||||
return mnTrsmtNoitm12;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm12(long mnTrsmtNoitm12) {
|
||||
this.mnTrsmtNoitm12 = mnTrsmtNoitm12;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm2() {
|
||||
return mnTrsmtNoitm2;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm2(long mnTrsmtNoitm2) {
|
||||
this.mnTrsmtNoitm2 = mnTrsmtNoitm2;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm3() {
|
||||
return mnTrsmtNoitm3;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm3(long mnTrsmtNoitm3) {
|
||||
this.mnTrsmtNoitm3 = mnTrsmtNoitm3;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm4() {
|
||||
return mnTrsmtNoitm4;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm4(long mnTrsmtNoitm4) {
|
||||
this.mnTrsmtNoitm4 = mnTrsmtNoitm4;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm5() {
|
||||
return mnTrsmtNoitm5;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm5(long mnTrsmtNoitm5) {
|
||||
this.mnTrsmtNoitm5 = mnTrsmtNoitm5;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm6() {
|
||||
return mnTrsmtNoitm6;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm6(long mnTrsmtNoitm6) {
|
||||
this.mnTrsmtNoitm6 = mnTrsmtNoitm6;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm7() {
|
||||
return mnTrsmtNoitm7;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm7(long mnTrsmtNoitm7) {
|
||||
this.mnTrsmtNoitm7 = mnTrsmtNoitm7;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm8() {
|
||||
return mnTrsmtNoitm8;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm8(long mnTrsmtNoitm8) {
|
||||
this.mnTrsmtNoitm8 = mnTrsmtNoitm8;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm9() {
|
||||
return mnTrsmtNoitm9;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm9(long mnTrsmtNoitm9) {
|
||||
this.mnTrsmtNoitm9 = mnTrsmtNoitm9;
|
||||
}
|
||||
|
||||
public String getStatcY() {
|
||||
return statcY;
|
||||
}
|
||||
|
||||
public void setStatcY(String statcY) {
|
||||
this.statcY = statcY;
|
||||
}
|
||||
|
||||
public String getStatcYm() {
|
||||
return statcYm;
|
||||
}
|
||||
|
||||
public void setStatcYm(String statcYm) {
|
||||
this.statcYm = statcYm;
|
||||
}
|
||||
|
||||
public String getStndMsgUseYn() {
|
||||
return stndMsgUseYn;
|
||||
}
|
||||
|
||||
public void setStndMsgUseYn(String stndMsgUseYn) {
|
||||
this.stndMsgUseYn = stndMsgUseYn;
|
||||
}
|
||||
|
||||
public long getThisMonthErrColumnName() {
|
||||
return thisMonthErrColumnName;
|
||||
}
|
||||
|
||||
public void setThisMonthErrColumnName(long thisMonthErrColumnName) {
|
||||
this.thisMonthErrColumnName = thisMonthErrColumnName;
|
||||
}
|
||||
|
||||
public long getThisMonthProcColumnName() {
|
||||
return thisMonthProcColumnName;
|
||||
}
|
||||
|
||||
public void setThisMonthProcColumnName(long thisMonthProcColumnName) {
|
||||
this.thisMonthProcColumnName = thisMonthProcColumnName;
|
||||
}
|
||||
|
||||
public long getYnErrNoitm() {
|
||||
return ynErrNoitm;
|
||||
}
|
||||
|
||||
public void setYnErrNoitm(long ynErrNoitm) {
|
||||
this.ynErrNoitm = ynErrNoitm;
|
||||
}
|
||||
|
||||
public long getYnTrsmtNoitm() {
|
||||
return ynTrsmtNoitm;
|
||||
}
|
||||
|
||||
public void setYnTrsmtNoitm(long ynTrsmtNoitm) {
|
||||
this.ynTrsmtNoitm = ynTrsmtNoitm;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.eactive.eai.rms.onl.statistics.backup.vo;
|
||||
|
||||
import com.eactive.eai.rms.common.datasource.DataSourceContextHolder;
|
||||
import com.eactive.eai.rms.onl.vo.PersistentVo;
|
||||
|
||||
public class Tseaist05VO implements PersistentVo{
|
||||
private String statcGathrHMS;
|
||||
private String eaiSevrInstncName;
|
||||
private String cpuUserUseVal;
|
||||
private String cpuSysUseVal;
|
||||
private String cpuWaitVal;
|
||||
private String mmryItrchVal;
|
||||
private String mmryRetunVal;
|
||||
private String mmryInspcVa;
|
||||
|
||||
public String getSchemaId() {
|
||||
return DataSourceContextHolder.getDataSourceType().getSchema();
|
||||
}
|
||||
|
||||
public String getCpuSysUseVal() {
|
||||
return cpuSysUseVal;
|
||||
}
|
||||
public void setCpuSysUseVal(String cpuSysUseVal) {
|
||||
this.cpuSysUseVal = cpuSysUseVal;
|
||||
}
|
||||
public String getCpuUserUseVal() {
|
||||
return cpuUserUseVal;
|
||||
}
|
||||
public void setCpuUserUseVal(String cpuUserUseVal) {
|
||||
this.cpuUserUseVal = cpuUserUseVal;
|
||||
}
|
||||
public String getCpuWaitVal() {
|
||||
return cpuWaitVal;
|
||||
}
|
||||
public void setCpuWaitVal(String cpuWaitVal) {
|
||||
this.cpuWaitVal = cpuWaitVal;
|
||||
}
|
||||
public String getEaiSevrInstncName() {
|
||||
return eaiSevrInstncName;
|
||||
}
|
||||
public void setEaiSevrInstncName(String eaiSevrInstncName) {
|
||||
this.eaiSevrInstncName = eaiSevrInstncName;
|
||||
}
|
||||
public String getMmryInspcVa() {
|
||||
return mmryInspcVa;
|
||||
}
|
||||
public void setMmryInspcVa(String mmryInspcVa) {
|
||||
this.mmryInspcVa = mmryInspcVa;
|
||||
}
|
||||
public String getMmryItrchVal() {
|
||||
return mmryItrchVal;
|
||||
}
|
||||
public void setMmryItrchVal(String mmryItrchVal) {
|
||||
this.mmryItrchVal = mmryItrchVal;
|
||||
}
|
||||
public String getMmryRetunVal() {
|
||||
return mmryRetunVal;
|
||||
}
|
||||
public void setMmryRetunVal(String mmryRetunVal) {
|
||||
this.mmryRetunVal = mmryRetunVal;
|
||||
}
|
||||
public String getStatcGathrHMS() {
|
||||
return statcGathrHMS;
|
||||
}
|
||||
public void setStatcGathrHMS(String statcGathrHMS) {
|
||||
this.statcGathrHMS = statcGathrHMS;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
+151
@@ -0,0 +1,151 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.service.ChnlMdiaDstcdCompareMonthlyService;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 매체별 전월대비 증감현황 통계 화면의 컨트롤러
|
||||
* </pre>
|
||||
*
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.4 $
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Controller
|
||||
public class ChnlMdiaDstcdCompareMonthlyController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("chnlMdiaDstcdCompareMonthlyService")
|
||||
private ChnlMdiaDstcdCompareMonthlyService chnlMdiaDstcdCompareMonthlyService ;
|
||||
|
||||
@RequestMapping("/statistics/chnlmdiadstcd/chnlMdiaDstcdCompareMonthly.do")
|
||||
public ModelAndView handleRequest(HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
//
|
||||
StatisticsForm statisticsForm = new StatisticsForm();
|
||||
|
||||
statisticsForm.setStartDate(request.getParameter("startDate"));
|
||||
statisticsForm.setChnlMdiaDstcd(request.getParameter("chnlMdiaDstcd"));
|
||||
|
||||
// try {
|
||||
// findChnlMdiaDstcdMonthlyData(statisticsForm, request, response);
|
||||
// } catch (BizException be) {
|
||||
// //be.printStackTrace();
|
||||
// logger.error("[BIZ ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(be);
|
||||
// } catch (SysException se) {
|
||||
// //se.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(se);
|
||||
// } catch (Exception e) {
|
||||
// //e.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(e);
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
|
||||
private void findChnlMdiaDstcdMonthlyData(StatisticsForm statisticsForm,
|
||||
HttpServletRequest request, HttpServletResponse response)
|
||||
throws Exception {
|
||||
|
||||
List listData = chnlMdiaDstcdCompareMonthlyService
|
||||
.getFindChnlMdiaDstcdMonthlyData(statisticsForm);
|
||||
|
||||
// GauceInputStream gis = null;
|
||||
// GauceOutputStream gos = null;
|
||||
//
|
||||
// //
|
||||
// try {
|
||||
// gis = ((HttpGauceRequest) request).getGauceInputStream();
|
||||
// gos = ((HttpGauceResponse) response).getGauceOutputStream();
|
||||
//
|
||||
// GauceDataSet dataSet = gis.read("ds_01");
|
||||
//
|
||||
// // 그리드 데이터셋 메핑
|
||||
// ChnlMdiaDstcdCompareMonthlyVO vo = new ChnlMdiaDstcdCompareMonthlyVO();
|
||||
//
|
||||
// double sumLastProcAmount = 0;
|
||||
// double sumProcAmount = 0;
|
||||
// for (int i = 0; i < listData.size(); i++) {
|
||||
// vo = (ChnlMdiaDstcdCompareMonthlyVO) listData.get(i);
|
||||
// sumLastProcAmount += vo.getLastMonthProcColumnName();
|
||||
// sumProcAmount += vo.getThisMonthProcColumnName();
|
||||
// }
|
||||
//
|
||||
// double lastOccupyRate = 0;
|
||||
// double occupyRate = 0;
|
||||
// double procRate = 0;
|
||||
//
|
||||
// for (int i = 0; i < listData.size(); i++) {
|
||||
// vo = (ChnlMdiaDstcdCompareMonthlyVO) listData.get(i);
|
||||
//
|
||||
// lastOccupyRate = 0;
|
||||
// occupyRate = 0;
|
||||
// procRate = 0;
|
||||
// if (vo.getLastMonthProcColumnName() != 0) {
|
||||
// lastOccupyRate = Math.round(vo.getLastMonthProcColumnName()
|
||||
// / sumLastProcAmount * 100 * 100) / 100.;
|
||||
// }
|
||||
// if (vo.getThisMonthProcColumnName() != 0) {
|
||||
// occupyRate = Math.round(vo.getThisMonthProcColumnName()
|
||||
// / sumProcAmount * 100 * 100) / 100.;
|
||||
// }
|
||||
// if (vo.getLastMonthProcColumnName() != 0) {
|
||||
// procRate = Math.round((vo.getThisMonthProcColumnName() - vo
|
||||
// .getLastMonthProcColumnName())
|
||||
// / (vo.getLastMonthProcColumnName() * 1.)
|
||||
// * 100.
|
||||
// * 100.) / 100.;
|
||||
// }
|
||||
//
|
||||
// dataSet.put("ChnlMdiaDstcd", vo.getChnlMdiaDstcd(), 4,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("LastMonthProcColumnName", vo
|
||||
// .getLastMonthProcColumnName(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("LastOccupyRate", lastOccupyRate, 15.2,
|
||||
// GauceDataColumn.TB_DECIMAL);
|
||||
// dataSet.put("ThisMonthProcColumnName", vo
|
||||
// .getThisMonthProcColumnName(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("OccupyRate", occupyRate, 15.2,
|
||||
// GauceDataColumn.TB_DECIMAL);
|
||||
// dataSet.put("ProcRate", procRate, 15.2,
|
||||
// GauceDataColumn.TB_DECIMAL);
|
||||
//
|
||||
// dataSet.heap();
|
||||
// }
|
||||
//
|
||||
// gos.write(dataSet);
|
||||
// } catch (IOException e) {
|
||||
// //
|
||||
// logger.error("[GAUCE SEND ERROR]");
|
||||
// //e.printStackTrace();
|
||||
// throw new SysException("[GAUCE SEND ERROR]", e); // 에러발생
|
||||
// } finally {
|
||||
// if (gos != null) {
|
||||
// try {
|
||||
// gos.close();
|
||||
// } catch (Exception e) {
|
||||
// gos = null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
||||
+232
@@ -0,0 +1,232 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.service.ChnlMdiaDstcdDailyService;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 매체별 일별 통계 화면의 컨트롤러
|
||||
* </pre>
|
||||
*
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.4 $
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Controller
|
||||
public class ChnlMdiaDstcdDailyController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("chnlMdiaDstcdDailyService")
|
||||
private ChnlMdiaDstcdDailyService chnlMdiaDstcdDailyService ;
|
||||
|
||||
@RequestMapping("/statistics/chnlmdiadstcd/chnlMdiaDstcdDaily.do")
|
||||
public ModelAndView handleRequest(HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
//
|
||||
StatisticsForm statisticsForm = new StatisticsForm();
|
||||
|
||||
statisticsForm.setStartDate(request.getParameter("startDate"));
|
||||
statisticsForm.setEndDate(request.getParameter("endDate"));
|
||||
statisticsForm.setChnlMdiaDstcd(request.getParameter("chnlMdiaDstcd"));
|
||||
|
||||
// try {
|
||||
// findDailyData(statisticsForm, request, response);
|
||||
// } catch (BizException be) {
|
||||
// //be.printStackTrace();
|
||||
// logger.error("[BIZ ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(be);
|
||||
// } catch (SysException se) {
|
||||
// //se.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(se);
|
||||
// } catch (Exception e) {
|
||||
// //e.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(e);
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
|
||||
private void findDailyData(StatisticsForm statisticsForm, HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
|
||||
List dailyData = chnlMdiaDstcdDailyService.getFindDailyData(statisticsForm);
|
||||
|
||||
// GauceInputStream gis = null;
|
||||
// GauceOutputStream gos = null;
|
||||
// try {
|
||||
// gis = ((HttpGauceRequest) request).getGauceInputStream();
|
||||
// gos = ((HttpGauceResponse) response).getGauceOutputStream();
|
||||
//
|
||||
// GauceDataSet dataSet = gis.read("ds_01");
|
||||
//
|
||||
// // 그리드 데이터셋 메핑
|
||||
// ChnlMdiaDstcdDailyVO vo = new ChnlMdiaDstcdDailyVO();
|
||||
//
|
||||
// for (int i = 0; i < dailyData.size(); i++) {
|
||||
// vo = (ChnlMdiaDstcdDailyVO) dailyData.get(i);
|
||||
//
|
||||
// dataSet.put("ChnlMdiaDstcd", vo.getChnlMdiaDstcd(), 4,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("DdTrsmtNoitm1", vo.getDdTrsmtNoitm1(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm2", vo.getDdTrsmtNoitm2(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm3", vo.getDdTrsmtNoitm3(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm4", vo.getDdTrsmtNoitm4(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm5", vo.getDdTrsmtNoitm5(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm6", vo.getDdTrsmtNoitm6(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm7", vo.getDdTrsmtNoitm7(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm8", vo.getDdTrsmtNoitm8(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm9", vo.getDdTrsmtNoitm9(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm10", vo.getDdTrsmtNoitm10(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm11", vo.getDdTrsmtNoitm11(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm12", vo.getDdTrsmtNoitm12(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm13", vo.getDdTrsmtNoitm13(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm14", vo.getDdTrsmtNoitm14(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm15", vo.getDdTrsmtNoitm15(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm16", vo.getDdTrsmtNoitm16(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm17", vo.getDdTrsmtNoitm17(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm18", vo.getDdTrsmtNoitm18(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm19", vo.getDdTrsmtNoitm19(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm20", vo.getDdTrsmtNoitm20(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm21", vo.getDdTrsmtNoitm21(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm22", vo.getDdTrsmtNoitm22(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm23", vo.getDdTrsmtNoitm23(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm24", vo.getDdTrsmtNoitm24(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm25", vo.getDdTrsmtNoitm25(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm26", vo.getDdTrsmtNoitm26(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm27", vo.getDdTrsmtNoitm27(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm28", vo.getDdTrsmtNoitm28(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm29", vo.getDdTrsmtNoitm29(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm30", vo.getDdTrsmtNoitm30(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdTrsmtNoitm31", vo.getDdTrsmtNoitm31(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm1", vo.getDdErrNoitm1(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm2", vo.getDdErrNoitm2(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm3", vo.getDdErrNoitm3(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm4", vo.getDdErrNoitm4(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm5", vo.getDdErrNoitm5(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm6", vo.getDdErrNoitm6(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm7", vo.getDdErrNoitm7(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm8", vo.getDdErrNoitm8(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm9", vo.getDdErrNoitm9(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm10", vo.getDdErrNoitm10(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm11", vo.getDdErrNoitm11(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm12", vo.getDdErrNoitm12(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm13", vo.getDdErrNoitm13(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm14", vo.getDdErrNoitm14(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm15", vo.getDdErrNoitm15(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm16", vo.getDdErrNoitm16(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm17", vo.getDdErrNoitm17(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm18", vo.getDdErrNoitm18(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm19", vo.getDdErrNoitm19(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm20", vo.getDdErrNoitm20(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm21", vo.getDdErrNoitm21(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm22", vo.getDdErrNoitm22(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm23", vo.getDdErrNoitm23(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm24", vo.getDdErrNoitm24(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm25", vo.getDdErrNoitm25(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm26", vo.getDdErrNoitm26(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm27", vo.getDdErrNoitm27(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm28", vo.getDdErrNoitm28(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm29", vo.getDdErrNoitm29(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm30", vo.getDdErrNoitm30(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("DdErrNoitm31", vo.getDdErrNoitm31(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
//
|
||||
// dataSet.heap();
|
||||
// }
|
||||
//
|
||||
// gos.write(dataSet);
|
||||
// } catch (IOException e) {
|
||||
// logger.error("[GAUCE SEND ERROR]");
|
||||
// //e.printStackTrace();
|
||||
// throw new SysException("[GAUCE SEND ERROR]", e); // 에러발생
|
||||
// }finally{
|
||||
// if (gos != null)
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// gos.close();
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// gos = null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
||||
+160
@@ -0,0 +1,160 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.service.ChnlMdiaDstcdMonthlyService;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 매체별 월별 통계 화면의 컨트롤러
|
||||
* </pre>
|
||||
*
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.4 $
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Controller
|
||||
public class ChnlMdiaDstcdMonthlyController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("chnlMdiaDstcdMonthlyService")
|
||||
private ChnlMdiaDstcdMonthlyService chnlMdiaDstcdMonthlyService ;
|
||||
|
||||
|
||||
@RequestMapping("/statistics/chnlmdiadstcd/chnlMdiaDstcdMonthly.do")
|
||||
public ModelAndView handleRequest(HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
//
|
||||
StatisticsForm statisticsForm = new StatisticsForm();
|
||||
|
||||
statisticsForm.setStartDate(request.getParameter("startDate"));
|
||||
statisticsForm.setEndDate(request.getParameter("endDate"));
|
||||
statisticsForm.setChnlMdiaDstcd(request.getParameter("chnlMdiaDstcd"));
|
||||
|
||||
// try {
|
||||
// findMonthlyData(statisticsForm, request, response);
|
||||
// } catch (BizException be) {
|
||||
// //be.printStackTrace();
|
||||
// logger.error("[BIZ ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(be);
|
||||
// } catch (SysException se) {
|
||||
// //se.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(se);
|
||||
// } catch (Exception e) {
|
||||
// //e.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(e);
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
|
||||
private void findMonthlyData(StatisticsForm statisticsForm, HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
|
||||
|
||||
List monthlyData = chnlMdiaDstcdMonthlyService.getFindMonthlyData(statisticsForm);
|
||||
|
||||
// GauceInputStream gis = null;
|
||||
// GauceOutputStream gos = null;
|
||||
//
|
||||
// //
|
||||
// try {
|
||||
// gis = ((HttpGauceRequest) request).getGauceInputStream();
|
||||
// gos = ((HttpGauceResponse) response).getGauceOutputStream();
|
||||
//
|
||||
// GauceDataSet dataSet = gis.read("ds_01");
|
||||
//
|
||||
// // 그리드 데이터셋 메핑
|
||||
// ChnlMdiaDstcdMonthlyVO vo = new ChnlMdiaDstcdMonthlyVO();
|
||||
//
|
||||
// for (int i = 0; i < monthlyData.size(); i++) {
|
||||
// vo = (ChnlMdiaDstcdMonthlyVO) monthlyData.get(i);
|
||||
//
|
||||
// dataSet.put("ChnlMdiaDstcd", vo.getChnlMdiaDstcd(), 4,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("MnTrsmtNoitm1", vo.getMnTrsmtNoitm1(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm2", vo.getMnTrsmtNoitm2(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm3", vo.getMnTrsmtNoitm3(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm4", vo.getMnTrsmtNoitm4(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm5", vo.getMnTrsmtNoitm5(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm6", vo.getMnTrsmtNoitm6(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm7", vo.getMnTrsmtNoitm7(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm8", vo.getMnTrsmtNoitm8(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm9", vo.getMnTrsmtNoitm9(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm10", vo.getMnTrsmtNoitm10(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm11", vo.getMnTrsmtNoitm11(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm12", vo.getMnTrsmtNoitm12(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnErrNoitm1", vo.getMnErrNoitm1(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnErrNoitm2", vo.getMnErrNoitm2(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnErrNoitm3", vo.getMnErrNoitm3(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnErrNoitm4", vo.getMnErrNoitm4(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnErrNoitm5", vo.getMnErrNoitm5(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnErrNoitm6", vo.getMnErrNoitm6(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnErrNoitm7", vo.getMnErrNoitm7(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnErrNoitm8", vo.getMnErrNoitm8(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnErrNoitm9", vo.getMnErrNoitm9(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnErrNoitm10", vo.getMnErrNoitm10(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnErrNoitm11", vo.getMnErrNoitm11(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnErrNoitm12", vo.getMnErrNoitm12(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
//
|
||||
// dataSet.heap();
|
||||
// }
|
||||
//
|
||||
// gos.write(dataSet);
|
||||
// } catch (IOException e) {
|
||||
// //
|
||||
// logger.error("[GAUCE SEND ERROR]");
|
||||
// //e.printStackTrace();
|
||||
// throw new SysException("[GAUCE SEND ERROR]", e); // 에러발생
|
||||
// }finally{
|
||||
// if (gos != null)
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// gos.close();
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// gos = null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
+238
@@ -0,0 +1,238 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.service.ChnlMdiaDstcdYearlyService;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 매체별 년간 통계 화면의 컨트롤러
|
||||
* </pre>
|
||||
*
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.4 $
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Controller
|
||||
public class ChnlMdiaDstcdYearlyController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("chnlMdiaDstcdYearlyService")
|
||||
private ChnlMdiaDstcdYearlyService chnlMdiaDstcdYearlyService ;
|
||||
|
||||
@RequestMapping("/statistics/chnlmdiadstcd/chnlMdiaDstcdYearly.do")
|
||||
public ModelAndView handleRequest(HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
//
|
||||
StatisticsForm statisticsForm = new StatisticsForm();
|
||||
|
||||
statisticsForm.setChnlMdiaDstcd(request.getParameter("chnlMdiaDstcd"));
|
||||
|
||||
String cmd = "";
|
||||
|
||||
if(request.getParameter("cmd") != null){
|
||||
cmd = request.getParameter("cmd");
|
||||
}
|
||||
|
||||
// try {
|
||||
// if("findData".equals(cmd)){
|
||||
// findYearlyData(statisticsForm, request, response);
|
||||
// }else if("chat1".equals(cmd)){
|
||||
// findYearlyDataObject2_1(statisticsForm, request, response);
|
||||
// }else if("chat2".equals(cmd)){
|
||||
// findYearlyDataObject2_2(statisticsForm, request, response);
|
||||
// }
|
||||
// } catch (BizException be) {
|
||||
// //be.printStackTrace();
|
||||
// logger.error("[BIZ ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(be);
|
||||
// } catch (SysException se) {
|
||||
// //se.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(se);
|
||||
// } catch (Exception e) {
|
||||
// //e.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(e);
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
|
||||
private void findYearlyData(StatisticsForm statisticsForm, HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
|
||||
|
||||
|
||||
List listData = chnlMdiaDstcdYearlyService
|
||||
.getFindYearlyData(statisticsForm);
|
||||
|
||||
// GauceInputStream gis = null;
|
||||
// GauceOutputStream gos = null;
|
||||
//
|
||||
// //
|
||||
// try {
|
||||
// gis = ((HttpGauceRequest) request).getGauceInputStream();
|
||||
// gos = ((HttpGauceResponse) response).getGauceOutputStream();
|
||||
//
|
||||
// GauceDataSet dataSet = gis.read("ds_01");
|
||||
//
|
||||
// // 그리드 데이터셋 메핑
|
||||
// ChnlMdiaDstcdYearlyVO vo = new ChnlMdiaDstcdYearlyVO();
|
||||
//
|
||||
// for (int i = 0; i < listData.size(); i++) {
|
||||
// vo = (ChnlMdiaDstcdYearlyVO) listData.get(i);
|
||||
//
|
||||
// dataSet.put("StatcY", vo.getStatcY(), 4,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("ChnlMdiaDstcd", vo.getChnlMdiaDstcd(), 4,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("YnTrsmtNoitm", vo.getYnTrsmtNoitm(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("YnErrNoitm", vo.getYnErrNoitm(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
//
|
||||
// dataSet.heap();
|
||||
// }
|
||||
//
|
||||
// gos.write(dataSet);
|
||||
// } catch (IOException e) {
|
||||
// //
|
||||
// logger.error("[GAUCE SEND ERROR]");
|
||||
// //e.printStackTrace();
|
||||
// throw new SysException("[GAUCE SEND ERROR]", e); // 에러발생
|
||||
// }finally{
|
||||
// if (gos != null)
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// gos.close();
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// gos = null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// private void findYearlyDataObject2_1(StatisticsForm statisticsForm, HttpServletRequest request,
|
||||
// HttpServletResponse response) throws Exception {
|
||||
//
|
||||
// List listData = chnlMdiaDstcdYearlyService
|
||||
// .getFindYearlyDataObject2_1(statisticsForm);
|
||||
//
|
||||
// GauceInputStream gis = null;
|
||||
// GauceOutputStream gos = null;
|
||||
//
|
||||
// //
|
||||
// try {
|
||||
// gis = ((HttpGauceRequest) request).getGauceInputStream();
|
||||
// gos = ((HttpGauceResponse) response).getGauceOutputStream();
|
||||
//
|
||||
// GauceDataSet dataSet = gis.read("ds_chat1");
|
||||
//
|
||||
// // 그리드 데이터셋 메핑
|
||||
// ChnlMdiaDstcdYearlyVO vo = new ChnlMdiaDstcdYearlyVO();
|
||||
//
|
||||
// for (int i = 0; i < listData.size(); i++) {
|
||||
// vo = (ChnlMdiaDstcdYearlyVO) listData.get(i);
|
||||
//
|
||||
// dataSet.put("StatcY", vo.getStatcY(), 4,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("ChnlMdiaDstcd", vo.getChnlMdiaDstcd(), 4,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("YnTrsmtNoitm", vo.getYnTrsmtNoitm(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
//
|
||||
// dataSet.heap();
|
||||
// }
|
||||
//
|
||||
// gos.write(dataSet);
|
||||
// } catch (IOException e) {
|
||||
// //
|
||||
// logger.error("[GAUCE SEND ERROR]");
|
||||
// //e.printStackTrace();
|
||||
// throw new SysException("[GAUCE SEND ERROR]", e); // 에러발생
|
||||
// }finally{
|
||||
// if (gos != null)
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// gos.close();
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// gos = null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
private void findYearlyDataObject2_2(StatisticsForm statisticsForm, HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
|
||||
List listData = chnlMdiaDstcdYearlyService
|
||||
.getFindYearlyDataObject2_2(statisticsForm);
|
||||
|
||||
// GauceInputStream gis = null;
|
||||
// GauceOutputStream gos = null;
|
||||
//
|
||||
// //
|
||||
// try {
|
||||
// gis = ((HttpGauceRequest) request).getGauceInputStream();
|
||||
// gos = ((HttpGauceResponse) response).getGauceOutputStream();
|
||||
//
|
||||
// GauceDataSet dataSet = gis.read("ds_chat2");
|
||||
//
|
||||
// // 그리드 데이터셋 메핑
|
||||
// ChnlMdiaDstcdYearlyVO vo = new ChnlMdiaDstcdYearlyVO();
|
||||
//
|
||||
// for (int i = 0; i < listData.size(); i++) {
|
||||
// vo = (ChnlMdiaDstcdYearlyVO) listData.get(i);
|
||||
//
|
||||
// dataSet.put("StatcY", vo.getStatcY(), 4,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("ChnlMdiaDstcd", vo.getChnlMdiaDstcd(), 4,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("YnErrNoitm", vo.getYnErrNoitm(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
//
|
||||
// dataSet.heap();
|
||||
// }
|
||||
//
|
||||
// gos.write(dataSet);
|
||||
// } catch (IOException e) {
|
||||
// //
|
||||
// logger.error("[GAUCE SEND ERROR]");
|
||||
// //e.printStackTrace();
|
||||
// throw new SysException("[GAUCE SEND ERROR]", e); // 에러발생
|
||||
// }finally{
|
||||
// if (gos != null)
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// gos.close();
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// gos = null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
public interface ChnlMdiaDstcdCompareMonthlyDAO {
|
||||
|
||||
public List findByTransactionChnlMdiaDstcdMonthly(StatisticsForm statisticsForm) throws Exception;
|
||||
|
||||
}
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.dao;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
import com.eactive.eai.rms.onl.common.util.DateUtil;
|
||||
import com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.vo.ChnlMdiaDstcdCompareMonthlyVO;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
import com.ibatis.sqlmap.client.event.RowHandler;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="chnlMdiaDstcdCompareMonthlyDAO"
|
||||
* @spring.property name="dataSource" ref="dataSource"
|
||||
*/
|
||||
@Repository("chnlMdiaDstcdCompareMonthlyDAO")
|
||||
public class ChnlMdiaDstcdCompareMonthlyDAOImpl
|
||||
extends SqlMapClientTemplateDao
|
||||
implements ChnlMdiaDstcdCompareMonthlyDAO {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 매체별 전월대비 증감현황 리스트 조회
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 : Overriden
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @see com.eactive.eai.rts.biz.statistics.chnlmdiadstcd.dao.ChnlMdiaDstcdCompareMonthlyDAO#findByTransactionChnlMdiaDstcdMonthly(com.eactive.eai.rts.biz.statistics.eaisvcname.vo.StatisticsForm)
|
||||
* @param statisticsForm
|
||||
* @return
|
||||
*/
|
||||
public List findByTransactionChnlMdiaDstcdMonthly(
|
||||
StatisticsForm statisticsForm) {
|
||||
|
||||
// DataSourceType dt = DataSourceContextHolder.getDataSourceType();
|
||||
|
||||
Calendar cal = Calendar.getInstance();
|
||||
|
||||
int thisYear = 0;
|
||||
int thisMonth = 0;
|
||||
try {
|
||||
thisYear = Integer.parseInt(statisticsForm.getStartDate().substring(0, 4));
|
||||
thisMonth = Integer.parseInt(statisticsForm.getStartDate().substring(4, 6)); //hd 수정 5 -> 6 (2007.11.2)
|
||||
} catch (Exception e) {
|
||||
thisYear = Integer.parseInt(DateUtil.getYear());
|
||||
thisMonth = Integer.parseInt(DateUtil.getMonth());
|
||||
}
|
||||
|
||||
cal.set(thisYear, thisMonth - 1, 10);
|
||||
|
||||
cal.add(Calendar.MONTH, -1);
|
||||
|
||||
int lastYear = cal.get(Calendar.YEAR);
|
||||
int lastMonth = cal.get(Calendar.MONTH) + 1;
|
||||
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("thisMonthProcColumnName", thisMonth + "MnTrsmtNoitm");
|
||||
paramMap.put("lastMonthProcColumnName", lastMonth + "MnTrsmtNoitm");
|
||||
paramMap.put("thisYear", String.valueOf(thisYear));
|
||||
paramMap.put("lastYear", String.valueOf(lastYear));
|
||||
|
||||
final ArrayList<ChnlMdiaDstcdCompareMonthlyVO> al = new ArrayList<ChnlMdiaDstcdCompareMonthlyVO>();
|
||||
|
||||
template.queryWithRowHandler("ChnlMdiaDstcdCompareMonthly.findByTransactionChnlMdiaDstcdMonthly", paramMap,
|
||||
new RowHandler(){
|
||||
@SuppressWarnings("unchecked")
|
||||
public void handleRow(Object valueObject) {
|
||||
ChnlMdiaDstcdCompareMonthlyVO vo = (ChnlMdiaDstcdCompareMonthlyVO)valueObject;
|
||||
al.add(vo);
|
||||
}});
|
||||
return al;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
public interface ChnlMdiaDstcdDailyDAO {
|
||||
|
||||
public List findByChnlMdiaDstcdDaily(StatisticsForm statisticsForm) throws Exception;
|
||||
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.dao;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
import com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.vo.ChnlMdiaDstcdDailyVO;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
import com.ibatis.sqlmap.client.event.RowHandler;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="chnlMdiaDstcdDailyDAO"
|
||||
* @spring.property name="dataSource" ref="dataSource"
|
||||
*/
|
||||
@Repository("chnlMdiaDstcdDailyDAO")
|
||||
public class ChnlMdiaDstcdDailyDAOImpl
|
||||
extends SqlMapClientTemplateDao
|
||||
implements ChnlMdiaDstcdDailyDAO {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 매체별 일별 통계 리스트 조회
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 : Overriden
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @see com.eactive.eai.rts.biz.statistics.chnlmdiadstcd.dao.ChnlMdiaDstcdDailyDAO#findByChnlMdiaDstcdDaily(com.eactive.eai.rts.biz.statistics.eaisvcname.vo.StatisticsForm)
|
||||
* @param statisticsForm
|
||||
* @return
|
||||
*/
|
||||
public List findByChnlMdiaDstcdDaily(StatisticsForm statisticsForm) {
|
||||
//int pageNum = statisticsForm.getPageNum();
|
||||
|
||||
final ArrayList<ChnlMdiaDstcdDailyVO> al = new ArrayList<ChnlMdiaDstcdDailyVO>();
|
||||
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("chnlMdiaDstcd", statisticsForm.getChnlMdiaDstcd());
|
||||
paramMap.put("startDate", statisticsForm.getStartDate());
|
||||
paramMap.put("endDate", statisticsForm.getEndDate());
|
||||
template.queryWithRowHandler("ChnlMdiaDstcdDaily.findByChnlMdiaDstcdDaily", paramMap,
|
||||
new RowHandler(){
|
||||
@SuppressWarnings("unchecked")
|
||||
public void handleRow(Object valueObject) {
|
||||
ChnlMdiaDstcdDailyVO vo = (ChnlMdiaDstcdDailyVO)valueObject;
|
||||
al.add(vo);
|
||||
}});
|
||||
return al;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
public interface ChnlMdiaDstcdMonthlyDAO {
|
||||
|
||||
public List findByChnlMdiaDstcd(StatisticsForm statisticsForm) throws Exception;
|
||||
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.dao;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
import com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.vo.ChnlMdiaDstcdMonthlyVO;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
import com.ibatis.sqlmap.client.event.RowHandler;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="chnlMdiaDstcdMonthlyDAO"
|
||||
* @spring.property name="dataSource" ref="dataSource"
|
||||
*/
|
||||
@Repository("chnlMdiaDstcdMonthlyDAO")
|
||||
public class ChnlMdiaDstcdMonthlyDAOImpl
|
||||
extends SqlMapClientTemplateDao
|
||||
implements ChnlMdiaDstcdMonthlyDAO {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 매체별 월별 통계 리스트 조회
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 : Overriden
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @see com.eactive.eai.rts.biz.statistics.chnlmdiadstcd.dao.ChnlMdiaDstcdMonthlyDAO#findByChnlMdiaDstcd(com.eactive.eai.rts.biz.statistics.eaisvcname.vo.StatisticsForm)
|
||||
* @param statisticsForm
|
||||
* @return
|
||||
*/
|
||||
public List findByChnlMdiaDstcd(StatisticsForm statisticsForm) {
|
||||
//int pageNum = statisticsForm.getPageNum();
|
||||
|
||||
final ArrayList<ChnlMdiaDstcdMonthlyVO> al = new ArrayList<ChnlMdiaDstcdMonthlyVO>();
|
||||
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("chnlMdiaDstcd", statisticsForm.getChnlMdiaDstcd());
|
||||
paramMap.put("startDate", statisticsForm.getStartDate());
|
||||
paramMap.put("endDate", statisticsForm.getEndDate());
|
||||
template.queryWithRowHandler("ChnlMdiaDstcdMonthly.findByChnlMdiaDstcdMonthly", paramMap,
|
||||
new RowHandler(){
|
||||
@SuppressWarnings("unchecked")
|
||||
public void handleRow(Object valueObject) {
|
||||
ChnlMdiaDstcdMonthlyVO vo = (ChnlMdiaDstcdMonthlyVO)valueObject;
|
||||
al.add(vo);
|
||||
}});
|
||||
return al;
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
public interface ChnlMdiaDstcdYearlyDAO {
|
||||
|
||||
public List findByChnlMdiaDstcdYearly(StatisticsForm statisticsForm) throws Exception;
|
||||
|
||||
public List findByChnlMdiaDstcdYearlyObject2_1(StatisticsForm statisticsForm) throws Exception;
|
||||
|
||||
public List findByChnlMdiaDstcdYearlyObject2_2(StatisticsForm statisticsForm) throws Exception;
|
||||
|
||||
}
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.dao;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
import com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.vo.ChnlMdiaDstcdYearlyVO;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
import com.ibatis.sqlmap.client.event.RowHandler;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="chnlMdiaDstcdYearlyDAO"
|
||||
* @spring.property name="dataSource" ref="dataSource"
|
||||
*/
|
||||
@Repository("chnlMdiaDstcdYearlyDAO")
|
||||
public class ChnlMdiaDstcdYearlyDAOImpl
|
||||
extends SqlMapClientTemplateDao
|
||||
implements ChnlMdiaDstcdYearlyDAO {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 매체별 년간 통계 리스트 조회
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 : Overriden
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @see com.eactive.eai.rts.biz.statistics.chnlmdiadstcd.dao.ChnlMdiaDstcdYearlyDAO#findByChnlMdiaDstcdYearly(com.eactive.eai.rts.biz.statistics.eaisvcname.vo.StatisticsForm)
|
||||
* @param statisticsForm
|
||||
* @return
|
||||
*/
|
||||
public List findByChnlMdiaDstcdYearly(StatisticsForm statisticsForm) throws Exception {
|
||||
final ArrayList<ChnlMdiaDstcdYearlyVO> al = new ArrayList<ChnlMdiaDstcdYearlyVO>();
|
||||
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("chnlMdiaDstcd", statisticsForm.getChnlMdiaDstcd());
|
||||
template.queryWithRowHandler("ChnlMdiaDstcdYearly.findByChnlMdiaDstcdYearly", paramMap,
|
||||
new RowHandler(){
|
||||
@SuppressWarnings("unchecked")
|
||||
public void handleRow(Object valueObject) {
|
||||
ChnlMdiaDstcdYearlyVO vo = (ChnlMdiaDstcdYearlyVO)valueObject;
|
||||
al.add(vo);
|
||||
}});
|
||||
return al;
|
||||
}
|
||||
|
||||
public List findByChnlMdiaDstcdYearlyObject2_1(StatisticsForm statisticsForm) throws Exception {
|
||||
final ArrayList<ChnlMdiaDstcdYearlyVO> al = new ArrayList<ChnlMdiaDstcdYearlyVO>();
|
||||
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("chnlMdiaDstcd", statisticsForm.getChnlMdiaDstcd());
|
||||
paramMap.put("startDate", statisticsForm.getStartDate());
|
||||
template.queryWithRowHandler("ChnlMdiaDstcdYearly.findByChnlMdiaDstcdYearlyObject2_1", paramMap,
|
||||
new RowHandler(){
|
||||
@SuppressWarnings("unchecked")
|
||||
public void handleRow(Object valueObject) {
|
||||
ChnlMdiaDstcdYearlyVO vo = (ChnlMdiaDstcdYearlyVO)valueObject;
|
||||
al.add(vo);
|
||||
}});
|
||||
return al;
|
||||
}
|
||||
|
||||
public List findByChnlMdiaDstcdYearlyObject2_2(StatisticsForm statisticsForm) throws Exception {
|
||||
final ArrayList<ChnlMdiaDstcdYearlyVO> al = new ArrayList<ChnlMdiaDstcdYearlyVO>();
|
||||
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("chnlMdiaDstcd", statisticsForm.getChnlMdiaDstcd());
|
||||
paramMap.put("startDate", statisticsForm.getStartDate());
|
||||
template.queryWithRowHandler("ChnlMdiaDstcdYearly.findByChnlMdiaDstcdYearlyObject2_2", paramMap,
|
||||
new RowHandler(){
|
||||
@SuppressWarnings("unchecked")
|
||||
public void handleRow(Object valueObject) {
|
||||
ChnlMdiaDstcdYearlyVO vo = (ChnlMdiaDstcdYearlyVO)valueObject;
|
||||
al.add(vo);
|
||||
}});
|
||||
return al;
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
public interface ChnlMdiaDstcdCompareMonthlyService {
|
||||
|
||||
public List getFindChnlMdiaDstcdMonthlyData(StatisticsForm statisticsForm) throws Exception;
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.dao.ChnlMdiaDstcdCompareMonthlyDAO;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="chnlMdiaDstcdCompareMonthlyServiceImpl"
|
||||
* @spring.property name="chnlMdiaDstcdCompareMonthlyDAO" ref="chnlMdiaDstcdCompareMonthlyDAO"
|
||||
*/
|
||||
@Service("chnlMdiaDstcdCompareMonthlyService")
|
||||
public class ChnlMdiaDstcdCompareMonthlyServiceImpl
|
||||
implements ChnlMdiaDstcdCompareMonthlyService {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("chnlMdiaDstcdCompareMonthlyDAO")
|
||||
private ChnlMdiaDstcdCompareMonthlyDAO chnlMdiaDstcdCompareMonthlyDAO = null;
|
||||
|
||||
public List getFindChnlMdiaDstcdMonthlyData(StatisticsForm statisticsForm) throws Exception {
|
||||
return chnlMdiaDstcdCompareMonthlyDAO.findByTransactionChnlMdiaDstcdMonthly(statisticsForm);
|
||||
}
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
public interface ChnlMdiaDstcdDailyService {
|
||||
|
||||
public List getFindDailyData(StatisticsForm statisticsForm) throws Exception;
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.dao.ChnlMdiaDstcdDailyDAO;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id ="chnlMdiaDstcdDailyServiceImpl"
|
||||
* @spring.property name="chnlMdiaDstcdDailyDAO" ref="chnlMdiaDstcdDailyDAO"
|
||||
*/
|
||||
@Service("chnlMdiaDstcdDailyService")
|
||||
public class ChnlMdiaDstcdDailyServiceImpl
|
||||
implements ChnlMdiaDstcdDailyService {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("chnlMdiaDstcdDailyDAO")
|
||||
private ChnlMdiaDstcdDailyDAO chnlMdiaDstcdDailyDAO = null;
|
||||
|
||||
public List getFindDailyData(StatisticsForm statisticsForm) throws Exception {
|
||||
return chnlMdiaDstcdDailyDAO.findByChnlMdiaDstcdDaily(statisticsForm);
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
public interface ChnlMdiaDstcdMonthlyService {
|
||||
|
||||
public List getFindMonthlyData(StatisticsForm statisticsForm) throws Exception;
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.dao.ChnlMdiaDstcdMonthlyDAO;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id = "chnlMdiaDstcdMonthlyServiceImpl"
|
||||
* @spring.property name = "chnlMdiaDstcdMonthlyDAO" ref = "chnlMdiaDstcdMonthlyDAO"
|
||||
*/
|
||||
@Service("chnlMdiaDstcdMonthlyService")
|
||||
public class ChnlMdiaDstcdMonthlyServiceImpl
|
||||
implements ChnlMdiaDstcdMonthlyService {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("chnlMdiaDstcdMonthlyDAO")
|
||||
private ChnlMdiaDstcdMonthlyDAO chnlMdiaDstcdMonthlyDAO = null;
|
||||
|
||||
public List getFindMonthlyData(StatisticsForm statisticsForm) throws Exception {
|
||||
return chnlMdiaDstcdMonthlyDAO.findByChnlMdiaDstcd(statisticsForm);
|
||||
}
|
||||
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
public interface ChnlMdiaDstcdYearlyService {
|
||||
|
||||
public List getFindYearlyData(StatisticsForm statisticsForm) throws Exception;
|
||||
|
||||
public List getFindYearlyDataObject2_1(StatisticsForm statisticsForm) throws Exception;
|
||||
|
||||
public List getFindYearlyDataObject2_2(StatisticsForm statisticsForm) throws Exception;
|
||||
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.dao.ChnlMdiaDstcdYearlyDAO;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="chnlMdiaDstcdYearlyServiceImpl"
|
||||
* @spring.property name="chnlMdiaDstcdYearlyDAO" ref="chnlMdiaDstcdYearlyDAO"
|
||||
*/
|
||||
@Service("chnlMdiaDstcdYearlyService")
|
||||
public class ChnlMdiaDstcdYearlyServiceImpl
|
||||
implements ChnlMdiaDstcdYearlyService {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("chnlMdiaDstcdYearlyDAO")
|
||||
private ChnlMdiaDstcdYearlyDAO chnlMdiaDstcdYearlyDAO = null;
|
||||
|
||||
public List getFindYearlyData(StatisticsForm statisticsForm) throws Exception {
|
||||
return chnlMdiaDstcdYearlyDAO.findByChnlMdiaDstcdYearly(statisticsForm);
|
||||
}
|
||||
|
||||
public List getFindYearlyDataObject2_1(StatisticsForm statisticsForm) throws Exception {
|
||||
return chnlMdiaDstcdYearlyDAO.findByChnlMdiaDstcdYearlyObject2_1(statisticsForm);
|
||||
}
|
||||
|
||||
public List getFindYearlyDataObject2_2(StatisticsForm statisticsForm) throws Exception {
|
||||
return chnlMdiaDstcdYearlyDAO.findByChnlMdiaDstcdYearlyObject2_2(statisticsForm);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.vo;
|
||||
|
||||
public class ChnlMdiaDstcdCompareMonthlyVO {
|
||||
|
||||
private String chnlMdiaDstcd;
|
||||
|
||||
private long thisMonthProcColumnName, lastMonthProcColumnName;
|
||||
|
||||
public String getChnlMdiaDstcd() {
|
||||
return chnlMdiaDstcd;
|
||||
}
|
||||
|
||||
public void setChnlMdiaDstcd(String chnlMdiaDstcd) {
|
||||
this.chnlMdiaDstcd = chnlMdiaDstcd;
|
||||
}
|
||||
|
||||
public long getLastMonthProcColumnName() {
|
||||
return lastMonthProcColumnName;
|
||||
}
|
||||
|
||||
public void setLastMonthProcColumnName(long lastMonthProcColumnName) {
|
||||
this.lastMonthProcColumnName = lastMonthProcColumnName;
|
||||
}
|
||||
|
||||
public long getThisMonthProcColumnName() {
|
||||
return thisMonthProcColumnName;
|
||||
}
|
||||
|
||||
public void setThisMonthProcColumnName(long thisMonthProcColumnName) {
|
||||
this.thisMonthProcColumnName = thisMonthProcColumnName;
|
||||
}
|
||||
}
|
||||
+542
@@ -0,0 +1,542 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.vo;
|
||||
|
||||
public class ChnlMdiaDstcdDailyVO {
|
||||
|
||||
private String chnlMdiaDstcd;
|
||||
|
||||
private long ddTrsmtNoitm1, ddErrNoitm1;
|
||||
private long ddTrsmtNoitm2, ddErrNoitm2;
|
||||
private long ddTrsmtNoitm3, ddErrNoitm3;
|
||||
private long ddTrsmtNoitm4, ddErrNoitm4;
|
||||
private long ddTrsmtNoitm5, ddErrNoitm5;
|
||||
private long ddTrsmtNoitm6, ddErrNoitm6;
|
||||
private long ddTrsmtNoitm7, ddErrNoitm7;
|
||||
private long ddTrsmtNoitm8, ddErrNoitm8;
|
||||
private long ddTrsmtNoitm9, ddErrNoitm9;
|
||||
private long ddTrsmtNoitm10, ddErrNoitm10;
|
||||
private long ddTrsmtNoitm11, ddErrNoitm11;
|
||||
private long ddTrsmtNoitm12, ddErrNoitm12;
|
||||
private long ddTrsmtNoitm13, ddErrNoitm13;
|
||||
private long ddTrsmtNoitm14, ddErrNoitm14;
|
||||
private long ddTrsmtNoitm15, ddErrNoitm15;
|
||||
private long ddTrsmtNoitm16, ddErrNoitm16;
|
||||
private long ddTrsmtNoitm17, ddErrNoitm17;
|
||||
private long ddTrsmtNoitm18, ddErrNoitm18;
|
||||
private long ddTrsmtNoitm19, ddErrNoitm19;
|
||||
private long ddTrsmtNoitm20, ddErrNoitm20;
|
||||
private long ddTrsmtNoitm21, ddErrNoitm21;
|
||||
private long ddTrsmtNoitm22, ddErrNoitm22;
|
||||
private long ddTrsmtNoitm23, ddErrNoitm23;
|
||||
private long ddTrsmtNoitm24, ddErrNoitm24;
|
||||
private long ddTrsmtNoitm25, ddErrNoitm25;
|
||||
private long ddTrsmtNoitm26, ddErrNoitm26;
|
||||
private long ddTrsmtNoitm27, ddErrNoitm27;
|
||||
private long ddTrsmtNoitm28, ddErrNoitm28;
|
||||
private long ddTrsmtNoitm29, ddErrNoitm29;
|
||||
private long ddTrsmtNoitm30, ddErrNoitm30;
|
||||
private long ddTrsmtNoitm31, ddErrNoitm31;
|
||||
|
||||
public long getDdErrNoitm1() {
|
||||
return ddErrNoitm1;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm1(long ddErrNoitm1) {
|
||||
this.ddErrNoitm1 = ddErrNoitm1;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm10() {
|
||||
return ddErrNoitm10;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm10(long ddErrNoitm10) {
|
||||
this.ddErrNoitm10 = ddErrNoitm10;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm11() {
|
||||
return ddErrNoitm11;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm11(long ddErrNoitm11) {
|
||||
this.ddErrNoitm11 = ddErrNoitm11;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm12() {
|
||||
return ddErrNoitm12;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm12(long ddErrNoitm12) {
|
||||
this.ddErrNoitm12 = ddErrNoitm12;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm13() {
|
||||
return ddErrNoitm13;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm13(long ddErrNoitm13) {
|
||||
this.ddErrNoitm13 = ddErrNoitm13;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm14() {
|
||||
return ddErrNoitm14;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm14(long ddErrNoitm14) {
|
||||
this.ddErrNoitm14 = ddErrNoitm14;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm15() {
|
||||
return ddErrNoitm15;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm15(long ddErrNoitm15) {
|
||||
this.ddErrNoitm15 = ddErrNoitm15;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm16() {
|
||||
return ddErrNoitm16;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm16(long ddErrNoitm16) {
|
||||
this.ddErrNoitm16 = ddErrNoitm16;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm17() {
|
||||
return ddErrNoitm17;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm17(long ddErrNoitm17) {
|
||||
this.ddErrNoitm17 = ddErrNoitm17;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm18() {
|
||||
return ddErrNoitm18;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm18(long ddErrNoitm18) {
|
||||
this.ddErrNoitm18 = ddErrNoitm18;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm19() {
|
||||
return ddErrNoitm19;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm19(long ddErrNoitm19) {
|
||||
this.ddErrNoitm19 = ddErrNoitm19;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm2() {
|
||||
return ddErrNoitm2;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm2(long ddErrNoitm2) {
|
||||
this.ddErrNoitm2 = ddErrNoitm2;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm20() {
|
||||
return ddErrNoitm20;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm20(long ddErrNoitm20) {
|
||||
this.ddErrNoitm20 = ddErrNoitm20;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm21() {
|
||||
return ddErrNoitm21;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm21(long ddErrNoitm21) {
|
||||
this.ddErrNoitm21 = ddErrNoitm21;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm22() {
|
||||
return ddErrNoitm22;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm22(long ddErrNoitm22) {
|
||||
this.ddErrNoitm22 = ddErrNoitm22;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm23() {
|
||||
return ddErrNoitm23;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm23(long ddErrNoitm23) {
|
||||
this.ddErrNoitm23 = ddErrNoitm23;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm24() {
|
||||
return ddErrNoitm24;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm24(long ddErrNoitm24) {
|
||||
this.ddErrNoitm24 = ddErrNoitm24;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm25() {
|
||||
return ddErrNoitm25;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm25(long ddErrNoitm25) {
|
||||
this.ddErrNoitm25 = ddErrNoitm25;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm26() {
|
||||
return ddErrNoitm26;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm26(long ddErrNoitm26) {
|
||||
this.ddErrNoitm26 = ddErrNoitm26;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm27() {
|
||||
return ddErrNoitm27;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm27(long ddErrNoitm27) {
|
||||
this.ddErrNoitm27 = ddErrNoitm27;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm28() {
|
||||
return ddErrNoitm28;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm28(long ddErrNoitm28) {
|
||||
this.ddErrNoitm28 = ddErrNoitm28;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm29() {
|
||||
return ddErrNoitm29;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm29(long ddErrNoitm29) {
|
||||
this.ddErrNoitm29 = ddErrNoitm29;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm3() {
|
||||
return ddErrNoitm3;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm3(long ddErrNoitm3) {
|
||||
this.ddErrNoitm3 = ddErrNoitm3;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm30() {
|
||||
return ddErrNoitm30;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm30(long ddErrNoitm30) {
|
||||
this.ddErrNoitm30 = ddErrNoitm30;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm31() {
|
||||
return ddErrNoitm31;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm31(long ddErrNoitm31) {
|
||||
this.ddErrNoitm31 = ddErrNoitm31;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm4() {
|
||||
return ddErrNoitm4;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm4(long ddErrNoitm4) {
|
||||
this.ddErrNoitm4 = ddErrNoitm4;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm5() {
|
||||
return ddErrNoitm5;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm5(long ddErrNoitm5) {
|
||||
this.ddErrNoitm5 = ddErrNoitm5;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm6() {
|
||||
return ddErrNoitm6;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm6(long ddErrNoitm6) {
|
||||
this.ddErrNoitm6 = ddErrNoitm6;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm7() {
|
||||
return ddErrNoitm7;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm7(long ddErrNoitm7) {
|
||||
this.ddErrNoitm7 = ddErrNoitm7;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm8() {
|
||||
return ddErrNoitm8;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm8(long ddErrNoitm8) {
|
||||
this.ddErrNoitm8 = ddErrNoitm8;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm9() {
|
||||
return ddErrNoitm9;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm9(long ddErrNoitm9) {
|
||||
this.ddErrNoitm9 = ddErrNoitm9;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm1() {
|
||||
return ddTrsmtNoitm1;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm1(long ddTrsmtNoitm1) {
|
||||
this.ddTrsmtNoitm1 = ddTrsmtNoitm1;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm10() {
|
||||
return ddTrsmtNoitm10;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm10(long ddTrsmtNoitm10) {
|
||||
this.ddTrsmtNoitm10 = ddTrsmtNoitm10;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm11() {
|
||||
return ddTrsmtNoitm11;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm11(long ddTrsmtNoitm11) {
|
||||
this.ddTrsmtNoitm11 = ddTrsmtNoitm11;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm12() {
|
||||
return ddTrsmtNoitm12;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm12(long ddTrsmtNoitm12) {
|
||||
this.ddTrsmtNoitm12 = ddTrsmtNoitm12;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm13() {
|
||||
return ddTrsmtNoitm13;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm13(long ddTrsmtNoitm13) {
|
||||
this.ddTrsmtNoitm13 = ddTrsmtNoitm13;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm14() {
|
||||
return ddTrsmtNoitm14;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm14(long ddTrsmtNoitm14) {
|
||||
this.ddTrsmtNoitm14 = ddTrsmtNoitm14;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm15() {
|
||||
return ddTrsmtNoitm15;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm15(long ddTrsmtNoitm15) {
|
||||
this.ddTrsmtNoitm15 = ddTrsmtNoitm15;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm16() {
|
||||
return ddTrsmtNoitm16;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm16(long ddTrsmtNoitm16) {
|
||||
this.ddTrsmtNoitm16 = ddTrsmtNoitm16;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm17() {
|
||||
return ddTrsmtNoitm17;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm17(long ddTrsmtNoitm17) {
|
||||
this.ddTrsmtNoitm17 = ddTrsmtNoitm17;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm18() {
|
||||
return ddTrsmtNoitm18;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm18(long ddTrsmtNoitm18) {
|
||||
this.ddTrsmtNoitm18 = ddTrsmtNoitm18;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm19() {
|
||||
return ddTrsmtNoitm19;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm19(long ddTrsmtNoitm19) {
|
||||
this.ddTrsmtNoitm19 = ddTrsmtNoitm19;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm2() {
|
||||
return ddTrsmtNoitm2;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm2(long ddTrsmtNoitm2) {
|
||||
this.ddTrsmtNoitm2 = ddTrsmtNoitm2;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm20() {
|
||||
return ddTrsmtNoitm20;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm20(long ddTrsmtNoitm20) {
|
||||
this.ddTrsmtNoitm20 = ddTrsmtNoitm20;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm21() {
|
||||
return ddTrsmtNoitm21;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm21(long ddTrsmtNoitm21) {
|
||||
this.ddTrsmtNoitm21 = ddTrsmtNoitm21;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm22() {
|
||||
return ddTrsmtNoitm22;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm22(long ddTrsmtNoitm22) {
|
||||
this.ddTrsmtNoitm22 = ddTrsmtNoitm22;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm23() {
|
||||
return ddTrsmtNoitm23;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm23(long ddTrsmtNoitm23) {
|
||||
this.ddTrsmtNoitm23 = ddTrsmtNoitm23;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm24() {
|
||||
return ddTrsmtNoitm24;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm24(long ddTrsmtNoitm24) {
|
||||
this.ddTrsmtNoitm24 = ddTrsmtNoitm24;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm25() {
|
||||
return ddTrsmtNoitm25;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm25(long ddTrsmtNoitm25) {
|
||||
this.ddTrsmtNoitm25 = ddTrsmtNoitm25;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm26() {
|
||||
return ddTrsmtNoitm26;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm26(long ddTrsmtNoitm26) {
|
||||
this.ddTrsmtNoitm26 = ddTrsmtNoitm26;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm27() {
|
||||
return ddTrsmtNoitm27;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm27(long ddTrsmtNoitm27) {
|
||||
this.ddTrsmtNoitm27 = ddTrsmtNoitm27;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm28() {
|
||||
return ddTrsmtNoitm28;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm28(long ddTrsmtNoitm28) {
|
||||
this.ddTrsmtNoitm28 = ddTrsmtNoitm28;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm29() {
|
||||
return ddTrsmtNoitm29;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm29(long ddTrsmtNoitm29) {
|
||||
this.ddTrsmtNoitm29 = ddTrsmtNoitm29;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm3() {
|
||||
return ddTrsmtNoitm3;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm3(long ddTrsmtNoitm3) {
|
||||
this.ddTrsmtNoitm3 = ddTrsmtNoitm3;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm30() {
|
||||
return ddTrsmtNoitm30;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm30(long ddTrsmtNoitm30) {
|
||||
this.ddTrsmtNoitm30 = ddTrsmtNoitm30;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm31() {
|
||||
return ddTrsmtNoitm31;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm31(long ddTrsmtNoitm31) {
|
||||
this.ddTrsmtNoitm31 = ddTrsmtNoitm31;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm4() {
|
||||
return ddTrsmtNoitm4;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm4(long ddTrsmtNoitm4) {
|
||||
this.ddTrsmtNoitm4 = ddTrsmtNoitm4;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm5() {
|
||||
return ddTrsmtNoitm5;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm5(long ddTrsmtNoitm5) {
|
||||
this.ddTrsmtNoitm5 = ddTrsmtNoitm5;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm6() {
|
||||
return ddTrsmtNoitm6;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm6(long ddTrsmtNoitm6) {
|
||||
this.ddTrsmtNoitm6 = ddTrsmtNoitm6;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm7() {
|
||||
return ddTrsmtNoitm7;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm7(long ddTrsmtNoitm7) {
|
||||
this.ddTrsmtNoitm7 = ddTrsmtNoitm7;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm8() {
|
||||
return ddTrsmtNoitm8;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm8(long ddTrsmtNoitm8) {
|
||||
this.ddTrsmtNoitm8 = ddTrsmtNoitm8;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm9() {
|
||||
return ddTrsmtNoitm9;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm9(long ddTrsmtNoitm9) {
|
||||
this.ddTrsmtNoitm9 = ddTrsmtNoitm9;
|
||||
}
|
||||
|
||||
public String getChnlMdiaDstcd() {
|
||||
return chnlMdiaDstcd;
|
||||
}
|
||||
|
||||
public void setChnlMdiaDstcd(String chnlMdiaDstcd) {
|
||||
this.chnlMdiaDstcd = chnlMdiaDstcd;
|
||||
}
|
||||
}
|
||||
+219
@@ -0,0 +1,219 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.vo;
|
||||
|
||||
public class ChnlMdiaDstcdMonthlyVO {
|
||||
|
||||
|
||||
private String chnlMdiaDstcd;
|
||||
private long mnTrsmtNoitm1, mnErrNoitm1;
|
||||
private long mnTrsmtNoitm2, mnErrNoitm2;
|
||||
private long mnTrsmtNoitm3, mnErrNoitm3;
|
||||
private long mnTrsmtNoitm4, mnErrNoitm4;
|
||||
private long mnTrsmtNoitm5, mnErrNoitm5;
|
||||
private long mnTrsmtNoitm6, mnErrNoitm6;
|
||||
private long mnTrsmtNoitm7, mnErrNoitm7;
|
||||
private long mnTrsmtNoitm8, mnErrNoitm8;
|
||||
private long mnTrsmtNoitm9, mnErrNoitm9;
|
||||
private long mnTrsmtNoitm10, mnErrNoitm10;
|
||||
private long mnTrsmtNoitm11, mnErrNoitm11;
|
||||
private long mnTrsmtNoitm12, mnErrNoitm12;
|
||||
|
||||
public String getChnlMdiaDstcd() {
|
||||
return chnlMdiaDstcd;
|
||||
}
|
||||
|
||||
public void setChnlMdiaDstcd(String chnlMdiaDstcd) {
|
||||
this.chnlMdiaDstcd = chnlMdiaDstcd;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm1() {
|
||||
return mnErrNoitm1;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm1(long mnErrNoitm1) {
|
||||
this.mnErrNoitm1 = mnErrNoitm1;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm10() {
|
||||
return mnErrNoitm10;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm10(long mnErrNoitm10) {
|
||||
this.mnErrNoitm10 = mnErrNoitm10;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm11() {
|
||||
return mnErrNoitm11;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm11(long mnErrNoitm11) {
|
||||
this.mnErrNoitm11 = mnErrNoitm11;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm12() {
|
||||
return mnErrNoitm12;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm12(long mnErrNoitm12) {
|
||||
this.mnErrNoitm12 = mnErrNoitm12;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm2() {
|
||||
return mnErrNoitm2;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm2(long mnErrNoitm2) {
|
||||
this.mnErrNoitm2 = mnErrNoitm2;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm3() {
|
||||
return mnErrNoitm3;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm3(long mnErrNoitm3) {
|
||||
this.mnErrNoitm3 = mnErrNoitm3;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm4() {
|
||||
return mnErrNoitm4;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm4(long mnErrNoitm4) {
|
||||
this.mnErrNoitm4 = mnErrNoitm4;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm5() {
|
||||
return mnErrNoitm5;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm5(long mnErrNoitm5) {
|
||||
this.mnErrNoitm5 = mnErrNoitm5;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm6() {
|
||||
return mnErrNoitm6;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm6(long mnErrNoitm6) {
|
||||
this.mnErrNoitm6 = mnErrNoitm6;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm7() {
|
||||
return mnErrNoitm7;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm7(long mnErrNoitm7) {
|
||||
this.mnErrNoitm7 = mnErrNoitm7;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm8() {
|
||||
return mnErrNoitm8;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm8(long mnErrNoitm8) {
|
||||
this.mnErrNoitm8 = mnErrNoitm8;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm9() {
|
||||
return mnErrNoitm9;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm9(long mnErrNoitm9) {
|
||||
this.mnErrNoitm9 = mnErrNoitm9;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm1() {
|
||||
return mnTrsmtNoitm1;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm1(long mnTrsmtNoitm1) {
|
||||
this.mnTrsmtNoitm1 = mnTrsmtNoitm1;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm10() {
|
||||
return mnTrsmtNoitm10;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm10(long mnTrsmtNoitm10) {
|
||||
this.mnTrsmtNoitm10 = mnTrsmtNoitm10;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm11() {
|
||||
return mnTrsmtNoitm11;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm11(long mnTrsmtNoitm11) {
|
||||
this.mnTrsmtNoitm11 = mnTrsmtNoitm11;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm12() {
|
||||
return mnTrsmtNoitm12;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm12(long mnTrsmtNoitm12) {
|
||||
this.mnTrsmtNoitm12 = mnTrsmtNoitm12;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm2() {
|
||||
return mnTrsmtNoitm2;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm2(long mnTrsmtNoitm2) {
|
||||
this.mnTrsmtNoitm2 = mnTrsmtNoitm2;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm3() {
|
||||
return mnTrsmtNoitm3;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm3(long mnTrsmtNoitm3) {
|
||||
this.mnTrsmtNoitm3 = mnTrsmtNoitm3;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm4() {
|
||||
return mnTrsmtNoitm4;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm4(long mnTrsmtNoitm4) {
|
||||
this.mnTrsmtNoitm4 = mnTrsmtNoitm4;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm5() {
|
||||
return mnTrsmtNoitm5;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm5(long mnTrsmtNoitm5) {
|
||||
this.mnTrsmtNoitm5 = mnTrsmtNoitm5;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm6() {
|
||||
return mnTrsmtNoitm6;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm6(long mnTrsmtNoitm6) {
|
||||
this.mnTrsmtNoitm6 = mnTrsmtNoitm6;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm7() {
|
||||
return mnTrsmtNoitm7;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm7(long mnTrsmtNoitm7) {
|
||||
this.mnTrsmtNoitm7 = mnTrsmtNoitm7;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm8() {
|
||||
return mnTrsmtNoitm8;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm8(long mnTrsmtNoitm8) {
|
||||
this.mnTrsmtNoitm8 = mnTrsmtNoitm8;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm9() {
|
||||
return mnTrsmtNoitm9;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm9(long mnTrsmtNoitm9) {
|
||||
this.mnTrsmtNoitm9 = mnTrsmtNoitm9;
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
package com.eactive.eai.rms.onl.statistics.chnlmdiadstcd.vo;
|
||||
|
||||
public class ChnlMdiaDstcdYearlyVO {
|
||||
|
||||
private String statcY;
|
||||
private String chnlMdiaDstcd;
|
||||
private long ynTrsmtNoitm, ynErrNoitm;
|
||||
|
||||
public String getChnlMdiaDstcd() {
|
||||
return chnlMdiaDstcd;
|
||||
}
|
||||
|
||||
public void setChnlMdiaDstcd(String chnlMdiaDstcd) {
|
||||
this.chnlMdiaDstcd = chnlMdiaDstcd;
|
||||
}
|
||||
|
||||
public String getStatcY() {
|
||||
return statcY;
|
||||
}
|
||||
|
||||
public void setStatcY(String statcY) {
|
||||
this.statcY = statcY;
|
||||
}
|
||||
|
||||
public long getYnErrNoitm() {
|
||||
return ynErrNoitm;
|
||||
}
|
||||
|
||||
public void setYnErrNoitm(long ynErrNoitm) {
|
||||
this.ynErrNoitm = ynErrNoitm;
|
||||
}
|
||||
|
||||
public long getYnTrsmtNoitm() {
|
||||
return ynTrsmtNoitm;
|
||||
}
|
||||
|
||||
public void setYnTrsmtNoitm(long ynTrsmtNoitm) {
|
||||
this.ynTrsmtNoitm = ynTrsmtNoitm;
|
||||
}
|
||||
|
||||
}
|
||||
+136
@@ -0,0 +1,136 @@
|
||||
package com.eactive.eai.rms.onl.statistics.company.annually;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.combo.ComboService;
|
||||
import com.eactive.eai.rms.common.combo.ComboVo;
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.common.util.CamelCaseUtil;
|
||||
import com.eactive.eai.rms.common.vo.JsonPageVo;
|
||||
import com.google.gson.Gson;
|
||||
|
||||
/**
|
||||
* @author : yk
|
||||
* @version : $Revision: 1.1 $
|
||||
*/
|
||||
@Controller
|
||||
public class CompanyAnnuallyController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("companyAnnuallyService")
|
||||
private CompanyAnnuallyService service;
|
||||
|
||||
@Autowired
|
||||
private ComboService comboService;
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyAnnuallyMan.view")
|
||||
private String viewList(HttpServletRequest request, @RequestParam(value = "cmd", required = false) String cmd)
|
||||
throws Exception {
|
||||
if (cmd == null || "LIST".equals(cmd.toUpperCase())) {
|
||||
cmd = "";
|
||||
} else {
|
||||
cmd = CamelCaseUtil.converCamelCase(cmd);
|
||||
}
|
||||
String path = request.getServletPath();
|
||||
return path.split("[.]")[0] + cmd;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyAnnuallyMan.json", params = "cmd=LIST")
|
||||
private ModelAndView selectList(HttpServletRequest request, JsonPageVo pageVo,
|
||||
@RequestParam HashMap<String, Object> paramMap) throws Exception {
|
||||
HashMap map = service.selectList(pageVo.getStartNum(), pageVo.getEndNum(), paramMap);
|
||||
|
||||
pageVo.setTotalCount((Integer) map.get("totalCount"));
|
||||
|
||||
Map resultMap = new HashMap();
|
||||
resultMap.put("total", pageVo.getTotal()); // 전체 페이지수
|
||||
resultMap.put("page", pageVo.getPage()); // 현재 페이지수
|
||||
resultMap.put("records", pageVo.getTotalCount());// 전체 레코드건수
|
||||
resultMap.put("rows", map.get("list"));
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView", resultMap);
|
||||
return modelAndView;
|
||||
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyAnnuallyMan.json", params = "cmd=LIST_INIT_COMBO")
|
||||
public ModelAndView listInitCombo(HttpServletRequest request, HttpServletResponse response) {
|
||||
|
||||
List<ComboVo> listSndRecvCd = comboService.getFromCode("SND_RCV_CD");// 송수신 구분코드
|
||||
List<ComboVo> listBiz = comboService.getFromBusinessType();
|
||||
|
||||
List<ComboVo> listAdptrDesc = comboService.getMonitoringCodeSortedBySeq("ADPTR_DESC");
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
resultMap.put("sndRecvCdRows", listSndRecvCd);
|
||||
resultMap.put("adptrDescRows", listAdptrDesc);
|
||||
resultMap.put("bzwkDstcdRows", listBiz);
|
||||
|
||||
return new ModelAndView("jsonView", resultMap);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyAnnuallyMan.json", params = "cmd=DETAIL")
|
||||
private ModelAndView selectDetail(HttpServletRequest request, HttpServletResponse response,
|
||||
@RequestParam HashMap<String, Object> paramMap) throws Exception {
|
||||
HashMap<String, Object> map = service.selectDetail(paramMap);
|
||||
return new ModelAndView("jsonView", map);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyAnnuallyMan.json", params = "cmd=LIST_DETAIL_COMBO")
|
||||
public ModelAndView eaiSvcNameCombo(HttpServletRequest request, HttpServletResponse response) throws Exception {
|
||||
|
||||
List<ComboVo> listSndRecvCd = comboService.getFromCode("SND_RCV_CD");// 송수신 구분코드
|
||||
|
||||
Map resultMap = new HashMap();
|
||||
resultMap.put("sndRecvCdRows", listSndRecvCd);
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView", resultMap);
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyAnnuallyMan.excel", params = "cmd=LIST_GRID_TO_EXCEL")
|
||||
public ModelAndView listGridToExcel(HttpServletRequest request, HttpServletResponse response,
|
||||
@RequestParam HashMap<String, Object> paramMap) throws Exception {
|
||||
HashMap<String, Object> resultMap = new HashMap<String, Object>();
|
||||
|
||||
String headersStr = (String) paramMap.get("headersStr");
|
||||
headersStr = headersStr + "ADPTRINSTICODE";
|
||||
paramMap.put("headersStr", headersStr);
|
||||
|
||||
Gson gson = new Gson();
|
||||
@SuppressWarnings("unchecked")
|
||||
HashMap<String, Object> list = service.selectListToExcel(paramMap);
|
||||
|
||||
String jsonStr = gson.toJson(list.get("list"));
|
||||
HashMap<String, String>[] list2 = gson.fromJson(jsonStr, HashMap[].class);
|
||||
|
||||
String[] headers = gson.fromJson((String) paramMap.get("header"), String[].class);
|
||||
String[] headerTitles = gson.fromJson((String) paramMap.get("headerTitle"), String[].class);
|
||||
|
||||
HashMap<String, Object>[] lmerge = null;
|
||||
String merge = (String) paramMap.get("merge");
|
||||
if (merge != null) {
|
||||
lmerge = gson.fromJson(merge, HashMap[].class);
|
||||
}
|
||||
|
||||
resultMap.put("headers", headers);
|
||||
resultMap.put("headerTitles", headerTitles);
|
||||
resultMap.put("datas", list2);
|
||||
resultMap.put("fileName", (String) paramMap.get("fileName"));
|
||||
resultMap.put("merge", lmerge);
|
||||
ModelAndView modelAndView = new ModelAndView("excelView", resultMap);
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
package com.eactive.eai.rms.onl.statistics.company.annually;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : yk
|
||||
* @version : $Revision: 1.1 $
|
||||
*/
|
||||
@Repository("companyAnnuallyDAO")
|
||||
public class CompanyAnnuallyDAO extends SqlMapClientTemplateDao {
|
||||
public int selectListCount(HashMap paramMap) throws Exception {
|
||||
return (Integer)template.queryForObject("CompanyAnnually.selectListCount", paramMap);
|
||||
}
|
||||
public List selectList(HashMap paramMap) throws Exception {
|
||||
return template.queryForList("CompanyAnnually.selectList", paramMap);
|
||||
}
|
||||
public List selectListToExcel(HashMap paramMap) throws Exception {
|
||||
return template.queryForList("CompanyAnnually.selectListToExcel", paramMap);
|
||||
}
|
||||
public HashMap<String, Object> selectDetail(HashMap paramMap) throws Exception {
|
||||
return (HashMap)template.queryForObject("CompanyAnnually.selectDetail", paramMap);
|
||||
}
|
||||
}
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
package com.eactive.eai.rms.onl.statistics.company.annually;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.eactive.apim.portal.monitoringcode.entity.MonitoringCodeId;
|
||||
import com.eactive.eai.rms.data.entity.man.monitoringCode.service.MonitoringCodeService;
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : yk
|
||||
* @version : $Revision: 1.1 $
|
||||
*/
|
||||
@Service("companyAnnuallyService")
|
||||
public class CompanyAnnuallyService {
|
||||
|
||||
private CompanyAnnuallyDAO dao = null;
|
||||
private MonitoringCodeService monitoringCodeService;
|
||||
|
||||
@Autowired
|
||||
public CompanyAnnuallyService(@Qualifier("companyAnnuallyDAO") final CompanyAnnuallyDAO dao,
|
||||
MonitoringCodeService monitoringCodeService) {
|
||||
this.dao = dao;
|
||||
this.monitoringCodeService = monitoringCodeService;
|
||||
}
|
||||
|
||||
public HashMap selectList(int startNum,int endNum,HashMap paramMap) throws Exception {
|
||||
|
||||
// 전체 목록수 얻기
|
||||
int totalCount = dao.selectListCount(paramMap);
|
||||
|
||||
paramMap.put("startNum" , startNum);// 시작 record
|
||||
paramMap.put("endNum" , endNum);// 끝 record
|
||||
|
||||
List list = dao.selectList(paramMap);
|
||||
|
||||
//모니터링 기관코드 받아오기
|
||||
List listSet = new ArrayList<HashMap<String, Object>>();
|
||||
for(int i=0;i<list.size();i++) {
|
||||
HashMap<String, Object> tmp = (HashMap<String, Object>) list.get(i);
|
||||
String adapterInstiCode = (String)tmp.get("ADPTRINSTICODE");
|
||||
|
||||
if(StringUtils.isNotBlank(adapterInstiCode)) {
|
||||
String codeName = monitoringCodeService.findCodenameById(new MonitoringCodeId("ADPTR_DESC",adapterInstiCode));
|
||||
tmp.put("ADPTRINSTINAME", codeName);
|
||||
}
|
||||
listSet.add(tmp);
|
||||
}
|
||||
HashMap map = new HashMap();
|
||||
|
||||
map.put("totalCount", totalCount);
|
||||
|
||||
map.put("list", listSet);
|
||||
|
||||
return map;
|
||||
}
|
||||
public HashMap selectListToExcel(HashMap<String, Object> paramMap ) throws Exception {
|
||||
|
||||
List list = dao.selectListToExcel(paramMap);
|
||||
List listSet = new ArrayList<HashMap<String, Object>>();
|
||||
for(int i=0;i<list.size();i++) {
|
||||
HashMap<String, Object> tmp = (HashMap<String, Object>) list.get(i);
|
||||
String adapterInstiCode = (String)tmp.get("ADPTRINSTICODE");
|
||||
|
||||
if(StringUtils.isNotBlank(adapterInstiCode)) {
|
||||
String codeName = monitoringCodeService.findCodenameById(new MonitoringCodeId("ADPTR_DESC",adapterInstiCode));
|
||||
tmp.put("ADPTRINSTINAME", codeName);
|
||||
}
|
||||
listSet.add(tmp);
|
||||
}
|
||||
|
||||
HashMap map = new HashMap();
|
||||
|
||||
map.put("list", list);
|
||||
|
||||
return map;
|
||||
}
|
||||
public HashMap<String, Object> selectDetail(HashMap paramMap) throws Exception {
|
||||
return dao.selectDetail( paramMap);
|
||||
}
|
||||
|
||||
}
|
||||
+136
@@ -0,0 +1,136 @@
|
||||
package com.eactive.eai.rms.onl.statistics.company.daily;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.combo.ComboService;
|
||||
import com.eactive.eai.rms.common.combo.ComboVo;
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.common.util.CamelCaseUtil;
|
||||
import com.eactive.eai.rms.common.vo.JsonPageVo;
|
||||
import com.google.gson.Gson;
|
||||
|
||||
/**
|
||||
* @author : yk
|
||||
* @version : $Revision: 1.1 $
|
||||
*/
|
||||
@Controller
|
||||
public class CompanyDailyController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("companyDailyService")
|
||||
private CompanyDailyService service;
|
||||
|
||||
@Autowired
|
||||
private ComboService comboService;
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyDailyMan.view")
|
||||
private String viewList(HttpServletRequest request, @RequestParam(value = "cmd", required = false) String cmd)
|
||||
throws Exception {
|
||||
if (cmd == null || "LIST".equals(cmd.toUpperCase())) {
|
||||
cmd = "";
|
||||
} else {
|
||||
cmd = CamelCaseUtil.converCamelCase(cmd);
|
||||
}
|
||||
String path = request.getServletPath();
|
||||
return path.split("[.]")[0] + cmd;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyDailyMan.json", params = "cmd=LIST")
|
||||
private ModelAndView selectList(HttpServletRequest request, JsonPageVo pageVo,
|
||||
@RequestParam HashMap<String, Object> paramMap) throws Exception {
|
||||
HashMap map = service.selectList(pageVo.getStartNum(), pageVo.getEndNum(), paramMap);
|
||||
|
||||
pageVo.setTotalCount((Integer) map.get("totalCount"));
|
||||
|
||||
Map resultMap = new HashMap();
|
||||
resultMap.put("total", pageVo.getTotal()); // 전체 페이지수
|
||||
resultMap.put("page", pageVo.getPage()); // 현재 페이지수
|
||||
resultMap.put("records", pageVo.getTotalCount());// 전체 레코드건수
|
||||
resultMap.put("rows", map.get("list"));
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView", resultMap);
|
||||
return modelAndView;
|
||||
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyDailyMan.json", params = "cmd=LIST_INIT_COMBO")
|
||||
public ModelAndView listInitCombo(HttpServletRequest request, HttpServletResponse response) {
|
||||
|
||||
List<ComboVo> listSndRecvCd = comboService.getFromCode("SND_RCV_CD");// 송수신 구분코드
|
||||
List<ComboVo> listBiz = comboService.getFromBusinessType();// 업무구분코드
|
||||
List<ComboVo> listAdptrDesc = comboService.getMonitoringCodeSortedBySeq("ADPTR_DESC");
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
resultMap.put("sndRecvCdRows", listSndRecvCd);
|
||||
resultMap.put("adptrDescRows", listAdptrDesc);
|
||||
resultMap.put("bzwkDstcdRows", listBiz);
|
||||
|
||||
return new ModelAndView("jsonView", resultMap);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyDailyMan.json", params = "cmd=DETAIL")
|
||||
private ModelAndView selectDetail(HttpServletRequest request, HttpServletResponse response,
|
||||
@RequestParam HashMap<String, Object> paramMap) throws Exception {
|
||||
HashMap<String, Object> map = service.selectDetail(paramMap);
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView", map);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyDailyMan.json", params = "cmd=LIST_DETAIL_COMBO")
|
||||
public ModelAndView listDetailCombo(HttpServletRequest request, HttpServletResponse response) throws Exception {
|
||||
|
||||
List<ComboVo> listSndRecvCd = comboService.getFromCode("SND_RCV_CD");// 송수신 구분코드
|
||||
|
||||
Map resultMap = new HashMap();
|
||||
resultMap.put("sndRecvCdRows", listSndRecvCd);
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView", resultMap);
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyDailyMan.excel", params = "cmd=LIST_GRID_TO_EXCEL")
|
||||
public ModelAndView listGridToExcel(HttpServletRequest request, HttpServletResponse response,
|
||||
@RequestParam HashMap<String, Object> paramMap) throws Exception {
|
||||
HashMap<String, Object> resultMap = new HashMap<String, Object>();
|
||||
|
||||
String headersStr = (String) paramMap.get("headersStr");
|
||||
headersStr = headersStr + "ADPTRINSTICODE";
|
||||
paramMap.put("headersStr", headersStr);
|
||||
|
||||
Gson gson = new Gson();
|
||||
@SuppressWarnings("unchecked")
|
||||
HashMap<String, Object> list = service.selectListToExcel(paramMap);
|
||||
|
||||
String jsonStr = gson.toJson(list.get("list"));
|
||||
HashMap<String, String>[] list2 = gson.fromJson(jsonStr, HashMap[].class);
|
||||
|
||||
String[] headers = gson.fromJson((String) paramMap.get("header"), String[].class);
|
||||
String[] headerTitles = gson.fromJson((String) paramMap.get("headerTitle"), String[].class);
|
||||
|
||||
HashMap<String, Object>[] lmerge = null;
|
||||
String merge = (String) paramMap.get("merge");
|
||||
if (merge != null) {
|
||||
lmerge = gson.fromJson(merge, HashMap[].class);
|
||||
}
|
||||
|
||||
resultMap.put("headers", headers);
|
||||
resultMap.put("headerTitles", headerTitles);
|
||||
resultMap.put("datas", list2);
|
||||
resultMap.put("fileName", (String) paramMap.get("fileName"));
|
||||
resultMap.put("merge", lmerge);
|
||||
ModelAndView modelAndView = new ModelAndView("excelView", resultMap);
|
||||
return modelAndView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.eactive.eai.rms.onl.statistics.company.daily;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : yk
|
||||
* @version : $Revision: 1.1 $
|
||||
*/
|
||||
@Repository("companyDailyDAO")
|
||||
public class CompanyDailyDAO extends SqlMapClientTemplateDao {
|
||||
|
||||
public int selectListCount(HashMap paramMap) throws Exception {
|
||||
return (Integer)template.queryForObject("CompanyDaily.selectListCount", paramMap);
|
||||
}
|
||||
public List selectList(HashMap paramMap) throws Exception {
|
||||
return template.queryForList("CompanyDaily.selectList", paramMap);
|
||||
}
|
||||
public List selectListToExcel(HashMap paramMap) throws Exception {
|
||||
return template.queryForList("CompanyDaily.selectListToExcel", paramMap);
|
||||
}
|
||||
public HashMap<String, Object> selectDetail(HashMap paramMap) throws Exception {
|
||||
return (HashMap)template.queryForObject("CompanyDaily.selectDetail", paramMap);
|
||||
}
|
||||
}
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
package com.eactive.eai.rms.onl.statistics.company.daily;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.eactive.apim.portal.monitoringcode.entity.MonitoringCodeId;
|
||||
import com.eactive.eai.rms.common.base.BaseService;
|
||||
import com.eactive.eai.rms.data.entity.man.monitoringCode.service.MonitoringCodeService;
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : yk
|
||||
* @version : $Revision: 1.1 $
|
||||
*/
|
||||
@Service("companyDailyService")
|
||||
public class CompanyDailyService extends BaseService {
|
||||
|
||||
private CompanyDailyDAO dao = null;
|
||||
private MonitoringCodeService monitoringCodeService;
|
||||
|
||||
@Autowired
|
||||
public CompanyDailyService(@Qualifier("companyDailyDAO") CompanyDailyDAO dao,
|
||||
MonitoringCodeService monitoringCodeService) {
|
||||
this.dao = dao;
|
||||
this.monitoringCodeService = monitoringCodeService;
|
||||
}
|
||||
|
||||
public HashMap selectList(int startNum,int endNum,HashMap paramMap) throws Exception {
|
||||
|
||||
// 전체 목록수 얻기
|
||||
int totalCount = dao.selectListCount(paramMap);
|
||||
|
||||
paramMap.put("startNum" , startNum);// 시작 record
|
||||
paramMap.put("endNum" , endNum);// 끝 record
|
||||
|
||||
List list = dao.selectList(paramMap);
|
||||
|
||||
//모니터링 기관코드 받아오기
|
||||
List listSet = new ArrayList<HashMap<String, Object>>();
|
||||
for(int i=0;i<list.size();i++) {
|
||||
HashMap<String, Object> tmp = (HashMap<String, Object>) list.get(i);
|
||||
String adapterInstiCode = (String)tmp.get("ADPTRINSTICODE");
|
||||
|
||||
if( adapterInstiCode.length() > 0 && adapterInstiCode != null) {
|
||||
String codeName = monitoringCodeService.findCodenameById(new MonitoringCodeId("ADPTR_DESC",adapterInstiCode));
|
||||
tmp.put("ADPTRINSTINAME", codeName);
|
||||
}
|
||||
listSet.add(tmp);
|
||||
}
|
||||
|
||||
HashMap map = new HashMap();
|
||||
|
||||
map.put("totalCount", totalCount);
|
||||
|
||||
map.put("list", listSet);
|
||||
|
||||
return map;
|
||||
}
|
||||
public HashMap selectListToExcel(HashMap<String, Object> paramMap ) throws Exception {
|
||||
|
||||
List list = dao.selectListToExcel(paramMap);
|
||||
//모니터링 기관코드 받아오기
|
||||
List listSet = new ArrayList<HashMap<String, Object>>();
|
||||
for(int i=0;i<list.size();i++) {
|
||||
HashMap<String, Object> tmp = (HashMap<String, Object>) list.get(i);
|
||||
String adapterInstiCode = (String)tmp.get("ADPTRINSTICODE");
|
||||
if( adapterInstiCode.length()>0 && adapterInstiCode !=null) {
|
||||
String codeName = monitoringCodeService.findCodenameById(new MonitoringCodeId("ADPTR_DESC",adapterInstiCode));
|
||||
tmp.put("ADPTRINSTINAME", codeName);
|
||||
}
|
||||
listSet.add(tmp);
|
||||
}
|
||||
|
||||
HashMap map = new HashMap();
|
||||
|
||||
map.put("list", list);
|
||||
|
||||
return map;
|
||||
}
|
||||
public HashMap<String, Object> selectDetail(HashMap paramMap) throws Exception {
|
||||
return dao.selectDetail( paramMap);
|
||||
}
|
||||
}
|
||||
+141
@@ -0,0 +1,141 @@
|
||||
package com.eactive.eai.rms.onl.statistics.company.monthly;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.combo.ComboService;
|
||||
import com.eactive.eai.rms.common.combo.ComboVo;
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.common.util.CamelCaseUtil;
|
||||
import com.eactive.eai.rms.common.vo.JsonPageVo;
|
||||
import com.google.gson.Gson;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @author : yk
|
||||
* @version : $Revision: 1.1 $
|
||||
*/
|
||||
@Controller
|
||||
public class CompanyMonthlyController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("companyMonthlyService")
|
||||
private CompanyMonthlyService service ;
|
||||
|
||||
@Autowired
|
||||
private ComboService comboService;
|
||||
|
||||
@RequestMapping(value= "/onl/statistics/company/companyMonthlyMan.view")
|
||||
private String viewList(HttpServletRequest request, @RequestParam(value = "cmd", required = false ) String cmd ) throws Exception {
|
||||
if (cmd == null || "LIST".equals(cmd.toUpperCase())){
|
||||
cmd = "";
|
||||
}else {
|
||||
cmd = CamelCaseUtil.converCamelCase(cmd);
|
||||
}
|
||||
String path = request.getServletPath();
|
||||
return path.split("[.]")[0]+cmd;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@RequestMapping(value= "/onl/statistics/company/companyMonthlyMan.json",params = "cmd=LIST")
|
||||
private ModelAndView selectList(HttpServletRequest request,
|
||||
JsonPageVo pageVo ,@RequestParam HashMap<String, Object> paramMap
|
||||
) throws Exception {
|
||||
HashMap map = service.selectList( pageVo.getStartNum(), pageVo.getEndNum(), paramMap);
|
||||
|
||||
pageVo.setTotalCount((Integer)map.get("totalCount"));
|
||||
|
||||
Map resultMap = new HashMap();
|
||||
resultMap.put("total" , pageVo.getTotal()); //전체 페이지수
|
||||
resultMap.put("page" , pageVo.getPage()); //현재 페이지수
|
||||
resultMap.put("records", pageVo.getTotalCount());//전체 레코드건수
|
||||
resultMap.put("rows" , map.get("list"));
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView",resultMap);
|
||||
return modelAndView;
|
||||
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyMonthlyMan.json", params = "cmd=LIST_INIT_COMBO")
|
||||
public ModelAndView listInitCombo(HttpServletRequest request, HttpServletResponse response) {
|
||||
|
||||
List<ComboVo> listSndRecvCd = comboService.getFromCode("SND_RCV_CD");// 송수신 구분코드
|
||||
List<ComboVo> listBiz = comboService.getFromBusinessType();// 업무구분코드
|
||||
List<ComboVo> listAdptrDesc = comboService.getMonitoringCodeSortedBySeq("ADPTR_DESC");
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
resultMap.put("sndRecvCdRows", listSndRecvCd);
|
||||
resultMap.put("adptrDescRows", listAdptrDesc);
|
||||
resultMap.put("bzwkDstcdRows", listBiz);
|
||||
|
||||
return new ModelAndView("jsonView", resultMap);
|
||||
}
|
||||
|
||||
@RequestMapping(value= "/onl/statistics/company/companyMonthlyMan.json",params = "cmd=DETAIL")
|
||||
private ModelAndView selectDetail(HttpServletRequest request,
|
||||
HttpServletResponse response,@RequestParam HashMap<String,Object> paramMap) throws Exception {
|
||||
HashMap<String, Object> map = service.selectDetail(paramMap);
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView",map);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
@RequestMapping(value= "/onl/statistics/company/companyMonthlyMan.json",params = "cmd=LIST_DETAIL_COMBO")
|
||||
public ModelAndView eaiSvcNameCombo( HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
|
||||
List<ComboVo> listSndRecvCd = comboService.getFromCode("SND_RCV_CD");//송수신 구분코드
|
||||
|
||||
|
||||
Map resultMap = new HashMap();
|
||||
resultMap.put("sndRecvCdRows" , listSndRecvCd);
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView",resultMap);
|
||||
return modelAndView;
|
||||
}
|
||||
@RequestMapping(value= "/onl/statistics/company/companyMonthlyMan.excel",params = "cmd=LIST_GRID_TO_EXCEL")
|
||||
public ModelAndView listGridToExcel(HttpServletRequest request, HttpServletResponse response, @RequestParam HashMap<String,Object> paramMap) throws Exception {
|
||||
HashMap<String,Object> resultMap = new HashMap<String,Object>();
|
||||
|
||||
String headersStr = (String) paramMap.get("headersStr");
|
||||
headersStr = headersStr+"ADPTRINSTICODE";
|
||||
paramMap.put("headersStr", headersStr);
|
||||
|
||||
Gson gson = new Gson();
|
||||
@SuppressWarnings("unchecked")
|
||||
HashMap<String, Object> list = service.selectListToExcel(paramMap);
|
||||
|
||||
String jsonStr = gson.toJson(list.get("list"));
|
||||
HashMap<String, String>[] list2 = gson.fromJson(jsonStr, HashMap[].class);
|
||||
|
||||
String[] headers = gson.fromJson((String) paramMap.get("header"), String[].class);
|
||||
String[] headerTitles = gson.fromJson((String)paramMap.get("headerTitle"), String[].class);
|
||||
|
||||
HashMap<String, Object>[] lmerge = null;
|
||||
String merge = (String)paramMap.get("merge");
|
||||
if (merge !=null){
|
||||
lmerge = gson.fromJson(merge, HashMap[].class);
|
||||
}
|
||||
|
||||
resultMap.put("headers", headers);
|
||||
resultMap.put("headerTitles", headerTitles);
|
||||
resultMap.put("datas", list2);
|
||||
resultMap.put("fileName", (String)paramMap.get("fileName"));
|
||||
resultMap.put("merge", lmerge);
|
||||
ModelAndView modelAndView = new ModelAndView("excelView",resultMap);
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package com.eactive.eai.rms.onl.statistics.company.monthly;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : yk
|
||||
* @version : $Revision: 1.1 $
|
||||
*/
|
||||
@Repository("companyMonthlyDAO")
|
||||
public class CompanyMonthlyDAO extends SqlMapClientTemplateDao {
|
||||
|
||||
public int selectListCount(HashMap paramMap) throws Exception {
|
||||
return (Integer)template.queryForObject("CompanyMonthly.selectListCount", paramMap);
|
||||
}
|
||||
public List selectList(HashMap paramMap) throws Exception {
|
||||
return template.queryForList("CompanyMonthly.selectList", paramMap);
|
||||
}
|
||||
public List selectListToExcel(HashMap paramMap) throws Exception {
|
||||
return template.queryForList("CompanyMonthly.selectListToExcel", paramMap);
|
||||
}
|
||||
public HashMap<String, Object> selectDetail(HashMap paramMap) throws Exception {
|
||||
return (HashMap)template.queryForObject("CompanyMonthly.selectDetail", paramMap);
|
||||
}
|
||||
}
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
package com.eactive.eai.rms.onl.statistics.company.monthly;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.eactive.apim.portal.monitoringcode.entity.MonitoringCodeId;
|
||||
import com.eactive.eai.rms.data.entity.man.monitoringCode.service.MonitoringCodeService;
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : yk
|
||||
* @version : $Revision: 1.1 $
|
||||
*/
|
||||
@Service("companyMonthlyService")
|
||||
public class CompanyMonthlyService {
|
||||
|
||||
private CompanyMonthlyDAO dao = null;
|
||||
private MonitoringCodeService monitoringCodeService;
|
||||
|
||||
@Autowired
|
||||
public CompanyMonthlyService(@Qualifier("companyMonthlyDAO") final CompanyMonthlyDAO dao,
|
||||
MonitoringCodeService monitoringCodeService) {
|
||||
this.dao = dao;
|
||||
this.monitoringCodeService = monitoringCodeService;
|
||||
}
|
||||
|
||||
public HashMap selectList(int startNum,int endNum,HashMap paramMap) throws Exception {
|
||||
|
||||
// 전체 목록수 얻기
|
||||
int totalCount = dao.selectListCount(paramMap);
|
||||
|
||||
paramMap.put("startNum" , startNum);// 시작 record
|
||||
paramMap.put("endNum" , endNum);// 끝 record
|
||||
|
||||
List list = dao.selectList(paramMap);
|
||||
|
||||
//모니터링 기관코드 받아오기
|
||||
List listSet = new ArrayList<HashMap<String, Object>>();
|
||||
for(int i=0;i<list.size();i++) {
|
||||
HashMap<String, Object> tmp = (HashMap<String, Object>) list.get(i);
|
||||
String adapterInstiCode = (String)tmp.get("ADPTRINSTICODE");
|
||||
if( adapterInstiCode.length()>0 && adapterInstiCode !=null) {
|
||||
String codeName = monitoringCodeService.findCodenameById(new MonitoringCodeId("ADPTR_DESC",adapterInstiCode));
|
||||
tmp.put("ADPTRINSTINAME", codeName);
|
||||
}
|
||||
listSet.add(tmp);
|
||||
}
|
||||
|
||||
HashMap map = new HashMap();
|
||||
|
||||
map.put("totalCount", totalCount);
|
||||
|
||||
map.put("list", listSet);
|
||||
|
||||
return map;
|
||||
}
|
||||
public HashMap selectListToExcel(HashMap<String, Object> paramMap ) throws Exception {
|
||||
|
||||
List list = dao.selectListToExcel(paramMap);
|
||||
//모니터링 기관코드 받아오기
|
||||
List listSet = new ArrayList<HashMap<String, Object>>();
|
||||
for(int i=0;i<list.size();i++) {
|
||||
HashMap<String, Object> tmp = (HashMap<String, Object>) list.get(i);
|
||||
String adapterInstiCode = (String)tmp.get("ADPTRINSTICODE");
|
||||
if( adapterInstiCode.length()>0 && adapterInstiCode !=null) {
|
||||
String codeName = monitoringCodeService.findCodenameById(new MonitoringCodeId("ADPTR_DESC",adapterInstiCode));
|
||||
tmp.put("ADPTRINSTINAME", codeName);
|
||||
}
|
||||
listSet.add(tmp);
|
||||
}
|
||||
|
||||
HashMap map = new HashMap();
|
||||
|
||||
map.put("list", list);
|
||||
|
||||
return map;
|
||||
}
|
||||
public HashMap<String, Object> selectDetail(HashMap paramMap) throws Exception {
|
||||
return dao.selectDetail( paramMap);
|
||||
}
|
||||
}
|
||||
+141
@@ -0,0 +1,141 @@
|
||||
package com.eactive.eai.rms.onl.statistics.company.quarterly;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.combo.ComboService;
|
||||
import com.eactive.eai.rms.common.combo.ComboVo;
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.common.util.CamelCaseUtil;
|
||||
import com.eactive.eai.rms.common.vo.JsonPageVo;
|
||||
import com.google.gson.Gson;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 업무별 일별 거래현황 통계 화면의 컨트롤러
|
||||
* </pre>
|
||||
*
|
||||
* @author : yk
|
||||
* @version : $Revision: 1.1 $
|
||||
*/
|
||||
@Controller
|
||||
public class CompanyQuarterlyController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("companyQuarterlyService")
|
||||
private CompanyQuarterlyService service;
|
||||
|
||||
@Autowired
|
||||
private ComboService comboService;
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyQuarterlyMan.view")
|
||||
private String viewList(HttpServletRequest request, @RequestParam(value = "cmd", required = false) String cmd)
|
||||
throws Exception {
|
||||
if (cmd == null || "LIST".equals(cmd.toUpperCase())) {
|
||||
cmd = "";
|
||||
} else {
|
||||
cmd = CamelCaseUtil.converCamelCase(cmd);
|
||||
}
|
||||
String path = request.getServletPath();
|
||||
return path.split("[.]")[0] + cmd;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyQuarterlyMan.json", params = "cmd=LIST")
|
||||
private ModelAndView selectList(HttpServletRequest request, JsonPageVo pageVo,
|
||||
@RequestParam HashMap<String, Object> paramMap) throws Exception {
|
||||
HashMap map = service.selectList(pageVo.getStartNum(), pageVo.getEndNum(), paramMap);
|
||||
|
||||
pageVo.setTotalCount((Integer) map.get("totalCount"));
|
||||
|
||||
Map resultMap = new HashMap();
|
||||
resultMap.put("total", pageVo.getTotal()); // 전체 페이지수
|
||||
resultMap.put("page", pageVo.getPage()); // 현재 페이지수
|
||||
resultMap.put("records", pageVo.getTotalCount());// 전체 레코드건수
|
||||
resultMap.put("rows", map.get("list"));
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView", resultMap);
|
||||
return modelAndView;
|
||||
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyQuarterlyMan.json", params = "cmd=LIST_INIT_COMBO")
|
||||
public ModelAndView listInitCombo() {
|
||||
|
||||
List<ComboVo> listSndRecvCd = comboService.getFromCode("SND_RCV_CD");// 송수신 구분코드
|
||||
List<ComboVo> listBiz = comboService.getFromBusinessType();// 업무구분코드
|
||||
List<ComboVo> listAdptrDesc = comboService.getMonitoringCodeSortedBySeq("ADPTR_DESC");
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
resultMap.put("sndRecvCdRows", listSndRecvCd);
|
||||
resultMap.put("adptrDescRows", listAdptrDesc);
|
||||
resultMap.put("bzwkDstcdRows", listBiz);
|
||||
|
||||
return new ModelAndView("jsonView", resultMap);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyQuarterlyMan.json", params = "cmd=DETAIL")
|
||||
private ModelAndView selectDetail(HttpServletRequest request, HttpServletResponse response,
|
||||
@RequestParam HashMap<String, Object> paramMap) throws Exception {
|
||||
HashMap<String, Object> map = service.selectDetail(paramMap);
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView", map);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyQuarterlyMan.json", params = "cmd=LIST_DETAIL_COMBO")
|
||||
public ModelAndView eaiSvcNameCombo(HttpServletRequest request, HttpServletResponse response) throws Exception {
|
||||
|
||||
List<ComboVo> listSndRecvCd = comboService.getFromCode("SND_RCV_CD");// 송수신 구분코드
|
||||
|
||||
Map resultMap = new HashMap();
|
||||
resultMap.put("sndRecvCdRows", listSndRecvCd);
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView", resultMap);
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/company/companyQuarterlyMan.excel", params = "cmd=LIST_GRID_TO_EXCEL")
|
||||
public ModelAndView listGridToExcel(HttpServletRequest request, HttpServletResponse response,
|
||||
@RequestParam HashMap<String, Object> paramMap) throws Exception {
|
||||
HashMap<String, Object> resultMap = new HashMap<String, Object>();
|
||||
|
||||
String headersStr = (String) paramMap.get("headersStr");
|
||||
headersStr = headersStr + "ADPTRINSTICODE";
|
||||
paramMap.put("headersStr", headersStr);
|
||||
|
||||
Gson gson = new Gson();
|
||||
@SuppressWarnings("unchecked")
|
||||
HashMap<String, Object> list = service.selectListToExcel(paramMap);
|
||||
|
||||
String jsonStr = gson.toJson(list.get("list"));
|
||||
HashMap<String, String>[] list2 = gson.fromJson(jsonStr, HashMap[].class);
|
||||
|
||||
String[] headers = gson.fromJson((String) paramMap.get("header"), String[].class);
|
||||
String[] headerTitles = gson.fromJson((String) paramMap.get("headerTitle"), String[].class);
|
||||
|
||||
HashMap<String, Object>[] lmerge = null;
|
||||
String merge = (String) paramMap.get("merge");
|
||||
if (merge != null) {
|
||||
lmerge = gson.fromJson(merge, HashMap[].class);
|
||||
}
|
||||
|
||||
resultMap.put("headers", headers);
|
||||
resultMap.put("headerTitles", headerTitles);
|
||||
resultMap.put("datas", list2);
|
||||
resultMap.put("fileName", (String) paramMap.get("fileName"));
|
||||
resultMap.put("merge", lmerge);
|
||||
ModelAndView modelAndView = new ModelAndView("excelView", resultMap);
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package com.eactive.eai.rms.onl.statistics.company.quarterly;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : yk
|
||||
* @version : $Revision: 1.1 $
|
||||
*/
|
||||
@Repository("companyQuarterlyDAO")
|
||||
public class CompanyQuarterlyDAO extends SqlMapClientTemplateDao {
|
||||
|
||||
public int selectListCount(HashMap paramMap) throws Exception {
|
||||
return (Integer)template.queryForObject("CompanyQuarterly.selectListCount", paramMap);
|
||||
}
|
||||
public List selectList(HashMap paramMap) throws Exception {
|
||||
return template.queryForList("CompanyQuarterly.selectList", paramMap);
|
||||
}
|
||||
public List selectListToExcel(HashMap paramMap) throws Exception {
|
||||
return template.queryForList("CompanyQuarterly.selectListToExcel", paramMap);
|
||||
}
|
||||
public HashMap<String, Object> selectDetail(HashMap paramMap) throws Exception {
|
||||
return (HashMap)template.queryForObject("CompanyQuarterly.selectDetail", paramMap);
|
||||
}
|
||||
}
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
package com.eactive.eai.rms.onl.statistics.company.quarterly;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.eactive.apim.portal.monitoringcode.entity.MonitoringCodeId;
|
||||
import com.eactive.eai.rms.data.entity.man.monitoringCode.service.MonitoringCodeService;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : yk
|
||||
* @version : $Revision: 1.1 $
|
||||
*/
|
||||
@Service("companyQuarterlyService")
|
||||
public class CompanyQuarterlyService {
|
||||
|
||||
private CompanyQuarterlyDAO dao = null;
|
||||
private MonitoringCodeService monitoringCodeService;
|
||||
|
||||
@Autowired
|
||||
public CompanyQuarterlyService(@Qualifier("companyQuarterlyDAO")CompanyQuarterlyDAO dao,
|
||||
MonitoringCodeService monitoringCodeService) {
|
||||
this.dao = dao;
|
||||
this.monitoringCodeService = monitoringCodeService;
|
||||
}
|
||||
|
||||
public HashMap selectList(int startNum,int endNum,HashMap paramMap) throws Exception {
|
||||
|
||||
// 전체 목록수 얻기
|
||||
int totalCount = dao.selectListCount(paramMap);
|
||||
|
||||
paramMap.put("startNum" , startNum);// 시작 record
|
||||
paramMap.put("endNum" , endNum);// 끝 record
|
||||
|
||||
List list = dao.selectList(paramMap);
|
||||
|
||||
//모니터링 기관코드 받아오기
|
||||
List listSet = new ArrayList<HashMap<String, Object>>();
|
||||
for(int i=0;i<list.size();i++) {
|
||||
HashMap<String, Object> tmp = (HashMap<String, Object>) list.get(i);
|
||||
String adapterInstiCode = (String)tmp.get("ADPTRINSTICODE");
|
||||
if( adapterInstiCode.length()>0 && adapterInstiCode !=null) {
|
||||
String codeName = monitoringCodeService.findCodenameById(new MonitoringCodeId("ADPTR_DESC",adapterInstiCode));
|
||||
tmp.put("ADPTRINSTINAME", codeName);
|
||||
}
|
||||
listSet.add(tmp);
|
||||
}
|
||||
|
||||
HashMap map = new HashMap();
|
||||
|
||||
map.put("totalCount", totalCount);
|
||||
|
||||
map.put("list", listSet);
|
||||
|
||||
return map;
|
||||
}
|
||||
public HashMap selectListToExcel(HashMap<String, Object> paramMap ) throws Exception {
|
||||
|
||||
List list = dao.selectListToExcel(paramMap);
|
||||
|
||||
//모니터링 기관코드 받아오기
|
||||
List listSet = new ArrayList<HashMap<String, Object>>();
|
||||
for(int i=0;i<list.size();i++) {
|
||||
HashMap<String, Object> tmp = (HashMap<String, Object>) list.get(i);
|
||||
String adapterInstiCode = (String)tmp.get("ADPTRINSTICODE");
|
||||
if( adapterInstiCode.length()>0 && adapterInstiCode !=null) {
|
||||
String codeName = monitoringCodeService.findCodenameById(new MonitoringCodeId("ADPTR_DESC",adapterInstiCode));
|
||||
tmp.put("ADPTRINSTINAME", codeName);
|
||||
}
|
||||
listSet.add(tmp);
|
||||
}
|
||||
|
||||
HashMap map = new HashMap();
|
||||
|
||||
map.put("list", list);
|
||||
|
||||
return map;
|
||||
}
|
||||
public HashMap<String, Object> selectDetail(HashMap paramMap) throws Exception {
|
||||
return dao.selectDetail( paramMap);
|
||||
}
|
||||
}
|
||||
+143
@@ -0,0 +1,143 @@
|
||||
package com.eactive.eai.rms.onl.statistics.company.semiannually;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.combo.ComboService;
|
||||
import com.eactive.eai.rms.common.combo.ComboVo;
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.common.util.CamelCaseUtil;
|
||||
import com.eactive.eai.rms.common.vo.JsonPageVo;
|
||||
import com.google.gson.Gson;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 업무별 일별 거래현황 통계 화면의 컨트롤러
|
||||
* </pre>
|
||||
*
|
||||
* @author : yk
|
||||
* @version : $Revision: 1.1 $
|
||||
*/
|
||||
@Controller
|
||||
public class CompanySemiannuallyController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("companySemiannuallyService")
|
||||
private CompanySemiannuallyService service ;
|
||||
|
||||
@Autowired
|
||||
private ComboService comboService;
|
||||
|
||||
@RequestMapping(value= "/onl/statistics/company/companySemiannuallyMan.view")
|
||||
private String viewList(HttpServletRequest request, @RequestParam(value = "cmd", required = false ) String cmd ) throws Exception {
|
||||
if (cmd == null || "LIST".equals(cmd.toUpperCase())){
|
||||
cmd = "";
|
||||
}else {
|
||||
cmd = CamelCaseUtil.converCamelCase(cmd);
|
||||
}
|
||||
String path = request.getServletPath();
|
||||
return path.split("[.]")[0]+cmd;
|
||||
}
|
||||
|
||||
@RequestMapping(value= "/onl/statistics/company/companySemiannuallyMan.json",params = "cmd=LIST")
|
||||
private ModelAndView selectList(HttpServletRequest request,
|
||||
JsonPageVo pageVo ,@RequestParam HashMap<String, Object> paramMap
|
||||
) throws Exception {
|
||||
HashMap map = service.selectList( pageVo.getStartNum(), pageVo.getEndNum(), paramMap);
|
||||
|
||||
pageVo.setTotalCount((Integer)map.get("totalCount"));
|
||||
|
||||
Map resultMap = new HashMap();
|
||||
resultMap.put("total" , pageVo.getTotal()); //전체 페이지수
|
||||
resultMap.put("page" , pageVo.getPage()); //현재 페이지수
|
||||
resultMap.put("records", pageVo.getTotalCount());//전체 레코드건수
|
||||
resultMap.put("rows" , map.get("list"));
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView",resultMap);
|
||||
return modelAndView;
|
||||
|
||||
}
|
||||
@PostMapping(value= "/onl/statistics/company/companySemiannuallyMan.json", params = "cmd=LIST_INIT_COMBO")
|
||||
public ResponseEntity<Map<String, Object>> listInitCombo() {
|
||||
|
||||
List<ComboVo> listSndRecvCd = comboService.getFromCode("SND_RCV_CD");//송수신 구분코드
|
||||
List<ComboVo> listBiz = comboService.getFromBusinessType();//업무구분코드
|
||||
List<ComboVo> listAdptrDesc = comboService.getMonitoringCodeSortedBySeq("ADPTR_DESC");
|
||||
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
resultMap.put("sndRecvCdRows" , listSndRecvCd);
|
||||
resultMap.put("adptrDescRows" , listAdptrDesc);
|
||||
resultMap.put("bzwkDstcdRows" , listBiz);
|
||||
|
||||
return ResponseEntity.ok(resultMap);
|
||||
}
|
||||
@RequestMapping(value= "/onl/statistics/company/companySemiannuallyMan.json",params = "cmd=DETAIL")
|
||||
private ModelAndView selectDetail(HttpServletRequest request,
|
||||
HttpServletResponse response,@RequestParam HashMap<String,Object> paramMap) throws Exception {
|
||||
HashMap<String, Object> map = service.selectDetail(paramMap);
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView",map);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
@RequestMapping(value= "/onl/statistics/company/companySemiannuallyMan.json",params = "cmd=LIST_DETAIL_COMBO")
|
||||
public ModelAndView eaiSvcNameCombo( HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
|
||||
List<ComboVo> listSndRecvCd = comboService.getFromCode("SND_RCV_CD");//송수신 구분코드
|
||||
|
||||
|
||||
Map resultMap = new HashMap();
|
||||
resultMap.put("sndRecvCdRows" , listSndRecvCd);
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView",resultMap);
|
||||
return modelAndView;
|
||||
}
|
||||
@RequestMapping(value= "/onl/statistics/company/companySemiannuallyMan.excel",params = "cmd=LIST_GRID_TO_EXCEL")
|
||||
public ModelAndView listGridToExcel(HttpServletRequest request, HttpServletResponse response, @RequestParam HashMap<String,Object> paramMap) throws Exception {
|
||||
HashMap<String,Object> resultMap = new HashMap<String,Object>();
|
||||
|
||||
String headersStr = (String) paramMap.get("headersStr");
|
||||
headersStr = headersStr+"ADPTRINSTICODE";
|
||||
paramMap.put("headersStr", headersStr);
|
||||
|
||||
Gson gson = new Gson();
|
||||
@SuppressWarnings("unchecked")
|
||||
HashMap<String, Object> list = service.selectListToExcel(paramMap);
|
||||
|
||||
String jsonStr = gson.toJson(list.get("list"));
|
||||
HashMap<String, String>[] list2 = gson.fromJson(jsonStr, HashMap[].class);
|
||||
|
||||
String[] headers = gson.fromJson((String) paramMap.get("header"), String[].class);
|
||||
String[] headerTitles = gson.fromJson((String)paramMap.get("headerTitle"), String[].class);
|
||||
|
||||
HashMap<String, Object>[] lmerge = null;
|
||||
String merge = (String)paramMap.get("merge");
|
||||
if (merge !=null){
|
||||
lmerge = gson.fromJson(merge, HashMap[].class);
|
||||
}
|
||||
|
||||
resultMap.put("headers", headers);
|
||||
resultMap.put("headerTitles", headerTitles);
|
||||
resultMap.put("datas", list2);
|
||||
resultMap.put("fileName", (String)paramMap.get("fileName"));
|
||||
resultMap.put("merge", lmerge);
|
||||
ModelAndView modelAndView = new ModelAndView("excelView",resultMap);
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package com.eactive.eai.rms.onl.statistics.company.semiannually;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : yk
|
||||
* @version : $Revision: 1.1 $
|
||||
*/
|
||||
@Repository("companySemiannuallyDAO")
|
||||
public class CompanySemiannuallyDAO extends SqlMapClientTemplateDao {
|
||||
|
||||
public int selectListCount(HashMap paramMap) throws Exception {
|
||||
return (Integer)template.queryForObject("CompanySemiannually.selectListCount", paramMap);
|
||||
}
|
||||
public List selectList(HashMap paramMap) throws Exception {
|
||||
return template.queryForList("CompanySemiannually.selectList", paramMap);
|
||||
}
|
||||
public List selectListToExcel(HashMap paramMap) throws Exception {
|
||||
return template.queryForList("CompanySemiannually.selectListToExcel", paramMap);
|
||||
}
|
||||
public HashMap<String, Object> selectDetail(HashMap paramMap) throws Exception {
|
||||
return (HashMap)template.queryForObject("CompanySemiannually.selectDetail", paramMap);
|
||||
}
|
||||
}
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
package com.eactive.eai.rms.onl.statistics.company.semiannually;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.eactive.apim.portal.monitoringcode.entity.MonitoringCodeId;
|
||||
import com.eactive.eai.rms.data.entity.man.monitoringCode.service.MonitoringCodeService;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : yk
|
||||
* @version : $Revision: 1.1 $
|
||||
*/
|
||||
@Service("companySemiannuallyService")
|
||||
@RequiredArgsConstructor
|
||||
public class CompanySemiannuallyService {
|
||||
|
||||
private CompanySemiannuallyDAO dao = null;
|
||||
private MonitoringCodeService monitoringCodeService;
|
||||
|
||||
public HashMap selectList(int startNum,int endNum,HashMap paramMap) throws Exception {
|
||||
|
||||
// 전체 목록수 얻기
|
||||
int totalCount = dao.selectListCount(paramMap);
|
||||
|
||||
paramMap.put("startNum" , startNum);// 시작 record
|
||||
paramMap.put("endNum" , endNum);// 끝 record
|
||||
|
||||
List list = dao.selectList(paramMap);
|
||||
|
||||
//모니터링 기관코드 받아오기
|
||||
List listSet = new ArrayList<HashMap<String, Object>>();
|
||||
for(int i=0;i<list.size();i++) {
|
||||
HashMap<String, Object> tmp = (HashMap<String, Object>) list.get(i);
|
||||
String adapterInstiCode = (String)tmp.get("ADPTRINSTICODE");
|
||||
if( adapterInstiCode.length()>0 && adapterInstiCode !=null) {
|
||||
String codeName = monitoringCodeService.findCodenameById(new MonitoringCodeId("ADPTR_DESC",adapterInstiCode));
|
||||
tmp.put("ADPTRINSTINAME", codeName);
|
||||
}
|
||||
listSet.add(tmp);
|
||||
}
|
||||
|
||||
HashMap map = new HashMap();
|
||||
|
||||
map.put("totalCount", totalCount);
|
||||
|
||||
map.put("list", listSet);
|
||||
|
||||
return map;
|
||||
}
|
||||
public HashMap selectListToExcel(HashMap<String, Object> paramMap ) throws Exception {
|
||||
|
||||
List list = dao.selectListToExcel(paramMap);
|
||||
//모니터링 기관코드 받아오기
|
||||
List listSet = new ArrayList<HashMap<String, Object>>();
|
||||
for(int i=0;i<list.size();i++) {
|
||||
HashMap<String, Object> tmp = (HashMap<String, Object>) list.get(i);
|
||||
String adapterInstiCode = (String)tmp.get("ADPTRINSTICODE");
|
||||
if( adapterInstiCode.length()>0 && adapterInstiCode !=null) {
|
||||
String codeName = monitoringCodeService.findCodenameById(new MonitoringCodeId("ADPTR_DESC",adapterInstiCode));
|
||||
tmp.put("ADPTRINSTINAME", codeName);
|
||||
}
|
||||
listSet.add(tmp);
|
||||
}
|
||||
HashMap map = new HashMap();
|
||||
|
||||
map.put("list", list);
|
||||
|
||||
return map;
|
||||
}
|
||||
public HashMap<String, Object> selectDetail(HashMap paramMap) throws Exception {
|
||||
return dao.selectDetail( paramMap);
|
||||
}
|
||||
}
|
||||
+156
@@ -0,0 +1,156 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.service.EaiBzwkDstcdCompareMonthlyService;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 업무별 전월대비 증감현황 통계 화면의 컨트롤러
|
||||
* </pre>
|
||||
*
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.4 $
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Controller
|
||||
public class EaiBzwkDstcdCompareMonthlyController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("eaiBzwkDstcdCompareMonthlyService")
|
||||
private EaiBzwkDstcdCompareMonthlyService eaiBzwkDstcdCompareMonthlyService;
|
||||
|
||||
|
||||
@RequestMapping("/statistics/eaibzwkdstcd/eaiBzwkDstcdCompareMonthly.do")
|
||||
public ModelAndView handleRequest(HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
//
|
||||
StatisticsForm statisticsForm = new StatisticsForm();
|
||||
|
||||
statisticsForm.setStartDate(request.getParameter("startDate"));
|
||||
|
||||
// try {
|
||||
// findEaiBzwkDstcdMonthlyData(statisticsForm, request, response);
|
||||
// } catch (BizException be) {
|
||||
// //be.printStackTrace();
|
||||
// logger.error("[BIZ ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(be);
|
||||
// } catch (SysException se) {
|
||||
// //se.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(se);
|
||||
// } catch (Exception e) {
|
||||
// //e.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(e);
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
|
||||
private void findEaiBzwkDstcdMonthlyData(StatisticsForm statisticsForm, HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
|
||||
|
||||
List listData = eaiBzwkDstcdCompareMonthlyService.getFindEaiBzwkDstcdMonthlyData(statisticsForm);
|
||||
|
||||
// GauceInputStream gis = null;
|
||||
// GauceOutputStream gos = null;
|
||||
//
|
||||
// //
|
||||
// try {
|
||||
// gis = ((HttpGauceRequest) request)
|
||||
// .getGauceInputStream();
|
||||
// gos = ((HttpGauceResponse) response)
|
||||
// .getGauceOutputStream();
|
||||
//
|
||||
// GauceDataSet dataSet = gis.read("ds_01");
|
||||
//
|
||||
// // 그리드 데이터셋 메핑
|
||||
// EaiBzwkDstcdCompareMonthlyVO vo = new EaiBzwkDstcdCompareMonthlyVO();
|
||||
//
|
||||
// double sumLastProcAmount = 0;
|
||||
// double sumProcAmount = 0;
|
||||
// for (int i = 0; i < listData.size(); i++) {
|
||||
// vo = (EaiBzwkDstcdCompareMonthlyVO) listData.get(i);
|
||||
// sumLastProcAmount += vo.getLastMonthProcColumnName();
|
||||
// sumProcAmount += vo.getThisMonthProcColumnName();
|
||||
// }
|
||||
//
|
||||
// double lastOccupyRate = 0;
|
||||
// double occupyRate = 0;
|
||||
// double procRate = 0;
|
||||
//
|
||||
// for (int i = 0; i < listData.size(); i++) {
|
||||
// vo = (EaiBzwkDstcdCompareMonthlyVO) listData.get(i);
|
||||
// lastOccupyRate = 0;
|
||||
// occupyRate = 0;
|
||||
// procRate = 0;
|
||||
// if (vo.getLastMonthProcColumnName() != 0) {
|
||||
// lastOccupyRate = Math.round(vo.getLastMonthProcColumnName()
|
||||
// / sumLastProcAmount * 100 * 100) / 100.;
|
||||
// }
|
||||
// if (vo.getThisMonthProcColumnName() != 0) {
|
||||
// occupyRate = Math.round(vo.getThisMonthProcColumnName()
|
||||
// / sumProcAmount * 100 * 100) / 100.;
|
||||
// }
|
||||
// if (vo.getLastMonthProcColumnName() != 0) {
|
||||
// procRate = Math.round((vo.getThisMonthProcColumnName() - vo
|
||||
// .getLastMonthProcColumnName())
|
||||
// / (vo.getLastMonthProcColumnName() * 1.)
|
||||
// * 100.
|
||||
// * 100.) / 100.;
|
||||
// }
|
||||
//
|
||||
// vo = (EaiBzwkDstcdCompareMonthlyVO) listData.get(i);
|
||||
//
|
||||
// dataSet.put("EaiBzwkDstcd", vo.getEaiBzwkDstcd(), 4,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("LastMonthProcColumnName", vo
|
||||
// .getLastMonthProcColumnName(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("LastOccupyRate", lastOccupyRate, 15.2,
|
||||
// GauceDataColumn.TB_DECIMAL);
|
||||
// dataSet.put("ThisMonthProcColumnName", vo
|
||||
// .getThisMonthProcColumnName(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("OccupyRate", occupyRate, 15.2,
|
||||
// GauceDataColumn.TB_DECIMAL);
|
||||
// dataSet.put("ProcRate", procRate, 15.2,
|
||||
// GauceDataColumn.TB_DECIMAL);
|
||||
//
|
||||
// dataSet.heap();
|
||||
// }
|
||||
//
|
||||
// gos.write(dataSet);
|
||||
// } catch (IOException e) {
|
||||
// //
|
||||
// logger.error("[GAUCE SEND ERROR]");
|
||||
// //e.printStackTrace();
|
||||
// throw new SysException("[GAUCE SEND ERROR]", e); // 에러발생
|
||||
// }finally{
|
||||
// if (gos != null)
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// gos.close();
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// gos = null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
+214
@@ -0,0 +1,214 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.service.EaiBzwkDstcdTransitionService;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
import com.eactive.eai.rms.onl.statistics.trand.service.TransitionService;
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 업무별 추이 분석 화면의 컨트롤러
|
||||
* </pre>
|
||||
*
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.4 $
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Controller
|
||||
public class EaiBzwkDstcdTransitionController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("eaiBzwkDstcdTransitionService")
|
||||
private EaiBzwkDstcdTransitionService eaiBzwkDstcdTransitionService ;
|
||||
|
||||
@Autowired
|
||||
@Qualifier("transitionService")
|
||||
private TransitionService transitionService;
|
||||
|
||||
|
||||
@RequestMapping("/statistics/eaibzwkdstcd/eaiBzwkDstcdTransition.do")
|
||||
public ModelAndView handleRequest(HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
//
|
||||
StatisticsForm statisticsForm = new StatisticsForm();
|
||||
|
||||
statisticsForm.setEaiBzwkDstcd(request.getParameter("eaiBzwkDstcd"));
|
||||
|
||||
String cmd = "";
|
||||
|
||||
if(request.getParameter("cmd") != null){
|
||||
cmd = request.getParameter("cmd");
|
||||
}
|
||||
|
||||
// try {
|
||||
// if("findData".equals(cmd)){
|
||||
// findTransitionEaiBzwkDstcdData(statisticsForm, request, response);
|
||||
// }else if("trandList".equals(cmd)){
|
||||
// findTrandList(statisticsForm, request, response);
|
||||
// }
|
||||
// } catch (BizException be) {
|
||||
// //be.printStackTrace();
|
||||
// logger.error("[BIZ ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(be);
|
||||
// } catch (SysException se) {
|
||||
// //se.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(se);
|
||||
// } catch (Exception e) {
|
||||
// //e.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(e);
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
|
||||
private void findTransitionEaiBzwkDstcdData(StatisticsForm statisticsForm, HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
|
||||
|
||||
List listData = eaiBzwkDstcdTransitionService
|
||||
.getFindTransitionEaiBzwkDstcdData(statisticsForm);
|
||||
|
||||
// GauceInputStream gis = null;
|
||||
// GauceOutputStream gos = null;
|
||||
//
|
||||
// //
|
||||
// try {
|
||||
// gis = ((HttpGauceRequest) request)
|
||||
// .getGauceInputStream();
|
||||
// gos = ((HttpGauceResponse) response)
|
||||
// .getGauceOutputStream();
|
||||
//
|
||||
// GauceDataSet dataSet = gis.read("ds_01");
|
||||
//
|
||||
// // 그리드 데이터셋 메핑
|
||||
// TransitionVO vo = new TransitionVO();
|
||||
//
|
||||
// for (int i = 0; i < listData.size(); i++) {
|
||||
// vo = (TransitionVO) listData.get(i);
|
||||
//
|
||||
// dataSet.put("StatcYm", vo.getStatcYm(), 6,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("MnTrsmtNoitm1", vo.getMnTrsmtNoitm1(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm2", vo.getMnTrsmtNoitm2(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm3", vo.getMnTrsmtNoitm3(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm4", vo.getMnTrsmtNoitm4(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm5", vo.getMnTrsmtNoitm5(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm6", vo.getMnTrsmtNoitm6(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm7", vo.getMnTrsmtNoitm7(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm8", vo.getMnTrsmtNoitm8(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm9", vo.getMnTrsmtNoitm9(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm10", vo.getMnTrsmtNoitm10(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm11", vo.getMnTrsmtNoitm11(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm12", vo.getMnTrsmtNoitm12(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
//
|
||||
// dataSet.heap();
|
||||
// }
|
||||
//
|
||||
// gos.write(dataSet);
|
||||
// } catch (IOException e) {
|
||||
// //
|
||||
// logger.error("[GAUCE SEND ERROR]");
|
||||
// //e.printStackTrace();
|
||||
// throw new SysException("[GAUCE SEND ERROR]", e); // 에러발생
|
||||
// }finally{
|
||||
// if (gos != null)
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// gos.close();
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// gos = null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
private void findTrandList(StatisticsForm statisticsForm, HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
|
||||
List listData = null;
|
||||
if (null == statisticsForm.getEaiBzwkDstcd()
|
||||
|| "".equals(statisticsForm.getEaiBzwkDstcd())) {
|
||||
listData = new ArrayList();
|
||||
} else {
|
||||
statisticsForm.setSearchField("B");
|
||||
statisticsForm.setSearchText(statisticsForm.getEaiBzwkDstcd());
|
||||
listData = transitionService.findTrandArray(statisticsForm);
|
||||
}
|
||||
|
||||
// GauceInputStream gis = null;
|
||||
// GauceOutputStream gos = null;
|
||||
//
|
||||
// //
|
||||
// try {
|
||||
// gis = ((HttpGauceRequest) request)
|
||||
// .getGauceInputStream();
|
||||
// gos = ((HttpGauceResponse) response)
|
||||
// .getGauceOutputStream();
|
||||
//
|
||||
// GauceDataSet dataSet = gis.read("ds_02");
|
||||
//
|
||||
// // 그리드 데이터셋 메핑
|
||||
// TrandBean vo = new TrandBean();
|
||||
//
|
||||
// for (int i = 0; i < listData.size(); i++) {
|
||||
// vo = (TrandBean) listData.get(i);
|
||||
//
|
||||
// dataSet.put("TrandBean", vo.getStatcYm(), 6,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("DdTrsmtNoitm", vo.getTrsmtNoitm(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MM", vo.getMonth(), 2,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.heap();
|
||||
// }
|
||||
//
|
||||
// gos.write(dataSet);
|
||||
// } catch (IOException e) {
|
||||
// //
|
||||
// logger.error("[GAUCE SEND ERROR]");
|
||||
// //e.printStackTrace();
|
||||
// throw new SysException("[GAUCE SEND ERROR]", e); // 에러발생
|
||||
// }finally{
|
||||
// if (gos != null)
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// gos.close();
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// gos = null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.daily;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.common.util.CamelCaseUtil;
|
||||
import com.google.gson.Gson;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 업무별 일별 거래현황 통계 화면의 컨트롤러
|
||||
* </pre>
|
||||
*
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.3 $
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Controller
|
||||
public class EaiBzwkDstcdDailyController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("eaiBzwkDstcdDailyService")
|
||||
private EaiBzwkDstcdDailyService service ;
|
||||
|
||||
@RequestMapping(value= "/onl/statistics/eaibzwkdstcd/eaiBzwkDstcdDailyMan.view")
|
||||
private String viewList(HttpServletRequest request, @RequestParam(value = "cmd", required = false ) String cmd ) throws Exception {
|
||||
if (cmd == null || "LIST".equals(cmd.toUpperCase())){
|
||||
cmd = "";
|
||||
}else {
|
||||
cmd = CamelCaseUtil.converCamelCase(cmd);
|
||||
}
|
||||
String path = request.getServletPath();
|
||||
return path.split("[.]")[0]+cmd;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@RequestMapping(value= "/onl/statistics/eaibzwkdstcd/eaiBzwkDstcdDailyMan.json",params = "cmd=LIST")
|
||||
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response,@RequestParam HashMap<String,Object> paramMap) throws Exception {
|
||||
|
||||
HashMap<String, Object> map = service.selectByEaiBzwkDstcd(paramMap);
|
||||
|
||||
Map<String, Object> resultMap = new HashMap<String, Object>();
|
||||
|
||||
resultMap.put("rows" , map.get("list"));
|
||||
resultMap.put("totalSum" , map.get("totalSum"));
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView",resultMap);
|
||||
return modelAndView;
|
||||
}
|
||||
@RequestMapping(value= "/onl/statistics/eaibzwkdstcd/eaiBzwkDstcdDailyMan.excel",params = "cmd=LIST_GRID_TO_EXCEL")
|
||||
public ModelAndView listGridToExcel(HttpServletRequest request, HttpServletResponse response, String gridData, String header, String headerTitle, String fileName) throws Exception {
|
||||
HashMap<String,Object> resultMap = new HashMap<String,Object>();
|
||||
|
||||
Gson gson = new Gson();
|
||||
@SuppressWarnings("unchecked")
|
||||
HashMap<String, Object>[] list = gson.fromJson(gridData, HashMap[].class);
|
||||
|
||||
String[] headers = gson.fromJson(header, String[].class);
|
||||
String[] headerTitles = gson.fromJson(headerTitle, String[].class);
|
||||
|
||||
resultMap.put("headers", headers);
|
||||
resultMap.put("headerTitles", headerTitles);
|
||||
resultMap.put("datas", list);
|
||||
resultMap.put("fileName", fileName);
|
||||
ModelAndView modelAndView = new ModelAndView("excelView",resultMap);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.daily;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="eaiBzwkDstcdDailyDAO"
|
||||
* @spring.property name="dataSource" ref="dataSource"
|
||||
*/
|
||||
@Repository("eaiBzwkDstcdDailyDAO")
|
||||
public class EaiBzwkDstcdDailyDAO extends SqlMapClientTemplateDao {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 업무별 일별 통계 리스트 조회
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 : Overriden
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @see
|
||||
* @param statisticsForm
|
||||
* @return
|
||||
*/
|
||||
public List<HashMap<String, Object>> selectByEaiBzwkDstcd(HashMap<String,Object> paramMap) throws Exception{
|
||||
return this.template.queryForList("EaiBzwkDstcdDaily.selectByEaiBzwkDstcd", paramMap);
|
||||
}
|
||||
|
||||
public HashMap<String, Object> selectListCount(HashMap param) throws Exception {
|
||||
return (HashMap<String, Object>)template.queryForObject("EaiBzwkDstcdDaily.selectListCount", param);
|
||||
}
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.daily;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id ="eaiBzwkDstcdDailyService"
|
||||
* @spring.property name="eaiBzwkDstcdDailyDAO" ref="eaiBzwkDstcdDailyDAO"
|
||||
*/
|
||||
@Service("eaiBzwkDstcdDailyService")
|
||||
public class EaiBzwkDstcdDailyService {
|
||||
@Autowired
|
||||
@Qualifier("eaiBzwkDstcdDailyDAO")
|
||||
private EaiBzwkDstcdDailyDAO dao = null;
|
||||
|
||||
public HashMap<String, Object> selectByEaiBzwkDstcd(HashMap<String,Object> param) throws Exception{
|
||||
HashMap<String, Object> totalMap = dao.selectListCount(param);
|
||||
|
||||
List<HashMap<String, Object>> list = dao.selectByEaiBzwkDstcd(param);
|
||||
|
||||
HashMap<String, Object> map = new HashMap<String, Object>();
|
||||
|
||||
map.put("totalSum", totalMap);
|
||||
map.put("list", list);
|
||||
|
||||
return map;
|
||||
}
|
||||
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
public interface EaiBzwkDstcdCompareMonthlyDAO {
|
||||
|
||||
public List findByTransactionEaiBzwkDstcdMonthly(StatisticsForm statisticsForm) throws Exception;
|
||||
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.dao;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
import com.eactive.eai.rms.onl.common.util.DateUtil;
|
||||
import com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.vo.EaiBzwkDstcdCompareMonthlyVO;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
import com.ibatis.sqlmap.client.event.RowHandler;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="eaiBzwkDstcdCompareMonthlyDAO"
|
||||
* @spring.property name="dataSource" ref="dataSource"
|
||||
*/
|
||||
@Repository("eaiBzwkDstcdCompareMonthlyDAO")
|
||||
public class EaiBzwkDstcdCompareMonthlyDAOImpl
|
||||
extends SqlMapClientTemplateDao
|
||||
implements EaiBzwkDstcdCompareMonthlyDAO {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 업무별 전월대비 증감 통계 리스트 조회
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 : Overriden
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @see com.eactive.eai.rts.biz.statistics.eaisvcname.dao.EaiBzwkDstcdCompareMonthlyDAO#findByTransactionEaiBzwkDstcdMonthly(com.eactive.eai.rts.biz.statistics.eaisvcname.vo.StatisticsForm)
|
||||
* @param statisticsForm
|
||||
* @return
|
||||
*/
|
||||
public List findByTransactionEaiBzwkDstcdMonthly (
|
||||
StatisticsForm statisticsForm) throws Exception{
|
||||
Calendar cal = Calendar.getInstance();
|
||||
|
||||
int thisYear = 0;
|
||||
int thisMonth = 0;
|
||||
try {
|
||||
thisYear = Integer.parseInt(statisticsForm.getStartDate().substring(0, 4));
|
||||
thisMonth = Integer.parseInt(statisticsForm.getStartDate().substring(4, 6)); //hd 수정 5 -> 6 (2007.11.2)
|
||||
} catch (Exception e) {
|
||||
thisYear = Integer.parseInt(DateUtil.getYear());
|
||||
thisMonth = Integer.parseInt(DateUtil.getMonth());
|
||||
}
|
||||
|
||||
cal.set(thisYear, thisMonth - 1, 10);
|
||||
|
||||
cal.add(Calendar.MONTH, -1);
|
||||
|
||||
int lastYear = cal.get(Calendar.YEAR);
|
||||
int lastMonth = cal.get(Calendar.MONTH) + 1;
|
||||
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("thisMonthProcColumnName", thisMonth + "MnTrsmtNoitm");
|
||||
paramMap.put("lastMonthProcColumnName", lastMonth + "MnTrsmtNoitm");
|
||||
paramMap.put("thisYear", String.valueOf(thisYear));
|
||||
paramMap.put("lastYear", String.valueOf(lastYear));
|
||||
|
||||
final ArrayList<EaiBzwkDstcdCompareMonthlyVO> al = new ArrayList<EaiBzwkDstcdCompareMonthlyVO>();
|
||||
|
||||
template.queryWithRowHandler("EaiBzwkDstcdCompareMonthly.findByTransactionEaiBzwkDstcdMonthly", paramMap,
|
||||
new RowHandler(){
|
||||
@SuppressWarnings("unchecked")
|
||||
public void handleRow(Object valueObject) {
|
||||
EaiBzwkDstcdCompareMonthlyVO vo = (EaiBzwkDstcdCompareMonthlyVO)valueObject;
|
||||
al.add(vo);
|
||||
}});
|
||||
return al;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
public interface EaiBzwkDstcdTransitionDAO {
|
||||
|
||||
public List findByTransitionEaiBzwkDstcd(StatisticsForm statisticsForm) throws Exception;
|
||||
|
||||
}
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.dao;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
import com.eactive.eai.rms.onl.statistics.trand.vo.TransitionVO;
|
||||
import com.ibatis.sqlmap.client.event.RowHandler;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="eaiBzwkDstcdTransitionDAO"
|
||||
* @spring.property name="dataSource" ref="dataSource"
|
||||
*/
|
||||
@Repository("eaiBzwkDstcdTransitionDAO")
|
||||
public class EaiBzwkDstcdTransitionDAOImpl
|
||||
extends SqlMapClientTemplateDao
|
||||
implements EaiBzwkDstcdTransitionDAO {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 업무별 전월대비 증감현황 리스트 조회
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 : Overriden
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @see com.eactive.eai.rts.biz.statistics.eaisvcname.dao.EaiBzwkDstcdTransitionDAO#findByTransitionEaiBzwkDstcd(com.eactive.eai.rts.biz.statistics.eaisvcname.vo.StatisticsForm)
|
||||
* @param statisticsForm
|
||||
* @return
|
||||
*/
|
||||
public List findByTransitionEaiBzwkDstcd(StatisticsForm statisticsForm) {
|
||||
final ArrayList<TransitionVO> al = new ArrayList<TransitionVO>();
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("eaiBzwkDstcd", statisticsForm.getEaiBzwkDstcd());
|
||||
|
||||
template.queryWithRowHandler("EaiBzwkDstcdTransition.findByTransitionEaiBzwkDstcd", paramMap,
|
||||
new RowHandler(){
|
||||
@SuppressWarnings("unchecked")
|
||||
public void handleRow(Object valueObject) {
|
||||
TransitionVO vo = (TransitionVO)valueObject;
|
||||
al.add(vo);
|
||||
}});
|
||||
return al;
|
||||
}
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.monthly;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.common.util.CamelCaseUtil;
|
||||
import com.google.gson.Gson;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 업무별 일별 거래현황 통계 화면의 컨트롤러
|
||||
* </pre>
|
||||
*
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.3 $
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Controller
|
||||
public class EaiBzwkDstcdMonthlyController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("eaiBzwkDstcdMonthlyService")
|
||||
private EaiBzwkDstcdMonthlyService service ;
|
||||
|
||||
@RequestMapping(value= "/onl/statistics/eaibzwkdstcd/eaiBzwkDstcdMonthlyMan.view")
|
||||
private String viewList(HttpServletRequest request, @RequestParam(value = "cmd", required = false ) String cmd ) throws Exception {
|
||||
if (cmd == null || "LIST".equals(cmd.toUpperCase())){
|
||||
cmd = "";
|
||||
}else {
|
||||
cmd = CamelCaseUtil.converCamelCase(cmd);
|
||||
}
|
||||
String path = request.getServletPath();
|
||||
return path.split("[.]")[0]+cmd;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@RequestMapping(value= "/onl/statistics/eaibzwkdstcd/eaiBzwkDstcdMonthlyMan.json",params = "cmd=LIST")
|
||||
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response,@RequestParam HashMap<String,Object> paramMap) throws Exception {
|
||||
|
||||
HashMap<String, Object> map = service.selectByEaiBzwkDstcdMon(paramMap);
|
||||
|
||||
Map<String, Object> resultMap = new HashMap<String, Object>();
|
||||
|
||||
resultMap.put("rows" , map.get("list"));
|
||||
resultMap.put("totalSum" , map.get("totalSum"));
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView",resultMap);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
@RequestMapping(value= "/onl/statistics/eaibzwkdstcd/eaiBzwkDstcdMonthlyMan.excel",params = "cmd=LIST_GRID_TO_EXCEL")
|
||||
public ModelAndView listGridToExcel(HttpServletRequest request, HttpServletResponse response, String gridData, String header, String headerTitle, String fileName) throws Exception {
|
||||
HashMap<String,Object> resultMap = new HashMap<String,Object>();
|
||||
|
||||
Gson gson = new Gson();
|
||||
@SuppressWarnings("unchecked")
|
||||
HashMap<String, Object>[] list = gson.fromJson(gridData, HashMap[].class);
|
||||
|
||||
String[] headers = gson.fromJson(header, String[].class);
|
||||
String[] headerTitles = gson.fromJson(headerTitle, String[].class);
|
||||
|
||||
resultMap.put("headers", headers);
|
||||
resultMap.put("headerTitles", headerTitles);
|
||||
resultMap.put("datas", list);
|
||||
resultMap.put("fileName", fileName);
|
||||
ModelAndView modelAndView = new ModelAndView("excelView",resultMap);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.monthly;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="eaiBzwkDstcdMonthlyDAO"
|
||||
* @spring.property name="dataSource" ref="dataSource"
|
||||
*/
|
||||
@Repository("eaiBzwkDstcdMonthlyDAO")
|
||||
public class EaiBzwkDstcdMonthlyDAO extends SqlMapClientTemplateDao {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 업무별 일별 통계 리스트 조회
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 : Overriden
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @see
|
||||
* @param statisticsForm
|
||||
* @return
|
||||
*/
|
||||
public HashMap<String, Object> selectListCount(HashMap<String, Object> param) throws Exception {
|
||||
return (HashMap)template.queryForObject("EaiBzwkDstcdMonthly.selectListCount", param);
|
||||
}
|
||||
|
||||
public List<HashMap<String, Object>> selectByEaiBzwkDstcdMon(HashMap<String,Object> paramMap) throws Exception{
|
||||
return this.template.queryForList("EaiBzwkDstcdMonthly.selectByEaiBzwkDstcdMonthly", paramMap);
|
||||
}
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.monthly;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id ="eaiBzwkDstcdDailyService"
|
||||
* @spring.property name="eaiBzwkDstcdMonthlyDAO" ref="eaiBzwkDstcdMonthlyDAO"
|
||||
*/
|
||||
@Service("eaiBzwkDstcdMonthlyService")
|
||||
public class EaiBzwkDstcdMonthlyService {
|
||||
@Autowired
|
||||
@Qualifier("eaiBzwkDstcdMonthlyDAO")
|
||||
private EaiBzwkDstcdMonthlyDAO dao = null;
|
||||
|
||||
public HashMap<String, Object> selectByEaiBzwkDstcdMon(HashMap<String,Object> param) throws Exception{
|
||||
|
||||
// 전체 목록수 얻기
|
||||
HashMap<String, Object> totalMap = dao.selectListCount(param);
|
||||
|
||||
List<HashMap<String, Object>> list = dao.selectByEaiBzwkDstcdMon(param);
|
||||
|
||||
HashMap<String, Object> map = new HashMap<String, Object>();
|
||||
|
||||
map.put("totalSum", totalMap);
|
||||
map.put("list", list);
|
||||
|
||||
return map;
|
||||
}
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
public interface EaiBzwkDstcdCompareMonthlyService {
|
||||
|
||||
public List getFindEaiBzwkDstcdMonthlyData(StatisticsForm statisticsForm) throws Exception;
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.dao.EaiBzwkDstcdCompareMonthlyDAO;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="eaiBzwkDstcdCompareMonthlyServiceImpl"
|
||||
* @spring.property name="eaiBzwkDstcdCompareMonthlyDAO" ref="eaiBzwkDstcdCompareMonthlyDAO"
|
||||
*/
|
||||
@Service("eaiBzwkDstcdCompareMonthlyService")
|
||||
public class EaiBzwkDstcdCompareMonthlyServiceImpl
|
||||
implements EaiBzwkDstcdCompareMonthlyService {
|
||||
@Autowired
|
||||
@Qualifier("eaiBzwkDstcdCompareMonthlyDAO")
|
||||
private EaiBzwkDstcdCompareMonthlyDAO eaiBzwkDstcdCompareMonthlyDAO = null;
|
||||
|
||||
public List getFindEaiBzwkDstcdMonthlyData(StatisticsForm statisticsForm) throws Exception {
|
||||
return eaiBzwkDstcdCompareMonthlyDAO.findByTransactionEaiBzwkDstcdMonthly(statisticsForm);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
public interface EaiBzwkDstcdTransitionService {
|
||||
|
||||
public List getFindTransitionEaiBzwkDstcdData(StatisticsForm statisticsForm) throws Exception;
|
||||
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.dao.EaiBzwkDstcdTransitionDAO;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="eaiBzwkDstcdTransitionServiceImpl"
|
||||
* @spring.property name="eaiBzwkDstcdTransitionDAO" ref="eaiBzwkDstcdTransitionDAO"
|
||||
*/
|
||||
@Service("eaiBzwkDstcdTransitionService")
|
||||
public class EaiBzwkDstcdTransitionServiceImpl
|
||||
implements EaiBzwkDstcdTransitionService {
|
||||
@Autowired
|
||||
@Qualifier("eaiBzwkDstcdTransitionDAO")
|
||||
private EaiBzwkDstcdTransitionDAO eaiBzwkDstcdTransitionDAO = null;
|
||||
|
||||
public List getFindTransitionEaiBzwkDstcdData(StatisticsForm statisticsForm) throws Exception {
|
||||
return eaiBzwkDstcdTransitionDAO.findByTransitionEaiBzwkDstcd(statisticsForm);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.vo;
|
||||
|
||||
public class EaiBzwkDstcdCompareMonthlyVO {
|
||||
|
||||
|
||||
private String eaiBzwkDstcd;
|
||||
|
||||
private long thisMonthProcColumnName, lastMonthProcColumnName;
|
||||
|
||||
|
||||
public String getEaiBzwkDstcd() {
|
||||
return eaiBzwkDstcd;
|
||||
}
|
||||
|
||||
public void setEaiBzwkDstcd(String eaiBzwkDstcd) {
|
||||
this.eaiBzwkDstcd = eaiBzwkDstcd;
|
||||
}
|
||||
|
||||
|
||||
public long getLastMonthProcColumnName() {
|
||||
return lastMonthProcColumnName;
|
||||
}
|
||||
|
||||
public void setLastMonthProcColumnName(long lastMonthProcColumnName) {
|
||||
this.lastMonthProcColumnName = lastMonthProcColumnName;
|
||||
}
|
||||
|
||||
public long getThisMonthProcColumnName() {
|
||||
return thisMonthProcColumnName;
|
||||
}
|
||||
|
||||
public void setThisMonthProcColumnName(long thisMonthProcColumnName) {
|
||||
this.thisMonthProcColumnName = thisMonthProcColumnName;
|
||||
}
|
||||
|
||||
}
|
||||
+541
@@ -0,0 +1,541 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.vo;
|
||||
|
||||
public class EaiBzwkDstcdDailyVO {
|
||||
private String eaiBzwkDstcd;
|
||||
|
||||
private long ddTrsmtNoitm1, ddErrNoitm1;
|
||||
private long ddTrsmtNoitm2, ddErrNoitm2;
|
||||
private long ddTrsmtNoitm3, ddErrNoitm3;
|
||||
private long ddTrsmtNoitm4, ddErrNoitm4;
|
||||
private long ddTrsmtNoitm5, ddErrNoitm5;
|
||||
private long ddTrsmtNoitm6, ddErrNoitm6;
|
||||
private long ddTrsmtNoitm7, ddErrNoitm7;
|
||||
private long ddTrsmtNoitm8, ddErrNoitm8;
|
||||
private long ddTrsmtNoitm9, ddErrNoitm9;
|
||||
private long ddTrsmtNoitm10, ddErrNoitm10;
|
||||
private long ddTrsmtNoitm11, ddErrNoitm11;
|
||||
private long ddTrsmtNoitm12, ddErrNoitm12;
|
||||
private long ddTrsmtNoitm13, ddErrNoitm13;
|
||||
private long ddTrsmtNoitm14, ddErrNoitm14;
|
||||
private long ddTrsmtNoitm15, ddErrNoitm15;
|
||||
private long ddTrsmtNoitm16, ddErrNoitm16;
|
||||
private long ddTrsmtNoitm17, ddErrNoitm17;
|
||||
private long ddTrsmtNoitm18, ddErrNoitm18;
|
||||
private long ddTrsmtNoitm19, ddErrNoitm19;
|
||||
private long ddTrsmtNoitm20, ddErrNoitm20;
|
||||
private long ddTrsmtNoitm21, ddErrNoitm21;
|
||||
private long ddTrsmtNoitm22, ddErrNoitm22;
|
||||
private long ddTrsmtNoitm23, ddErrNoitm23;
|
||||
private long ddTrsmtNoitm24, ddErrNoitm24;
|
||||
private long ddTrsmtNoitm25, ddErrNoitm25;
|
||||
private long ddTrsmtNoitm26, ddErrNoitm26;
|
||||
private long ddTrsmtNoitm27, ddErrNoitm27;
|
||||
private long ddTrsmtNoitm28, ddErrNoitm28;
|
||||
private long ddTrsmtNoitm29, ddErrNoitm29;
|
||||
private long ddTrsmtNoitm30, ddErrNoitm30;
|
||||
private long ddTrsmtNoitm31, ddErrNoitm31;
|
||||
|
||||
public long getDdErrNoitm1() {
|
||||
return ddErrNoitm1;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm1(long ddErrNoitm1) {
|
||||
this.ddErrNoitm1 = ddErrNoitm1;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm10() {
|
||||
return ddErrNoitm10;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm10(long ddErrNoitm10) {
|
||||
this.ddErrNoitm10 = ddErrNoitm10;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm11() {
|
||||
return ddErrNoitm11;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm11(long ddErrNoitm11) {
|
||||
this.ddErrNoitm11 = ddErrNoitm11;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm12() {
|
||||
return ddErrNoitm12;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm12(long ddErrNoitm12) {
|
||||
this.ddErrNoitm12 = ddErrNoitm12;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm13() {
|
||||
return ddErrNoitm13;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm13(long ddErrNoitm13) {
|
||||
this.ddErrNoitm13 = ddErrNoitm13;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm14() {
|
||||
return ddErrNoitm14;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm14(long ddErrNoitm14) {
|
||||
this.ddErrNoitm14 = ddErrNoitm14;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm15() {
|
||||
return ddErrNoitm15;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm15(long ddErrNoitm15) {
|
||||
this.ddErrNoitm15 = ddErrNoitm15;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm16() {
|
||||
return ddErrNoitm16;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm16(long ddErrNoitm16) {
|
||||
this.ddErrNoitm16 = ddErrNoitm16;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm17() {
|
||||
return ddErrNoitm17;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm17(long ddErrNoitm17) {
|
||||
this.ddErrNoitm17 = ddErrNoitm17;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm18() {
|
||||
return ddErrNoitm18;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm18(long ddErrNoitm18) {
|
||||
this.ddErrNoitm18 = ddErrNoitm18;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm19() {
|
||||
return ddErrNoitm19;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm19(long ddErrNoitm19) {
|
||||
this.ddErrNoitm19 = ddErrNoitm19;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm2() {
|
||||
return ddErrNoitm2;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm2(long ddErrNoitm2) {
|
||||
this.ddErrNoitm2 = ddErrNoitm2;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm20() {
|
||||
return ddErrNoitm20;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm20(long ddErrNoitm20) {
|
||||
this.ddErrNoitm20 = ddErrNoitm20;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm21() {
|
||||
return ddErrNoitm21;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm21(long ddErrNoitm21) {
|
||||
this.ddErrNoitm21 = ddErrNoitm21;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm22() {
|
||||
return ddErrNoitm22;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm22(long ddErrNoitm22) {
|
||||
this.ddErrNoitm22 = ddErrNoitm22;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm23() {
|
||||
return ddErrNoitm23;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm23(long ddErrNoitm23) {
|
||||
this.ddErrNoitm23 = ddErrNoitm23;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm24() {
|
||||
return ddErrNoitm24;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm24(long ddErrNoitm24) {
|
||||
this.ddErrNoitm24 = ddErrNoitm24;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm25() {
|
||||
return ddErrNoitm25;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm25(long ddErrNoitm25) {
|
||||
this.ddErrNoitm25 = ddErrNoitm25;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm26() {
|
||||
return ddErrNoitm26;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm26(long ddErrNoitm26) {
|
||||
this.ddErrNoitm26 = ddErrNoitm26;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm27() {
|
||||
return ddErrNoitm27;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm27(long ddErrNoitm27) {
|
||||
this.ddErrNoitm27 = ddErrNoitm27;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm28() {
|
||||
return ddErrNoitm28;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm28(long ddErrNoitm28) {
|
||||
this.ddErrNoitm28 = ddErrNoitm28;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm29() {
|
||||
return ddErrNoitm29;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm29(long ddErrNoitm29) {
|
||||
this.ddErrNoitm29 = ddErrNoitm29;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm3() {
|
||||
return ddErrNoitm3;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm3(long ddErrNoitm3) {
|
||||
this.ddErrNoitm3 = ddErrNoitm3;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm30() {
|
||||
return ddErrNoitm30;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm30(long ddErrNoitm30) {
|
||||
this.ddErrNoitm30 = ddErrNoitm30;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm31() {
|
||||
return ddErrNoitm31;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm31(long ddErrNoitm31) {
|
||||
this.ddErrNoitm31 = ddErrNoitm31;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm4() {
|
||||
return ddErrNoitm4;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm4(long ddErrNoitm4) {
|
||||
this.ddErrNoitm4 = ddErrNoitm4;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm5() {
|
||||
return ddErrNoitm5;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm5(long ddErrNoitm5) {
|
||||
this.ddErrNoitm5 = ddErrNoitm5;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm6() {
|
||||
return ddErrNoitm6;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm6(long ddErrNoitm6) {
|
||||
this.ddErrNoitm6 = ddErrNoitm6;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm7() {
|
||||
return ddErrNoitm7;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm7(long ddErrNoitm7) {
|
||||
this.ddErrNoitm7 = ddErrNoitm7;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm8() {
|
||||
return ddErrNoitm8;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm8(long ddErrNoitm8) {
|
||||
this.ddErrNoitm8 = ddErrNoitm8;
|
||||
}
|
||||
|
||||
public long getDdErrNoitm9() {
|
||||
return ddErrNoitm9;
|
||||
}
|
||||
|
||||
public void setDdErrNoitm9(long ddErrNoitm9) {
|
||||
this.ddErrNoitm9 = ddErrNoitm9;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm1() {
|
||||
return ddTrsmtNoitm1;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm1(long ddTrsmtNoitm1) {
|
||||
this.ddTrsmtNoitm1 = ddTrsmtNoitm1;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm10() {
|
||||
return ddTrsmtNoitm10;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm10(long ddTrsmtNoitm10) {
|
||||
this.ddTrsmtNoitm10 = ddTrsmtNoitm10;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm11() {
|
||||
return ddTrsmtNoitm11;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm11(long ddTrsmtNoitm11) {
|
||||
this.ddTrsmtNoitm11 = ddTrsmtNoitm11;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm12() {
|
||||
return ddTrsmtNoitm12;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm12(long ddTrsmtNoitm12) {
|
||||
this.ddTrsmtNoitm12 = ddTrsmtNoitm12;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm13() {
|
||||
return ddTrsmtNoitm13;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm13(long ddTrsmtNoitm13) {
|
||||
this.ddTrsmtNoitm13 = ddTrsmtNoitm13;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm14() {
|
||||
return ddTrsmtNoitm14;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm14(long ddTrsmtNoitm14) {
|
||||
this.ddTrsmtNoitm14 = ddTrsmtNoitm14;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm15() {
|
||||
return ddTrsmtNoitm15;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm15(long ddTrsmtNoitm15) {
|
||||
this.ddTrsmtNoitm15 = ddTrsmtNoitm15;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm16() {
|
||||
return ddTrsmtNoitm16;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm16(long ddTrsmtNoitm16) {
|
||||
this.ddTrsmtNoitm16 = ddTrsmtNoitm16;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm17() {
|
||||
return ddTrsmtNoitm17;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm17(long ddTrsmtNoitm17) {
|
||||
this.ddTrsmtNoitm17 = ddTrsmtNoitm17;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm18() {
|
||||
return ddTrsmtNoitm18;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm18(long ddTrsmtNoitm18) {
|
||||
this.ddTrsmtNoitm18 = ddTrsmtNoitm18;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm19() {
|
||||
return ddTrsmtNoitm19;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm19(long ddTrsmtNoitm19) {
|
||||
this.ddTrsmtNoitm19 = ddTrsmtNoitm19;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm2() {
|
||||
return ddTrsmtNoitm2;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm2(long ddTrsmtNoitm2) {
|
||||
this.ddTrsmtNoitm2 = ddTrsmtNoitm2;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm20() {
|
||||
return ddTrsmtNoitm20;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm20(long ddTrsmtNoitm20) {
|
||||
this.ddTrsmtNoitm20 = ddTrsmtNoitm20;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm21() {
|
||||
return ddTrsmtNoitm21;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm21(long ddTrsmtNoitm21) {
|
||||
this.ddTrsmtNoitm21 = ddTrsmtNoitm21;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm22() {
|
||||
return ddTrsmtNoitm22;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm22(long ddTrsmtNoitm22) {
|
||||
this.ddTrsmtNoitm22 = ddTrsmtNoitm22;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm23() {
|
||||
return ddTrsmtNoitm23;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm23(long ddTrsmtNoitm23) {
|
||||
this.ddTrsmtNoitm23 = ddTrsmtNoitm23;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm24() {
|
||||
return ddTrsmtNoitm24;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm24(long ddTrsmtNoitm24) {
|
||||
this.ddTrsmtNoitm24 = ddTrsmtNoitm24;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm25() {
|
||||
return ddTrsmtNoitm25;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm25(long ddTrsmtNoitm25) {
|
||||
this.ddTrsmtNoitm25 = ddTrsmtNoitm25;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm26() {
|
||||
return ddTrsmtNoitm26;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm26(long ddTrsmtNoitm26) {
|
||||
this.ddTrsmtNoitm26 = ddTrsmtNoitm26;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm27() {
|
||||
return ddTrsmtNoitm27;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm27(long ddTrsmtNoitm27) {
|
||||
this.ddTrsmtNoitm27 = ddTrsmtNoitm27;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm28() {
|
||||
return ddTrsmtNoitm28;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm28(long ddTrsmtNoitm28) {
|
||||
this.ddTrsmtNoitm28 = ddTrsmtNoitm28;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm29() {
|
||||
return ddTrsmtNoitm29;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm29(long ddTrsmtNoitm29) {
|
||||
this.ddTrsmtNoitm29 = ddTrsmtNoitm29;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm3() {
|
||||
return ddTrsmtNoitm3;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm3(long ddTrsmtNoitm3) {
|
||||
this.ddTrsmtNoitm3 = ddTrsmtNoitm3;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm30() {
|
||||
return ddTrsmtNoitm30;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm30(long ddTrsmtNoitm30) {
|
||||
this.ddTrsmtNoitm30 = ddTrsmtNoitm30;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm31() {
|
||||
return ddTrsmtNoitm31;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm31(long ddTrsmtNoitm31) {
|
||||
this.ddTrsmtNoitm31 = ddTrsmtNoitm31;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm4() {
|
||||
return ddTrsmtNoitm4;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm4(long ddTrsmtNoitm4) {
|
||||
this.ddTrsmtNoitm4 = ddTrsmtNoitm4;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm5() {
|
||||
return ddTrsmtNoitm5;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm5(long ddTrsmtNoitm5) {
|
||||
this.ddTrsmtNoitm5 = ddTrsmtNoitm5;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm6() {
|
||||
return ddTrsmtNoitm6;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm6(long ddTrsmtNoitm6) {
|
||||
this.ddTrsmtNoitm6 = ddTrsmtNoitm6;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm7() {
|
||||
return ddTrsmtNoitm7;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm7(long ddTrsmtNoitm7) {
|
||||
this.ddTrsmtNoitm7 = ddTrsmtNoitm7;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm8() {
|
||||
return ddTrsmtNoitm8;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm8(long ddTrsmtNoitm8) {
|
||||
this.ddTrsmtNoitm8 = ddTrsmtNoitm8;
|
||||
}
|
||||
|
||||
public long getDdTrsmtNoitm9() {
|
||||
return ddTrsmtNoitm9;
|
||||
}
|
||||
|
||||
public void setDdTrsmtNoitm9(long ddTrsmtNoitm9) {
|
||||
this.ddTrsmtNoitm9 = ddTrsmtNoitm9;
|
||||
}
|
||||
|
||||
public String getEaiBzwkDstcd() {
|
||||
return eaiBzwkDstcd;
|
||||
}
|
||||
|
||||
public void setEaiBzwkDstcd(String eaiBzwkDstcd) {
|
||||
this.eaiBzwkDstcd = eaiBzwkDstcd;
|
||||
}
|
||||
}
|
||||
+219
@@ -0,0 +1,219 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.vo;
|
||||
|
||||
public class EaiBzwkDstcdMonthlyVO {
|
||||
|
||||
private String eaiBzwkDstcd;
|
||||
private long mnTrsmtNoitm1, mnErrNoitm1;
|
||||
private long mnTrsmtNoitm2, mnErrNoitm2;
|
||||
private long mnTrsmtNoitm3, mnErrNoitm3;
|
||||
private long mnTrsmtNoitm4, mnErrNoitm4;
|
||||
private long mnTrsmtNoitm5, mnErrNoitm5;
|
||||
private long mnTrsmtNoitm6, mnErrNoitm6;
|
||||
private long mnTrsmtNoitm7, mnErrNoitm7;
|
||||
private long mnTrsmtNoitm8, mnErrNoitm8;
|
||||
private long mnTrsmtNoitm9, mnErrNoitm9;
|
||||
private long mnTrsmtNoitm10, mnErrNoitm10;
|
||||
private long mnTrsmtNoitm11, mnErrNoitm11;
|
||||
private long mnTrsmtNoitm12, mnErrNoitm12;
|
||||
|
||||
|
||||
public String getEaiBzwkDstcd() {
|
||||
return eaiBzwkDstcd;
|
||||
}
|
||||
|
||||
public void setEaiBzwkDstcd(String eaiBzwkDstcd) {
|
||||
this.eaiBzwkDstcd = eaiBzwkDstcd;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm1() {
|
||||
return mnErrNoitm1;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm1(long mnErrNoitm1) {
|
||||
this.mnErrNoitm1 = mnErrNoitm1;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm10() {
|
||||
return mnErrNoitm10;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm10(long mnErrNoitm10) {
|
||||
this.mnErrNoitm10 = mnErrNoitm10;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm11() {
|
||||
return mnErrNoitm11;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm11(long mnErrNoitm11) {
|
||||
this.mnErrNoitm11 = mnErrNoitm11;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm12() {
|
||||
return mnErrNoitm12;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm12(long mnErrNoitm12) {
|
||||
this.mnErrNoitm12 = mnErrNoitm12;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm2() {
|
||||
return mnErrNoitm2;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm2(long mnErrNoitm2) {
|
||||
this.mnErrNoitm2 = mnErrNoitm2;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm3() {
|
||||
return mnErrNoitm3;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm3(long mnErrNoitm3) {
|
||||
this.mnErrNoitm3 = mnErrNoitm3;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm4() {
|
||||
return mnErrNoitm4;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm4(long mnErrNoitm4) {
|
||||
this.mnErrNoitm4 = mnErrNoitm4;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm5() {
|
||||
return mnErrNoitm5;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm5(long mnErrNoitm5) {
|
||||
this.mnErrNoitm5 = mnErrNoitm5;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm6() {
|
||||
return mnErrNoitm6;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm6(long mnErrNoitm6) {
|
||||
this.mnErrNoitm6 = mnErrNoitm6;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm7() {
|
||||
return mnErrNoitm7;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm7(long mnErrNoitm7) {
|
||||
this.mnErrNoitm7 = mnErrNoitm7;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm8() {
|
||||
return mnErrNoitm8;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm8(long mnErrNoitm8) {
|
||||
this.mnErrNoitm8 = mnErrNoitm8;
|
||||
}
|
||||
|
||||
public long getMnErrNoitm9() {
|
||||
return mnErrNoitm9;
|
||||
}
|
||||
|
||||
public void setMnErrNoitm9(long mnErrNoitm9) {
|
||||
this.mnErrNoitm9 = mnErrNoitm9;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm1() {
|
||||
return mnTrsmtNoitm1;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm1(long mnTrsmtNoitm1) {
|
||||
this.mnTrsmtNoitm1 = mnTrsmtNoitm1;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm10() {
|
||||
return mnTrsmtNoitm10;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm10(long mnTrsmtNoitm10) {
|
||||
this.mnTrsmtNoitm10 = mnTrsmtNoitm10;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm11() {
|
||||
return mnTrsmtNoitm11;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm11(long mnTrsmtNoitm11) {
|
||||
this.mnTrsmtNoitm11 = mnTrsmtNoitm11;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm12() {
|
||||
return mnTrsmtNoitm12;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm12(long mnTrsmtNoitm12) {
|
||||
this.mnTrsmtNoitm12 = mnTrsmtNoitm12;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm2() {
|
||||
return mnTrsmtNoitm2;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm2(long mnTrsmtNoitm2) {
|
||||
this.mnTrsmtNoitm2 = mnTrsmtNoitm2;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm3() {
|
||||
return mnTrsmtNoitm3;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm3(long mnTrsmtNoitm3) {
|
||||
this.mnTrsmtNoitm3 = mnTrsmtNoitm3;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm4() {
|
||||
return mnTrsmtNoitm4;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm4(long mnTrsmtNoitm4) {
|
||||
this.mnTrsmtNoitm4 = mnTrsmtNoitm4;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm5() {
|
||||
return mnTrsmtNoitm5;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm5(long mnTrsmtNoitm5) {
|
||||
this.mnTrsmtNoitm5 = mnTrsmtNoitm5;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm6() {
|
||||
return mnTrsmtNoitm6;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm6(long mnTrsmtNoitm6) {
|
||||
this.mnTrsmtNoitm6 = mnTrsmtNoitm6;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm7() {
|
||||
return mnTrsmtNoitm7;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm7(long mnTrsmtNoitm7) {
|
||||
this.mnTrsmtNoitm7 = mnTrsmtNoitm7;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm8() {
|
||||
return mnTrsmtNoitm8;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm8(long mnTrsmtNoitm8) {
|
||||
this.mnTrsmtNoitm8 = mnTrsmtNoitm8;
|
||||
}
|
||||
|
||||
public long getMnTrsmtNoitm9() {
|
||||
return mnTrsmtNoitm9;
|
||||
}
|
||||
|
||||
public void setMnTrsmtNoitm9(long mnTrsmtNoitm9) {
|
||||
this.mnTrsmtNoitm9 = mnTrsmtNoitm9;
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.vo;
|
||||
|
||||
public class EaiBzwkDstcdYearlyVO {
|
||||
|
||||
private String statcY;
|
||||
private String eaiBzwkDstcd;
|
||||
private long ynTrsmtNoitm, ynErrNoitm;
|
||||
|
||||
public String getEaiBzwkDstcd() {
|
||||
return eaiBzwkDstcd;
|
||||
}
|
||||
|
||||
public void setEaiBzwkDstcd(String eaiBzwkDstcd) {
|
||||
this.eaiBzwkDstcd = eaiBzwkDstcd;
|
||||
}
|
||||
|
||||
public String getStatcY() {
|
||||
return statcY;
|
||||
}
|
||||
|
||||
public void setStatcY(String statcY) {
|
||||
this.statcY = statcY;
|
||||
}
|
||||
|
||||
public long getYnErrNoitm() {
|
||||
return ynErrNoitm;
|
||||
}
|
||||
|
||||
public void setYnErrNoitm(long ynErrNoitm) {
|
||||
this.ynErrNoitm = ynErrNoitm;
|
||||
}
|
||||
|
||||
public long getYnTrsmtNoitm() {
|
||||
return ynTrsmtNoitm;
|
||||
}
|
||||
|
||||
public void setYnTrsmtNoitm(long ynTrsmtNoitm) {
|
||||
this.ynTrsmtNoitm = ynTrsmtNoitm;
|
||||
}
|
||||
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.yearly;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.common.util.CamelCaseUtil;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 업무별 일별 거래현황 통계 화면의 컨트롤러
|
||||
* </pre>
|
||||
*
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.3 $
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Controller
|
||||
public class EaiBzwkDstcdYearlyController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("eaiBzwkDstcdYearlyService")
|
||||
private EaiBzwkDstcdYearlyService service ;
|
||||
|
||||
@RequestMapping(value= "/onl/statistics/eaibzwkdstcd/eaiBzwkDstcdYearlyMan.view")
|
||||
private String viewList(HttpServletRequest request, @RequestParam(value = "cmd", required = false ) String cmd ) throws Exception {
|
||||
if (cmd == null || "LIST".equals(cmd.toUpperCase())){
|
||||
cmd = "";
|
||||
}else {
|
||||
cmd = CamelCaseUtil.converCamelCase(cmd);
|
||||
}
|
||||
String path = request.getServletPath();
|
||||
return path.split("[.]")[0]+cmd;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@RequestMapping(value= "/onl/statistics/eaibzwkdstcd/eaiBzwkDstcdYearlyMan.view",params = "cmd=LIST")
|
||||
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response,@RequestParam HashMap<String,Object> paramMap) throws Exception {
|
||||
|
||||
List list = service.selectByEaiBzwkDstcdYearly(paramMap);
|
||||
|
||||
HashMap<String, Object> map = new HashMap<String,Object>();
|
||||
map.put("rows", list);
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView",map);
|
||||
return modelAndView;
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.yearly;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="eaiBzwkDstcdMonthlyDAO"
|
||||
* @spring.property name="dataSource" ref="dataSource"
|
||||
*/
|
||||
@Repository("eaiBzwkDstcdYearlyDAO")
|
||||
public class EaiBzwkDstcdYearlyDAO extends SqlMapClientTemplateDao {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 업무별 일별 통계 리스트 조회
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 : Overriden
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @see
|
||||
* @param statisticsForm
|
||||
* @return
|
||||
*/
|
||||
public List selectByEaiBzwkDstcdYearly(HashMap<String,Object> paramMap) throws Exception{
|
||||
return this.template.queryForList("EaiBzwkDstcdYearly.selectByEaiBzwdstcdYearly", paramMap);
|
||||
}
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaibzwkdstcd.yearly;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id ="eaiBzwkDstcdDailyService"
|
||||
* @spring.property name="eaiBzwkDstcdMonthlyDAO" ref="eaiBzwkDstcdMonthlyDAO"
|
||||
*/
|
||||
@Service("eaiBzwkDstcdYearlyService")
|
||||
public class EaiBzwkDstcdYearlyService {
|
||||
@Autowired
|
||||
@Qualifier("eaiBzwkDstcdYearlyDAO")
|
||||
private EaiBzwkDstcdYearlyDAO dao = null;
|
||||
|
||||
public List selectByEaiBzwkDstcdYearly(HashMap<String,Object> param) throws Exception{
|
||||
return dao.selectByEaiBzwkDstcdYearly(param);
|
||||
}
|
||||
|
||||
}
|
||||
+152
@@ -0,0 +1,152 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.service.EaiSvcNameCompareMonthlyService;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : EAI서비스명 전월대비 통계 화면의 컨트롤러
|
||||
* </pre>
|
||||
*
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.5 $
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Controller
|
||||
public class EaiSvcNameCompareMonthlyController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
@Qualifier("eaiSvcNameCompareMonthlyService")
|
||||
private EaiSvcNameCompareMonthlyService eaiSvcNameCompareMonthlyService ;
|
||||
|
||||
@RequestMapping("/statistics/eaisvcname/eaiSvcNameCompareMonthly.do")
|
||||
public ModelAndView handleRequest(HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
//
|
||||
StatisticsForm statisticsForm = new StatisticsForm();
|
||||
|
||||
statisticsForm.setStartDate(request.getParameter("startDate"));
|
||||
|
||||
// try {
|
||||
// findEaiSvcNameMonthlyData(statisticsForm, request, response);
|
||||
// } catch (BizException be) {
|
||||
// //be.printStackTrace();
|
||||
// logger.error("[BIZ ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(be);
|
||||
// } catch (SysException se) {
|
||||
// //se.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(se);
|
||||
// } catch (Exception e) {
|
||||
// //e.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(e);
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
|
||||
private void findEaiSvcNameMonthlyData(StatisticsForm statisticsForm,
|
||||
HttpServletRequest request, HttpServletResponse response)
|
||||
throws Exception {
|
||||
|
||||
|
||||
List listData = eaiSvcNameCompareMonthlyService
|
||||
.getFindEaiSvcNameMonthlyData(statisticsForm);
|
||||
|
||||
// GauceInputStream gis = null;
|
||||
// GauceOutputStream gos = null;
|
||||
//
|
||||
// //
|
||||
// try {
|
||||
// gis = ((HttpGauceRequest) request).getGauceInputStream();
|
||||
// gos = ((HttpGauceResponse) response).getGauceOutputStream();
|
||||
//
|
||||
// GauceDataSet dataSet = gis.read("ds_01");
|
||||
//
|
||||
// // 그리드 데이터셋 메핑
|
||||
// EaiSvcNameCompareMonthlyVO vo = new EaiSvcNameCompareMonthlyVO();
|
||||
//
|
||||
// double sumLastProcAmount = 0;
|
||||
// double sumProcAmount = 0;
|
||||
// for (int i = 0; i < listData.size(); i++) {
|
||||
// vo = (EaiSvcNameCompareMonthlyVO) listData.get(i);
|
||||
// sumLastProcAmount += vo.getLastMonthProcColumnName();
|
||||
// sumProcAmount += vo.getThisMonthProcColumnName();
|
||||
// }
|
||||
//
|
||||
// double lastOccupyRate = 0;
|
||||
// double occupyRate = 0;
|
||||
// double procRate = 0;
|
||||
//
|
||||
// for (int i = 0; i < listData.size(); i++) {
|
||||
// vo = (EaiSvcNameCompareMonthlyVO) listData.get(i);
|
||||
// lastOccupyRate = 0;
|
||||
// occupyRate = 0;
|
||||
// procRate = 0;
|
||||
// if (vo.getLastMonthProcColumnName() != 0) {
|
||||
// lastOccupyRate = Math.round(vo.getLastMonthProcColumnName()
|
||||
// / sumLastProcAmount * 100 * 100) / 100.;
|
||||
// }
|
||||
// if (vo.getThisMonthProcColumnName() != 0) {
|
||||
// occupyRate = Math.round(vo.getThisMonthProcColumnName()
|
||||
// / sumProcAmount * 100 * 100) / 100.;
|
||||
// }
|
||||
// if (vo.getLastMonthProcColumnName() != 0) {
|
||||
// procRate = Math.round((vo.getThisMonthProcColumnName() - vo
|
||||
// .getLastMonthProcColumnName())
|
||||
// / (vo.getLastMonthProcColumnName() * 1.)
|
||||
// * 100.
|
||||
// * 100.) / 100.;
|
||||
// }
|
||||
//
|
||||
// dataSet.put("EaiSvcName", vo.getEaiSvcName(), 30,
|
||||
// GauceDataColumn.TB_NORMAL);
|
||||
// dataSet.put("EaiSvcDesc", vo.getEaiSvcDesc(), 250,
|
||||
// GauceDataColumn.TB_NORMAL);
|
||||
// dataSet.put("LastMonthProcColumnName", vo
|
||||
// .getLastMonthProcColumnName(), 15,
|
||||
// GauceDataColumn.TB_NORMAL);
|
||||
// dataSet.put("LastOccupyRate", lastOccupyRate, 15.2,
|
||||
// GauceDataColumn.TB_NORMAL);
|
||||
// dataSet.put("ThisMonthProcColumnName", vo
|
||||
// .getThisMonthProcColumnName(), 15,
|
||||
// GauceDataColumn.TB_NORMAL);
|
||||
// dataSet.put("OccupyRate", occupyRate, 15.2,
|
||||
// GauceDataColumn.TB_NORMAL);
|
||||
// dataSet.put("ProcRate", procRate, 15.2,
|
||||
// GauceDataColumn.TB_NORMAL);
|
||||
// dataSet.put("XLAVEL", vo.getEaiSvcDesc()+" ", 250,
|
||||
// GauceDataColumn.TB_NORMAL);
|
||||
// dataSet.heap();
|
||||
// }
|
||||
//
|
||||
// gos.write(dataSet);
|
||||
// } catch (IOException e) {
|
||||
// //
|
||||
// logger.error("[GAUCE SEND ERROR]");
|
||||
// //e.printStackTrace();
|
||||
// throw new SysException("[GAUCE SEND ERROR]", e); // 에러발생
|
||||
// } finally {
|
||||
// if (gos != null) {
|
||||
// try {
|
||||
// gos.close();
|
||||
// } catch (Exception e) {
|
||||
// gos = null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
+152
@@ -0,0 +1,152 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.service.EaiSvcNameErrMonthlyService;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : EAI서비스명 의 장애 발생 환형 통계 화면의 컨트롤러
|
||||
* </pre>
|
||||
*
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.5 $
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Controller
|
||||
public class EaiSvcNameErrMonthlyController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("eaiSvcNameErrMonthlyService")
|
||||
private EaiSvcNameErrMonthlyService eaiSvcNameErrMonthlyService ;
|
||||
|
||||
@RequestMapping("/statistics/eaisvcname/eaiSvcNameErrMonthly.do")
|
||||
public ModelAndView handleRequest(HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
//
|
||||
StatisticsForm statisticsForm = new StatisticsForm();
|
||||
|
||||
statisticsForm.setStartDate(request.getParameter("startDate"));
|
||||
|
||||
// try {
|
||||
// findErrEaiSvcNameMonthlyData(statisticsForm, request, response);
|
||||
// } catch (BizException be) {
|
||||
// //be.printStackTrace();
|
||||
// logger.error("[BIZ ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(be);
|
||||
// } catch (SysException se) {
|
||||
// //se.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(se);
|
||||
// } catch (Exception e) {
|
||||
// //e.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(e);
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
|
||||
private void findErrEaiSvcNameMonthlyData(StatisticsForm statisticsForm,
|
||||
HttpServletRequest request, HttpServletResponse response)
|
||||
throws Exception {
|
||||
|
||||
|
||||
List listData = eaiSvcNameErrMonthlyService
|
||||
.getFindErrEaiSvcNameMonthlyData(statisticsForm);
|
||||
|
||||
// GauceInputStream gis = null;
|
||||
// GauceOutputStream gos = null;
|
||||
//
|
||||
// //
|
||||
// try {
|
||||
// gis = ((HttpGauceRequest) request).getGauceInputStream();
|
||||
// gos = ((HttpGauceResponse) response).getGauceOutputStream();
|
||||
//
|
||||
// GauceDataSet dataSet = gis.read("ds_01");
|
||||
//
|
||||
// // 그리드 데이터셋 메핑
|
||||
// EaiSvcNameErrMonthlyVO vo = new EaiSvcNameErrMonthlyVO();
|
||||
//
|
||||
// double sumLastErrAmount = 0;
|
||||
// double sumErrAmount = 0;
|
||||
// for (int i = 0; i < listData.size(); i++) {
|
||||
// vo = (EaiSvcNameErrMonthlyVO) listData.get(i);
|
||||
// sumLastErrAmount += vo.getLastMonthErrColumnName();
|
||||
// sumErrAmount += vo.getThisMonthErrColumnName();
|
||||
// }
|
||||
//
|
||||
// double lastOccupyRate = 0;
|
||||
// double occupyRate = 0;
|
||||
// double procRate = 0;
|
||||
//
|
||||
// for (int i = 0; i < listData.size(); i++) {
|
||||
// vo = (EaiSvcNameErrMonthlyVO) listData.get(i);
|
||||
// lastOccupyRate = 0;
|
||||
// occupyRate = 0;
|
||||
// procRate = 0;
|
||||
// if (vo.getLastMonthErrColumnName() != 0) {
|
||||
// lastOccupyRate = Math.round(vo.getLastMonthErrColumnName()
|
||||
// / sumLastErrAmount * 100 * 100) / 100.;
|
||||
// }
|
||||
// if (vo.getThisMonthErrColumnName() != 0) {
|
||||
// occupyRate = Math.round(vo.getThisMonthErrColumnName()
|
||||
// / sumErrAmount * 100 * 100) / 100.;
|
||||
// }
|
||||
// if (vo.getLastMonthErrColumnName() != 0) {
|
||||
// procRate = Math.round((vo.getThisMonthErrColumnName() - vo
|
||||
// .getLastMonthErrColumnName())
|
||||
// / (vo.getLastMonthErrColumnName() * 1.)
|
||||
// * 100.
|
||||
// * 100.) / 100.;
|
||||
// }
|
||||
//
|
||||
// dataSet.put("EaiSvcName", vo.getEaiSvcName(), 30,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("EaiSvcDesc", vo.getEaiSvcDesc(), 250,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("LastMonthErrColumnName", vo
|
||||
// .getLastMonthErrColumnName(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("LastOccupyRate", lastOccupyRate, 15.2,
|
||||
// GauceDataColumn.TB_DECIMAL);
|
||||
// dataSet.put("ThisMonthErrColumnName", vo
|
||||
// .getThisMonthErrColumnName(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("OccupyRate", occupyRate, 15.2,
|
||||
// GauceDataColumn.TB_DECIMAL);
|
||||
// dataSet.put("ProcRate", procRate, 15.2,
|
||||
// GauceDataColumn.TB_DECIMAL);
|
||||
// dataSet.put("XLAVEL", vo.getEaiSvcDesc()+" ", 250,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.heap();
|
||||
// }
|
||||
//
|
||||
// gos.write(dataSet);
|
||||
// } catch (IOException e) {
|
||||
// //
|
||||
// logger.error("[GAUCE SEND ERROR]");
|
||||
// //e.printStackTrace();
|
||||
// throw new SysException("[GAUCE SEND ERROR]", e); // 에러발생
|
||||
// } finally {
|
||||
// if (gos != null) {
|
||||
// try {
|
||||
// gos.close();
|
||||
// } catch (Exception e) {
|
||||
// gos = null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.controller;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.service.EaiSvcNameErrTopTenService;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : EAI서비스명 의 장애 발생 상위 TOP 10 통계 화면의 컨트롤러
|
||||
* </pre>
|
||||
*
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.4 $
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Controller
|
||||
public class EaiSvcNameErrTopTenController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("eaiSvcNameErrTopTenService")
|
||||
private EaiSvcNameErrTopTenService eaiSvcNameErrTopTenService;
|
||||
|
||||
@RequestMapping("/statistics/eaisvcname/eaiSvcNameErrTopTen.do")
|
||||
public ModelAndView handleRequest(HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
//
|
||||
StatisticsForm statisticsForm = new StatisticsForm();
|
||||
|
||||
statisticsForm.setStartDate(request.getParameter("startDate"));
|
||||
statisticsForm.setEndDate(request.getParameter("endDate"));
|
||||
|
||||
// try {
|
||||
// findErrEaiSvcNameTopTenData(statisticsForm, request, response);
|
||||
// } catch (BizException be) {
|
||||
// //be.printStackTrace();
|
||||
// logger.error("[BIZ ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(be);
|
||||
// } catch (SysException se) {
|
||||
// //se.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(se);
|
||||
// } catch (Exception e) {
|
||||
// //e.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(e);
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
|
||||
private void findErrEaiSvcNameTopTenData(StatisticsForm statisticsForm, HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
|
||||
|
||||
List listData = eaiSvcNameErrTopTenService.getFindErrEaiSvcNameTopTenData(statisticsForm);
|
||||
|
||||
// GauceInputStream gis = null;
|
||||
// GauceOutputStream gos = null;
|
||||
//
|
||||
// //
|
||||
// try {
|
||||
// gis = ((HttpGauceRequest) request).getGauceInputStream();
|
||||
// gos = ((HttpGauceResponse) response).getGauceOutputStream();
|
||||
//
|
||||
// GauceDataSet dataSet = gis.read("ds_01");
|
||||
//
|
||||
// // 그리드 데이터셋 메핑
|
||||
// EaiSvcNameErrTopTenVO vo = new EaiSvcNameErrTopTenVO();
|
||||
//
|
||||
// for (int i = 0; i < listData.size(); i++) {
|
||||
// vo = (EaiSvcNameErrTopTenVO) listData.get(i);
|
||||
// dataSet.put("Order", i+1+"", 2,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("EaiSvcName", vo.getEaiSvcName(), 30,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("EaiSvcDesc", vo.getEaiSvcDesc(), 250,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("ErrNoitm", vo.getErrNoitm(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.heap();
|
||||
// }
|
||||
//
|
||||
// gos.write(dataSet);
|
||||
// } catch (IOException e) {
|
||||
// //
|
||||
// logger.error("[GAUCE SEND ERROR]");
|
||||
// //e.printStackTrace();
|
||||
// throw new SysException("[GAUCE SEND ERROR]", e); // 에러발생
|
||||
// }finally{
|
||||
// if (gos != null)
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// gos.close();
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// gos = null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
+202
@@ -0,0 +1,202 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.service.EaiSvcNameTransitionService;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
import com.eactive.eai.rms.onl.statistics.trand.service.TransitionService;
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : EAI서비스명 서비스별 추이 화면의 컨트롤러
|
||||
* </pre>
|
||||
*
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.4 $
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Controller
|
||||
public class EaiSvcNameTransitionController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("eaiSvcNameTransitionService")
|
||||
private EaiSvcNameTransitionService eaiSvcNameTransitionService ;
|
||||
|
||||
@Autowired
|
||||
@Qualifier("transitionService")
|
||||
private TransitionService transitionService ;
|
||||
|
||||
|
||||
@RequestMapping("/statistics/eaisvcname/eaiSvcNameTransition.do")
|
||||
public ModelAndView handleRequest(HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
//
|
||||
StatisticsForm statisticsForm = new StatisticsForm();
|
||||
|
||||
statisticsForm.setEaiSvcName(request.getParameter("eaiSvcName"));
|
||||
|
||||
String cmd = "";
|
||||
|
||||
if (request.getParameter("cmd") != null) {
|
||||
cmd = request.getParameter("cmd");
|
||||
}
|
||||
|
||||
// try {
|
||||
// if ("findData".equals(cmd)) {
|
||||
// findTransitionEaiSvcNameData(statisticsForm, request, response);
|
||||
// } else if ("trandList".equals(cmd)) {
|
||||
// findTrandList(statisticsForm, request, response);
|
||||
// }
|
||||
// } catch (BizException be) {
|
||||
// //be.printStackTrace();
|
||||
// logger.error("[BIZ ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(be);
|
||||
// } catch (SysException se) {
|
||||
// //se.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(se);
|
||||
// } catch (Exception e) {
|
||||
// //e.printStackTrace();
|
||||
// logger.error("[SYS ERROR]");
|
||||
// ((HttpGauceResponse) response).addException(e);
|
||||
// }
|
||||
return null;
|
||||
}
|
||||
|
||||
private void findTransitionEaiSvcNameData(StatisticsForm statisticsForm,
|
||||
HttpServletRequest request, HttpServletResponse response)
|
||||
throws Exception {
|
||||
|
||||
|
||||
List listData = eaiSvcNameTransitionService
|
||||
.getFindTransitionEaiSvcNameData(statisticsForm);
|
||||
|
||||
// GauceInputStream gis = null;
|
||||
// GauceOutputStream gos = null;
|
||||
//
|
||||
// //
|
||||
// try {
|
||||
// gos = ((HttpGauceResponse) response).getGauceOutputStream();
|
||||
// gis = ((HttpGauceRequest) request).getGauceInputStream();
|
||||
// // GauceDataSet dataSet = new GauceDataSet();
|
||||
// GauceDataSet dataSet = gis.read("ds_01");
|
||||
//
|
||||
// // 그리드 데이터셋 메핑
|
||||
// TransitionVO vo = new TransitionVO();
|
||||
//
|
||||
// for (int i = 0; i < listData.size(); i++) {
|
||||
// vo = (TransitionVO) listData.get(i);
|
||||
//
|
||||
// dataSet.put("StatcYm", vo.getStatcYm(), 6,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("MnTrsmtNoitm1", vo.getMnTrsmtNoitm1(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm2", vo.getMnTrsmtNoitm2(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm3", vo.getMnTrsmtNoitm3(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm4", vo.getMnTrsmtNoitm4(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm5", vo.getMnTrsmtNoitm5(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm6", vo.getMnTrsmtNoitm6(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm7", vo.getMnTrsmtNoitm7(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm8", vo.getMnTrsmtNoitm8(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm9", vo.getMnTrsmtNoitm9(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm10", vo.getMnTrsmtNoitm10(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm11", vo.getMnTrsmtNoitm11(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MnTrsmtNoitm12", vo.getMnTrsmtNoitm12(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
//
|
||||
// dataSet.heap();
|
||||
// }
|
||||
//
|
||||
// gos.write(dataSet);
|
||||
// } catch (IOException e) {
|
||||
// //
|
||||
// logger.error("[GAUCE SEND ERROR]");
|
||||
// //e.printStackTrace();
|
||||
// throw new SysException("[GAUCE SEND ERROR]", e); // 에러발생
|
||||
// } finally {
|
||||
// if (gos != null) {
|
||||
// try {
|
||||
// gos.close();
|
||||
// } catch (Exception e) {
|
||||
// gos = null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
private void findTrandList(StatisticsForm statisticsForm, HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
|
||||
List listData = null;
|
||||
if (null == statisticsForm.getEaiSvcName()
|
||||
|| "".equals(statisticsForm.getEaiSvcName())) {
|
||||
listData = new ArrayList();
|
||||
} else {
|
||||
statisticsForm.setSearchField("S");
|
||||
statisticsForm.setSearchText(statisticsForm.getEaiSvcName());
|
||||
listData = transitionService.findTrandArray(statisticsForm);
|
||||
}
|
||||
|
||||
// GauceInputStream gis = null;
|
||||
// GauceOutputStream gos = null;
|
||||
//
|
||||
// //
|
||||
// try {
|
||||
// gis = ((HttpGauceRequest) request).getGauceInputStream();
|
||||
// gos = ((HttpGauceResponse) response).getGauceOutputStream();
|
||||
//
|
||||
// GauceDataSet dataSet = gis.read("ds_02");
|
||||
//
|
||||
// // 그리드 데이터셋 메핑
|
||||
// TrandBean vo = new TrandBean();
|
||||
//
|
||||
// for (int i = 0; i < listData.size(); i++) {
|
||||
// vo = (TrandBean) listData.get(i);
|
||||
// dataSet.put("TrandBean", vo.getStatcYm(), 6,
|
||||
// GauceDataColumn.TB_STRING);
|
||||
// dataSet.put("DdTrsmtNoitm", vo.getTrsmtNoitm(), 15,
|
||||
// GauceDataColumn.TB_INT);
|
||||
// dataSet.put("MM", vo.getMonth(), 2, GauceDataColumn.TB_STRING);
|
||||
// dataSet.heap();
|
||||
// }
|
||||
//
|
||||
// gos.write(dataSet);
|
||||
// } catch (IOException e) {
|
||||
// //
|
||||
// logger.error("[GAUCE SEND ERROR]");
|
||||
// //e.printStackTrace();
|
||||
// throw new SysException("[GAUCE SEND ERROR]", e); // 에러발생
|
||||
// } finally {
|
||||
// if (gos != null) {
|
||||
// try {
|
||||
// gos.close();
|
||||
// } catch (Exception e) {
|
||||
// gos = null;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.daily;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.google.gson.Gson;
|
||||
|
||||
@Controller
|
||||
public class EaiSvcNameDailyController extends BaseController {
|
||||
|
||||
private EaiSvcNameDailyService service;
|
||||
|
||||
@Autowired
|
||||
public EaiSvcNameDailyController(EaiSvcNameDailyService service) {
|
||||
this.service = service;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/eaisvcname/eaiSvcNameDailyMan.view")
|
||||
public String viewList() {
|
||||
return "/onl/statistics/eaisvcname/eaiSvcNameDailyMan";
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/eaisvcname/eaiSvcNameDailyMan.view", params = "cmd=DETAIL")
|
||||
public String viewDetail() {
|
||||
return "/onl/statistics/eaisvcname/eaiSvcNameDailyManDetail";
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/eaisvcname/eaiSvcNameDailyMan.json", params = "cmd=LIST")
|
||||
public ModelAndView handleRequest(@RequestParam Map<String, Object> paramMap) throws Exception {
|
||||
|
||||
Map<String, Object> map = service.selectByEaiSvcNameDaily(paramMap);
|
||||
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
resultMap.put("rows", map.get("list"));
|
||||
resultMap.put("totalSum", map.get("totalSum"));
|
||||
|
||||
return new ModelAndView("jsonView", resultMap);
|
||||
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/eaisvcname/eaiSvcNameDailyMan.excel", params = "cmd=LIST_GRID_TO_EXCEL")
|
||||
public ModelAndView listGridToExcel(HttpServletRequest request, HttpServletResponse response, String gridData,
|
||||
String header, String headerTitle, String fileName) {
|
||||
|
||||
HashMap<String, Object> resultMap = new HashMap<>();
|
||||
|
||||
Gson gson = new Gson();
|
||||
@SuppressWarnings("unchecked")
|
||||
HashMap<String, Object>[] list = gson.fromJson(gridData, HashMap[].class);
|
||||
|
||||
String[] headers = gson.fromJson(header, String[].class);
|
||||
String[] headerTitles = gson.fromJson(headerTitle, String[].class);
|
||||
|
||||
resultMap.put("headers", headers);
|
||||
resultMap.put("headerTitles", headerTitles);
|
||||
resultMap.put("datas", list);
|
||||
resultMap.put("fileName", fileName);
|
||||
|
||||
return new ModelAndView("excelView", resultMap);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.daily;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
|
||||
@SuppressWarnings({ "unchecked", "deprecation" })
|
||||
@Repository("eaiSvcNameDailyDAO")
|
||||
public class EaiSvcNameDailyDAO extends SqlMapClientTemplateDao {
|
||||
|
||||
public List<Map<String, Object>> selectByEaiSvcNameDaily(Map<String, Object> paramMap) {
|
||||
return this.template.queryForList("EaiSvcNameDaily.selectByEaiSvcNameDaily", paramMap);
|
||||
}
|
||||
|
||||
public Map<String, Object> selectListCount(Map<String, Object> param) {
|
||||
return (Map<String, Object>) template.queryForObject("EaiSvcNameDaily.selectListCount", param);
|
||||
}
|
||||
|
||||
public List<Map<String, Object>> selectByEaiSvcNameDailySituation(Map<String, Object> paramMap) {
|
||||
return this.template.queryForList("EaiSvcNameDaily.selectByEaiSvcNameDailySituation", paramMap);
|
||||
}
|
||||
|
||||
public Map<String, Object> selectSituationCount(Map<String, Object> param) {
|
||||
return (Map<String, Object>) template.queryForObject("EaiSvcNameDaily.selectDailySituationCount", param);
|
||||
}
|
||||
|
||||
}
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.daily;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service("eaiSvcNameDailyService")
|
||||
public class EaiSvcNameDailyService {
|
||||
|
||||
private EaiSvcNameDailyDAO dao;
|
||||
|
||||
@Autowired
|
||||
public EaiSvcNameDailyService(EaiSvcNameDailyDAO dao) {
|
||||
this.dao = dao;
|
||||
}
|
||||
|
||||
public Map<String, Object> selectByEaiSvcNameDaily(Map<String, Object> param) throws Exception {
|
||||
|
||||
// 전체 목록수 얻기
|
||||
Map<String, Object> totalMap = dao.selectListCount(param);
|
||||
|
||||
List<Map<String, Object>> list = dao.selectByEaiSvcNameDaily(param);
|
||||
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
|
||||
map.put("totalSum", totalMap);
|
||||
map.put("list", list);
|
||||
|
||||
return map;
|
||||
}
|
||||
|
||||
public Map<String, Object> selectByEaiSvcNameDailySituation(Map<String, Object> param) throws Exception {
|
||||
|
||||
// 전체 목록수 얻기
|
||||
Map<String, Object> totalMap = dao.selectSituationCount(param);
|
||||
|
||||
List<Map<String, Object>> list = dao.selectByEaiSvcNameDailySituation(param);
|
||||
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
|
||||
map.put("totalSum", totalMap);
|
||||
map.put("list", list);
|
||||
|
||||
return map;
|
||||
}
|
||||
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.daily;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
|
||||
@Controller
|
||||
public class EaiSvcNameDailySituationController extends BaseController {
|
||||
|
||||
private EaiSvcNameDailyService service;
|
||||
|
||||
@Autowired
|
||||
public EaiSvcNameDailySituationController(EaiSvcNameDailyService service) {
|
||||
this.service = service;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/eaisvcname/eaiSvcNameDailySituation.view")
|
||||
public String viewList() {
|
||||
return "/onl/statistics/eaisvcname/eaiSvcNameDailySituation";
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/onl/statistics/eaisvcname/eaiSvcNameDailySituation.json", params = "cmd=LIST")
|
||||
public ModelAndView handleRequest(@RequestParam Map<String, Object> paramMap) throws Exception {
|
||||
|
||||
Map<String, Object> map = service.selectByEaiSvcNameDailySituation(paramMap);
|
||||
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
resultMap.put("rows", map.get("list"));
|
||||
resultMap.put("totalSum", map.get("totalSum"));
|
||||
|
||||
return new ModelAndView("jsonView", resultMap);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
public interface EaiSvcNameCompareMonthlyDAO {
|
||||
|
||||
public List findByTransactionEaiSvcNameMonthly(StatisticsForm statisticsForm) throws Exception;
|
||||
|
||||
}
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.dao;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
import com.eactive.eai.rms.onl.common.util.DateUtil;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.EaiSvcNameCompareMonthlyVO;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
import com.ibatis.sqlmap.client.event.RowHandler;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="eaiSvcNameCompareMonthlyDAO"
|
||||
* @spring.property name="dataSource" ref="dataSource"
|
||||
*/
|
||||
@Repository("eaiSvcNameCompareMonthlyDAO")
|
||||
public class EaiSvcNameCompareMonthlyDAOImpl
|
||||
extends SqlMapClientTemplateDao
|
||||
implements EaiSvcNameCompareMonthlyDAO {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 서비스별 전월대비 증감현황 리스트 조회
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 : Overriden
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @see com.eactive.eai.rts.biz.statistics.eaisvcname.dao.EaiSvcNameCompareMonthlyDAO#findByTransactionEaiSvcNameMonthly(com.eactive.eai.rts.biz.statistics.eaisvcname.vo.StatisticsForm)
|
||||
* @param statisticsForm
|
||||
* @return
|
||||
*/
|
||||
public List findByTransactionEaiSvcNameMonthly(StatisticsForm statisticsForm) throws Exception{
|
||||
Calendar cal = Calendar.getInstance();
|
||||
|
||||
int thisYear = 0;
|
||||
int thisMonth = 0;
|
||||
try {
|
||||
thisYear = Integer.parseInt(statisticsForm.getStartDate().substring(0, 4));
|
||||
thisMonth = Integer.parseInt(statisticsForm.getStartDate().substring(4, 6)); //hd 수정 5 -> 6 (2007.11.2)
|
||||
} catch (Exception e) {
|
||||
thisYear = Integer.parseInt(DateUtil.getYear());
|
||||
thisMonth = Integer.parseInt(DateUtil.getMonth());
|
||||
}
|
||||
cal.set(thisYear, thisMonth - 1, 10);
|
||||
|
||||
cal.add(Calendar.MONTH, -1);
|
||||
|
||||
int lastYear = cal.get(Calendar.YEAR);
|
||||
int lastMonth = cal.get(Calendar.MONTH) + 1;
|
||||
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("thisMonthProcColumnName", thisMonth + "MnTrsmtNoitm");
|
||||
paramMap.put("lastMonthProcColumnName", lastMonth + "MnTrsmtNoitm");
|
||||
paramMap.put("thisYear", String.valueOf(thisYear));
|
||||
paramMap.put("lastYear", String.valueOf(lastYear));
|
||||
|
||||
final ArrayList<EaiSvcNameCompareMonthlyVO> al = new ArrayList<EaiSvcNameCompareMonthlyVO>();
|
||||
|
||||
template.queryWithRowHandler("EaiSvcNameCompareMonthly.findByTransactionEaiSvcNameMonthly", paramMap,
|
||||
new RowHandler(){
|
||||
@SuppressWarnings("unchecked")
|
||||
public void handleRow(Object valueObject) {
|
||||
EaiSvcNameCompareMonthlyVO vo = (EaiSvcNameCompareMonthlyVO)valueObject;
|
||||
al.add(vo);
|
||||
}});
|
||||
return al;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
public interface EaiSvcNameErrMonthlyDAO {
|
||||
|
||||
public List findByErrEaiSvcNameMonthly(StatisticsForm statisticsForm) throws Exception;
|
||||
|
||||
}
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.dao;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
import com.eactive.eai.rms.onl.common.util.DateUtil;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.EaiSvcNameErrMonthlyVO;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
import com.ibatis.sqlmap.client.event.RowHandler;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="eaiSvcNameErrMonthlyDAO"
|
||||
* @spring.property name="dataSource" ref="dataSource"
|
||||
*/
|
||||
@Repository("eaiSvcNameErrMonthlyDAO")
|
||||
public class EaiSvcNameErrMonthlyDAOImpl
|
||||
extends SqlMapClientTemplateDao
|
||||
implements EaiSvcNameErrMonthlyDAO {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 서비스별 장애발생 현황 리스트 조회
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 : Overriden
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @see com.eactive.eai.rts.biz.statistics.eaisvcname.dao.EaiSvcNameErrMonthlyDAO#findByErrEaiSvcNameMonthly(com.eactive.eai.rts.biz.statistics.eaisvcname.vo.StatisticsForm)
|
||||
* @param statisticsForm
|
||||
* @return
|
||||
*/
|
||||
public List findByErrEaiSvcNameMonthly(StatisticsForm statisticsForm) throws Exception{
|
||||
Calendar cal = Calendar.getInstance();
|
||||
|
||||
int thisYear = 0;
|
||||
int thisMonth = 0;
|
||||
try {
|
||||
thisYear = Integer.parseInt(statisticsForm.getStartDate().substring(0, 4));
|
||||
thisMonth = Integer.parseInt(statisticsForm.getStartDate().substring(4, 6)); //hd 수정 5 -> 6 (2007.11.2)
|
||||
} catch (Exception e) {
|
||||
thisYear = Integer.parseInt(DateUtil.getYear());
|
||||
thisMonth = Integer.parseInt(DateUtil.getMonth());
|
||||
}
|
||||
cal.set(thisYear, thisMonth - 1, 10);
|
||||
|
||||
cal.add(Calendar.MONTH, -1);
|
||||
|
||||
int lastYear = cal.get(Calendar.YEAR);
|
||||
int lastMonth = cal.get(Calendar.MONTH) + 1;
|
||||
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("thisMonthErrColumnName", thisMonth + "MnTrsmtNoitm");
|
||||
paramMap.put("lastMonthErrColumnName", lastMonth + "MnTrsmtNoitm");
|
||||
paramMap.put("thisYear", String.valueOf(thisYear));
|
||||
paramMap.put("lastYear", String.valueOf(lastYear));
|
||||
|
||||
final ArrayList<EaiSvcNameErrMonthlyVO> al = new ArrayList<EaiSvcNameErrMonthlyVO>();
|
||||
|
||||
template.queryWithRowHandler("EaiSvcNameErrMonthly.findByErrEaiSvcNameMonthly", paramMap,
|
||||
new RowHandler(){
|
||||
@SuppressWarnings("unchecked")
|
||||
public void handleRow(Object valueObject) {
|
||||
EaiSvcNameErrMonthlyVO vo = (EaiSvcNameErrMonthlyVO)valueObject;
|
||||
al.add(vo);
|
||||
}});
|
||||
return al;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
public interface EaiSvcNameErrTopTenDAO {
|
||||
|
||||
public List findByErrEaiSvcNameTopTen(StatisticsForm statisticsForm) throws Exception;
|
||||
|
||||
}
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.dao;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.EaiSvcNameErrTopTenVO;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
import com.ibatis.sqlmap.client.event.RowHandler;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="eaiSvcNameErrTopTenDAO"
|
||||
* @spring.property name="dataSource" ref="dataSource"
|
||||
*/
|
||||
@Repository("eaiSvcNameErrTopTenDAO")
|
||||
public class EaiSvcNameErrTopTenDAOImpl
|
||||
extends SqlMapClientTemplateDao
|
||||
implements EaiSvcNameErrTopTenDAO {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 서비스별 장애 발생 상위 TOP 10 리스트 조회
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 : Overriden
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @see com.eactive.eai.rts.biz.statistics.eaisvcname.dao.EaiSvcNameErrTopTenDAO#findByErrEaiSvcNameTopTen(com.eactive.eai.rts.biz.statistics.eaisvcname.vo.StatisticsForm)
|
||||
* @param statisticsForm
|
||||
* @return
|
||||
*/
|
||||
public List findByErrEaiSvcNameTopTen(StatisticsForm statisticsForm) throws Exception{
|
||||
final ArrayList<EaiSvcNameErrTopTenVO> al = new ArrayList<EaiSvcNameErrTopTenVO>();
|
||||
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("startDate", statisticsForm.getStartDate());
|
||||
paramMap.put("endDate", statisticsForm.getEndDate());
|
||||
template.queryWithRowHandler("EaiSvcNameErrTopTen.findByErrEaiSvcNameTopTen", paramMap,
|
||||
new RowHandler(){
|
||||
@SuppressWarnings("unchecked")
|
||||
public void handleRow(Object valueObject) {
|
||||
EaiSvcNameErrTopTenVO vo = (EaiSvcNameErrTopTenVO)valueObject;
|
||||
al.add(vo);
|
||||
}});
|
||||
return al;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
|
||||
public interface EaiSvcNameTransitionDAO {
|
||||
|
||||
public List findByTransitionEaiSvcName(StatisticsForm statisticsForm) throws Exception;
|
||||
|
||||
}
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.dao;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
import com.eactive.eai.rms.onl.statistics.eaisvcname.vo.StatisticsForm;
|
||||
import com.eactive.eai.rms.onl.statistics.trand.vo.TransitionVO;
|
||||
import com.ibatis.sqlmap.client.event.RowHandler;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="eaiSvcNameTransitionDAO"
|
||||
* @spring.property name="dataSource" ref="dataSource"
|
||||
*/
|
||||
@Repository("eaiSvcNameTransitionDAO")
|
||||
public class EaiSvcNameTransitionDAOImpl
|
||||
extends SqlMapClientTemplateDao
|
||||
implements EaiSvcNameTransitionDAO {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 서비스별 전월대비 증감현황 리스트 조회
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 : Overriden
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @see com.eactive.eai.rts.biz.statistics.eaisvcname.dao.EaiSvcNameTransitionDAO#findByTransitionEaiSvcName(com.eactive.eai.rts.biz.statistics.eaisvcname.vo.StatisticsForm)
|
||||
* @param statisticsForm
|
||||
* @return
|
||||
*/
|
||||
public List findByTransitionEaiSvcName(StatisticsForm statisticsForm) throws Exception{
|
||||
final ArrayList<TransitionVO> al = new ArrayList<TransitionVO>();
|
||||
|
||||
final HashMap<String, String> paramMap = new HashMap<String, String>();
|
||||
paramMap.put("eaiSvcName", statisticsForm.getEaiSvcName());
|
||||
template.queryWithRowHandler("EaiSvcNameTransition.findByTransitionEaiSvcName", paramMap,
|
||||
new RowHandler(){
|
||||
@SuppressWarnings("unchecked")
|
||||
public void handleRow(Object valueObject) {
|
||||
TransitionVO vo = (TransitionVO)valueObject;
|
||||
al.add(vo);
|
||||
}});
|
||||
return al;
|
||||
}
|
||||
}
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.monthly;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.eactive.eai.rms.common.spring.BaseController;
|
||||
import com.eactive.eai.rms.common.util.CamelCaseUtil;
|
||||
import com.google.gson.Gson;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 업무별 일별 거래현황 통계 화면의 컨트롤러
|
||||
* </pre>
|
||||
*
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.3 $
|
||||
* @since : rts 1.0
|
||||
*/
|
||||
@Controller
|
||||
public class EaiSvcNameMonthlyController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("eaiSvcNameMonthlyService")
|
||||
private EaiSvcNameMonthlyService service ;
|
||||
|
||||
@RequestMapping(value= "/onl/statistics/eaisvcname/eaiSvcNameMonthlyMan.view")
|
||||
private String viewList(HttpServletRequest request, @RequestParam(value = "cmd", required = false ) String cmd ) throws Exception {
|
||||
if (cmd == null || "LIST".equals(cmd.toUpperCase())){
|
||||
cmd = "";
|
||||
}else {
|
||||
cmd = CamelCaseUtil.converCamelCase(cmd);
|
||||
}
|
||||
String path = request.getServletPath();
|
||||
return path.split("[.]")[0]+cmd;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@RequestMapping(value= "/onl/statistics/eaisvcname/eaiSvcNameMonthlyMan.json",params = "cmd=LIST")
|
||||
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response,@RequestParam HashMap<String,Object> paramMap) throws Exception {
|
||||
|
||||
HashMap<String,Object> map = service.selectByEaiSvcNameMonthly(paramMap);
|
||||
|
||||
Map<String,Object> resultMap = new HashMap<String,Object>();
|
||||
resultMap.put("rows" , map.get("list"));
|
||||
resultMap.put("totalSum" , map.get("totalSum"));
|
||||
|
||||
ModelAndView modelAndView = new ModelAndView("jsonView",resultMap);
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
@RequestMapping(value= "/onl/statistics/eaisvcname/eaiSvcNameMonthlyMan.excel",params = "cmd=LIST_GRID_TO_EXCEL")
|
||||
public ModelAndView listGridToExcel(HttpServletRequest request, HttpServletResponse response, String gridData, String header, String headerTitle, String fileName) throws Exception {
|
||||
HashMap<String,Object> resultMap = new HashMap<String,Object>();
|
||||
|
||||
Gson gson = new Gson();
|
||||
@SuppressWarnings("unchecked")
|
||||
HashMap<String, Object>[] list = gson.fromJson(gridData, HashMap[].class);
|
||||
|
||||
String[] headers = gson.fromJson(header, String[].class);
|
||||
String[] headerTitles = gson.fromJson(headerTitle, String[].class);
|
||||
|
||||
resultMap.put("headers", headers);
|
||||
resultMap.put("headerTitles", headerTitles);
|
||||
resultMap.put("datas", list);
|
||||
resultMap.put("fileName", fileName);
|
||||
ModelAndView modelAndView = new ModelAndView("excelView",resultMap);
|
||||
|
||||
return modelAndView;
|
||||
}
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
package com.eactive.eai.rms.onl.statistics.eaisvcname.monthly;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.eactive.eai.rms.common.base.SqlMapClientTemplateDao;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 :
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 :
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @spring.bean id="eaiSvcNameDailyDAO"
|
||||
* @spring.property name="dataSource" ref="dataSource"
|
||||
*/
|
||||
@Repository("eaiSvcNameMonthlyDAO")
|
||||
public class EaiSvcNameMonthlyDAO extends SqlMapClientTemplateDao {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 1. 기능 : 업무별 일별 통계 리스트 조회
|
||||
* 2. 처리 개요 :
|
||||
* -
|
||||
* 3. 주의사항 : Overriden
|
||||
* </pre>
|
||||
* @author : music75
|
||||
* @version : $Revision: 1.1 $
|
||||
* @since : rts 1.0
|
||||
* @see
|
||||
* @param statisticsForm
|
||||
* @return
|
||||
*/
|
||||
|
||||
public HashMap<String,Object> selectListCount(HashMap<String,Object> param) throws Exception {
|
||||
return (HashMap<String,Object>)template.queryForObject("EaiSvcNameMonthly.selectListCount", param);
|
||||
}
|
||||
|
||||
public List<HashMap<String,Object>> selectByEaiSvcNameMonthly(HashMap<String,Object> paramMap) throws Exception{
|
||||
return this.template.queryForList("EaiSvcNameMonthly.selectByEaiSvcNameMonthly", paramMap);
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user