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 lombok.extern.slf4j.Slf4j;
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.Qualifier;
import org.springframework.stereotype.Service;
@ -34,9 +34,7 @@ public class XitFrameUnitServiceBean extends AbstractServiceBean implements XitF
private XitFrameUnitMapper xitFrameUnitMapper;
@Resource
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;
// 파일상세정보
XitAttachFileRespVO vo = new XitAttachFileRespVO();
vo.setAtchFileId(isFirstAdd ? fileIdGnrService.getNextStringId() : atchFileId);
vo.setAtchFileId(isFirstAdd ? "nextstringid" : atchFileId);
List<XitAttachFileRespVO> listDetailVO = new ArrayList<XitAttachFileRespVO>();
int fileSn = isFirstAdd ? 1 : xitFrameUnitMapper.findMaxFileSn(atchFileId);
for (XitAttachFileVO fileVO : listAttachFileVO) {

@ -9,7 +9,7 @@ import cokr.xit.fims.framework.support.util.constants.MessageKey;
import lombok.RequiredArgsConstructor;
import org.apache.ibatis.session.RowBounds;
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.Qualifier;
import org.springframework.stereotype.Service;
@ -23,9 +23,7 @@ import java.util.Map;
public class BoardTmplMgtServiceBean extends AbstractServiceBean implements BoardTmplMgtService {
private final BoardTmplMgtMapper mapper;
@Autowired
@Qualifier("bbsIdGnrService")
private final EgovIdGnrService bbsIdGnrService;
@Override
@Transactional(readOnly = true)
@ -48,11 +46,9 @@ public class BoardTmplMgtServiceBean extends AbstractServiceBean implements Boar
@Override
@Transactional
public void addBoardTmpl(final XitBbsTmplateMngVO vo) {
try {
vo.setTmplatId(bbsIdGnrService.getNextStringId());
} catch (FdlException e) {
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, e.getMessage());
}
vo.setTmplatId("nextstringid");
vo.setRgtr(getUserUniqId());
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 org.springframework.context.support.ReloadableResourceBundleMessageSource;
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.Qualifier;
import org.springframework.stereotype.Service;
@ -27,9 +27,7 @@ public class XitBbsCreateMngServiceBean extends AbstractServiceBean implements X
@Resource
private XitFrameCrudService xitFrameCrudService;
@Autowired
@Qualifier("bbsIdGnrService")
private EgovIdGnrService bbsIdGnrService;
@Override
public List<XitBbsCreateMngVO> findList(XitBbsCreateMngSearchVO searchVO) {
@ -71,11 +69,9 @@ public class XitBbsCreateMngServiceBean extends AbstractServiceBean implements X
*/
//게시판마스터
String bbsId = null;
try {
bbsId = bbsIdGnrService.getNextStringId();
} catch (FdlException e) {
throw new RuntimeException(String.format("%s %s", "생성에 실패하였습니다.", e.getMessage()));
}
bbsId = "nextstringid";
vo.setBbsId(bbsId);
vo.setUseYn("Y");
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 org.springframework.context.support.ReloadableResourceBundleMessageSource;
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.Qualifier;
import org.springframework.stereotype.Service;
@ -27,8 +27,6 @@ public class XitBbsTmplateMngServiceBean extends AbstractServiceBean implements
private XitFrameCrudService xitFrameCrudService;
@Qualifier("xitTmplatIdGnrService")
private EgovIdGnrService xitTmplatIdGnrService;
@Override
public List<XitBbsTmplateMngVO> findList(XitBbsTmplateMngSearchVO searchVO) {
@ -69,11 +67,9 @@ public class XitBbsTmplateMngServiceBean extends AbstractServiceBean implements
*
*/
String tmplatId = null;
try {
tmplatId = xitTmplatIdGnrService.getNextStringId();
} catch (FdlException e) {
throw new RuntimeException(String.format("%s %s", "생성에 실패하였습니다.", e.getMessage()));
}
tmplatId = "nextstringid";
vo.setTmplatId(tmplatId);
XitTmplatInfoVO tmplatInfoVO = convertToCrudVO(vo);
tmplatInfoVO.setRgtr(vo.getRgtr());

@ -20,7 +20,7 @@ import cokr.xit.fims.framework.support.util.constants.MessageKey;
import lombok.RequiredArgsConstructor;
import org.apache.ibatis.session.RowBounds;
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.Qualifier;
import org.springframework.stereotype.Service;
@ -37,8 +37,6 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
private final AuthGrpMgtMapper authGrpMgtMapper;
private final XitFrameCrudService xitFrameCrudService;
@Qualifier("usrEsntlIdGnrService")
private final EgovIdGnrService usrEsntlIdGnrService;
@Override
@Transactional(readOnly = true)
@ -60,11 +58,9 @@ public class UserMgtServiceBean extends AbstractServiceBean implements UserMgtSe
public void addUser(final XitUserInfoVO vo) {
vo.setRgtr(XitCmmnUtil.getUserInfo().getUniqId());
vo.setMdfr(XitCmmnUtil.getUserInfo().getUniqId());
try {
vo.setUniqId(usrEsntlIdGnrService.getNextStringId());
} catch (FdlException e) {
throw BizRuntimeException.create(MessageKey.CUSTOM_MSG, e.getMessage());
}
vo.setUniqId("nextstringid");
vo.setUserId(vo.getUniqId());
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.XitHttpRequestHelper;
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.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
@ -29,8 +29,7 @@ public class XitLoginLogAspect {
@Resource
private XitFrameCrudService xitFrameCrudService;
@Qualifier("xitConectLogIdGnrService")
private EgovIdGnrService xitConectLogIdGnrService;
/**
@ -62,11 +61,9 @@ public class XitLoginLogAspect {
*
*/
XitConectLogVO vo = new XitConectLogVO();
try {
vo.setLogId(xitConectLogIdGnrService.getNextStringId());
} catch (FdlException e) {
throw new RuntimeException(String.format("%s %s", "생성에 실패하였습니다.", e.getMessage()));
}
vo.setLogId("nextstringid");
vo.setConectId(uniqId);
vo.setConectIp(ip);
vo.setConectMthd("I"); // 로그인:I, 로그아웃:O
@ -105,11 +102,9 @@ public class XitLoginLogAspect {
*
*/
XitConectLogVO vo = new XitConectLogVO();
try {
vo.setLogId(xitConectLogIdGnrService.getNextStringId());
} catch (FdlException e) {
throw new RuntimeException(String.format("%s %s", "생성에 실패하였습니다.", e.getMessage()));
}
vo.setLogId("nextstringid");
vo.setConectId(uniqId);
vo.setConectIp(ip);
vo.setConectMthd("O"); // 로그인:I, 로그아웃:O

Loading…
Cancel
Save