|
|
@@ -39,7 +39,7 @@ public class BookImplDao implements BookDao {
|
|
|
" house_areas, house_remake, DATE_FORMAT(order_start_time,'%Y-%m-%d %T') order_start_time, DATE_FORMAT(order_end_time,'%Y-%m-%d %T') order_end_time," +
|
|
|
" order_live_time, order_remake, DATE_FORMAT(create_time,'%Y-%m-%d %T') create_time, create_userid, DATE_FORMAT(update_time,'%Y-%m-%d %T') update_time," +
|
|
|
" DATE_FORMAT(pay_time,'%Y-%m-%d %T') pay_time, pay_account, pay_way, refund_way, refund_amount, DATE_FORMAT(refund_time,'%Y-%m-%d %T') refund_time," +
|
|
|
- " DATE_FORMAT(check_out_time,'%Y-%m-%d %T') check_out_time,lock_time, remake, is_delete, DATE_FORMAT(live_time,'%Y-%m-%d %T') live_time";
|
|
|
+ " DATE_FORMAT(check_out_time,'%Y-%m-%d %T') check_out_time,lock_time, remake, status_del, DATE_FORMAT(live_time,'%Y-%m-%d %T') live_time";
|
|
|
|
|
|
|
|
|
@Override
|
|
|
@@ -49,13 +49,13 @@ public class BookImplDao implements BookDao {
|
|
|
"hotel_config, hotel_type, hotel_is_canorder, hotel_is_order, hotel_is_checkout, house_id, house_name, house_config, " +
|
|
|
"house_unit_price, house_total_price, house_order_number, house_areas, house_remake, order_start_time, order_end_time," +
|
|
|
" order_live_time, order_remake, create_time, create_userid, update_time, pay_time, pay_account, pay_way, refund_way," +
|
|
|
- " refund_amount, refund_time, check_out_time,lock_time, remake, is_delete) " +
|
|
|
+ " refund_amount, refund_time, check_out_time,lock_time, remake, status_del) " +
|
|
|
"VALUES (:id, :order_num, :order_status, :user_idnumber, :user_name, :user_phone, :hotel_id, :hotel_name, :hotel_hposition, " +
|
|
|
":hotel_hposition_wens, :hotel_phone, :hotel_manager_id, :hotel_person, :hotel_township, :hotel_config, :hotel_type," +
|
|
|
" :hotel_is_canorder, :hotel_is_order, :hotel_is_checkout, :house_id, :house_name, :house_config, :house_unit_price," +
|
|
|
" :house_total_price, :house_order_number, :house_areas, :house_remake, :order_start_time, :order_end_time, :order_live_time," +
|
|
|
" :order_remake, :create_time, :create_userid, :update_time, :pay_time, :pay_account, :pay_way, :refund_way, :refund_amount," +
|
|
|
- " :refund_time, :check_out_time,:lock_time, :remake, :is_delete)";
|
|
|
+ " :refund_time, :check_out_time,:lock_time, :remake, :status_del)";
|
|
|
|
|
|
MapSqlParameterSource sps = new MapSqlParameterSource();
|
|
|
sps.addValue("order_num",book.getOrderNum());
|
|
|
@@ -100,7 +100,7 @@ public class BookImplDao implements BookDao {
|
|
|
sps.addValue("check_out_time",book.getCheckOutTime());
|
|
|
sps.addValue("lock_time",book.getLockTime());
|
|
|
sps.addValue("remake", book.getRemake());
|
|
|
- sps.addValue("is_delete", 1);
|
|
|
+ sps.addValue("status_del", 1);
|
|
|
if(book.getId()==null){
|
|
|
sps.addValue("id", UUIDUtil.generateID());
|
|
|
} else{
|
|
|
@@ -128,7 +128,7 @@ public class BookImplDao implements BookDao {
|
|
|
" house_order_number = :house_order_number, house_areas = :house_areas, house_remake = :house_remake, order_start_time = :order_start_time," +
|
|
|
" order_end_time = :order_end_time, order_live_time = :order_live_time, order_remake = :order_remake, create_time = :create_time, create_userid = :create_userid," +
|
|
|
" update_time = :update_time, pay_time = :pay_time,pay_account = :pay_account, pay_way = :pay_way, refund_way = :refund_way,refund_amount = :refund_amount," +
|
|
|
- " refund_time = :refund_time, check_out_time = :check_out_time,lock_time=:lock_time, remake = :remake, is_delete = :is_delete, live_time = :live_time WHERE id = :id";
|
|
|
+ " refund_time = :refund_time, check_out_time = :check_out_time,lock_time=:lock_time, remake = :remake, status_del = :status_del, live_time = :live_time WHERE id = :id";
|
|
|
MapSqlParameterSource sps = new MapSqlParameterSource();
|
|
|
sps.addValue("order_num",book.getOrderNum());
|
|
|
sps.addValue("order_status",book.getOrderStatus());
|
|
|
@@ -172,7 +172,7 @@ public class BookImplDao implements BookDao {
|
|
|
sps.addValue("check_out_time",book.getCheckOutTime());
|
|
|
sps.addValue("remake", book.getRemake());
|
|
|
sps.addValue("lock_time", book.getLockTime());
|
|
|
- sps.addValue("is_delete", book.getIsDelete()); // 是否假删除:0删除,1正常
|
|
|
+ sps.addValue("status_del", book.getStatus_del()); // 是否假删除:0删除,1正常
|
|
|
sps.addValue("live_time", book.getLiveTime());
|
|
|
sps.addValue("id",book.getId());
|
|
|
|
|
|
@@ -256,7 +256,7 @@ public class BookImplDao implements BookDao {
|
|
|
@Override
|
|
|
public Double sumAccount(String sqlx){
|
|
|
SqlUtil.filterKeyword(sqlx);
|
|
|
- String sql = "select sum(pay_account) pay_account from booking where is_delete=1"+sqlx;
|
|
|
+ String sql = "select sum(pay_account) pay_account from booking where status_del=1"+sqlx;
|
|
|
List<Booking> list = null;
|
|
|
try{
|
|
|
list = namedParameterJdbcTemplate.query(sql, new BeanPropertyRowMapper<>(Booking.class));
|