|
|
@@ -227,7 +227,7 @@ public class BookImplDao implements BookDao {
|
|
|
|
|
|
@Override
|
|
|
public BookTypeEto getBookStatusSum(String sqlx){
|
|
|
- String sql = "select ifnull(sum(case when order_status = 2 then 1 else 0 end),0) pendingOrderSum,count(1) orderSum,ifnull(sum(case when order_status = 5 then 1 else 0 end),0) consumerOrderSum,ifnull(sum(case when order_status = 5 then pay_account else 0 end),0) sumAccount from booking where 1=1"+sqlx;
|
|
|
+ String sql = "select ifnull(sum(case when order_status = 2 then 1 else 0 end),0) pendingOrderSum,count(1) orderSum,ifnull(sum(case when order_status = 5 then 1 else 0 end),0) consumerOrderSum,ifnull(sum(case when order_status = 5 then pay_account else 0 end),0) sumAccount from booking where is_delete=1"+sqlx;
|
|
|
List<BookTypeEto> list = null;
|
|
|
try{
|
|
|
list = namedParameterJdbcTemplate.query(sql, new BeanPropertyRowMapper<>(BookTypeEto.class));
|