|
@@ -18,6 +18,7 @@
|
|
<result property="sellStatus" column="sell_status"/>
|
|
<result property="sellStatus" column="sell_status"/>
|
|
<result property="delFlag" column="del_flag"/>
|
|
<result property="delFlag" column="del_flag"/>
|
|
<result property="image" column="image" />
|
|
<result property="image" column="image" />
|
|
|
|
+ <result property="exchange" column="exchange"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="PoCollection" id="PoCollectionResult">
|
|
<resultMap type="PoCollection" id="PoCollectionResult">
|
|
@@ -42,7 +43,7 @@
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectPoTetherVo">
|
|
<sql id="selectPoTetherVo">
|
|
- select tether_id, tether_name, show_time, create_by, create_time, update_by, update_time, total, status, remark ,sell_status,del_flag,image from po_tether
|
|
|
|
|
|
+ select tether_id, tether_name, show_time, create_by, create_time, update_by, update_time, total, status, remark ,sell_status,del_flag,image,exchange from po_tether
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<!--在售-->
|
|
<!--在售-->
|
|
@@ -54,6 +55,7 @@
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
|
|
+ <if test="exchange != null">and exchange = #{exchange}</if>
|
|
and del_flag = '0'
|
|
and del_flag = '0'
|
|
and sell_status = 0
|
|
and sell_status = 0
|
|
</where>
|
|
</where>
|
|
@@ -84,6 +86,7 @@
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
|
|
+ <if test="exchange != null">and exchange = #{exchange}</if>
|
|
and del_flag = '0'
|
|
and del_flag = '0'
|
|
and sell_status = 1
|
|
and sell_status = 1
|
|
</where>
|
|
</where>
|
|
@@ -98,6 +101,7 @@
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
|
|
+ <if test="exchange != null">and exchange = #{exchange}</if>
|
|
and del_flag = '0'
|
|
and del_flag = '0'
|
|
and sell_status = 2
|
|
and sell_status = 2
|
|
</where>
|
|
</where>
|
|
@@ -112,6 +116,7 @@
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
|
|
+ <if test="exchange != null">and exchange = #{exchange}</if>
|
|
and del_flag = '0'
|
|
and del_flag = '0'
|
|
</where>
|
|
</where>
|
|
|
|
|
|
@@ -150,6 +155,7 @@
|
|
<if test="remark != null">remark,</if>
|
|
<if test="remark != null">remark,</if>
|
|
<if test="sellStatus != null">sell_status,</if>
|
|
<if test="sellStatus != null">sell_status,</if>
|
|
<if test="image != null and image != ''">image,</if>
|
|
<if test="image != null and image != ''">image,</if>
|
|
|
|
+ <if test="exchange != null">exchange,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="tetherName != null">#{tetherName},</if>
|
|
<if test="tetherName != null">#{tetherName},</if>
|
|
@@ -163,6 +169,7 @@
|
|
<if test="remark != null">#{remark},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
<if test="sellStatus != null">#{sellStatus},</if>
|
|
<if test="sellStatus != null">#{sellStatus},</if>
|
|
<if test="image != null and image != ''">#{image},</if>
|
|
<if test="image != null and image != ''">#{image},</if>
|
|
|
|
+ <if test="exchange != null ">#{exchange},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -180,6 +187,7 @@
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
<if test="sellStatus != null">sell_status = #{sellStatus},</if>
|
|
<if test="sellStatus != null">sell_status = #{sellStatus},</if>
|
|
<if test="image != null and image != ''">image = #{image},</if>
|
|
<if test="image != null and image != ''">image = #{image},</if>
|
|
|
|
+ <if test="exchange != null">exchange = #{exchange},</if>
|
|
</trim>
|
|
</trim>
|
|
where tether_id = #{tetherId}
|
|
where tether_id = #{tetherId}
|
|
</update>
|
|
</update>
|