style: 팝업 내용변경 시 수정된 내용 화면에 반영 안 되는 이슈 작업(시스템 관리 대메뉴)

main
sjh88 2 years ago
parent 41215a1126
commit 769843d178

@ -22,7 +22,7 @@ import kr.xit.framework.biz.mng.auth.model.XitAuthorGroupInfoVO;
public interface IAuthGrpMgtMapper { public interface IAuthGrpMgtMapper {
List<XitAuthorGroupInfoVO> selectAuthorGroupInfos(final Map<String, Object> paraMap, final RowBounds rowBounds); List<XitAuthorGroupInfoVO> selectAuthorGroupInfos(final Map<String, Object> paraMap, final RowBounds rowBounds);
XitAuthorGroupInfoVO selectAuthorGroupInfo(final String groupId); <T> XitAuthorGroupInfoVO selectAuthorGroupInfo(final T t);
int insertAuthorGroupInfo(final XitAuthorGroupInfoVO vo); int insertAuthorGroupInfo(final XitAuthorGroupInfoVO vo);
int updateAuthorGroupInfo(final XitAuthorGroupInfoVO vo); int updateAuthorGroupInfo(final XitAuthorGroupInfoVO vo);
int deleteAuthorGroupInfo(final String groupId); int deleteAuthorGroupInfo(final String groupId);

@ -42,8 +42,8 @@ public class AuthAuthorMgtService implements IAuthAuthorMgtService {
@Override @Override
@Transactional(readOnly = true) @Transactional(readOnly = true)
public XitAuthorInfoVO findAuthAuthor(final String authorCode) { public <T> XitAuthorInfoVO findAuthAuthor(final T t) {
return mapper.selectAuthorInfo(authorCode); return mapper.selectAuthorInfo(t);
} }
/* ===================================================== /* =====================================================

@ -42,8 +42,8 @@ public class AuthGrpMgtService implements IAuthGrpMgtService {
@Override @Override
@Transactional(readOnly = true) @Transactional(readOnly = true)
public XitAuthorGroupInfoVO findAuthGrp(final String groupId) { public <T> XitAuthorGroupInfoVO findAuthGrp(final T t) {
return mapper.selectAuthorGroupInfo(groupId); return mapper.selectAuthorGroupInfo(t);
} }
@Override @Override

@ -33,8 +33,8 @@ public class AuthRoleMgtService implements IAuthRoleMgtService {
@Override @Override
@Transactional(readOnly = true) @Transactional(readOnly = true)
public XitRoleInfoVO findAuthRole(final String roleCode) { public <T> XitRoleInfoVO findAuthRole(final T t) {
return mapper.selectAuthRole(roleCode); return mapper.selectAuthRole(t);
} }
@Override @Override

@ -23,7 +23,7 @@ public interface IAuthAuthorMgtService {
/** /**
* <pre> : </pre> * <pre> : </pre>
* @param searchVO * @param paraMap
* @return List<XitAuthRegMngVO> * @return List<XitAuthRegMngVO>
* @author: * @author:
* @date: 2020. 4. 16. * @date: 2020. 4. 16.
@ -31,7 +31,7 @@ public interface IAuthAuthorMgtService {
List<XitAuthorInfoVO> findAuthAuthors(final Map<String,Object> paraMap, final RowBounds rowBounds); List<XitAuthorInfoVO> findAuthAuthors(final Map<String,Object> paraMap, final RowBounds rowBounds);
List<XitAuthorInfoVO> findAuthAuthors(final Map<String,Object> paraMap); List<XitAuthorInfoVO> findAuthAuthors(final Map<String,Object> paraMap);
XitAuthorInfoVO findAuthAuthor(final String authorCode); <T> XitAuthorInfoVO findAuthAuthor(final T t);
void addAuthAuthor(final XitAuthorInfoVO vo); void addAuthAuthor(final XitAuthorInfoVO vo);
void modifyAuthAuthor(final XitAuthorInfoVO vo); void modifyAuthAuthor(final XitAuthorInfoVO vo);
void removeAuthAuthor(final String authorCode); void removeAuthAuthor(final String authorCode);

@ -20,7 +20,7 @@ import kr.xit.framework.biz.mng.auth.model.XitAuthorGroupInfoVO;
public interface IAuthGrpMgtService { public interface IAuthGrpMgtService {
List<XitAuthorGroupInfoVO> findAuthGrps(final Map<String,Object> paraMap, final RowBounds rowBounds); List<XitAuthorGroupInfoVO> findAuthGrps(final Map<String,Object> paraMap, final RowBounds rowBounds);
XitAuthorGroupInfoVO findAuthGrp(final String groupId); <T> XitAuthorGroupInfoVO findAuthGrp(final T t);
void addAuthGrp(final XitAuthorGroupInfoVO vo); void addAuthGrp(final XitAuthorGroupInfoVO vo);
void modifyAuthGrp(final XitAuthorGroupInfoVO vo); void modifyAuthGrp(final XitAuthorGroupInfoVO vo);
void removeAuthGrp(final String authorCode); void removeAuthGrp(final String authorCode);

@ -22,7 +22,7 @@ public interface IAuthRoleMgtService {
/** /**
* <pre> : </pre> * <pre> : </pre>
* @param searchVO * @param paraMap
* @return List<XitAuthRuleMngVO> * @return List<XitAuthRuleMngVO>
* @author: * @author:
* @date: 2020. 4. 16. * @date: 2020. 4. 16.
@ -31,12 +31,12 @@ public interface IAuthRoleMgtService {
/** /**
* <pre> : </pre> * <pre> : </pre>
* @param vo * @param t
* @return XitAuthRuleMngVO * @return XitAuthRuleMngVO
* @author: * @author:
* @date: 2020. 4. 16. * @date: 2020. 4. 16.
*/ */
XitRoleInfoVO findAuthRole(final String roleCode); <T> XitRoleInfoVO findAuthRole(final T t);
/** /**
* <pre> : </pre> * <pre> : </pre>

@ -50,14 +50,14 @@ public class AuthAuthorMgtController {
} }
@RequestMapping(value = "/mngAuthAuthorMgtPopup") @RequestMapping(value = "/mngAuthAuthorMgtPopup")
public ModelAndView mngAuthAuthorMgtPopup(@ModelAttribute final XitAuthorInfoVO vo){ public ModelAndView mngAuthAuthorMgtPopup(final XitAuthorInfoVO vo){
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
if(Checks.isEmpty(vo) || Checks.isEmpty(vo.getAuthorCode())){ if(Checks.isEmpty(vo) || Checks.isEmpty(vo.getAuthorCode())){
mav.addObject("authorInfoVO", new XitAuthorInfoVO()); mav.addObject("authorInfoVO", new XitAuthorInfoVO());
mav.addObject("pageTitle", "권한 등록"); mav.addObject("pageTitle", "권한 등록");
} else { } else {
mav.addObject("authorInfoVO", vo); mav.addObject("authorInfoVO", service.findAuthAuthor(vo));
mav.addObject("pageTitle", "권한 변경"); mav.addObject("pageTitle", "권한 변경");
} }
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/mngAuthAuthorMgtPopup.popup"); mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/mngAuthAuthorMgtPopup.popup");

@ -57,7 +57,7 @@ public class AuthGrpMgtController {
mav.addObject("groupManage", new XitAuthorGroupInfoVO()); mav.addObject("groupManage", new XitAuthorGroupInfoVO());
mav.addObject("pageTitle", "권한그룹 등록"); mav.addObject("pageTitle", "권한그룹 등록");
} else { } else {
mav.addObject("groupManage", vo); mav.addObject("groupManage", service.findAuthGrp(vo));
mav.addObject("pageTitle", "권한그룹 변경"); mav.addObject("pageTitle", "권한그룹 변경");
} }
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/mngAuthGrpMgtPopup.popup"); mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/mngAuthGrpMgtPopup.popup");

@ -57,7 +57,7 @@ public class AuthRoleMgtController {
mav.addObject("roleManage", new XitRoleInfoVO()); mav.addObject("roleManage", new XitRoleInfoVO());
mav.addObject("pageTitle", "롤 등록"); mav.addObject("pageTitle", "롤 등록");
} else { } else {
mav.addObject("roleManage", vo); mav.addObject("roleManage", service.findAuthRole(vo));
mav.addObject("pageTitle", "롤 정보 변경"); mav.addObject("pageTitle", "롤 정보 변경");
} }
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/mngAuthRoleMgtPopup.popup"); mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/mngAuthRoleMgtPopup.popup");

@ -70,4 +70,7 @@ public class XitBbsTmplateMngVO {
/** 사용여부 */ /** 사용여부 */
private String useAt; private String useAt;
/** 코드 명 */
private String codeNm;
} }

@ -4,6 +4,7 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import kr.xit.framework.support.util.Checks;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult; import org.springframework.validation.BindingResult;
@ -56,8 +57,13 @@ public class BoardTmplMgtController {
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
mav.addObject("templateInf", vo); if(Checks.isEmpty(vo.getTmplatId())){
mav.addObject("pageTitle", "게시판 템플릿 등록 / 변경"); mav.addObject("templateInf", vo);
mav.addObject("pageTitle", "게시판 템플릿 등록");
} else {
mav.addObject("templateInf", service.findBoardTmpl(vo));
mav.addObject("pageTitle", "게시판 템플릿 변경");
}
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH + "mng/bbs/mngBoardTmplMgtPopup.popup"); mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH + "mng/bbs/mngBoardTmplMgtPopup.popup");
return mav; return mav;
} }

@ -12,7 +12,7 @@ import kr.xit.framework.biz.mng.code.model.XitClCodeMngVO;
public interface ICodeCfnMgtMapper { public interface ICodeCfnMgtMapper {
List<XitClCodeMngVO> selectCmmnClCodes(final Map<String, Object> paraMap, final RowBounds rowBounds); List<XitClCodeMngVO> selectCmmnClCodes(final Map<String, Object> paraMap, final RowBounds rowBounds);
XitClCodeMngVO selectCmmnClCode(final String clCode); <T> XitClCodeMngVO selectCmmnClCode(final T t);
int insertCmmnClCode(final XitClCodeMngVO vo); int insertCmmnClCode(final XitClCodeMngVO vo);
int updateCmmnClCode(final XitClCodeMngVO vo); int updateCmmnClCode(final XitClCodeMngVO vo);

@ -79,4 +79,9 @@ public class XitDetailCodeMngVO {
*/ */
private String lastUpdusrId; private String lastUpdusrId;
/*
*
*/
private String clCode;
} }

@ -30,6 +30,10 @@ public class CodeCfnMgtService implements ICodeCfnMgtService {
return mapper.selectCmmnClCodes(paraMap, rowBounds); return mapper.selectCmmnClCodes(paraMap, rowBounds);
} }
@Override
@Transactional(readOnly = true)
public <T> XitClCodeMngVO findCodeCfn(final T t){return mapper.selectCmmnClCode(t);}
@Override @Override
@Transactional @Transactional
public void addCodeCfn(final XitClCodeMngVO vo) { public void addCodeCfn(final XitClCodeMngVO vo) {

@ -26,6 +26,10 @@ public class CodeDtlMgtService implements ICodeDtlMgtService {
return mapper.selectCmmnDtlCodes(paraMap, rowBounds); return mapper.selectCmmnDtlCodes(paraMap, rowBounds);
} }
@Override
@Transactional(readOnly = true)
public <T> XitDetailCodeMngVO findCodeDtl(final T t){return mapper.selectCmmnDtlCode(t);}
@Override @Override
@Transactional @Transactional
public void addCodeDtl(final XitDetailCodeMngVO vo) { public void addCodeDtl(final XitDetailCodeMngVO vo) {

@ -30,6 +30,10 @@ public class CodeGrpMgtService implements ICodeGrpMgtService {
return mapper.selectCmmnGrpCodes(paraMap, rowBounds); return mapper.selectCmmnGrpCodes(paraMap, rowBounds);
} }
@Override
@Transactional(readOnly = true)
public <T> XitCmmnCodeMngVO findCodeGrp(final T t){return mapper.selectCmmnGrpCode(t);}
@Override @Override
@Transactional(readOnly = true) @Transactional(readOnly = true)
public void addCodeGrp(final XitCmmnCodeMngVO vo) { public void addCodeGrp(final XitCmmnCodeMngVO vo) {

@ -22,6 +22,8 @@ public interface ICodeCfnMgtService {
List<XitClCodeMngVO> findCodeCfns(final Map<String, Object> paraMap, final RowBounds rowBounds); List<XitClCodeMngVO> findCodeCfns(final Map<String, Object> paraMap, final RowBounds rowBounds);
<T> XitClCodeMngVO findCodeCfn(final T t);
void addCodeCfn(final XitClCodeMngVO vo); void addCodeCfn(final XitClCodeMngVO vo);

@ -23,6 +23,8 @@ public interface ICodeDtlMgtService {
List<XitDetailCodeMngVO> findCodeDtls(final Map<String, Object> paraMap, final RowBounds rowBounds); List<XitDetailCodeMngVO> findCodeDtls(final Map<String, Object> paraMap, final RowBounds rowBounds);
<T> XitDetailCodeMngVO findCodeDtl(final T t);
void addCodeDtl(final XitDetailCodeMngVO vo); void addCodeDtl(final XitDetailCodeMngVO vo);
void modifyCodeDtl(final XitDetailCodeMngVO vo); void modifyCodeDtl(final XitDetailCodeMngVO vo);

@ -23,6 +23,8 @@ public interface ICodeGrpMgtService {
List<XitCmmnCodeMngVO> findCodeGrps(final Map<String, Object> paraMap, final RowBounds rowBounds); List<XitCmmnCodeMngVO> findCodeGrps(final Map<String, Object> paraMap, final RowBounds rowBounds);
<T> XitCmmnCodeMngVO findCodeGrp(final T t);
void addCodeGrp(final XitCmmnCodeMngVO vo); void addCodeGrp(final XitCmmnCodeMngVO vo);
void modifyCodeGrp(final XitCmmnCodeMngVO vo); void modifyCodeGrp(final XitCmmnCodeMngVO vo);

@ -2,9 +2,7 @@ package kr.xit.framework.biz.mng.code.web;
import java.util.Map; import java.util.Map;
import javax.annotation.Resource; import kr.xit.framework.support.util.Checks;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult; import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -15,11 +13,8 @@ import org.springframework.web.servlet.ModelAndView;
import kr.xit.framework.biz.mng.code.model.XitClCodeMngVO; import kr.xit.framework.biz.mng.code.model.XitClCodeMngVO;
import kr.xit.framework.biz.mng.code.service.ICodeCfnMgtService; import kr.xit.framework.biz.mng.code.service.ICodeCfnMgtService;
import kr.xit.framework.biz.mng.menu.model.XitMenuInfoVO;
import kr.xit.framework.core.constants.FrameworkConstants; import kr.xit.framework.core.constants.FrameworkConstants;
import kr.xit.framework.core.message.XitMessageSource;
import kr.xit.framework.core.model.ResultResponse; import kr.xit.framework.core.model.ResultResponse;
import kr.xit.framework.core.validation.XitBeanValidator;
import kr.xit.framework.support.mybatis.MybatisUtils; import kr.xit.framework.support.mybatis.MybatisUtils;
import kr.xit.framework.support.util.AjaxMessageMapRenderer; import kr.xit.framework.support.util.AjaxMessageMapRenderer;
import kr.xit.framework.support.util.ValidationError; import kr.xit.framework.support.util.ValidationError;
@ -41,8 +36,13 @@ public class CodeCfnMgtController {
public ModelAndView mngCodeCfnMgtPopup(final XitClCodeMngVO vo) { public ModelAndView mngCodeCfnMgtPopup(final XitClCodeMngVO vo) {
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
mav.addObject("cmmnClCode", vo); if(Checks.isEmpty(vo.getClCode())){
mav.addObject("pageTitle", "분류 코드 등록 / 변경"); mav.addObject("cmmnClCode", vo);
mav.addObject("pageTitle", "분류 코드 등록");
} else {
mav.addObject("cmmnClCode", service.findCodeCfn(vo));
mav.addObject("pageTitle", "분류 코드 변경");
}
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH + "mng/code/mngCodeCfnMgtPopup.popup"); mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH + "mng/code/mngCodeCfnMgtPopup.popup");
return mav; return mav;
} }

@ -2,6 +2,7 @@ package kr.xit.framework.biz.mng.code.web;
import java.util.Map; import java.util.Map;
import kr.xit.framework.support.util.Checks;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult; import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -37,8 +38,14 @@ public class CodeDtlMgtController {
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
mav.addObject("cfnCodeList", CacheServiceUtils.getComboCodes(null, "CMM_CFN")); mav.addObject("cfnCodeList", CacheServiceUtils.getComboCodes(null, "CMM_CFN"));
mav.addObject("cmmnDetailCode", vo);
mav.addObject("pageTitle", "공통 코드 등록 / 변경"); if(Checks.isEmpty(vo.getCodeId())){
mav.addObject("cmmnDetailCode", vo);
mav.addObject("pageTitle", "공통 코드 등록");
} else {
mav.addObject("cmmnDetailCode", service.findCodeDtl(vo));
mav.addObject("pageTitle", "공통 코드 변경");
}
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH + "mng/code/mngCodeDtlMgtPopup.popup"); mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH + "mng/code/mngCodeDtlMgtPopup.popup");
return mav; return mav;
} }

@ -2,6 +2,7 @@ package kr.xit.framework.biz.mng.code.web;
import java.util.Map; import java.util.Map;
import kr.xit.framework.support.util.Checks;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult; import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -35,8 +36,13 @@ public class CodeGrpMgtController {
public ModelAndView mngCodeGrpMgtPopup(final XitCmmnCodeMngVO vo) { public ModelAndView mngCodeGrpMgtPopup(final XitCmmnCodeMngVO vo) {
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
mav.addObject("cmmnCode", vo); if(Checks.isEmpty(vo.getCodeId())){
mav.addObject("pageTitle", "공통 코드 그룹 등록 / 변경"); mav.addObject("cmmnCode", vo);
mav.addObject("pageTitle", "공통 코드 그룹 등록");
} else {
mav.addObject("cmmnCode", service.findCodeGrp(vo));
mav.addObject("pageTitle", "공통 코드 그룹 변경");
}
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH + "mng/code/mngCodeGrpMgtPopup.popup"); mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH + "mng/code/mngCodeGrpMgtPopup.popup");
return mav; return mav;
} }

@ -29,6 +29,7 @@ public interface IMenuMgtService {
* @date: 2022. 10. 18. * @date: 2022. 10. 18.
*/ */
List<XitMenuInfoVO> findMenus(final Map<String, Object> paraMap, final RowBounds rowBounds); List<XitMenuInfoVO> findMenus(final Map<String, Object> paraMap, final RowBounds rowBounds);
<T> XitMenuInfoVO findMenu(final T t);
void addMenu(final XitMenuInfoVO vo); void addMenu(final XitMenuInfoVO vo);
void modifyMenu(final XitMenuInfoVO vo); void modifyMenu(final XitMenuInfoVO vo);

@ -45,6 +45,10 @@ public class MenuMgtService implements IMenuMgtService {
return mapper.selectMenuInfos(paraMap, rowBounds); return mapper.selectMenuInfos(paraMap, rowBounds);
} }
@Override
@Transactional(readOnly = true)
public <T> XitMenuInfoVO findMenu(final T t){return mapper.selectMenuInfo(t); }
@Override @Override
@Transactional @Transactional
public void addMenu(final XitMenuInfoVO vo) { public void addMenu(final XitMenuInfoVO vo) {

@ -12,6 +12,7 @@ import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import kr.xit.framework.support.util.Checks;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult; import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -71,8 +72,14 @@ public class MenuMgtController {
public ModelAndView mngMenuMgtPopup(final XitMenuInfoVO vo) { public ModelAndView mngMenuMgtPopup(final XitMenuInfoVO vo) {
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
mav.addObject("menuManageVO", vo);
mav.addObject("pageTitle", "메뉴 정보 등록 / 변경"); if(Checks.isEmpty(vo.getMenuNm())){
mav.addObject("menuManageVO", vo);
mav.addObject("pageTitle", "메뉴 정보 등록");
} else {
mav.addObject("menuManageVO", service.findMenu(vo));
mav.addObject("pageTitle", "메뉴 정보 변경");
}
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/menu/mngMenuMgtPopup.popup"); mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/menu/mngMenuMgtPopup.popup");
return mav; return mav;
} }

@ -16,7 +16,7 @@
, role_creat_de , role_creat_de
FROM xit_role_info FROM xit_role_info
<where> <where>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(RoleCode)"> <if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(roleCode)">
AND role_code = #{roleCode} AND role_code = #{roleCode}
</if> </if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(roleNm)"> <if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(roleNm)">

@ -26,9 +26,6 @@
<where> <where>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(tmplatSeCode)"> <if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(tmplatSeCode)">
AND xti.tmplat_se_code = #{tmplatSeCode} AND xti.tmplat_se_code = #{tmplatSeCode}
</if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(tmplatNm)">
AND INSTR(xti.tmplat_nm, #{tmplatNm}) > 0
</if> </if>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(codeNm)"> <if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(codeNm)">
AND INSTR(cdc.code_nm #{codeNm}) > 0 AND INSTR(cdc.code_nm #{codeNm}) > 0
@ -39,12 +36,18 @@
<select id="selectBoardTmpls" resultType="kr.xit.framework.biz.mng.bbs.model.XitBbsTmplateMngVO"> <select id="selectBoardTmpls" resultType="kr.xit.framework.biz.mng.bbs.model.XitBbsTmplateMngVO">
/* board-tmpl-mysql-mapper|selectBoardTmpls-템플릿 목록 조회|julim */ /* board-tmpl-mysql-mapper|selectBoardTmpls-템플릿 목록 조회|julim */
<include refid="sqlTmplInfo"/> <include refid="sqlTmplInfo"/>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(tmplatNm)">
AND INSTR(xti.tmplat_nm, #{tmplatNm}) > 0
</if>
ORDER BY xti.frst_regist_pnttm DESC ORDER BY xti.frst_regist_pnttm DESC
</select> </select>
<select id="selectBoardTmpl" resultType="kr.xit.framework.biz.mng.bbs.model.XitBbsTmplateMngVO"> <select id="selectBoardTmpl" resultType="kr.xit.framework.biz.mng.bbs.model.XitBbsTmplateMngVO">
/* board-tmpl-mysql-mapper|selectBoardTmpl-템플릿 정보 조회|julim */ /* board-tmpl-mysql-mapper|selectBoardTmpl-템플릿 정보 조회|julim */
<include refid="sqlTmplInfo"/> <include refid="sqlTmplInfo"/>
<if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(tmplatId)">
AND xti.tmplat_id = #{tmplatId}
</if>
</select> </select>
<insert id="insertBoardTmpl"> <insert id="insertBoardTmpl">

@ -94,7 +94,9 @@
, etc_1 = IF(etc_1 = #{etc1}, etc_1, #{etc1}) , etc_1 = IF(etc_1 = #{etc1}, etc_1, #{etc1})
, etc_2 = IF(etc_2 = #{etc2}, etc_2, #{etc2}) , etc_2 = IF(etc_2 = #{etc2}, etc_2, #{etc2})
, etc_3 = IF(etc_3 = #{etc3}, etc_3, #{etc3}) , etc_3 = IF(etc_3 = #{etc3}, etc_3, #{etc3})
, ordr = IF(ordr = #{ordr}, ordr, #{ordr}) <if test="@kr.xit.framework.core.utils.XitCmmnUtil@notEmpty(ordr)">
, ordr = IF(ordr = #{ordr}, ordr, #{ordr})
</if>
, use_at = IF(use_at = #{useAt}, use_at, #{useAt}) , use_at = IF(use_at = #{useAt}, use_at, #{useAt})
, last_updt_pnttm = NOW() , last_updt_pnttm = NOW()
, last_updusr_id = #{lastUpdusrId} , last_updusr_id = #{lastUpdusrId}

Loading…
Cancel
Save