Пример #1
0
  @RequestMapping("pjYqcheck-info-remove")
  public String remove(
      @RequestParam("selectedItem") List<Long> selectedItem,
      RedirectAttributes redirectAttributes) {
    List<PjYqcheck> pjYqchecks = pjYqcheckManager.findByIds(selectedItem);

    pjYqcheckManager.removeAll(pjYqchecks);

    messageHelper.addFlashMessage(redirectAttributes, "core.success.delete", "删除成功");

    return "redirect:/gcgl/pjYqcheck-info-list.do";
  }
Пример #2
0
  @RequestMapping("xzKzList-info-remove")
  public String remove(
      @RequestParam("selectedItem") List<Long> selectedItem,
      RedirectAttributes redirectAttributes) {
    List<XzKzList> xzKzLists = xzKzListManager.findByIds(selectedItem);

    xzKzListManager.removeAll(xzKzLists);

    messageHelper.addFlashMessage(redirectAttributes, "core.success.delete", "删除成功");

    return "redirect:/xz/xzKzList-info-list.do";
  }
Пример #3
0
  @RequestMapping("jl-doc-mbzrs-remove")
  public String mbzrsremove(
      @RequestParam("selectedItem") List<Long> selectedItem,
      RedirectAttributes redirectAttributes) {
    List<XhfCommonDoc> xhfCommonDocs = xhfCommonDocManager.findByIds(selectedItem);

    xhfCommonDocManager.removeAll(xhfCommonDocs);

    messageHelper.addFlashMessage(redirectAttributes, "core.success.delete", "删除成功");

    return "redirect:/gcgl/jl-doc-mbzrs-list.do";
  }
Пример #4
0
  @RequestMapping("tZjDingdan-info-remove")
  public String remove(
      @RequestParam("selectedItem") List<Long> selectedItem,
      RedirectAttributes redirectAttributes) {
    List<TZjDingdan> tZjDingdans = tZjDingdanManager.findByIds(selectedItem);

    tZjDingdanManager.removeAll(tZjDingdans);

    messageHelper.addFlashMessage(redirectAttributes, "core.success.delete", "删除成功");

    return "redirect:/sckf/tZjDingdan-info-list.do";
  }
Пример #5
0
  @RequestMapping("tZjDingdan-info-save")
  public String save(
      @ModelAttribute TZjDingdan tZjDingdan,
      @RequestParam Map<String, Object> parameterMap,
      RedirectAttributes redirectAttributes) {
    TZjDingdan dest = null;

    Long id = tZjDingdan.getId();

    if (id != null) {
      dest = tZjDingdanManager.get(id);
      beanMapper.copy(tZjDingdan, dest);
    } else {
      dest = tZjDingdan;
    }

    tZjDingdanManager.save(dest);

    messageHelper.addFlashMessage(redirectAttributes, "core.success.save", "保存成功");
    return "redirect:/sckf/tZjDingdan-info-list.do";
  }
Пример #6
0
  @RequestMapping("pjYqcheck-info-save")
  public String save(
      @ModelAttribute PjYqcheck pjYqcheck,
      @RequestParam Map<String, Object> parameterMap,
      RedirectAttributes redirectAttributes) {
    PjYqcheck dest = null;

    Long id = pjYqcheck.getFid();

    if (id != null) {
      dest = pjYqcheckManager.get(id);
      beanMapper.copy(pjYqcheck, dest);
    } else {
      dest = pjYqcheck;
    }

    pjYqcheckManager.save(dest);

    messageHelper.addFlashMessage(redirectAttributes, "core.success.save", "保存成功");

    return "redirect:/gcgl/pjYqcheck-info-list.do";
  }
Пример #7
0
  @RequestMapping("xzKzList-info-save")
  public String save(
      @ModelAttribute XzKzList xzKzList,
      @RequestParam Map<String, Object> parameterMap,
      RedirectAttributes redirectAttributes) {
    XzKzList dest = null;

    Long id = xzKzList.getFid();

    if (id != null) {
      dest = xzKzListManager.get(id);
      beanMapper.copy(xzKzList, dest);

    } else {
      dest = xzKzList;
    }

    xzKzListManager.save(dest);
    //        yinzhangManager.save(entity);
    messageHelper.addFlashMessage(redirectAttributes, "core.success.save", "保存成功");
    return "redirect:/xz/xzKzList-info-list.do";
  }
Пример #8
0
  @RequestMapping("jl-doc-mbzrs-save")
  public String mbzrssave(
      @ModelAttribute XhfCommonDoc xhfCommonDoc,
      @RequestParam Map<String, Object> parameterMap,
      RedirectAttributes redirectAttributes) {
    XhfCommonDoc dest = null;

    Long id = xhfCommonDoc.getFid();

    if (id != null) {
      dest = xhfCommonDocManager.get(id);
      beanMapper.copy(xhfCommonDoc, dest);
    } else {
      dest = xhfCommonDoc;
    }

    xhfCommonDocManager.save(dest);

    messageHelper.addFlashMessage(redirectAttributes, "core.success.save", "保存成功");

    return "redirect:/gcgl/jl-doc-mbzrs-list.do";
  }