String set = "set useflag = 0,deletetime = now(),operatetime = now()"; if (StringUtils.isNotBlank(userId)) set += ",set deleterid = " + userId; if (StringUtils.isNotBlank(userName)) set += ",set deleter = " + userName; // 拿到我们定义好的枚举 CustomSqlMethod sqlMethod = ...
,deleter=?,deleted_at=NOW(6)WHEREid=?ANDdeleted_atISNULL###Cause:org.h2.jdbc.JdbcSQLSyntaxErrorException:Duplicatecolumnname"DELETED_AT";SQLstatement:UPDATEmodel_entitySETlast_updated_at=?,last_updater=?,deleted_at=?,deleter=?,deleted_at=NOW(6)WHEREid=?ANDdeleted_atISNULL[42121-200]atorg....
@RequestMapping(value ="/users/{id}",method =RequestMethod.DELETE) @ResponseBody public String delete(@PathVariable Integer id){ System.out.println("user delete ..."+ id); return "{'module':'user deleter'}"; } 注解复习 名称:@PathVariable 类型:形参注解 位置:SpringMVC控制器方法形参定义...
@RequestMapping(value ="/users/{id}",method =RequestMethod.DELETE) @ResponseBody public String delete(@PathVariable Integer id){ System.out.println("user delete ..."+ id); return "{'module':'user deleter'}"; } 注解复习 名称:@PathVariable 类型:形参注解 位置:SpringMVC控制器方法形参定义...