コード例 #1
0
 /** 查询单个 */
 @RequestMapping("selectOneById")
 public String selectOneById(String warehousLogId, ModelMap model) {
   WarehousLogInfo warehousLogInfo = iwlogService.selectOneById(warehousLogId);
   model.addAttribute("io", ioService.selectAllList());
   model.addAttribute("iw", iwService.selectAllList());
   model.addAttribute("w", iwlogService.selectOneById(warehousLogId));
   if (warehousLogInfo != null) {
     model.addAttribute("warehousLogInfo", warehousLogInfo);
     return "WarehousLog/updateWarehousLogManger";
   } else {
     return "error";
   }
 }
コード例 #2
0
 /** 添加前的查询 */
 @RequestMapping("insertOne")
 public String insertOne(ModelMap model) {
   model.addAttribute("io", ioService.selectAllList());
   model.addAttribute("iw", iwService.selectAllList());
   return "WarehousLog/insertwarehousLogManger";
 }