출력 설정 관련 메소드명,변수명 수정

main
이범준 12 months ago
parent 64f8acab4c
commit c63c64d4d1

@ -13,16 +13,16 @@ import cokr.xit.foundation.data.DataObject;
@Mapper("otptStngMapper")
public interface OtptStngMapper extends AbstractMapper {
/** ..<br />
/** ..<br />
* @param query
* @return
*/
List<DataObject> selectOtptStngList(OtptStngQuery query);
List<DataObject> selectOtptArtclStngList(OtptStngQuery query);
int updateStng(OtptStng update);
int updateArtclStng(OtptStng update);
int deleteStng(OtptForm otptForm);
int deleteArtclStng(OtptForm otptForm);
int insertStng(OtptStng insert);
int insertArtclStng(OtptStng insert);
}

@ -25,7 +25,7 @@ public class OtptStngBean extends AbstractComponent {
@Resource(name = "otptStngMapper")
private OtptStngMapper otptStngMapper;
public Map<String, Object> getOtptStngMap(OtptStngQuery query){
public Map<String, Object> getOtptArtclStngMap(OtptStngQuery query){
Map<String,Object> otptStngMap = new HashMap<String,Object>();
PDFFormat pdfFormat = null;
@ -35,7 +35,7 @@ public class OtptStngBean extends AbstractComponent {
break;
}
List<DataObject> otptStngList = otptStngMapper.selectOtptStngList(query);
List<DataObject> otptStngList = otptStngMapper.selectOtptArtclStngList(query);
if(otptStngList == null) {
otptStngList = new ArrayList<DataObject>();
}
@ -77,7 +77,7 @@ public class OtptStngBean extends AbstractComponent {
if(!updateList.isEmpty()) {
for(OtptStng update : updateList) {
update.setModifiedBy(userId);
int u = otptStngMapper.updateStng(update);
int u = otptStngMapper.updateArtclStng(update);
updateKeyList.add(update.getOtptFormId());
}
}
@ -88,12 +88,12 @@ public class OtptStngBean extends AbstractComponent {
otptForm.setOtptFormIDs(updateKeyList.toArray(new String[updateKeyList.size()]));
}
otptForm.setModifiedBy(userId);
int d = otptStngMapper.deleteStng(otptForm);
int d = otptStngMapper.deleteArtclStng(otptForm);
if(!insertList.isEmpty()) {
for(OtptStng insert : insertList) {
insert.setCreatedBy(userId);
int i = otptStngMapper.insertStng(insert);
int i = otptStngMapper.insertArtclStng(insert);
}
}
} catch (Exception e) {

@ -348,7 +348,7 @@ public class Sprt01ServiceBean extends AbstractServiceBean implements Sprt01Serv
otptStngQuery.setSndngSeCd(sndngSeCd);
otptStngQuery.setPaperSeCd(paperSeCd);
List<DataObject> otptStng = otptStngMapper.selectOtptStngList(otptStngQuery);
List<DataObject> otptStng = otptStngMapper.selectOtptArtclStngList(otptStngQuery);
for(DataObject dataObject : dataObjectList) {
//페이지생성(건별)

@ -445,9 +445,9 @@ public class Sprt01Controller extends ApplicationController {
ModelAndView mav = new ModelAndView("jsonView");
Map<String,Object> otptStngMap = otptStngBean.getOtptStngMap(otptStngQuery);
Map<String,Object> otptArtclStngMap = otptStngBean.getOtptArtclStngMap(otptStngQuery);
mav.addObject("otptStngMap", otptStngMap);
mav.addObject("otptArtclStngMap", otptArtclStngMap);
String institute = currentUser().getInstitute();
String account = currentUser().getAccount();

@ -2,8 +2,8 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cokr.xit.fims.sprt.dao.OtptStngMapper">
<select id="selectOtptStngList" parameterType="cokr.xit.fims.sprt.OtptStngQuery" resultType="dataobject">
/* 출력 설정 조회(otptStngMapper.selectOtptStngList) */
<select id="selectOtptArtclStngList" parameterType="cokr.xit.fims.sprt.OtptStngQuery" resultType="dataobject">
/* 출력 항목 설정 조회(otptStngMapper.selectOtptArtclStngList) */
SELECT OTPT_FORM_ID
, SGG_CD
, TASK_SE_CD
@ -25,10 +25,11 @@ SELECT OTPT_FORM_ID
AND TASK_SE_CD = #{taskSeCd}
AND SNDNG_SE_CD = #{sndngSeCd}
AND PAPER_SE_CD = #{paperSeCd}
ORDER BY OTPT_ARTCL_ORDR
</select>
<insert id="insertStng" parameterType="cokr.xit.fims.sprt.OtptStng">
/* 출력 설정 등록(otptStngMapper.insertStng) */
<insert id="insertArtclStng" parameterType="cokr.xit.fims.sprt.OtptStng">
/* 출력 설정 등록(otptStngMapper.insertArtclStng) */
<selectKey resultType="string" keyProperty="otptFormId" keyColumn="NEW_ID" order="BEFORE">
SELECT
LPAD(CAST(IFNULL(MAX(OTPT_FORM_ID) + 1, 1) AS INT), 10, '0')
@ -79,8 +80,8 @@ INSERT
)
</insert>
<update id="updateStng" parameterType="cokr.xit.fims.sprt.OtptStng">
/* 출력 설정 수정(otptStngMapper.updateStng) */
<update id="updateArtclStng" parameterType="cokr.xit.fims.sprt.OtptStng">
/* 출력 설정 수정(otptStngMapper.updateArtclStng) */
UPDATE TB_OTPT_FORM_STNG
SET OTPT_ARTCL_NM = #{otptArtclNm}
, LEFT_PSTN = #{leftPstn}
@ -99,8 +100,8 @@ UPDATE TB_OTPT_FORM_STNG
AND USE_YN = 'Y'
</update>
<update id="deleteStng" parameterType="cokr.xit.fims.sprt.OtptForm">
/* 출력 설정 삭제(otptStngMapper.deleteStng) */
<update id="deleteArtclStng" parameterType="cokr.xit.fims.sprt.OtptForm">
/* 출력 설정 삭제(otptStngMapper.deleteArtclStng) */
UPDATE TB_OTPT_FORM_STNG
SET USE_YN = 'N'
, MDFCN_DT = <include refid="utility.now" />

@ -225,7 +225,7 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"];
$P.otptStngMap = {};
$P.otptArtclStngMap = {};
$("#btnSave--${pageName}").attr("disabled","disabled");
$("#btnUniqueAdd--${pageName}").attr("disabled","disabled");
@ -255,14 +255,14 @@ $(document).ready(function(){
$("#frmEdit--${pageName}").find("[name='paperSeCd']").val(query.paperSeCd);
$("#currentOtpt--${pageName}").text(resp.otptStngTitle);
$P.otptStngMap = resp.otptStngMap;
$P.otptArtclStngMap = resp.otptArtclStngMap;
$P.renderOtptStngGrid("tbodyUnique--${pageName}",
$P.otptStngMap.unique.prototypeList,
$P.otptStngMap.unique.dataList);
$P.otptArtclStngMap.unique.prototypeList,
$P.otptArtclStngMap.unique.dataList);
$P.renderOtptStngGrid("tbodyMultiple--${pageName}",
$P.otptStngMap.multiple.prototypeList,
$P.otptStngMap.multiple.dataList);
$P.otptArtclStngMap.multiple.prototypeList,
$P.otptArtclStngMap.multiple.dataList);
}
});
@ -371,7 +371,7 @@ $(document).ready(function(){
$P.choiceOtptArtclNm = () => {
$("#dropdownUniqueAdd--${pageName}").html("");
var prototypeList = $P.otptStngMap.unique.prototypeList;
var prototypeList = $P.otptArtclStngMap.unique.prototypeList;
var existArr = [];
$("#tbodyUnique--sprt01200-main tr").each(function(){
@ -405,10 +405,10 @@ $(document).ready(function(){
var tbodyId;
if(otptArtclNm == null || otptArtclNm == ""){
prototypeList = $P.otptStngMap.multiple.prototypeList;
prototypeList = $P.otptArtclStngMap.multiple.prototypeList;
tbodyId = "tbodyMultiple--${pageName}";
} else {
prototypeList = $P.otptStngMap.unique.prototypeList;
prototypeList = $P.otptArtclStngMap.unique.prototypeList;
tbodyId = "tbodyUnique--${pageName}";
}
@ -512,7 +512,7 @@ $(document).ready(function(){
var otptArtclNm = $(selectElement).val();
var tr = $(selectElement).parent().parent()[0];
var prototypeList = $P.otptStngMap.multiple.prototypeList;
var prototypeList = $P.otptArtclStngMap.multiple.prototypeList;
$($P.fnGetElement(tr,"componentType"))
.val($P.fnGetProto(prototypeList, otptArtclNm, "componentType"));

Loading…
Cancel
Save