|
@@ -9,11 +9,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="name" column="name" />
|
|
<result property="name" column="name" />
|
|
<result property="type" column="type" />
|
|
<result property="type" column="type" />
|
|
<result property="totalNumber" column="total_number" />
|
|
<result property="totalNumber" column="total_number" />
|
|
- <result property="price" column="price" />
|
|
|
|
|
|
+ <result property="originalPrice" column="original_price" />
|
|
|
|
+ <result property="memberPrice" column="member_price" />
|
|
<result property="point" column="point" />
|
|
<result property="point" column="point" />
|
|
<result property="expirationDate" column="expiration_date" />
|
|
<result property="expirationDate" column="expiration_date" />
|
|
<result property="notes" column="notes" />
|
|
<result property="notes" column="notes" />
|
|
- <result property="state" column="state" />
|
|
|
|
|
|
+ <result property="cardState" column="card_state" />
|
|
|
|
+ <result property="releaseState" column="release_state" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateBy" column="update_by" />
|
|
@@ -21,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCarInformationVo">
|
|
<sql id="selectCarInformationVo">
|
|
- select id, name, type, total_number, price, point, expiration_date, notes, state, create_by, create_time, update_by, update_time from card_information
|
|
|
|
|
|
+ select id, name, type, total_number, original_price,member_price, point, expiration_date, notes, card_state,release_state, create_by, create_time, update_by, update_time from card_information
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectCarInformationList" parameterType="CarInformation" resultMap="CarInformationResult">
|
|
<select id="selectCarInformationList" parameterType="CarInformation" resultMap="CarInformationResult">
|
|
@@ -30,11 +32,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
<if test="type != null and type != ''"> and type = #{type}</if>
|
|
<if test="type != null and type != ''"> and type = #{type}</if>
|
|
<if test="totalNumber != null "> and total_number = #{totalNumber}</if>
|
|
<if test="totalNumber != null "> and total_number = #{totalNumber}</if>
|
|
- <if test="price != null "> and price = #{price}</if>
|
|
|
|
|
|
+ <if test="originalPrice != null "> and original_price = #{originalPrice}</if>
|
|
|
|
+ <if test="memberPrice != null "> and member_price = #{memberPrice}</if>
|
|
<if test="point != null "> and point = #{point}</if>
|
|
<if test="point != null "> and point = #{point}</if>
|
|
<if test="expirationDate != null "> and expiration_date = #{expirationDate}</if>
|
|
<if test="expirationDate != null "> and expiration_date = #{expirationDate}</if>
|
|
<if test="notes != null and notes != ''"> and notes = #{notes}</if>
|
|
<if test="notes != null and notes != ''"> and notes = #{notes}</if>
|
|
- <if test="state != null and state != ''"> and state = #{state}</if>
|
|
|
|
|
|
+ <if test="cardState != null and cardState != ''"> and card_state = #{cardState}</if>
|
|
|
|
+ <if test="releaseState != null and releaseState != ''"> and release_state = #{releaseState}</if>
|
|
</where>
|
|
</where>
|
|
order by create_time desc
|
|
order by create_time desc
|
|
</select>
|
|
</select>
|
|
@@ -51,11 +55,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="name != null">name,</if>
|
|
<if test="name != null">name,</if>
|
|
<if test="type != null">type,</if>
|
|
<if test="type != null">type,</if>
|
|
<if test="totalNumber != null">total_number,</if>
|
|
<if test="totalNumber != null">total_number,</if>
|
|
- <if test="price != null">price,</if>
|
|
|
|
|
|
+ <if test="originalPrice != null">original_price,</if>
|
|
|
|
+ <if test="memberPrice != null">member_price,</if>
|
|
<if test="point != null">point,</if>
|
|
<if test="point != null">point,</if>
|
|
<if test="expirationDate != null">expiration_date,</if>
|
|
<if test="expirationDate != null">expiration_date,</if>
|
|
<if test="notes != null">notes,</if>
|
|
<if test="notes != null">notes,</if>
|
|
- <if test="state != null">state,</if>
|
|
|
|
|
|
+ <if test="cardState != null">card_state,</if>
|
|
|
|
+ <if test="releaseState != null">release_state,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
@@ -66,11 +72,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="name != null">#{name},</if>
|
|
<if test="name != null">#{name},</if>
|
|
<if test="type != null">#{type},</if>
|
|
<if test="type != null">#{type},</if>
|
|
<if test="totalNumber != null">#{totalNumber},</if>
|
|
<if test="totalNumber != null">#{totalNumber},</if>
|
|
- <if test="price != null">#{price},</if>
|
|
|
|
|
|
+ <if test="originalPrice != null">#{originalPrice},</if>
|
|
|
|
+ <if test="memberPrice != null">#{memberPrice},</if>
|
|
<if test="point != null">#{point},</if>
|
|
<if test="point != null">#{point},</if>
|
|
<if test="expirationDate != null">#{expirationDate},</if>
|
|
<if test="expirationDate != null">#{expirationDate},</if>
|
|
<if test="notes != null">#{notes},</if>
|
|
<if test="notes != null">#{notes},</if>
|
|
- <if test="state != null">#{state},</if>
|
|
|
|
|
|
+ <if test="cardState != null">#{cardState},</if>
|
|
|
|
+ <if test="releaseState != null">#{releaseState},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
@@ -84,11 +92,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="name != null">name = #{name},</if>
|
|
<if test="name != null">name = #{name},</if>
|
|
<if test="type != null">type = #{type},</if>
|
|
<if test="type != null">type = #{type},</if>
|
|
<if test="totalNumber != null">total_number = #{totalNumber},</if>
|
|
<if test="totalNumber != null">total_number = #{totalNumber},</if>
|
|
- <if test="price != null">price = #{price},</if>
|
|
|
|
|
|
+ <if test="originalPrice != null">original_price = #{originalPrice},</if>
|
|
|
|
+ <if test="memberPrice != null">member_price = #{memberPrice},</if>
|
|
<if test="point != null">point = #{point},</if>
|
|
<if test="point != null">point = #{point},</if>
|
|
<if test="expirationDate != null">expiration_date = #{expirationDate},</if>
|
|
<if test="expirationDate != null">expiration_date = #{expirationDate},</if>
|
|
<if test="notes != null">notes = #{notes},</if>
|
|
<if test="notes != null">notes = #{notes},</if>
|
|
- <if test="state != null">state = #{state},</if>
|
|
|
|
|
|
+ <if test="cardState != null">card_state = #{cardState},</if>
|
|
|
|
+ <if test="releaseState != null">release_state = #{releaseState},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|