/** 查询单个 */ @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"; } }
/** 添加前的查询 */ @RequestMapping("insertOne") public String insertOne(ModelMap model) { model.addAttribute("io", ioService.selectAllList()); model.addAttribute("iw", iwService.selectAllList()); return "WarehousLog/insertwarehousLogManger"; }