|
|
|
@@ -13,6 +13,7 @@ |
|
|
|
<result column="entrance_time" property="entranceTime"/> |
|
|
|
<result column="exit_time" property="exitTime"/> |
|
|
|
<result column="fee" property="fee"/> |
|
|
|
<result column="fee_time" property="feeTime"/> |
|
|
|
<result column="coupon" property="coupon"/> |
|
|
|
<result column="coupon_code" property="couponCode"/> |
|
|
|
<result column="fix_parking_id" property="fixParkingId"/> |
|
|
|
@@ -24,31 +25,31 @@ |
|
|
|
<result column="update_date" property="updateDate"/> |
|
|
|
<result column="stayed_time" property="stayedTime"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`tenant_id`,`vendor_type`,`create_date`,`update_date`,syn_id,park_id,park_name,user_type, |
|
|
|
plate_number,entrance_time,exit_time,fee,coupon,coupon_code,fix_parking_id,remaining_days,discount_amount,phone |
|
|
|
plate_number,entrance_time,exit_time,fee,fee_time,coupon,coupon_code,fix_parking_id,remaining_days,discount_amount,phone |
|
|
|
,paid_service_fee,create_date,update_date,floor(stayed_time/60) stayed_time |
|
|
|
</sql> |
|
|
|
|
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
where 1 = 1 |
|
|
|
|
|
|
|
|
|
|
|
<if test=" null != id "> |
|
|
|
and `id` = #{id} |
|
|
|
|
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
<if test=" null != tenantId "> |
|
|
|
and `tenant_id` = #{tenantId} |
|
|
|
|
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
<if test=" null != vendorType "> |
|
|
|
and `vendor_type` = #{vendorType} |
|
|
|
|
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<if test=" null != startDate"> |
|
|
|
and create_date >= #{startDate} |
|
|
|
@@ -63,7 +64,7 @@ |
|
|
|
order by create_date desc |
|
|
|
|
|
|
|
</sql> |
|
|
|
|
|
|
|
|
|
|
|
<select id="findCarPayListByPage" parameterType="com.iformall.domain.po.WxCarPayRecord" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
<include refid="allColumns"/> |
|
|
|
|