|
@@ -103,6 +103,42 @@
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
|
+ <insert id="batchInsertPoCollection" parameterType="PoCollection">
|
|
|
+ insert into po_collection (
|
|
|
+ <if test="collectionTitle != null and collectionTitle != '' ">collection_title,</if>
|
|
|
+ <if test="collectionType != null and collectionType != '' ">collection_type,</if>
|
|
|
+ <if test="status != null and status != '' ">status,</if>
|
|
|
+ <if test="remark != null and remark != ''">remark,</if>
|
|
|
+ <if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
+ <if test="publisherName != null and publisherName != ''">publisher_name,</if>
|
|
|
+ <if test="formwork != null and formwork != ''">formwork,</if>
|
|
|
+ <if test="price != null and price != ''">price,</if>
|
|
|
+ <if test="story != null and story != ''">story,</if>
|
|
|
+ <if test="grouding != null and grouding != ''">grounding,</if>
|
|
|
+ <if test="cochain != null and cochain != ''">cochain,</if>
|
|
|
+ <if test="tetherId != null and tetherId != ''">tether_id,</if>
|
|
|
+ del_flag,
|
|
|
+ create_time
|
|
|
+ )values(
|
|
|
+ <foreach collection="collections" item="PoCollection" separator=",">
|
|
|
+ <if test="collectionTitle != null and collectionTitle != ''">#{collectionTitle},</if>
|
|
|
+ <if test="collectionType != null and collectionType != ''">#{collectionType},</if>
|
|
|
+ <if test="status != null and status != ''">#{status},</if>
|
|
|
+ <if test="remark != null and remark != ''">#{remark},</if>
|
|
|
+ <if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
+ <if test="publisherName != null and publisherName != ''">#{publisherName},</if>
|
|
|
+ <if test="formwork != null and formwork != ''">#{formwork},</if>
|
|
|
+ <if test="price != null and price != ''">#{price},</if>
|
|
|
+ <if test="story != null and story != ''">#{story},</if>
|
|
|
+ <if test="grouding != null and grouding != ''">#{grounding},</if>
|
|
|
+ <if test="cochain != null and cochain != ''">#{cochain},</if>
|
|
|
+ <if test="tetherId != null and tetherId != ''">#{tetherId},</if>
|
|
|
+ 0,
|
|
|
+ sysdate()
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+
|
|
|
<update id="updatePoCollection" parameterType="PoCollection">
|
|
|
update po_collection
|
|
|
<set>
|