|
@@ -23,7 +23,7 @@
|
|
<result property="cochain" column="cochain" />
|
|
<result property="cochain" column="cochain" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
- <resultMap type="PoCollection" id="PoCollectionResult">
|
|
|
|
|
|
+ <resultMap type="PoTetherandcollection" id="PoTetherandcollectionResult">
|
|
<result property="collectionId" column="collection_id" />
|
|
<result property="collectionId" column="collection_id" />
|
|
<result property="collectionTitle" column="collection_title" />
|
|
<result property="collectionTitle" column="collection_title" />
|
|
<result property="status" column="status" />
|
|
<result property="status" column="status" />
|
|
@@ -42,10 +42,11 @@
|
|
<result property="story" column="story" />
|
|
<result property="story" column="story" />
|
|
<result property="grounding" column="grounding" />
|
|
<result property="grounding" column="grounding" />
|
|
<result property="cochain" column="cochain" />
|
|
<result property="cochain" column="cochain" />
|
|
|
|
+ <result property="tetherId" column="tether_id" />
|
|
</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,exchange ,grounding,cochain 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 ,tether_id from po_tether
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<!--在售-->
|
|
<!--在售-->
|
|
@@ -60,6 +61,7 @@
|
|
<if test="exchange != null">and exchange = #{exchange}</if>
|
|
<if test="exchange != null">and exchange = #{exchange}</if>
|
|
<if test="grounding != null">and grounding = #{grounding}</if>
|
|
<if test="grounding != null">and grounding = #{grounding}</if>
|
|
<if test="cochain != null">and cochain = #{cochain}</if>
|
|
<if test="cochain != null">and cochain = #{cochain}</if>
|
|
|
|
+ <if test="tetherId != null">and tether_id = #{tetherId}</if>
|
|
and del_flag = '0'
|
|
and del_flag = '0'
|
|
and sell_status = 0
|
|
and sell_status = 0
|
|
</where>
|
|
</where>
|
|
@@ -93,6 +95,7 @@
|
|
<if test="exchange != null">and exchange = #{exchange}</if>
|
|
<if test="exchange != null">and exchange = #{exchange}</if>
|
|
<if test="grounding != null">and grounding = #{grounding}</if>
|
|
<if test="grounding != null">and grounding = #{grounding}</if>
|
|
<if test="cochain != null">and cochain = #{cochain}</if>
|
|
<if test="cochain != null">and cochain = #{cochain}</if>
|
|
|
|
+ <if test="tetherId != null">and tether_id = #{tetherId}</if>
|
|
and del_flag = '0'
|
|
and del_flag = '0'
|
|
and sell_status = 1
|
|
and sell_status = 1
|
|
</where>
|
|
</where>
|
|
@@ -127,15 +130,16 @@
|
|
<if test="exchange != null">and exchange = #{exchange}</if>
|
|
<if test="exchange != null">and exchange = #{exchange}</if>
|
|
<if test="grounding != null">and grounding = #{grounding}</if>
|
|
<if test="grounding != null">and grounding = #{grounding}</if>
|
|
<if test="cochain != null">and cochain = #{cochain}</if>
|
|
<if test="cochain != null">and cochain = #{cochain}</if>
|
|
|
|
+ <if test="tetherId != null">and tether_id = #{tetherId}</if>
|
|
and del_flag = '0'
|
|
and del_flag = '0'
|
|
</where>
|
|
</where>
|
|
|
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 根据套系id 查询对应藏品按钮里面的藏品信息-->
|
|
<!-- 根据套系id 查询对应藏品按钮里面的藏品信息-->
|
|
- <select id="selectPoCollectionListById" resultMap="PoCollectionResult" >
|
|
|
|
|
|
+ <select id="selectPoCollectionListById" resultMap="PoTetherandcollectionResult" >
|
|
select c.collection_title , c.image , c.collection_type , c.create_time , c.create_by
|
|
select c.collection_title , c.image , c.collection_type , c.create_time , c.create_by
|
|
- , c.total , c.status , c.price , c.story , c.grounding , c.cochain from po_collection c
|
|
|
|
|
|
+ , c.total , c.status , c.price , c.story , c.grounding , c.cochain ,c.tether_id from po_Tetherandcollection c
|
|
left join po_tether t on t.tether_id = c.tether_id where t.tether_id = #{tetherId}
|
|
left join po_tether t on t.tether_id = c.tether_id where t.tether_id = #{tetherId}
|
|
|
|
|
|
</select>
|
|
</select>
|
|
@@ -177,6 +181,7 @@
|
|
<if test="exchange != null">exchange,</if>
|
|
<if test="exchange != null">exchange,</if>
|
|
<if test="grounding != null">grounding,</if>
|
|
<if test="grounding != null">grounding,</if>
|
|
<if test="cochain != null">cochain,</if>
|
|
<if test="cochain != null">cochain,</if>
|
|
|
|
+ <if test="tetherId != null ">tether_id,</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>
|
|
@@ -193,6 +198,7 @@
|
|
<if test="exchange != null ">#{exchange},</if>
|
|
<if test="exchange != null ">#{exchange},</if>
|
|
<if test="grounding != null">#{grounding},</if>
|
|
<if test="grounding != null">#{grounding},</if>
|
|
<if test="cochain != null">#{cochain},</if>
|
|
<if test="cochain != null">#{cochain},</if>
|
|
|
|
+ <if test="tetherId != null">#{tetherId},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -213,6 +219,7 @@
|
|
<if test="exchange != null">exchange = #{exchange},</if>
|
|
<if test="exchange != null">exchange = #{exchange},</if>
|
|
<if test="grounding != null">grounding = #{grounding},</if>
|
|
<if test="grounding != null">grounding = #{grounding},</if>
|
|
<if test="cochain != null">cochain = #{cochain},</if>
|
|
<if test="cochain != null">cochain = #{cochain},</if>
|
|
|
|
+ <if test="tetherId != null">tether_id #{tetherId},</if>
|
|
</trim>
|
|
</trim>
|
|
where tether_id = #{tetherId}
|
|
where tether_id = #{tetherId}
|
|
</update>
|
|
</update>
|