| | |
| | | <result column="user_id" property="userId"/> |
| | | <result column="delivery_fee_id" property="deliveryFeeId"/> |
| | | <result column="order_time" property="orderTime"/> |
| | | <result column="user_name" property="userName"/> |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | |
| | | merchant_longitude, |
| | | merchant_latitude, |
| | | delivery_fee_id, |
| | | order_time |
| | | order_time, |
| | | user_name |
| | | </sql> |
| | | <select id="findAll" resultMap="BaseResultMap"> |
| | | select |
| | |
| | | <if test="criteria.userId != null"> |
| | | and user_id = #{criteria.userId} |
| | | </if> |
| | | <if test="criteria.userName != null"> |
| | | and user_name = #{criteria.userName} |
| | | </if> |
| | | <if test="criteria.orderId != null"> |
| | | and order_id = #{criteria.orderId} |
| | | </if> |
| | | <if test="criteria.orderNum != null"> |
| | | <if test="criteria.phone != null"> |
| | | and phone = #{criteria.phone} |
| | | </if> |
| | | <if test="criteria.orderNum != null"> |
| | | and order_num = #{criteria.orderNum} |
| | | </if> |
| | | <if test="criteria.merchantId != null"> |