| @@ -7,7 +7,7 @@ | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="c_user_id" jdbcType="BIGINT" property="cUserId" /> | <result column="c_user_id" jdbcType="BIGINT" property="cUserId" /> | ||||
| <result column="merchant_id" jdbcType="BIGINT" property="merchantId" /> | <result column="merchant_id" jdbcType="BIGINT" property="merchantId" /> | ||||
| <result column="order_id" jdbcType="BIGINT" property="orderId" /> | |||||
| <result column="coupon_id" jdbcType="BIGINT" property="couponId" /> | |||||
| <result column="b_user_id" jdbcType="BIGINT" property="bUserId" /> | <result column="b_user_id" jdbcType="BIGINT" property="bUserId" /> | ||||
| <result column="payment_type" jdbcType="INTEGER" property="paymentType" /> | <result column="payment_type" jdbcType="INTEGER" property="paymentType" /> | ||||
| <result column="payment" jdbcType="INTEGER" property="payment" /> | <result column="payment" jdbcType="INTEGER" property="payment" /> | ||||
| @@ -53,8 +53,13 @@ | |||||
| <if test=" null != bUserId "> | <if test=" null != bUserId "> | ||||
| and `b_user_id` = #{bUserId} | and `b_user_id` = #{bUserId} | ||||
| </if> | |||||
| </if> | |||||
| <if test=" null != couponId "> | |||||
| and `coupon_id` = #{couponId} | |||||
| </if> | |||||
| <if test=" null != paymentType "> | <if test=" null != paymentType "> | ||||
| and `payment_type` = #{paymentType} | and `payment_type` = #{paymentType} | ||||
| @@ -196,19 +201,4 @@ | |||||
| </if> | </if> | ||||
| AND order_status = '0' | AND order_status = '0' | ||||
| </select> | </select> | ||||
| <select id="findListOfUnpaidOrderByDate" parameterType="map" resultMap="BaseResultMap"> | |||||
| select <include refid="allColumns" /> from wx_order | |||||
| where 1=1 | |||||
| <if test="startDate != null"> | |||||
| AND create_date > #{startDate,jdbcType=TIMESTAMP} | |||||
| </if> | |||||
| <if test="startDate != null"> | |||||
| AND create_date < #{endDate,jdbcType=TIMESTAMP} | |||||
| </if> | |||||
| AND order_status = '0' | |||||
| </select> | |||||
| </mapper> | </mapper> | ||||