소스 정리

main
이범준 9 months ago
parent 936170b69d
commit 97054ee884

@ -20,10 +20,10 @@ public interface CrdnService {
List<DataObject> getCrackdownList(CrdnQuery query);
/** .
* @param crdnIDs ID
* @param crdnIds ID
* @return
*/
boolean remove(String... crdnIDs);
boolean remove(String... crdnIds);
/** .
* @param nonQueryRequest , crdn , newFileList

@ -226,18 +226,18 @@ public class CrdnBean extends AbstractComponent {
}
/** .
* @param crdnIDs
* @param crdnIds
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
public boolean remove(String... crdnIDs) {
if (isEmpty(crdnIDs)) return false;
public boolean remove(String... crdnIds) {
if (isEmpty(crdnIds)) return false;
Map<String, Object> paramMap = new HashMap<String, Object>();
List<String> crdnIdList = Arrays.asList(crdnIDs);
paramMap.put("crdnIDs", crdnIdList);
List<String> crdnIdList = Arrays.asList(crdnIds);
paramMap.put("crdnIds", crdnIdList);
paramMap.put("removedBy", UserInfo.current().getId());
return crdnUpdtMapper.deleteCrdn(paramMap) >= 1 ? true : false;
@ -307,7 +307,7 @@ public class CrdnBean extends AbstractComponent {
Map<String, Object> paramMap = new HashMap<String, Object>();
List<String> crdnIdList = Arrays.asList(crdn.getCrdnId());
paramMap.put("crdnIDs", crdnIdList);
paramMap.put("crdnIds", crdnIdList);
paramMap.put("removedBy", UserInfo.current().getId());
// 단속(TB_CRDN) 대장을 삭제 한다.

@ -198,8 +198,8 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
}
@Override
public boolean remove(String... crdnIDs) {
return crdnBean.remove(crdnIDs);
public boolean remove(String... crdnIds) {
return crdnBean.remove(crdnIds);
}

@ -121,10 +121,10 @@ public interface CrdnCvlcptService {
boolean createDmndDataInfo(CrdnCvlcpt crdnCvlcpt);
/** .
* @param indivIDs ID
* @param indivIds ID
* @return
*/
boolean removeDmndDataInfo(String... indivIDs);
boolean removeDmndDataInfo(String... indivIds);
/** .
* @param crdnIDs ID

@ -356,18 +356,18 @@ public class CrdnCvlcptMainBean extends AbstractComponent {
}
/** .
* @param indivIDs ID
* @param indivIds ID
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
public boolean removeDmndDataInfo(String... indivIDs) {
if (isEmpty(indivIDs)) return false;
public boolean removeDmndDataInfo(String... indivIds) {
if (isEmpty(indivIds)) return false;
Map<String, Object> paramMap = new HashMap<String, Object>();
List<String> indivIdList = Arrays.asList(indivIDs);
paramMap.put("indivIDs", indivIdList);
List<String> indivIdList = Arrays.asList(indivIds);
paramMap.put("indivIds", indivIdList);
paramMap.put("removedBy", UserInfo.current().getId());
return saCvlcptIndviDmndMapper.deleteDmndDataInfo(paramMap) >= 1 ? true : false;

@ -578,8 +578,8 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
}
@Override
public boolean removeDmndDataInfo(String... indivIDs) {
return crdnCvlcptMainBean.removeDmndDataInfo(indivIDs);
public boolean removeDmndDataInfo(String... indivIds) {
return crdnCvlcptMainBean.removeDmndDataInfo(indivIds);
}
@Override

@ -149,16 +149,16 @@ public class Cvlc01Controller extends ApplicationController {
}
/** .
* @param crdnId
* @param crdnIds
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
public ModelAndView removeCivilComplaint(String[] IDs) {
public ModelAndView removeCivilComplaint(String[] crdnIds) {
boolean saved = crdnService.remove(IDs);
boolean saved = crdnService.remove(crdnIds);
return new ModelAndView("jsonView")
.addObject("saved", saved);

@ -104,16 +104,16 @@ public class Cvlc04Controller extends ApplicationController {
}
/** .
* @param IDs ID
* @param indivIds ID
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
public ModelAndView removeDmndDataInfo(String[] IDs) {
public ModelAndView removeDmndDataInfo(String[] indivIds) {
boolean saved = crdnCvlcptService.removeDmndDataInfo(IDs);
boolean saved = crdnCvlcptService.removeDmndDataInfo(indivIds);
return new ModelAndView("jsonView")
.addObject("saved", saved);

@ -41,8 +41,8 @@ public class BpvController {
@Override
@RequestMapping(name="전용차로과태료업무 민원자료 제거", value=METHOD_URL.removeCivilComplaint)
public ModelAndView removeCivilComplaint(String[] IDs) {
return super.removeCivilComplaint(IDs);
public ModelAndView removeCivilComplaint(String[] crdnIds) {
return super.removeCivilComplaint(crdnIds);
}
@Override
@ -143,8 +143,8 @@ public class BpvController {
@Override
@RequestMapping(name="전용차로과태료업무 새올요청자료 삭제", value=METHOD_URL.removeDmndDataInfo)
public ModelAndView removeDmndDataInfo(String[] IDs) {
return super.removeDmndDataInfo(IDs);
public ModelAndView removeDmndDataInfo(String[] indivIds) {
return super.removeDmndDataInfo(indivIds);
}
}

@ -52,8 +52,8 @@ public class DpvController {
@Override
@RequestMapping(name="장애인과태료업무 민원자료 제거", value=METHOD_URL.removeCivilComplaint)
public ModelAndView removeCivilComplaint(String[] IDs) {
return super.removeCivilComplaint(IDs);
public ModelAndView removeCivilComplaint(String[] crdnIds) {
return super.removeCivilComplaint(crdnIds);
}
@Override
@ -160,8 +160,8 @@ public class DpvController {
@Override
@RequestMapping(name="장애인과태료업무 새올요청자료 삭제", value=METHOD_URL.removeDmndDataInfo)
public ModelAndView removeDmndDataInfo(String[] IDs) {
return super.removeDmndDataInfo(IDs);
public ModelAndView removeDmndDataInfo(String[] indivIds) {
return super.removeDmndDataInfo(indivIds);
}
}

@ -39,8 +39,8 @@ public class EcaController {
@Override
@RequestMapping(name="전기차과태료업무 민원자료 제거", value=METHOD_URL.removeCivilComplaint)
public ModelAndView removeCivilComplaint(String[] IDs) {
return super.removeCivilComplaint(IDs);
public ModelAndView removeCivilComplaint(String[] crdnIds) {
return super.removeCivilComplaint(crdnIds);
}
@Override
@ -141,8 +141,8 @@ public class EcaController {
@Override
@RequestMapping(name="전기차과태료업무 새올요청자료 삭제", value=METHOD_URL.removeDmndDataInfo)
public ModelAndView removeDmndDataInfo(String[] IDs) {
return super.removeDmndDataInfo(IDs);
public ModelAndView removeDmndDataInfo(String[] indivIds) {
return super.removeDmndDataInfo(indivIds);
}
}

@ -40,8 +40,8 @@ public class PvsController {
@Override
@RequestMapping(name="주정차과태료업무 민원자료 제거", value=METHOD_URL.removeCivilComplaint)
public ModelAndView removeCivilComplaint(String[] IDs) {
return super.removeCivilComplaint(IDs);
public ModelAndView removeCivilComplaint(String[] crdnIds) {
return super.removeCivilComplaint(crdnIds);
}
@Override
@ -142,8 +142,8 @@ public class PvsController {
@Override
@RequestMapping(name="주정차과태료업무 새올요청자료 삭제", value=METHOD_URL.removeDmndDataInfo)
public ModelAndView removeDmndDataInfo(String[] IDs) {
return super.removeDmndDataInfo(IDs);
public ModelAndView removeDmndDataInfo(String[] indivIds) {
return super.removeDmndDataInfo(indivIds);
}
}

@ -152,7 +152,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>

@ -76,7 +76,7 @@ UPDATE TB_SA_CVLCPT_INDIV_DMND
, DEL_DT = <include refid="utility.now" /> /* 삭제일시 */
, DLTR = #{removedBy} /* 삭제자 */
WHERE INDIV_ID IN (
<foreach collection="indivIDs" item="indivId" separator=",">#{indivId}</foreach>
<foreach collection="indivIds" item="indivId" separator=",">#{indivId}</foreach>
)
</update>

@ -541,7 +541,7 @@ $(document).ready(function(){
}
var params = {
"IDs" : selected.join(",")
"crdnIds" : selected.join(",")
};
ajax.post({

@ -440,7 +440,7 @@ $(document).ready(function(){
}
var params = {
"IDs" : selected.join(",")
"crdnIds" : selected.join(",")
};
ajax.post({

@ -350,7 +350,7 @@ $(document).ready(function(){
}
var params = {
"IDs" : selected.join(",")
"indivIds" : selected.join(",")
};
ajax.post({

Loading…
Cancel
Save