|
@@ -24,28 +24,31 @@
|
|
<result property="cochain" column="cochain" />
|
|
<result property="cochain" column="cochain" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
- <resultMap type="PoTetherandcollection" id="PoTetherandcollectionResult">
|
|
|
|
- <result property="collectionId" column="collection_id" />
|
|
|
|
- <result property="collectionTitle" column="collection_title" />
|
|
|
|
- <result property="status" column="status" />
|
|
|
|
- <result property="collectionType" column="collection_type" />
|
|
|
|
- <result property="createTime" column="create_time" />
|
|
|
|
- <result property="createBy" column="create_by" />
|
|
|
|
- <result property="updateTime" column="update_time" />
|
|
|
|
- <result property="updateBy" column="update_by" />
|
|
|
|
- <result property="delFlag" column="del_flag" />
|
|
|
|
- <result property="total" column="total" />
|
|
|
|
- <result property="remark" column="remark" />
|
|
|
|
- <result property="image" column="image" />
|
|
|
|
- <result property="formwork" column="formwork" />
|
|
|
|
- <result property="price" column="price" />
|
|
|
|
- <result property="publisherName" column="publisher_name" />
|
|
|
|
- <result property="story" column="story" />
|
|
|
|
- <result property="grounding" column="grounding" />
|
|
|
|
- <result property="cochain" column="cochain" />
|
|
|
|
- <result property="tetherId" column="tether_id" />
|
|
|
|
|
|
+ <resultMap type="PoCollection" id="PoCollectionResult">
|
|
|
|
+ <result property="collectionId" column="collection_id"/>
|
|
|
|
+ <result property="tetherId" column="tether_id"/>
|
|
|
|
+ <result property="collectionTitle" column="collection_title"/>
|
|
|
|
+ <result property="publisherName" column="publisher_name"/>
|
|
|
|
+ <result property="status" column="status"/>
|
|
|
|
+ <result property="collectionType" column="collection_type"/>
|
|
|
|
+ <result property="colTotal" column="total"/>
|
|
|
|
+ <result property="colCount" column="count"/>
|
|
|
|
+ <result property="createBy" column="create_by"/>
|
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
|
+ <result property="updateBy" column="update_by"/>
|
|
|
|
+ <result property="updateTime" column="update_time"/>
|
|
|
|
+ <result property="showStart" column="show_start"/>
|
|
|
|
+ <result property="showEnd" column="show_end"/>
|
|
|
|
+ <result property="colImage" column="image"/>
|
|
|
|
+ <result property="formWork" column="form_work"/>
|
|
|
|
+ <result property="colPrice" column="price"/>
|
|
|
|
+ <result property="colStory" column="story"/>
|
|
|
|
+ <result property="colGrounding" column="grounding"/>
|
|
|
|
+ <result property="colCochain" column="cochain"/>
|
|
|
|
+ <result property="remark" column="remark"/>
|
|
|
|
+ <result property="delFlag" column="del_flag"/>
|
|
|
|
+ <result property="soldOut" column="sold_out"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
-
|
|
|
|
<sql id="selectPoTetherVo">
|
|
<sql id="selectPoTetherVo">
|
|
select tether_id, tether_name, show_time_start, show_time_end, create_by, create_time, update_by, update_time, total, status, remark ,sell_status,del_flag,image,exchange ,grounding,cochain ,tether_id from po_tether
|
|
select tether_id, tether_name, show_time_start, show_time_end, 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>
|
|
@@ -145,9 +148,9 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 根据套系id 查询对应藏品按钮里面的藏品信息-->
|
|
<!-- 根据套系id 查询对应藏品按钮里面的藏品信息-->
|
|
- <select id="selectPoCollectionListById" resultMap="PoTetherandcollectionResult" >
|
|
|
|
|
|
+ <select id="selectPoCollectionListById" resultMap="PoCollectionResult" >
|
|
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 ,c.tether_id from po_Tetherandcollection c
|
|
|
|
|
|
+ , c.total , c.status , c.price , c.story , c.grounding , c.cochain ,c.tether_id from po_collection 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>
|
|
@@ -281,8 +284,8 @@
|
|
UPDATE po_tether INNER JOIN (
|
|
UPDATE po_tether INNER JOIN (
|
|
SELECT
|
|
SELECT
|
|
po_tether.tether_id,
|
|
po_tether.tether_id,
|
|
- ( SELECT COUNT( po_Tetherandcollection.tether_id )
|
|
|
|
- FROM po_Tetherandcollection WHERE po_tether.tether_id = po_Tetherandcollection.tether_id ) AS total
|
|
|
|
|
|
+ ( SELECT COUNT( po_collection.tether_id )
|
|
|
|
+ FROM po_collection WHERE po_tether.tether_id = po_collection.tether_id ) AS total
|
|
FROM
|
|
FROM
|
|
po_tether
|
|
po_tether
|
|
) a
|
|
) a
|