上下架读取商品名称

master
e 2019-09-11 21:21:01 +08:00
parent 5a66aeef5f
commit db0c77e9a4
1 changed files with 2 additions and 2 deletions

View File

@ -90,9 +90,9 @@ public class SimpleJdbcTemplate {
Assert.hasText(sql,"sql语句不正确!"); Assert.hasText(sql,"sql语句不正确!");
if(parameters!=null){ if(parameters!=null){
return (long)namedJdbcTemplate.queryForObject(sql, parameters,Long.class); return namedJdbcTemplate.queryForObject(sql, parameters,long.class);
}else{ }else{
return (long)jdbcTemplate.queryForObject(sql,Long.class); return jdbcTemplate.queryForObject(sql,long.class);
} }
}catch (Exception e) { }catch (Exception e) {