public void applyUsersAuth(ZValue zvl) throws Exception { String authCode = zvl.getString("authCode"); String authName = zvl.getString("authName"); ArrayList<String> webMemIdList = zvl.getArrayList("webMemId"); for (String webMemId : webMemIdList) { ZValue param = new ZValue(); param.put("webMemId", webMemId); param.put("authCode", authCode); param.put("authName", authName); if (memberDAO.selectAuthCodeCntByWebMemId(webMemId) > 0) { memberDAO.updateUsersAuth(param); } else { memberDAO.addUsersAuth(param); } } }
public void updateUsersAuth(ZValue zvl) throws Exception { memberDAO.updateUsersAuth(zvl); }