소스 정리

main
이범준 9 months ago
parent 97054ee884
commit 060a31815a

@ -27,7 +27,7 @@ public class CrdnQuery extends CmmnQuery {
//ID
private String crdnId;
private String[] crdnIDs;
private String[] crdnIds;
private String amtDcsnCdGroupId;
private String dtlAmtDcsnGroupId;
private String fileLayoutId;
@ -127,12 +127,12 @@ public class CrdnQuery extends CmmnQuery {
return self();
}
public String[] getCrdnIDs() {
return ifEmpty(crdnIDs, () -> null);
public String[] getCrdnIds() {
return ifEmpty(crdnIds, () -> null);
}
public <T extends CrdnQuery> T setCrdnIDs(String... crdnIDs) {
this.crdnIDs = crdnIDs;
public <T extends CrdnQuery> T setCrdnIds(String... crdnIds) {
this.crdnIds = crdnIds;
return self();
}

@ -98,9 +98,9 @@ public interface CrdnService {
int countCrdn(CrdnQuery crdnQuery);
/** .
* @param crdnIDs ID
* @param crdnIds ID
* @return
*/
String sendCrdn(String[] crdnIDs);
String sendCrdn(String[] crdnIds);
}

@ -365,7 +365,7 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
}
@Override
public String sendCrdn(String[] crdnIDs) {
public String sendCrdn(String[] crdnIds) {
String rtnMsg = "[F]";
List<CommonCode> fimsVltnCodes = codeBean.getCodes("FIM004");
@ -374,7 +374,7 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
DataObject deptStng = stngBean.getStng("dept");
String gujesi = deptStng.string("NXRP_RGN_SE_CD");
for(String crdnID : crdnIDs) {
for(String crdnID : crdnIds) {
DataObject crdnInfo = crdnInfoMapper.selectCrdnInfo(crdnID);
if(crdnInfo.string("NXRP_CRDN_LINK_YN").equals("Y")) {

@ -233,17 +233,17 @@ public class Crdn06Controller extends ApplicationController {
}
/** .
* @param CrdnIDs ID
* @param crdnIds ID
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
public ModelAndView sendCrdn(String... crdnIDs) {
public ModelAndView sendCrdn(String... crdnIds) {
ModelAndView mav = new ModelAndView("jsonView");
boolean saved = false;
String rtnMsg = crdnService.sendCrdn(crdnIDs);
String rtnMsg = crdnService.sendCrdn(crdnIds);
if(rtnMsg.contains("[S]")) {
saved = true;
}

@ -86,10 +86,10 @@ public interface CrdnCvlcptMapper extends AbstractMapper {
int updateAnswerContent(CrdnCvlcpt crdnCvlcpt);
/** ID .
* @param crdnIDs ID
* @param crdnIds ID
* @return
*/
List<DataObject> selectAnswerTargetList(String[] crdnIDs);
List<DataObject> selectAnswerTargetList(String[] crdnIds);
/** .
* @param crdnCvlcpt

@ -68,10 +68,10 @@ public interface CrdnCvlcptService {
boolean updateAnswerContent(CrdnCvlcpt crdnCvlcpt);
/** .
* @param processType , crdnIDs ID
* @param processType , crdnIds ID
* @return
*/
boolean updateAnswerTargetProcessStatus(String processType, String currentUserInstitute, String currentUserAcnt, String[] crdnIDs);
boolean updateAnswerTargetProcessStatus(String processType, String currentUserInstitute, String currentUserAcnt, String[] crdnIds);
/** .
* @param crdnQuery
@ -127,8 +127,8 @@ public interface CrdnCvlcptService {
boolean removeDmndDataInfo(String... indivIds);
/** .
* @param crdnIDs ID
* @param crdnIds ID
* @return
*/
boolean executeDisabledTagInfoInquire(String... crdnIDs);
boolean executeDisabledTagInfoInquire(String... crdnIds);
}

@ -470,9 +470,9 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
}
@Override
public boolean updateAnswerTargetProcessStatus(String processType, String currentUserInstitute, String currentUserAcnt, String[] crdnIDs) {
public boolean updateAnswerTargetProcessStatus(String processType, String currentUserInstitute, String currentUserAcnt, String[] crdnIds) {
List<DataObject> targetDataList = crdnCvlcptMapper.selectAnswerTargetList(crdnIDs);
List<DataObject> targetDataList = crdnCvlcptMapper.selectAnswerTargetList(crdnIds);
for(int i=0; i < targetDataList.size(); i++) {
@ -583,14 +583,14 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
}
@Override
public boolean executeDisabledTagInfoInquire(String... crdnIDs) {
public boolean executeDisabledTagInfoInquire(String... crdnIds) {
int i=0;
HashMap<String, Boolean> vehicleResultMap = new HashMap<String, Boolean>();
for(; i<crdnIDs.length; i++){
for(; i<crdnIds.length; i++){
DataObject crdnInfo = crdnInfoMapper.selectCrdnInfo(crdnIDs[i]);
DataObject crdnInfo = crdnInfoMapper.selectCrdnInfo(crdnIds[i]);
String vhrno = crdnInfo.string("VHRNO");
if(ifEmpty(vhrno, () -> "").equals("")) {

@ -226,29 +226,29 @@ public class Cvlc02Controller extends ApplicationController {
* "saved": true, false
* }</code></pre>
*/
public ModelAndView updateAnswerTargetProcessStatus(String processType, String... crdnIDs) {
public ModelAndView updateAnswerTargetProcessStatus(String processType, String... crdnIds) {
boolean saved = false;
String currentInstitute = currentUser().getInstitute();
String currentUserAcnt = currentUser().getAccount();
saved = crdnCvlcptService.updateAnswerTargetProcessStatus(processType, currentInstitute, currentUserAcnt, crdnIDs);
saved = crdnCvlcptService.updateAnswerTargetProcessStatus(processType, currentInstitute, currentUserAcnt, crdnIds);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param crdnIDs ID
* @param crdnIds ID
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
public ModelAndView executeDisabledTagInfoInquire(String... crdnIDs) {
public ModelAndView executeDisabledTagInfoInquire(String... crdnIds) {
boolean saved = false;
saved = crdnCvlcptService.executeDisabledTagInfoInquire(crdnIDs);
saved = crdnCvlcptService.executeDisabledTagInfoInquire(crdnIds);
return new ModelAndView("jsonView")
.addObject("saved", saved);

@ -10,11 +10,12 @@ public class SprtQuery extends CmmnQuery {
// 필수
private String callControlName; // 호출한 페이지의 Control 이름
// IDs
// ID 목록
private String[] cvlcptDscsnIDs;
private String[] crdnIds; // 단속 ID 목록
// ID
private String crdnId; // 단속 ID
private String[] crdnIDs; // 단속 IDs
private String rtpyrId; // 납부자 ID
private String levyExclId; // 부과 제외 ID
@ -64,12 +65,12 @@ public class SprtQuery extends CmmnQuery {
return self();
}
public String[] getCrdnIDs() {
return ifEmpty(crdnIDs, () -> null);
public String[] getCrdnIds() {
return ifEmpty(crdnIds, () -> null);
}
public <T extends SprtQuery> T setCrdnIDs(String... crdnIDs) {
this.crdnIDs = crdnIDs;
public <T extends SprtQuery> T setCrdnIds(String... crdnIds) {
this.crdnIds = crdnIds;
return self();
}

@ -144,11 +144,11 @@ public class IntegrationSearchServiceBean extends AbstractServiceBean implements
if(formatName.equals("crdnList")) {
CrdnQuery query = new CrdnQuery();
query.setCrdnIDs(crdnIds);
query.setCrdnIds(crdnIds);
dataObjectList = crdnListMapper.selectCrackdownList(query);
} else if(formatName.equals("crdnConfirm")) {
CrdnQuery query = new CrdnQuery();
query.setCrdnIDs(crdnIds);
query.setCrdnIds(crdnIds);
dataObjectList = crdnListMapper.selectCrackdownList(query);
for(int i=0; i < dataObjectList.size(); i++) {
@ -172,7 +172,7 @@ public class IntegrationSearchServiceBean extends AbstractServiceBean implements
}
} else if(formatName.equals("requestForDelivery")) {
SprtQuery sprtQuery = new SprtQuery();
sprtQuery.setCrdnIDs(crdnIds);
sprtQuery.setCrdnIds(crdnIds);
dataObjectList = integrationSearchMapper.selectIntegrationDataList(sprtQuery);
Map<String, String> globalVariable = printOption.getGlobalVariable();
@ -185,7 +185,7 @@ public class IntegrationSearchServiceBean extends AbstractServiceBean implements
} else if(formatName.equals("reportOnClaims")) {
SprtQuery sprtQuery = new SprtQuery();
sprtQuery.setCrdnIDs(crdnIds);
sprtQuery.setCrdnIds(crdnIds);
dataObjectList = integrationSearchMapper.selectIntegrationDataList(sprtQuery);
Map<String, String> globalVariable = printOption.getGlobalVariable();
@ -200,7 +200,7 @@ public class IntegrationSearchServiceBean extends AbstractServiceBean implements
printOption.setGlobalVariable(globalVariable);
} else if(formatName.equals("rcvmtConfirm")) {
SprtQuery sprtQuery = new SprtQuery();
sprtQuery.setCrdnIDs(crdnIds);
sprtQuery.setCrdnIds(crdnIds);
dataObjectList = integrationSearchMapper.selectIntegrationDataList(sprtQuery);
}
@ -336,7 +336,7 @@ public class IntegrationSearchServiceBean extends AbstractServiceBean implements
dataObjectList.add(sample);
} else {
SprtQuery sprtQuery = new SprtQuery();
sprtQuery.setCrdnIDs(crdnIds);
sprtQuery.setCrdnIds(crdnIds);
dataObjectList = integrationSearchMapper.selectIntegrationDataList(sprtQuery);
for(int i=0; i < dataObjectList.size(); i++) {
@ -643,7 +643,7 @@ public class IntegrationSearchServiceBean extends AbstractServiceBean implements
try {
SprtQuery sprtQuery = new SprtQuery();
sprtQuery.setCrdnIDs(crdnIds);
sprtQuery.setCrdnIds(crdnIds);
List<DataObject> dataObjectList = integrationSearchMapper.selectIntegrationDataList(sprtQuery);
String imagesFolderName = yyyymmdd + printKorName;

@ -107,8 +107,8 @@ public class BpvController {
@Override
@RequestMapping(name="전용차로과태료업무 답변 내용 저장", value=METHOD_URL.updateAnswerTargetProcessStatus)
public ModelAndView updateAnswerTargetProcessStatus(String processType, String... crdnIDs) {
return super.updateAnswerTargetProcessStatus(processType, crdnIDs);
public ModelAndView updateAnswerTargetProcessStatus(String processType, String... crdnIds) {
return super.updateAnswerTargetProcessStatus(processType, crdnIds);
}
}
@ -299,8 +299,8 @@ public class BpvController {
@Override
@RequestMapping(name="전용차로과태료업무 단속자료압축파일 세외수입 전송", value=METHOD_URL.sendCrdn)
public ModelAndView sendCrdn(String... crdnIDs) {
return super.sendCrdn(crdnIDs);
public ModelAndView sendCrdn(String... crdnIds) {
return super.sendCrdn(crdnIds);
}
@Override

@ -118,14 +118,14 @@ public class DpvController {
@Override
@RequestMapping(name="장애인과태료업무 답변 내용 저장", value=METHOD_URL.updateAnswerTargetProcessStatus)
public ModelAndView updateAnswerTargetProcessStatus(String processType, String... crdnIDs) {
return super.updateAnswerTargetProcessStatus(processType, crdnIDs);
public ModelAndView updateAnswerTargetProcessStatus(String processType, String... crdnIds) {
return super.updateAnswerTargetProcessStatus(processType, crdnIds);
}
@Override
@RequestMapping(name="장애인과태료업무 표지정보조회 실행", value=METHOD_URL.executeDisabledTagInfoInquire)
public ModelAndView executeDisabledTagInfoInquire(String... crdnIDs) {
return super.executeDisabledTagInfoInquire(crdnIDs);
public ModelAndView executeDisabledTagInfoInquire(String... crdnIds) {
return super.executeDisabledTagInfoInquire(crdnIds);
}
}

@ -105,8 +105,8 @@ public class EcaController {
@Override
@RequestMapping(name="전기차과태료업무 답변 내용 저장", value=METHOD_URL.updateAnswerTargetProcessStatus)
public ModelAndView updateAnswerTargetProcessStatus(String processType, String... crdnIDs) {
return super.updateAnswerTargetProcessStatus(processType, crdnIDs);
public ModelAndView updateAnswerTargetProcessStatus(String processType, String... crdnIds) {
return super.updateAnswerTargetProcessStatus(processType, crdnIds);
}
}

@ -106,8 +106,8 @@ public class PvsController {
@Override
@RequestMapping(name="주정차과태료업무 답변 내용 저장", value=METHOD_URL.updateAnswerTargetProcessStatus)
public ModelAndView updateAnswerTargetProcessStatus(String processType, String... crdnIDs) {
return super.updateAnswerTargetProcessStatus(processType, crdnIDs);
public ModelAndView updateAnswerTargetProcessStatus(String processType, String... crdnIds) {
return super.updateAnswerTargetProcessStatus(processType, crdnIds);
}
}
@ -311,8 +311,8 @@ public class PvsController {
@Override
@RequestMapping(name="주정차과태료업무 단속자료압축파일 세외수입 전송", value=METHOD_URL.sendCrdn)
public ModelAndView sendCrdn(String... crdnIDs) {
return super.sendCrdn(crdnIDs);
public ModelAndView sendCrdn(String... crdnIds) {
return super.sendCrdn(crdnIds);
}
@Override

@ -116,8 +116,8 @@ WHERE C.DEL_YN = 'N'
AND C.SGG_CD = #{sggCd}
</if>
<if test="crdnId != null">AND C.CRDN_ID = #{crdnId}</if>
<if test="crdnIDs != null">
AND C.CRDN_ID IN (<foreach collection="crdnIDs" item="CRDN_ID" separator=",">#{CRDN_ID}</foreach>)
<if test="crdnIds != null">
AND C.CRDN_ID IN (<foreach collection="crdnIds" item="CRDN_ID" separator=",">#{CRDN_ID}</foreach>)
</if>
<if test="taskSeCd != null">AND C.TASK_SE_CD = #{taskSeCd}</if>
<if test="vhrno != null">AND C.VHRNO LIKE CONCAT('%', #{vhrno}, '%')</if>
@ -380,7 +380,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
WHERE C.DEL_YN = 'N'
AND C.SGG_CD = #{sggCd}
AND C.TASK_SE_CD = #{taskSeCd}
AND C.CRDN_ID IN (<foreach collection="crdnIDs" item="CRDN_ID" separator=",">#{CRDN_ID}</foreach>)
AND C.CRDN_ID IN (<foreach collection="crdnIds" item="CRDN_ID" separator=",">#{CRDN_ID}</foreach>)
<include refid="utility.sortBy" />
</select>

@ -164,7 +164,7 @@
, DLTR = #{removedBy} <!-- 삭제자 -->
, DEL_RSN = #{delRsn} <!-- 삭제 사유 -->
WHERE CRDN_ID IN (
<foreach collection="crdnIDs" item="crdnId" separator=",">#{crdnId}</foreach>
<foreach collection="crdnIds" item="crdnId" separator=",">#{crdnId}</foreach>
)
AND DEL_YN = 'N' <!-- 삭제 여부 -->
</update>

@ -520,7 +520,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, CC.CVLCPT_PRCS_RSLT_CN <!-- 민원 처리 결과 내용 -->
FROM TB_CRDN C
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
WHERE C.CRDN_ID IN (<foreach collection="crdnIDs" item="crdnId" separator=",">#{crdnId}</foreach>)
WHERE C.CRDN_ID IN (<foreach collection="crdnIds" item="crdnId" separator=",">#{crdnId}</foreach>)
AND C.DEL_YN = 'N'
AND C.CRDN_STTS_CD IN ('21','81','83')
AND C.CRDN_REG_SE_CD = '02'

@ -161,8 +161,8 @@ LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N') /* 부과 대장 */
LEFT OUTER JOIN TB_RCVMT R ON (L.LEVY_ID = R.LEVY_ID AND R.DEL_YN = 'N') /* 수납 대장 */
WHERE C.DEL_YN = 'N'
<if test='crdnIDs != null'>
AND C.CRDN_ID IN (<foreach collection="crdnIDs" item="CRDN_ID" separator=",">#{CRDN_ID}</foreach>)
<if test='crdnIds != null'>
AND C.CRDN_ID IN (<foreach collection="crdnIds" item="CRDN_ID" separator=",">#{CRDN_ID}</foreach>)
</if>
<if test='sggCd != null'>
AND C.SGG_CD = #{sggCd}

@ -513,7 +513,7 @@ $(document).ready(function(){
ajax.post({
url : wctx.url("/"+taskSeCd+"/crdn/crdn06/010/sendCrdn.do"),
data : { "crdnIDs" : keys.join(",") },
data : { "crdnIds" : keys.join(",") },
success : (resp) => {
if(resp.saved){
dialog.alert({

@ -560,7 +560,7 @@ $(document).ready(function(){
url : $P.crdnControl.urls.update,
data : {
"processType" : processType,
"crdnIDs" : $P.crdnControl.dataset.getKeys("selected").join(",")
"crdnIds" : $P.crdnControl.dataset.getKeys("selected").join(",")
},
success : (resp) => {
if(resp.saved){
@ -614,7 +614,7 @@ $(document).ready(function(){
ajax.get({
url : wctx.url("/DPV/cvlc/cvlc02/040/update.do"),
data : {
"crdnIDs" : keys.join(",")
"crdnIds" : keys.join(",")
},
success : (resp) => {
dialog.alert({

Loading…
Cancel
Save