|
|
@@ -1157,7 +1157,7 @@
|
|
|
name, keyword, category,
|
|
|
owner_name, owner_type, owner_id_number,
|
|
|
owner_mobile, owner_email, owner_postal_address,
|
|
|
- cooperation_mode, introduction
|
|
|
+ cooperation_mode, introduction, tech_broker_id
|
|
|
)
|
|
|
values
|
|
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
|
@@ -1167,7 +1167,7 @@
|
|
|
#{item.name,jdbcType=VARCHAR}, #{item.keyword,jdbcType=VARCHAR}, #{item.category,jdbcType=INTEGER},
|
|
|
#{item.ownerName,jdbcType=VARCHAR}, #{item.ownerType,jdbcType=VARCHAR}, #{item.ownerIdNumber,jdbcType=VARCHAR},
|
|
|
#{item.ownerMobile,jdbcType=VARCHAR}, #{item.ownerEmail,jdbcType=VARCHAR}, #{item.ownerPostalAddress,jdbcType=VARCHAR},
|
|
|
- #{item.cooperationMode,jdbcType=INTEGER}, #{item.introduction,jdbcType=LONGVARCHAR}
|
|
|
+ #{item.cooperationMode,jdbcType=INTEGER}, #{item.introduction,jdbcType=LONGVARCHAR},#{item.techBrokerId,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
@@ -1649,6 +1649,50 @@
|
|
|
</if>
|
|
|
order by a.release_date desc limit 0,4
|
|
|
</select>
|
|
|
+ <select id="findBusinessVarietiesListByPage" parameterType="String" resultType="com.goafanti.achievement.bo.BusinessBo">
|
|
|
+ select
|
|
|
+ b.id,b.create_id,b.create_time,b.update_time,b.delete_sign,b.cid,
|
|
|
+ b.cname,b.super_id,b.super_id,b.layer,b.status,b2.cname
|
|
|
+ from business_varieties b
|
|
|
+ LEFT JOIN business_varieties b2 on b.super_id = b2.id
|
|
|
+ where b.deleted_sign= 1
|
|
|
+ <if test="cname != null">
|
|
|
+ and b.cname= #{cname,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="super_id != null">
|
|
|
+ and b.super_id= #{super_id,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="layer != null">
|
|
|
+ and layer= #{layer,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ and status= #{status,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ order by b.id desc
|
|
|
+ <if test="page_sql!=null">
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
|
|
|
+ <select id="findBusinessVarietiesListByPage" parameterType="String" resultType="com.goafanti.achievement.bo.BusinessBo">
|
|
|
+ select
|
|
|
+ count(distinct(c.id))
|
|
|
+ from business_varieties b
|
|
|
+ LEFT JOIN business_varieties b2 on b.super_id = b2.id
|
|
|
+ where b.deleted_sign= 1
|
|
|
+ <if test="cname != null">
|
|
|
+ and b.cname= #{cname,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="super_id != null">
|
|
|
+ and b.super_id= #{super_id,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="layer != null">
|
|
|
+ and layer= #{layer,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ and status= #{status,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|