Example #1
0
 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);
     }
   }
 }
Example #2
0
 public int selectAuthCodeCntByWebMemId(String webMemId) throws Exception {
   return memberDAO.selectAuthCodeCntByWebMemId(webMemId);
 }