You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
2.2 KiB
41 lines
2.2 KiB
package com.hai.dao;
|
|
|
|
import com.hai.entity.HighOrder;
|
|
import org.apache.ibatis.annotations.Result;
|
|
import org.apache.ibatis.annotations.Results;
|
|
import org.apache.ibatis.annotations.Select;
|
|
import org.apache.ibatis.type.JdbcType;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* mapper扩展类
|
|
*/
|
|
public interface HighOrderMapperExt {
|
|
|
|
@Select({"SELECT * FROM high_order ho WHERE TIMESTAMPDIFF(MINUTE,ho.create_time,SYSDATE()) > 15 AND ho.order_status = 1"})
|
|
@Results({
|
|
@Result(column="id", property="id", jdbcType= JdbcType.BIGINT, id=true),
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR),
|
|
@Result(column="mem_id", property="memId", jdbcType=JdbcType.BIGINT),
|
|
@Result(column="mem_name", property="memName", 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="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="finish_time", property="finishTime", jdbcType=JdbcType.TIMESTAMP),
|
|
@Result(column="remarks", property="remarks", 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> getCloseOrder();
|
|
|
|
}
|
|
|