webReqId 채번 수정

This commit is contained in:
2023-04-25 14:26:10 +09:00
parent ed8382bc9c
commit dc0227f3dc
2 changed files with 6 additions and 2 deletions

View File

@@ -187,7 +187,7 @@ public class CommService {
CommMapper commMapper = sqlSessionMaster.getMapper(CommMapper.class); CommMapper commMapper = sqlSessionMaster.getMapper(CommMapper.class);
// webReqId 채번 // webReqId 채번
String prefix = DateUtil.getCurrentDate("yyyyMMdd"); String prefix = (String) ezMsgMap.get("prefix");
String webReqId = prefix + ezMsgMap.get(WEB_REQ_ID); String webReqId = prefix + ezMsgMap.get(WEB_REQ_ID);
Map<Object, Object> newezMsgMap = new HashMap<Object, Object>(); Map<Object, Object> newezMsgMap = new HashMap<Object, Object>();
@@ -213,7 +213,7 @@ public class CommService {
public Map<Object, Object> sendMsgHist(Map<Object, Object>msgHistMap) { public Map<Object, Object> sendMsgHist(Map<Object, Object>msgHistMap) {
CommMapper commMapper = sqlSessionMaster.getMapper(CommMapper.class); CommMapper commMapper = sqlSessionMaster.getMapper(CommMapper.class);
// webReqId 채번 // webReqId 채번
String prefix = DateUtil.getCurrentDate("yyyyMMdd"); String prefix = (String) msgHistMap.get("prefix");
String webReqId = prefix + msgHistMap.get(WEB_REQ_ID); String webReqId = prefix + msgHistMap.get(WEB_REQ_ID);
//알림 이력 insert //알림 이력 insert

View File

@@ -73,6 +73,7 @@ import kr.co.uplus.ez.common.data.ApiResponseCode;
import kr.co.uplus.ez.common.data.Const; import kr.co.uplus.ez.common.data.Const;
import kr.co.uplus.ez.common.data.Paging; import kr.co.uplus.ez.common.data.Paging;
import kr.co.uplus.ez.common.utils.CommonUtils; import kr.co.uplus.ez.common.utils.CommonUtils;
import kr.co.uplus.ez.common.utils.DateUtil;
import kr.co.uplus.ez.common.utils.DateUtils; import kr.co.uplus.ez.common.utils.DateUtils;
import kr.co.uplus.ez.common.utils.FileIoUtils; import kr.co.uplus.ez.common.utils.FileIoUtils;
import kr.co.uplus.ez.common.utils.FileUtil; import kr.co.uplus.ez.common.utils.FileUtil;
@@ -720,10 +721,12 @@ public class SendNumMgtService {
//4. 메시지 발송 //4. 메시지 발송
String WEB_REQ_ID =sendNumMgtMapper.selectSequence(commService.WEB_REQ_ID); String WEB_REQ_ID =sendNumMgtMapper.selectSequence(commService.WEB_REQ_ID);
String prefix = DateUtil.getCurrentDate("yyyyMMdd");
//알림문자 발송테이블 insert //알림문자 발송테이블 insert
Map<Object, Object> ezMsgMap = new HashMap<Object, Object>(); Map<Object, Object> ezMsgMap = new HashMap<Object, Object>();
ezMsgMap.put("WEB_REQ_ID", WEB_REQ_ID); ezMsgMap.put("WEB_REQ_ID", WEB_REQ_ID);
ezMsgMap.put("prefix", prefix);
String userPhone = sendNumMgtMapper.selectUserPhoneByAdminId(adminId); String userPhone = sendNumMgtMapper.selectUserPhoneByAdminId(adminId);
ezMsgMap.put("phone", userPhone); ezMsgMap.put("phone", userPhone);
@@ -737,6 +740,7 @@ public class SendNumMgtService {
//알람이력에 insert //알람이력에 insert
Map<Object, Object> msgHistMap = new HashMap<Object, Object>(); Map<Object, Object> msgHistMap = new HashMap<Object, Object>();
msgHistMap.put("WEB_REQ_ID", WEB_REQ_ID); msgHistMap.put("WEB_REQ_ID", WEB_REQ_ID);
msgHistMap.put("prefix", prefix);
String notiSeq = sendNumMgtMapper.selectNotiSeq(); String notiSeq = sendNumMgtMapper.selectNotiSeq();
String userSeq = sendNumMgtMapper.selectUserSeqByAdminId(adminId); String userSeq = sendNumMgtMapper.selectUserSeqByAdminId(adminId);
msgHistMap.put("userSeq", userSeq); msgHistMap.put("userSeq", userSeq);