문자전송 현황 메뉴 추가

main
이범준 1 month ago
parent 288ef3ba87
commit ce31af68b3

@ -0,0 +1,310 @@
package cokr.xit.fims.mngt;
import cokr.xit.foundation.AbstractEntity;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class MsgEntity extends AbstractEntity {
/**
*
*/
private String msgKey;
/**
* G/W
*/
private String msgSubId;
/**
*
*/
private String userKey;
/**
*
*/
private String userGroup;
/**
*
*/
private String userId;
/**
* JOB
*/
private String userJobid;
/**
* ( )
*/
private String centerKey;
/**
* ( )
*/
private String msgPriority;
/**
*
*/
private String msgState;
/**
* (DB )
*/
private String inputDate;
/**
*
*/
private String resDate;
/**
*
*/
private String queDate;
/**
*
*/
private String sentDate;
/**
*
*/
private String rsltDate;
/**
* G/W
*/
private String reportDate;
/**
*
*/
private String rsltCode;
/**
*
*/
private String rsltNet;
/**
*
*/
private String rsltType;
/**
*
*/
private String sentCount;
/**
*
*/
private String historyMsgType;
/**
*
*/
private String historyRsltCode;
/**
*
*/
private String identifier;
/**
*
*/
private String phone;
/**
*
*/
private String callback;
/**
* 1
*/
private String msgType1;
/**
* 1
*/
private String contentsType1;
/**
* 1
*/
private String queDate1;
/**
* 1
*/
private String sentDate1;
/**
* 2
*/
private String msgType2;
/**
* 2
*/
private String contentsType2;
/**
* 2
*/
private String queDate2;
/**
* 2
*/
private String sentDate2;
/**
* 3
*/
private String msgType3;
/**
* 3
*/
private String contentsType3;
/**
* 3
*/
private String queDate3;
/**
* 3
*/
private String sentDate3;
/**
* XMS
*/
private String xmsRsltCode;
/**
* XMS
*/
private String xmsRsltNet;
/**
* XMS
*/
private String xmsRsltDate;
/**
* XMS G/W
*/
private String xmsReportDate;
/**
* ALT
*/
private String altRsltCode;
/**
* ALT
*/
private String altRsltNet;
/**
* ALT
*/
private String altRsltDate;
/**
* ALT G/W
*/
private String altReportDate;
/**
* RCS
*/
private String rcsRsltCode;
/**
* RCS
*/
private String rcsRsltNet;
/**
* RCS
*/
private String rcsRsltDate;
/**
* RCS G/W
*/
private String rcsReportDate;
/**
* (LMS/MMS)
*/
private String xmsSubject;
/**
* (SMS/LMS/MMS)
*/
private String xmsText;
/**
* 1(MMS)
*/
private String xmsFileName1;
/**
* 2(MMS)
*/
private String xmsFileName2;
/**
* 3(MMS)
*/
private String xmsFileName3;
/**
* ALT (ALT,ALI)
*/
private String altCountryCode;
/**
* ALT (ALT,ALI)
*/
private String altSenderKey;
/**
* ALT 릿 (ALT,ALI)
*/
private String altTemplateCode;
/**
* (ALT,ALI)
*/
private String altJson;
/**
* RCS
*/
private String rcsBrandKey;
/**
* RCS
*/
private String rcsMassageBaseId;
/**
* (RCS)
*/
private String rcsJson;
}

@ -0,0 +1,37 @@
package cokr.xit.fims.mngt;
import cokr.xit.fims.cmmn.CmmnQuery;
public class MsgQuery extends CmmnQuery {
private static final long serialVersionUID = 1L;
private String schInputDateFrom;
private String schInputDateTo;
private String msgPrps; //고장신고,사전알림,주차신고민원
private String msgDtlPrps;
private String callback;
private String phone;
private String msgState;
public String getSchInputDateFrom() {
return ifEmpty(schInputDateFrom, () -> null);
}
public <T extends CmmnQuery> T setSchInputDateFrom(String schInputDateFrom) {
this.schInputDateFrom = schInputDateFrom;
return self();
}
public String getSchInputDateTo() {
return ifEmpty(schInputDateTo, () -> null);
}
public <T extends CmmnQuery> T setSchInputDateTo(String schInputDateTo) {
this.schInputDateTo = schInputDateTo;
return self();
}
}

@ -0,0 +1,19 @@
package cokr.xit.fims.mngt.dao;
import java.util.List;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
import cokr.xit.fims.mngt.MsgEntity;
import cokr.xit.fims.mngt.MsgQuery;
import cokr.xit.foundation.component.AbstractMapper;
import cokr.xit.foundation.data.DataObject;
@Mapper("msgMapper")
public interface MsgMapper extends AbstractMapper {
int insert(MsgEntity msgEntity);
List<DataObject> selectList(MsgQuery msgQuery);
}

@ -0,0 +1,16 @@
package cokr.xit.fims.mngt.service;
import java.util.List;
import cokr.xit.fims.mngt.MsgEntity;
import cokr.xit.fims.mngt.MsgQuery;
import cokr.xit.foundation.data.DataObject;
public interface MsgService {
void regist(MsgEntity msgEntity);
List<DataObject> getList(MsgQuery msgQuery);
}

@ -0,0 +1,32 @@
package cokr.xit.fims.mngt.service.bean;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import cokr.xit.fims.mngt.MsgEntity;
import cokr.xit.fims.mngt.MsgQuery;
import cokr.xit.fims.mngt.dao.MsgMapper;
import cokr.xit.foundation.component.AbstractBean;
import cokr.xit.foundation.data.DataObject;
@Component("msgBean")
public class MsgBean extends AbstractBean {
@Resource(name="msgMapper")
private MsgMapper msgMapper;
public void regist(MsgEntity msgEntity) {
msgMapper.insert(msgEntity);
}
public List<DataObject> getList(MsgQuery msgQuery) {
if(ifEmpty(msgQuery.getOrderBy(), ()->"").equals("")) {
msgQuery.setOrderBy("MSG_KEY");
}
return msgMapper.selectList(msgQuery);
}
}

@ -0,0 +1,31 @@
package cokr.xit.fims.mngt.service.bean;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cokr.xit.fims.mngt.MsgEntity;
import cokr.xit.fims.mngt.MsgQuery;
import cokr.xit.fims.mngt.service.MsgService;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject;
@Service("msgService")
public class MsgServiceBean extends AbstractServiceBean implements MsgService {
@Resource(name="msgBean")
private MsgBean msgBean;
@Override
public void regist(MsgEntity msgEntity) {
msgBean.regist(msgEntity);
}
@Override
public List<DataObject> getList(MsgQuery msgQuery) {
return msgBean.getList(msgQuery);
}
}

@ -0,0 +1,60 @@
package cokr.xit.fims.mngt.web;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.mngt.MsgQuery;
import cokr.xit.fims.mngt.service.MsgService;
import cokr.xit.foundation.data.DataObject;
@Controller
@RequestMapping(name="문자전송 관리", value=Mngt03Controller.CLASS_URL)
public class Mngt03Controller extends ApplicationController {
public static final String CLASS_URL = "/mngt/mngt03";
public class METHOD_URL {
public static final String
main = "/010/main.do" // 문자전송 현황 메인 화면
, list = "/010/list.do" // 문자전송 현황 목록 조회
, regist = "/010/regist.do" // 문자전송 요청 등록
;
}
@Resource(name="msgService")
private MsgService msgService;
@RequestMapping(name="문자전송 현황 메인", value=METHOD_URL.main)
public ModelAndView main() {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/mngt/mngt03010-main");
mav.addObject("pageName", "mngt03010");
return mav;
}
@RequestMapping(name="문자전송 목록", value=METHOD_URL.list)
public ModelAndView list(MsgQuery msgQuery) {
ModelAndView mav = new ModelAndView("jsonView");
List<DataObject> list = msgService.getList(msgQuery);
return setPagingInfo(mav, list, "");
}
@RequestMapping(name="문자전송 요청 등록", value=METHOD_URL.regist)
public ModelAndView regist(HttpServletRequest req, DataObject spec) {
ModelAndView mav = new ModelAndView("jsonView");
return mav;
}
}

@ -0,0 +1,208 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cokr.xit.fims.mngt.dao.MsgMapper">
<insert id="insert" parameterType="cokr.xit.fims.mngt.MsgEntity">
/* 문자전송 요청 등록(msgMapper.insert) */
INSERT
INTO NRMSG_DATA (
MSG_KEY
, MSG_SUB_ID
, USER_KEY
, USER_GROUP
, USER_ID
, USER_JOBID
, CENTER_KEY
, MSG_PRIORITY
, MSG_STATE
, INPUT_DATE
, INPUT_YMD
, RES_DATE
, QUE_DATE
, SENT_DATE
, RSLT_DATE
, REPORT_DATE
, RSLT_CODE
, RSLT_NET
, RSLT_TYPE
, SENT_COUNT
, HISTORY_MSG_TYPE
, HISTORY_RSLT_CODE
, IDENTIFIER
, PHONE
, CALLBACK
, MSG_TYPE_1
, CONTENTS_TYPE_1
, QUE_DATE_1
, SENT_DATE_1
, MSG_TYPE_2
, CONTENTS_TYPE_2
, QUE_DATE_2
, SENT_DATE_2
, MSG_TYPE_3
, CONTENTS_TYPE_3
, QUE_DATE_3
, SENT_DATE_3
, XMS_RSLT_CODE
, XMS_RSLT_NET
, XMS_RSLT_DATE
, XMS_REPORT_DATE
, ALT_RSLT_CODE
, ALT_RSLT_NET
, ALT_RSLT_DATE
, ALT_REPORT_DATE
, RCS_RSLT_CODE
, RCS_RSLT_NET
, RCS_RSLT_DATE
, RCS_REPORT_DATE
, XMS_SUBJECT
, XMS_TEXT
, XMS_FILE_NAME_1
, XMS_FILE_NAME_2
, XMS_FILE_NAME_3
, ALT_COUNTRY_CODE
, ALT_SENDER_KEY
, ALT_TEMPLATE_CODE
, ALT_JSON
, RCS_BRAND_KEY
, RCS_MASSAGE_BASE_ID
, RCS_JSON
)
VALUES (
NRMSG_DATA_SEQ.NEXTVAL
, #{msgSubId}
, #{userKey}
, #{userGroup}
, #{userId}
, #{userJobid}
, #{centerKey}
, #{msgPriority}
, #{msgState}
, CURRENT_TIMESTAMP
, <include refid="utility.today"/>
, #{resDate}
, #{queDate}
, #{sentDate}
, #{rsltDate}
, #{reportDate}
, #{rsltCode}
, #{rsltNet}
, #{rsltType}
, #{sentCount}
, #{historyMsgType}
, #{historyRsltCode}
, #{identifier}
, #{phone}
, #{callback}
, #{msgType1}
, #{contentsType1}
, #{queDate1}
, #{sentDate1}
, #{msgType2}
, #{contentsType2}
, #{queDate2}
, #{sentDate2}
, #{msgType3}
, #{contentsType3}
, #{queDate3}
, #{sentDate3}
, #{xmsRsltCode}
, #{xmsRsltNet}
, #{xmsRsltDate}
, #{xmsReportDate}
, #{altRsltCode}
, #{altRsltNet}
, #{altRsltDate}
, #{altReportDate}
, #{rcsRsltCode}
, #{rcsRsltNet}
, #{rcsRsltDate}
, #{rcsReportDate}
, #{xmsSubject}
, #{xmsText}
, #{xmsFileName1}
, #{xmsFileName2}
, #{xmsFileName3}
, #{altCountryCode}
, #{altSenderKey}
, #{altTemplateCode}
, #{altJson}
, #{rcsBrandKey}
, #{rcsMassageBaseId}
, #{rcsJson}
)
</insert>
<select id="selectList" parameterType="cokr.xit.fims.mngt.MsgQuery" resultType="dataObject">
/* 문자전송 목록(msgMapper.selectList) */
<include refid="utility.paging-prefix"/>
SELECT MSG_KEY
, MSG_SUB_ID
, USER_KEY
, USER_GROUP
, USER_ID
, USER_JOBID
, CENTER_KEY
, MSG_PRIORITY
, MSG_STATE
, GET_CODE_NM('MSG001',MSG_STATE) AS MSG_STATE_NM
, INPUT_DATE
, RES_DATE
, QUE_DATE
, SENT_DATE
, RSLT_DATE
, REPORT_DATE
, RSLT_CODE
, RSLT_NET
, RSLT_TYPE
, SENT_COUNT
, HISTORY_MSG_TYPE
, HISTORY_RSLT_CODE
, IDENTIFIER
, PHONE
, CALLBACK
, MSG_TYPE_1
, CONTENTS_TYPE_1
, QUE_DATE_1
, SENT_DATE_1
, MSG_TYPE_2
, CONTENTS_TYPE_2
, QUE_DATE_2
, SENT_DATE_2
, MSG_TYPE_3
, CONTENTS_TYPE_3
, QUE_DATE_3
, SENT_DATE_3
, XMS_RSLT_CODE
, XMS_RSLT_NET
, XMS_RSLT_DATE
, XMS_REPORT_DATE
, ALT_RSLT_CODE
, ALT_RSLT_NET
, ALT_RSLT_DATE
, ALT_REPORT_DATE
, RCS_RSLT_CODE
, RCS_RSLT_NET
, RCS_RSLT_DATE
, RCS_REPORT_DATE
, XMS_SUBJECT
, XMS_TEXT
, XMS_FILE_NAME_1
, XMS_FILE_NAME_2
, XMS_FILE_NAME_3
, ALT_COUNTRY_CODE
, ALT_SENDER_KEY
, ALT_TEMPLATE_CODE
, ALT_JSON
, RCS_BRAND_KEY
, RCS_MASSAGE_BASE_ID
, RCS_JSON
FROM NRMSG_DATA
WHERE 1=1
AND REG_YMD <![CDATA[>=]]> #{schInputDateFrom}
AND REG_YMD <![CDATA[<=]]> #{schInputDateTo}
<include refid="utility.sortBy" />
<include refid="utility.paging-suffix"/>
</select>
</mapper>
Loading…
Cancel
Save