|
|
|
@ -76,7 +76,7 @@ public class ItemController extends BaseController
|
|
|
|
|
{
|
|
|
|
|
int i = itemService.selectItemByItemNo(item);
|
|
|
|
|
if (i > 0){
|
|
|
|
|
return error("物品编号重复,请检查!!!");
|
|
|
|
|
return error("物品编号重复,请检查!");
|
|
|
|
|
}
|
|
|
|
|
return toAjax(itemService.insertItem(item));
|
|
|
|
|
}
|
|
|
|
@ -86,11 +86,11 @@ public class ItemController extends BaseController
|
|
|
|
|
*/
|
|
|
|
|
@RequiresPermissions("system:case:export")
|
|
|
|
|
@Log(title = "物品列表导出", businessType = BusinessType.EXPORT)
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
@PostMapping("/export/{caseNo}")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public AjaxResult export(Item item)
|
|
|
|
|
public AjaxResult export(@PathVariable("caseNo")String caseNo)
|
|
|
|
|
{
|
|
|
|
|
List<Item> list = itemService.selectItemList(item);
|
|
|
|
|
List<Item> list = itemService.selectItemByCaseNo(caseNo);
|
|
|
|
|
ExcelUtil<Item> util = new ExcelUtil<Item>(Item.class);
|
|
|
|
|
return util.exportExcel(list, "物品信息数据");
|
|
|
|
|
}
|
|
|
|
|