Esempio n. 1
0
 @RequestMapping(value = "prm/veri/prmVeri002AdjUpdate", method = RequestMethod.POST)
 @ResponseBody
 public MessageParam prmVeri002AdjUpdate(PrmVeri prmVeri) {
   try {
     prmVeri.setStaff(securityService.getCurrentMember().getUserId());
     prmVeriService.updateAdj(prmVeri);
     return new MessageParam(ResultCode.SUCCESS);
   } catch (AcubeCommonException me) {
     logger.error("[processAddress] " + me.toString(), me);
     return new MessageParam(ResultCode.FAIL, me.toString());
   }
 }
Esempio n. 2
0
  @RequestMapping(
      value = "/bsar/ar/arPayment",
      method = RequestMethod.POST,
      consumes = {"application/json"})
  public String arPaymentOpen(
      Model model,
      @RequestBody OtimeVO otimeVO,
      @RequestParam(required = false) String callBackFunc) {

    logger.debug("pymDiv:::::::::::" + otimeVO.toString());
    logger.debug("pymDiv:::::::::::" + callBackFunc);

    ObjectMapper om = new ObjectMapper();
    String temp = null;
    try {
      temp = om.defaultPrettyPrintingWriter().writeValueAsString(otimeVO);
    } catch (Exception e) {
      // e.printStackTrace();
    }

    model.addAttribute("recpData", temp);
    model.addAttribute("callBackFunc", callBackFunc);
    model.addAttribute("rcpmnyDt", CmnDateUtils.addDate(0));

    // cycle bill and hotbill(payment for real time) and ownership-change hotbill(before) and
    // terminate(hotbill)
    if (otimeVO.getCsEvntCd().substring(0, 2).equals("30")
        || otimeVO.getCsEvntCd().equals("206000")
        || otimeVO.getCsEvntCd().equals("203010")
        || otimeVO.getCsEvntCd().equals("207000")) {

      List<CoAuthCodeInfo> authList =
          securityService.getCurrentMember().getSpCoAuthCodeInfoAuthList();

      for (CoAuthCodeInfo coAuthCodeInfo : authList) {
        if (coAuthCodeInfo
            .getAuthName()
            .equals("PaymentBankTransfer")) { // auth_name :: 'PaymentBankTransfer'
          model.addAttribute("bnkTransferViewalbe", true); // lnkgPymLclsCd == 30 and 권한 유저
          return "dialog.bsar.ar.arPayment";
        }
      }

      model.addAttribute("bnkTransferViewalbe", false); // lnkgPymLclsCd == 30 and 비권한 유저
      return "dialog.bsar.ar.arPayment";

    } else {
      model.addAttribute("bnkTransferViewalbe", false); // lnkgPymLclsCd != 30 and 비권한 유저
      return "dialog.bsar.ar.arPayment";
    }
  }