Пример #1
0
  /**
   * search invoice Detail Verification
   *
   * @return
   */
  @SuppressWarnings({"rawtypes", "unchecked"})
  @RequestMapping(
      value = "/prm/veri/prmVeri001_invoiceDetailVerification",
      method = RequestMethod.POST)
  @ResponseBody
  public Map prmVeri001_invoiceDetailVerification(PrmVeri prmVeri) {
    Map map = new HashMap();

    String lastMonth = CmnDateUtils.addMonth(prmVeri.getInvoiceDate(), -1, "yyyy-MM");

    prmVeri.setLastMonth(lastMonth);

    System.out.println("+++++++++++++++++++++++++++++" + prmVeri.getRoleOfNodeCd());

    if (prmVeri.getRoleOfNodeCd().equals("2")) {

      List<PrmVeri> list = (List<PrmVeri>) prmVeriService.getInboundInvoiceDetail(prmVeri);
      map.put("list", list);

    } else if (prmVeri.getRoleOfNodeCd().equals("1")) {

      List<PrmVeri> list = (List<PrmVeri>) prmVeriService.getOutboundInvoiceDetail(prmVeri);
      map.put("list", list);
    }

    return map;
  }
Пример #2
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());
   }
 }