|
|
@ -42,25 +42,25 @@ public interface BsMealTableOrderMapper extends BsMealTableOrderMapperExt { |
|
|
|
"insert into bs_meal_table_order (mer_id, mer_no, ", |
|
|
|
"insert into bs_meal_table_order (mer_id, mer_no, ", |
|
|
|
"mer_name, mer_abbreviate, ", |
|
|
|
"mer_name, mer_abbreviate, ", |
|
|
|
"store_id, store_name, ", |
|
|
|
"store_id, store_name, ", |
|
|
|
"serial_number, table_number, ", |
|
|
|
"serial_number, user_id, ", |
|
|
|
"`table_name`, people_num, ", |
|
|
|
"table_number, `table_name`, ", |
|
|
|
"order_no, order_amount, ", |
|
|
|
"people_num, order_no, ", |
|
|
|
"`status`, pay_status, ", |
|
|
|
"order_amount, `status`, ", |
|
|
|
"pay_time, pay_order_no, ", |
|
|
|
"pay_status, pay_time, ", |
|
|
|
"pay_price, create_time, ", |
|
|
|
"pay_order_no, pay_price, ", |
|
|
|
"update_time, ext_1, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"values (#{merId,jdbcType=BIGINT}, #{merNo,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{merId,jdbcType=BIGINT}, #{merNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{merName,jdbcType=VARCHAR}, #{merAbbreviate,jdbcType=VARCHAR}, ", |
|
|
|
"#{merName,jdbcType=VARCHAR}, #{merAbbreviate,jdbcType=VARCHAR}, ", |
|
|
|
"#{storeId,jdbcType=BIGINT}, #{storeName,jdbcType=VARCHAR}, ", |
|
|
|
"#{storeId,jdbcType=BIGINT}, #{storeName,jdbcType=VARCHAR}, ", |
|
|
|
"#{serialNumber,jdbcType=VARCHAR}, #{tableNumber,jdbcType=INTEGER}, ", |
|
|
|
"#{serialNumber,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, ", |
|
|
|
"#{tableName,jdbcType=VARCHAR}, #{peopleNum,jdbcType=INTEGER}, ", |
|
|
|
"#{tableNumber,jdbcType=INTEGER}, #{tableName,jdbcType=VARCHAR}, ", |
|
|
|
"#{orderNo,jdbcType=VARCHAR}, #{orderAmount,jdbcType=DECIMAL}, ", |
|
|
|
"#{peopleNum,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{payStatus,jdbcType=INTEGER}, ", |
|
|
|
"#{orderAmount,jdbcType=DECIMAL}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{payTime,jdbcType=TIMESTAMP}, #{payOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{payStatus,jdbcType=INTEGER}, #{payTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{payPrice,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{payOrderNo,jdbcType=VARCHAR}, #{payPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(BsMealTableOrder record); |
|
|
|
int insert(BsMealTableOrder record); |
|
|
@ -79,6 +79,7 @@ public interface BsMealTableOrderMapper extends BsMealTableOrderMapperExt { |
|
|
|
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="serial_number", property="serialNumber", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="serial_number", property="serialNumber", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="table_number", property="tableNumber", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="table_number", property="tableNumber", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="table_name", property="tableName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="table_name", property="tableName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="people_num", property="peopleNum", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="people_num", property="peopleNum", jdbcType=JdbcType.INTEGER), |
|
|
@ -100,8 +101,9 @@ public interface BsMealTableOrderMapper extends BsMealTableOrderMapperExt { |
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, mer_id, mer_no, mer_name, mer_abbreviate, store_id, store_name, serial_number, ", |
|
|
|
"id, mer_id, mer_no, mer_name, mer_abbreviate, store_id, store_name, serial_number, ", |
|
|
|
"table_number, `table_name`, people_num, order_no, order_amount, `status`, pay_status, ", |
|
|
|
"user_id, table_number, `table_name`, people_num, order_no, order_amount, `status`, ", |
|
|
|
"pay_time, pay_order_no, pay_price, create_time, update_time, ext_1, ext_2, ext_3", |
|
|
|
"pay_status, pay_time, pay_order_no, pay_price, create_time, update_time, ext_1, ", |
|
|
|
|
|
|
|
"ext_2, ext_3", |
|
|
|
"from bs_meal_table_order", |
|
|
|
"from bs_meal_table_order", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -114,6 +116,7 @@ public interface BsMealTableOrderMapper extends BsMealTableOrderMapperExt { |
|
|
|
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="serial_number", property="serialNumber", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="serial_number", property="serialNumber", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="table_number", property="tableNumber", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="table_number", property="tableNumber", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="table_name", property="tableName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="table_name", property="tableName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="people_num", property="peopleNum", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="people_num", property="peopleNum", jdbcType=JdbcType.INTEGER), |
|
|
@ -150,6 +153,7 @@ public interface BsMealTableOrderMapper extends BsMealTableOrderMapperExt { |
|
|
|
"store_id = #{storeId,jdbcType=BIGINT},", |
|
|
|
"store_id = #{storeId,jdbcType=BIGINT},", |
|
|
|
"store_name = #{storeName,jdbcType=VARCHAR},", |
|
|
|
"store_name = #{storeName,jdbcType=VARCHAR},", |
|
|
|
"serial_number = #{serialNumber,jdbcType=VARCHAR},", |
|
|
|
"serial_number = #{serialNumber,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"user_id = #{userId,jdbcType=VARCHAR},", |
|
|
|
"table_number = #{tableNumber,jdbcType=INTEGER},", |
|
|
|
"table_number = #{tableNumber,jdbcType=INTEGER},", |
|
|
|
"`table_name` = #{tableName,jdbcType=VARCHAR},", |
|
|
|
"`table_name` = #{tableName,jdbcType=VARCHAR},", |
|
|
|
"people_num = #{peopleNum,jdbcType=INTEGER},", |
|
|
|
"people_num = #{peopleNum,jdbcType=INTEGER},", |
|
|
|