팩스 주소록 삭제기능 수정중

This commit is contained in:
wyh 2024-11-11 09:16:27 +09:00
parent fb59293a5e
commit 39ed2f8706
3 changed files with 25 additions and 10 deletions

View File

@ -90,4 +90,9 @@ public class FaxAddrGroupDAO extends EgovAbstractDAO{
public int selectMaxOrderFaxNumber(FaxAddrGroupVO addrGroupVO) throws Exception{
return (Integer)select("FaxAddrGroupDAO.selectMaxOrderFaxNumber", addrGroupVO);
}
public void deleteFaxAddrGroup_advc(FaxAddrGroupVO addrGroupVO) {
update("FaxAddrGroupDAO.deleteFaxAddrGroup_advc", addrGroupVO);
}
}

View File

@ -353,18 +353,15 @@ public class FaxAddrGroupController {
LoginVO user = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
addrGroupVO.setLastUpdusrId(user.getId());
addrGroupVO.setMberId(user.getId());
FaxAddrVO addrVO = new FaxAddrVO();
for(String id:grpCheck) {
try {
addrGroupVO.setAddrGrpId(id);
faxAddrGroupService.deleteFaxAddrGroup(addrGroupVO);
addrVO.setAddrGrpId(id);
addrVO.setGrpDelete("Y");
addrVO.setMberId(user.getId());
addrVO.setLastUpdusrId(user.getId());
faxAddrService.deleteFaxAddr(addrVO);
addrGroupVO.setAddrGrpId(id);
addrGroupVO.setMberId(user.getId());
addrGroupVO.setLastUpdusrId(user.getId());
faxAddrService.deleteFaxAddr_advc(addrGroupVO);
modelAndView.addObject("result", "success");
} catch (Exception e) {
@ -373,9 +370,7 @@ public class FaxAddrGroupController {
return modelAndView;
}
}
return modelAndView;
}
/**

View File

@ -121,6 +121,21 @@
</isNotEmpty>
</delete>
<!-- 주소록 그룹삭제 -->
<delete id="FaxAddrGroupDAO.deleteFaxAddrGroup_advc" parameterClass="faxAddrGroupVO">
/* FaxAddrGroupDAO.deleteFaxAddrGroup_advc*/
UPDATE
MJ_FAX_ADDR_GRP
SET
DELETE_YN = 'Y'
,LAST_UPDT_PNTTM = NOW()
,LAST_UPDUSR_ID = #lastUpdusrId#
WHERE
MBER_ID = #mberId#
AND
ADDR_GRP_ID = #addrGrpId#
</delete>
<!-- 주소록 그룹삭제 By Admin -->
<delete id="FaxAddrGroupDAO.deleteFaxAddrGroupByAdmin" parameterClass="faxAddrGroupVO">
DELETE FROM