上下架读取商品名称
parent
5a66aeef5f
commit
db0c77e9a4
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue