@ -340,7 +340,7 @@ public interface HighOrderMapperExt {
List < HighOrderModel > getMobileOrderList ( @Param ( "map" ) Map < String , Object > map ) ;
/ * *
* 查询处于已经支付的话费订单
* 查询处于已经支付和待支付 的话费订单
* /
@Select ( { "SELECT" +
" b.*" +
@ -350,9 +350,9 @@ public interface HighOrderMapperExt {
" WHERE" +
" a.order_id = b.id" +
" and a.goods_type = 6" +
" and b.order_status = 2 " +
" and b.order_status in (1,2) " +
" and a.giveaway_type = 0" +
" GROUP BY a.id ORDER BY b.create_t ime desc " } )
" GROUP BY b.id" } )
@Results ( {
@Result ( column = "id" , property = "id" , jdbcType = JdbcType . BIGINT , id = true ) ,
@Result ( column = "order_no" , property = "orderNo" , jdbcType = JdbcType . VARCHAR ) ,
@ -386,6 +386,102 @@ public interface HighOrderMapperExt {
} )
List < HighOrder > selectAlreadyPaidMobileOrder ( ) ;
/ * *
* 查询处于已经支付和待支付的KFC订单
* /
@Select ( { "SELECT " +
" b.*" +
" FROM" +
" high_child_order a," +
" high_order b" +
" WHERE" +
" a.order_id = b.id" +
" and a.goods_type = 4" +
" and b.order_status in (1,2) " +
" and a.giveaway_type = 0" +
" GROUP BY b.id" } )
@Results ( {
@Result ( column = "id" , property = "id" , jdbcType = JdbcType . BIGINT , id = true ) ,
@Result ( column = "order_no" , property = "orderNo" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "mem_discount_id" , property = "memDiscountId" , jdbcType = JdbcType . BIGINT ) ,
@Result ( column = "mem_discount_name" , property = "memDiscountName" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "mem_id" , property = "memId" , jdbcType = JdbcType . BIGINT ) ,
@Result ( column = "mem_name" , property = "memName" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "mem_phone" , property = "memPhone" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "pay_model" , property = "payModel" , jdbcType = JdbcType . INTEGER ) ,
@Result ( column = "pay_type" , property = "payType" , jdbcType = JdbcType . INTEGER ) ,
@Result ( column = "pay_gold" , property = "payGold" , jdbcType = JdbcType . INTEGER ) ,
@Result ( column = "pay_price" , property = "payPrice" , jdbcType = JdbcType . DECIMAL ) ,
@Result ( column = "pay_real_price" , property = "payRealPrice" , jdbcType = JdbcType . DECIMAL ) ,
@Result ( column = "pay_serial_no" , property = "paySerialNo" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "deduction_price" , property = "deductionPrice" , jdbcType = JdbcType . DECIMAL ) ,
@Result ( column = "order_status" , property = "orderStatus" , jdbcType = JdbcType . INTEGER ) ,
@Result ( column = "total_price" , property = "totalPrice" , jdbcType = JdbcType . DECIMAL ) ,
@Result ( column = "create_time" , property = "createTime" , jdbcType = JdbcType . TIMESTAMP ) ,
@Result ( column = "pay_time" , property = "payTime" , jdbcType = JdbcType . TIMESTAMP ) ,
@Result ( column = "cancel_time" , property = "cancelTime" , jdbcType = JdbcType . TIMESTAMP ) ,
@Result ( column = "cancel_remarks" , property = "cancelRemarks" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "finish_time" , property = "finishTime" , jdbcType = JdbcType . TIMESTAMP ) ,
@Result ( column = "remarks" , property = "remarks" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "refund_time" , property = "refundTime" , jdbcType = JdbcType . TIMESTAMP ) ,
@Result ( column = "refund_price" , property = "refundPrice" , jdbcType = JdbcType . DECIMAL ) ,
@Result ( column = "refund_content" , property = "refundContent" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "refusal_refund_content" , property = "refusalRefundContent" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "ext_1" , property = "ext1" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "ext_2" , property = "ext2" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "ext_3" , property = "ext3" , jdbcType = JdbcType . VARCHAR )
} )
List < HighOrder > selectAlreadyPaidKfcOrder ( ) ;
/ * *
* 查询处于已经支付和待支付的电影票订单
* /
@Select ( { "SELECT" +
" b.*" +
" FROM" +
" high_child_order a," +
" high_order b" +
" WHERE" +
" a.order_id = b.id" +
" and a.goods_type = 5" +
" and b.order_status in (1,2)" +
" and a.giveaway_type = 0" +
" GROUP BY b.id" } )
@Results ( {
@Result ( column = "id" , property = "id" , jdbcType = JdbcType . BIGINT , id = true ) ,
@Result ( column = "order_no" , property = "orderNo" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "mem_discount_id" , property = "memDiscountId" , jdbcType = JdbcType . BIGINT ) ,
@Result ( column = "mem_discount_name" , property = "memDiscountName" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "mem_id" , property = "memId" , jdbcType = JdbcType . BIGINT ) ,
@Result ( column = "mem_name" , property = "memName" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "mem_phone" , property = "memPhone" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "pay_model" , property = "payModel" , jdbcType = JdbcType . INTEGER ) ,
@Result ( column = "pay_type" , property = "payType" , jdbcType = JdbcType . INTEGER ) ,
@Result ( column = "pay_gold" , property = "payGold" , jdbcType = JdbcType . INTEGER ) ,
@Result ( column = "pay_price" , property = "payPrice" , jdbcType = JdbcType . DECIMAL ) ,
@Result ( column = "pay_real_price" , property = "payRealPrice" , jdbcType = JdbcType . DECIMAL ) ,
@Result ( column = "pay_serial_no" , property = "paySerialNo" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "deduction_price" , property = "deductionPrice" , jdbcType = JdbcType . DECIMAL ) ,
@Result ( column = "order_status" , property = "orderStatus" , jdbcType = JdbcType . INTEGER ) ,
@Result ( column = "total_price" , property = "totalPrice" , jdbcType = JdbcType . DECIMAL ) ,
@Result ( column = "create_time" , property = "createTime" , jdbcType = JdbcType . TIMESTAMP ) ,
@Result ( column = "pay_time" , property = "payTime" , jdbcType = JdbcType . TIMESTAMP ) ,
@Result ( column = "cancel_time" , property = "cancelTime" , jdbcType = JdbcType . TIMESTAMP ) ,
@Result ( column = "cancel_remarks" , property = "cancelRemarks" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "finish_time" , property = "finishTime" , jdbcType = JdbcType . TIMESTAMP ) ,
@Result ( column = "remarks" , property = "remarks" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "refund_time" , property = "refundTime" , jdbcType = JdbcType . TIMESTAMP ) ,
@Result ( column = "refund_price" , property = "refundPrice" , jdbcType = JdbcType . DECIMAL ) ,
@Result ( column = "refund_content" , property = "refundContent" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "refusal_refund_content" , property = "refusalRefundContent" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "ext_1" , property = "ext1" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "ext_2" , property = "ext2" , jdbcType = JdbcType . VARCHAR ) ,
@Result ( column = "ext_3" , property = "ext3" , jdbcType = JdbcType . VARCHAR )
} )
List < HighOrder > selectAlreadyPaidCinemaOrder ( ) ;
@Select ( { "select a.id orderId,b.id childOrderId from high_order a,high_child_order b where a.id = b.order_id and b.goods_type = 3 and a.order_status = 2 and TIMESTAMPDIFF(MINUTE,a.pay_time,SYSDATE()) > 60*24 GROUP BY b.id" } )
List < Map < String , Object > > selectFinishGasOrder ( ) ;