|
@@ -19,7 +19,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="userName" column="username" />
|
|
|
- <result property="realName" column="real_name" />
|
|
|
<result property="mobile" column="mobile" />
|
|
|
<result property="cardType" column="card_type" />
|
|
|
<result property="totalNumber" column="total_number" />
|
|
@@ -33,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectCardPurchaseRecordList" parameterType="CardPurchaseRecord" resultMap="CardPurchaseRecordResult">
|
|
|
select a.id, a.user_id, a.card_id, a.card_name,a.card_type, a.total_number, a.member_price, a.time, a.payment_way, a.type, a.notes, a.version, a.create_by, a.create_time, a.update_by, a.update_time,
|
|
|
- b.username,b.real_name,b.mobile
|
|
|
+ b.username,b.mobile
|
|
|
from card_purchase_record a
|
|
|
left join sys_member b on a.user_id = b.id
|
|
|
<where>
|
|
@@ -46,7 +45,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="type != null and type != ''"> and type = #{type}</if>
|
|
|
<if test="notes != null and notes != ''"> and notes = #{notes}</if>
|
|
|
<if test="version != null and version != ''"> and version = #{version}</if>
|
|
|
- <if test="realName != null and realName != ''"> and b.real_name like concat('%', #{realName}, '%')</if>
|
|
|
<if test="mobile != null and mobile != ''"> and b.mobile like concat('%', #{mobile}, '%')</if>
|
|
|
</where>
|
|
|
order by a.create_time desc
|