|
@@ -19,6 +19,8 @@
|
|
|
<result property="delFlag" column="del_flag"/>
|
|
|
<result property="image" column="image" />
|
|
|
<result property="exchange" column="exchange"/>
|
|
|
+ <result property="grounding" column="grounding" />
|
|
|
+ <result property="cochain" column="cochain" />
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="PoCollection" id="PoCollectionResult">
|
|
@@ -43,7 +45,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<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,exchange 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 ,grounding,cochain from po_tether
|
|
|
</sql>
|
|
|
|
|
|
<!--在售-->
|
|
@@ -56,6 +58,8 @@
|
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
|
<if test="exchange != null">and exchange = #{exchange}</if>
|
|
|
+ <if test="grounding != null">and grounding = #{grounding}</if>
|
|
|
+ <if test="cochain != null">and cochain = #{cochain}</if>
|
|
|
and del_flag = '0'
|
|
|
and sell_status = 0
|
|
|
</where>
|
|
@@ -87,6 +91,8 @@
|
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
|
<if test="exchange != null">and exchange = #{exchange}</if>
|
|
|
+ <if test="grounding != null">and grounding = #{grounding}</if>
|
|
|
+ <if test="cochain != null">and cochain = #{cochain}</if>
|
|
|
and del_flag = '0'
|
|
|
and sell_status = 1
|
|
|
</where>
|
|
@@ -102,6 +108,8 @@
|
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
|
<if test="exchange != null">and exchange = #{exchange}</if>
|
|
|
+ <if test="grounding != null">and grounding = #{grounding}</if>
|
|
|
+ <if test="cochain != null">and cochain = #{cochain}</if>
|
|
|
and del_flag = '0'
|
|
|
and sell_status = 2
|
|
|
</where>
|
|
@@ -117,6 +125,8 @@
|
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
|
<if test="exchange != null">and exchange = #{exchange}</if>
|
|
|
+ <if test="grounding != null">and grounding = #{grounding}</if>
|
|
|
+ <if test="cochain != null">and cochain = #{cochain}</if>
|
|
|
and del_flag = '0'
|
|
|
</where>
|
|
|
|
|
@@ -156,6 +166,8 @@
|
|
|
<if test="sellStatus != null">sell_status,</if>
|
|
|
<if test="image != null and image != ''">image,</if>
|
|
|
<if test="exchange != null">exchange,</if>
|
|
|
+ <if test="grounding != null">grounding,</if>
|
|
|
+ <if test="cochain != null">cochain,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="tetherName != null">#{tetherName},</if>
|
|
@@ -170,6 +182,8 @@
|
|
|
<if test="sellStatus != null">#{sellStatus},</if>
|
|
|
<if test="image != null and image != ''">#{image},</if>
|
|
|
<if test="exchange != null ">#{exchange},</if>
|
|
|
+ <if test="grounding != null">#{grounding},</if>
|
|
|
+ <if test="cochain != null">#{cochain},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -188,6 +202,8 @@
|
|
|
<if test="sellStatus != null">sell_status = #{sellStatus},</if>
|
|
|
<if test="image != null and image != ''">image = #{image},</if>
|
|
|
<if test="exchange != null">exchange = #{exchange},</if>
|
|
|
+ <if test="grounding != null">grounding = #{grounding},</if>
|
|
|
+ <if test="cochain != null">cochain = #{cochain},</if>
|
|
|
</trim>
|
|
|
where tether_id = #{tetherId}
|
|
|
</update>
|