소스 정리

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

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

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

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

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

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

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

@ -149,16 +149,16 @@ public class Cvlc01Controller extends ApplicationController {
} }
/** . /** .
* @param crdnId * @param crdnIds
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
* "affected": * "affected":
* "saved": true, false * "saved": true, false
* }</code></pre> * }</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") return new ModelAndView("jsonView")
.addObject("saved", saved); .addObject("saved", saved);

@ -104,16 +104,16 @@ public class Cvlc04Controller extends ApplicationController {
} }
/** . /** .
* @param IDs ID * @param indivIds ID
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
* "affected": * "affected":
* "saved": true, false * "saved": true, false
* }</code></pre> * }</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") return new ModelAndView("jsonView")
.addObject("saved", saved); .addObject("saved", saved);

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save