no message

main
이범준 1 year ago
parent f094523f89
commit de22b6dc00

@ -16,7 +16,7 @@ import cokr.xit.fims.framework.core.utils.XitCmmnUtil;
import cokr.xit.fims.framework.core.utils.attachfile.XitAttachFileVO; import cokr.xit.fims.framework.core.utils.attachfile.XitAttachFileVO;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.egovframe.rte.fdl.cmmn.exception.FdlException; import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -34,9 +34,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
private XitFrameUnitMapper xitFrameUnitMapper; private XitFrameUnitMapper xitFrameUnitMapper;
@Resource @Resource
private XitFrameCrudService xitFrameCrudService; private XitFrameCrudService xitFrameCrudService;
@Autowired
@Qualifier("fileIdGnrService")
private EgovIdGnrService fileIdGnrService;
@ -324,7 +322,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
boolean isFirstAdd = XitCmmnUtil.isEmpty(atchFileId) ? true : false; boolean isFirstAdd = XitCmmnUtil.isEmpty(atchFileId) ? true : false;
// 파일상세정보 // 파일상세정보
XitAttachFileRespVO vo = new XitAttachFileRespVO(); XitAttachFileRespVO vo = new XitAttachFileRespVO();
vo.setAtchFileId(isFirstAdd ? fileIdGnrService.getNextStringId() : atchFileId); vo.setAtchFileId(isFirstAdd ? "nextstringid" : atchFileId);
List<XitAttachFileRespVO> listDetailVO = new ArrayList<XitAttachFileRespVO>(); List<XitAttachFileRespVO> listDetailVO = new ArrayList<XitAttachFileRespVO>();
int fileSn = isFirstAdd ? 1 : xitFrameUnitMapper.findMaxFileSn(atchFileId); int fileSn = isFirstAdd ? 1 : xitFrameUnitMapper.findMaxFileSn(atchFileId);
for (XitAttachFileVO fileVO : listAttachFileVO) { for (XitAttachFileVO fileVO : listAttachFileVO) {

@ -9,7 +9,7 @@ import cokr.xit.fims.framework.support.util.constants.MessageKey;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.apache.ibatis.session.RowBounds; import org.apache.ibatis.session.RowBounds;
import org.egovframe.rte.fdl.cmmn.exception.FdlException; import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -23,9 +23,7 @@ import java.util.Map;
public class BoardTmplMgtServiceBean extends AbstractServiceBean implements BoardTmplMgtService { public class BoardTmplMgtServiceBean extends AbstractServiceBean implements BoardTmplMgtService {
private final BoardTmplMgtMapper mapper; private final BoardTmplMgtMapper mapper;
@Autowired
@Qualifier("bbsIdGnrService")
private final EgovIdGnrService bbsIdGnrService;
@Override @Override
@Transactional(readOnly = true) @Transactional(readOnly = true)
@ -48,11 +46,9 @@ public class BoardTmplMgtServiceBean extends AbstractServiceBean implements Boar
@Override @Override
@Transactional @Transactional
public void addBoardTmpl(final XitBbsTmplateMngVO vo) { public void addBoardTmpl(final XitBbsTmplateMngVO vo) {
try {
vo.setTmplatId(bbsIdGnrService.getNextStringId()); vo.setTmplatId("nextstringid");
} catch (FdlException e) {
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, e.getMessage());
}
vo.setRgtr(getUserUniqId()); vo.setRgtr(getUserUniqId());
mapper.insertBoardTmpl(vo); mapper.insertBoardTmpl(vo);
} }

@ -10,7 +10,7 @@ import cokr.xit.fims.framework.biz.mng.bbs.XitBbsCreateMngVO;
import cokr.xit.fims.framework.biz.mng.bbs.service.XitBbsCreateMngService; import cokr.xit.fims.framework.biz.mng.bbs.service.XitBbsCreateMngService;
import org.springframework.context.support.ReloadableResourceBundleMessageSource; import org.springframework.context.support.ReloadableResourceBundleMessageSource;
import org.egovframe.rte.fdl.cmmn.exception.FdlException; import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -27,9 +27,7 @@ public class XitBbsCreateMngServiceBean extends AbstractServiceBean implements X
@Resource @Resource
private XitFrameCrudService xitFrameCrudService; private XitFrameCrudService xitFrameCrudService;
@Autowired
@Qualifier("bbsIdGnrService")
private EgovIdGnrService bbsIdGnrService;
@Override @Override
public List<XitBbsCreateMngVO> findList(XitBbsCreateMngSearchVO searchVO) { public List<XitBbsCreateMngVO> findList(XitBbsCreateMngSearchVO searchVO) {
@ -71,11 +69,9 @@ public class XitBbsCreateMngServiceBean extends AbstractServiceBean implements X
*/ */
//게시판마스터 //게시판마스터
String bbsId = null; String bbsId = null;
try {
bbsId = bbsIdGnrService.getNextStringId(); bbsId = "nextstringid";
} catch (FdlException e) {
throw new RuntimeException(String.format("%s %s", "생성에 실패하였습니다.", e.getMessage()));
}
vo.setBbsId(bbsId); vo.setBbsId(bbsId);
vo.setUseYn("Y"); vo.setUseYn("Y");
XitBbsMastrVO bbsMastrVO = convertToCrudVO(vo); XitBbsMastrVO bbsMastrVO = convertToCrudVO(vo);

@ -9,7 +9,7 @@ import cokr.xit.fims.framework.biz.mng.bbs.XitBbsTmplateMngVO;
import cokr.xit.fims.framework.biz.mng.bbs.service.XitBbsTmplateMngService; import cokr.xit.fims.framework.biz.mng.bbs.service.XitBbsTmplateMngService;
import org.springframework.context.support.ReloadableResourceBundleMessageSource; import org.springframework.context.support.ReloadableResourceBundleMessageSource;
import org.egovframe.rte.fdl.cmmn.exception.FdlException; import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -27,8 +27,6 @@ public class XitBbsTmplateMngServiceBean extends AbstractServiceBean implements
private XitFrameCrudService xitFrameCrudService; private XitFrameCrudService xitFrameCrudService;
@Qualifier("xitTmplatIdGnrService")
private EgovIdGnrService xitTmplatIdGnrService;
@Override @Override
public List<XitBbsTmplateMngVO> findList(XitBbsTmplateMngSearchVO searchVO) { public List<XitBbsTmplateMngVO> findList(XitBbsTmplateMngSearchVO searchVO) {
@ -69,11 +67,9 @@ public class XitBbsTmplateMngServiceBean extends AbstractServiceBean implements
* *
*/ */
String tmplatId = null; String tmplatId = null;
try {
tmplatId = xitTmplatIdGnrService.getNextStringId(); tmplatId = "nextstringid";
} catch (FdlException e) {
throw new RuntimeException(String.format("%s %s", "생성에 실패하였습니다.", e.getMessage()));
}
vo.setTmplatId(tmplatId); vo.setTmplatId(tmplatId);
XitTmplatInfoVO tmplatInfoVO = convertToCrudVO(vo); XitTmplatInfoVO tmplatInfoVO = convertToCrudVO(vo);
tmplatInfoVO.setRgtr(vo.getRgtr()); tmplatInfoVO.setRgtr(vo.getRgtr());

@ -20,7 +20,7 @@ import cokr.xit.fims.framework.support.util.constants.MessageKey;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.apache.ibatis.session.RowBounds; import org.apache.ibatis.session.RowBounds;
import org.egovframe.rte.fdl.cmmn.exception.FdlException; import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -37,8 +37,6 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
private final AuthGrpMgtMapper authGrpMgtMapper; private final AuthGrpMgtMapper authGrpMgtMapper;
private final XitFrameCrudService xitFrameCrudService; private final XitFrameCrudService xitFrameCrudService;
@Qualifier("usrEsntlIdGnrService")
private final EgovIdGnrService usrEsntlIdGnrService;
@Override @Override
@Transactional(readOnly = true) @Transactional(readOnly = true)
@ -60,11 +58,9 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
public void addUser(final XitUserInfoVO vo) { public void addUser(final XitUserInfoVO vo) {
vo.setRgtr(XitCmmnUtil.getUserInfo().getUniqId()); vo.setRgtr(XitCmmnUtil.getUserInfo().getUniqId());
vo.setMdfr(XitCmmnUtil.getUserInfo().getUniqId()); vo.setMdfr(XitCmmnUtil.getUserInfo().getUniqId());
try {
vo.setUniqId(usrEsntlIdGnrService.getNextStringId()); vo.setUniqId("nextstringid");
} catch (FdlException e) {
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, e.getMessage());
}
vo.setUserId(vo.getUniqId()); vo.setUserId(vo.getUniqId());
vo.setUserAcnt(vo.getEmplyrId()); //처리대상 사용자 id vo.setUserAcnt(vo.getEmplyrId()); //처리대상 사용자 id

@ -7,7 +7,7 @@ import org.springframework.context.support.ReloadableResourceBundleMessageSource
import cokr.xit.fims.framework.core.utils.XitCmmnUtil; import cokr.xit.fims.framework.core.utils.XitCmmnUtil;
import cokr.xit.fims.framework.core.utils.XitHttpRequestHelper; import cokr.xit.fims.framework.core.utils.XitHttpRequestHelper;
import org.egovframe.rte.fdl.cmmn.exception.FdlException; import org.egovframe.rte.fdl.cmmn.exception.FdlException;
import org.egovframe.rte.fdl.idgnr.EgovIdGnrService;
import org.egovframe.rte.fdl.security.userdetails.util.EgovUserDetailsHelper; import org.egovframe.rte.fdl.security.userdetails.util.EgovUserDetailsHelper;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
@ -29,8 +29,7 @@ public class XitLoginLogAspect {
@Resource @Resource
private XitFrameCrudService xitFrameCrudService; private XitFrameCrudService xitFrameCrudService;
@Qualifier("xitConectLogIdGnrService")
private EgovIdGnrService xitConectLogIdGnrService;
/** /**
@ -62,11 +61,9 @@ public class XitLoginLogAspect {
* *
*/ */
XitConectLogVO vo = new XitConectLogVO(); XitConectLogVO vo = new XitConectLogVO();
try {
vo.setLogId(xitConectLogIdGnrService.getNextStringId()); vo.setLogId("nextstringid");
} catch (FdlException e) {
throw new RuntimeException(String.format("%s %s", "생성에 실패하였습니다.", e.getMessage()));
}
vo.setConectId(uniqId); vo.setConectId(uniqId);
vo.setConectIp(ip); vo.setConectIp(ip);
vo.setConectMthd("I"); // 로그인:I, 로그아웃:O vo.setConectMthd("I"); // 로그인:I, 로그아웃:O
@ -105,11 +102,9 @@ public class XitLoginLogAspect {
* *
*/ */
XitConectLogVO vo = new XitConectLogVO(); XitConectLogVO vo = new XitConectLogVO();
try {
vo.setLogId(xitConectLogIdGnrService.getNextStringId()); vo.setLogId("nextstringid");
} catch (FdlException e) {
throw new RuntimeException(String.format("%s %s", "생성에 실패하였습니다.", e.getMessage()));
}
vo.setConectId(uniqId); vo.setConectId(uniqId);
vo.setConectIp(ip); vo.setConectIp(ip);
vo.setConectMthd("O"); // 로그인:I, 로그아웃:O vo.setConectMthd("O"); // 로그인:I, 로그아웃:O

Loading…
Cancel
Save