manageService.save(manage);
public ModelAndView addManage(@RequestParam("attach") MultipartFile attach,
Manage manage, HttpServletRequest request,
HttpServletResponse response) throws IOException {
//查询当天的下一个流水号
String hql = "SELECT max(t.itemnumber+1) FROM Manage t ";
String str = session.createQuery(hql).uniqueResult().toString();
manageService.save(manage);}情况是插入数据时 hql走数据库里取列itemnumber加一,不过这样写好像不对啊,sessiom 为什么会报错呢
public ModelAndView addManage(@RequestParam("attach") MultipartFile attach,
Manage manage, HttpServletRequest request,
HttpServletResponse response) throws IOException {
//查询当天的下一个流水号
String hql = "SELECT max(t.itemnumber+1) FROM Manage t ";
String str = session.createQuery(hql).uniqueResult().toString();
manageService.save(manage);}情况是插入数据时 hql走数据库里取列itemnumber加一,不过这样写好像不对啊,sessiom 为什么会报错呢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货