|
|
@@ -2,11 +2,6 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.goafanti.common.dao.BusinessProjectMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.goafanti.common.model.BusinessProject">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Dec 05 10:07:00 CST 2019.
|
|
|
- -->
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
<result column="create_id" jdbcType="VARCHAR" property="createId" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
@@ -34,152 +29,35 @@
|
|
|
<result column="boutique" jdbcType="INTEGER" property="boutique" />
|
|
|
<result column="first_payment" jdbcType="DECIMAL" property="firstPayment" />
|
|
|
<result column="type" jdbcType="INTEGER" property="type" />
|
|
|
+ <result column="patent_transfer" jdbcType="INTEGER" property="patentTransfer" />
|
|
|
</resultMap>
|
|
|
- <sql id="Example_Where_Clause">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Dec 05 10:07:00 CST 2019.
|
|
|
- -->
|
|
|
- <where>
|
|
|
- <foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
- <if test="criteria.valid">
|
|
|
- <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
- <foreach collection="criteria.criteria" item="criterion">
|
|
|
- <choose>
|
|
|
- <when test="criterion.noValue">
|
|
|
- and ${criterion.condition}
|
|
|
- </when>
|
|
|
- <when test="criterion.singleValue">
|
|
|
- and ${criterion.condition} #{criterion.value}
|
|
|
- </when>
|
|
|
- <when test="criterion.betweenValue">
|
|
|
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
- </when>
|
|
|
- <when test="criterion.listValue">
|
|
|
- and ${criterion.condition}
|
|
|
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
- #{listItem}
|
|
|
- </foreach>
|
|
|
- </when>
|
|
|
- </choose>
|
|
|
- </foreach>
|
|
|
- </trim>
|
|
|
- </if>
|
|
|
- </foreach>
|
|
|
- </where>
|
|
|
- </sql>
|
|
|
- <sql id="Update_By_Example_Where_Clause">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Dec 05 10:07:00 CST 2019.
|
|
|
- -->
|
|
|
- <where>
|
|
|
- <foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
- <if test="criteria.valid">
|
|
|
- <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
- <foreach collection="criteria.criteria" item="criterion">
|
|
|
- <choose>
|
|
|
- <when test="criterion.noValue">
|
|
|
- and ${criterion.condition}
|
|
|
- </when>
|
|
|
- <when test="criterion.singleValue">
|
|
|
- and ${criterion.condition} #{criterion.value}
|
|
|
- </when>
|
|
|
- <when test="criterion.betweenValue">
|
|
|
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
- </when>
|
|
|
- <when test="criterion.listValue">
|
|
|
- and ${criterion.condition}
|
|
|
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
- #{listItem}
|
|
|
- </foreach>
|
|
|
- </when>
|
|
|
- </choose>
|
|
|
- </foreach>
|
|
|
- </trim>
|
|
|
- </if>
|
|
|
- </foreach>
|
|
|
- </where>
|
|
|
- </sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Dec 05 10:07:00 CST 2019.
|
|
|
- -->
|
|
|
- id, create_id, create_time, update_time, delete_sign, bname, cid, price, offset,
|
|
|
- activity_price, activity_flag, member_price, introduce, status, country, province,
|
|
|
+ id, create_id, create_time, update_time, delete_sign, bname, cid, price, `offset`,
|
|
|
+ activity_price, activity_flag, member_price, introduce, `status`, country, province,
|
|
|
city, district, principal_id, Value_effect, client_size, min_logo, max_logo, project_url,
|
|
|
- boutique, first_payment, type
|
|
|
+ boutique, first_payment, `type`, patent_transfer
|
|
|
</sql>
|
|
|
- <select id="selectByExample" parameterType="com.goafanti.common.model.BusinessProjectExample" resultMap="BaseResultMap">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Dec 05 10:07:00 CST 2019.
|
|
|
- -->
|
|
|
- select
|
|
|
- <if test="distinct">
|
|
|
- distinct
|
|
|
- </if>
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from business_project
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- <if test="orderByClause != null">
|
|
|
- order by ${orderByClause}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Dec 05 10:07:00 CST 2019.
|
|
|
- -->
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from business_project
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Dec 05 10:07:00 CST 2019.
|
|
|
- -->
|
|
|
delete from business_project
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
- <delete id="deleteByExample" parameterType="com.goafanti.common.model.BusinessProjectExample">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Dec 05 10:07:00 CST 2019.
|
|
|
- -->
|
|
|
- delete from business_project
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </delete>
|
|
|
<insert id="insert" parameterType="com.goafanti.common.model.BusinessProject">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Dec 05 10:07:00 CST 2019.
|
|
|
- -->
|
|
|
insert into business_project (id, create_id, create_time,
|
|
|
update_time, delete_sign, bname,
|
|
|
- cid, price, offset,
|
|
|
+ cid, price, `offset`,
|
|
|
activity_price, activity_flag, member_price,
|
|
|
- introduce, status, country,
|
|
|
+ introduce, `status`, country,
|
|
|
province, city, district,
|
|
|
principal_id, Value_effect, client_size,
|
|
|
min_logo, max_logo, project_url,
|
|
|
- boutique, first_payment, type
|
|
|
- )
|
|
|
+ boutique, first_payment, `type`,
|
|
|
+ patent_transfer)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{createId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{deleteSign,jdbcType=INTEGER}, #{bname,jdbcType=VARCHAR},
|
|
|
#{cid,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{offset,jdbcType=DECIMAL},
|
|
|
@@ -188,15 +66,10 @@
|
|
|
#{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{district,jdbcType=VARCHAR},
|
|
|
#{principalId,jdbcType=VARCHAR}, #{valueEffect,jdbcType=VARCHAR}, #{clientSize,jdbcType=VARCHAR},
|
|
|
#{minLogo,jdbcType=VARCHAR}, #{maxLogo,jdbcType=VARCHAR}, #{projectUrl,jdbcType=VARCHAR},
|
|
|
- #{boutique,jdbcType=INTEGER}, #{firstPayment,jdbcType=DECIMAL}, #{type,jdbcType=INTEGER}
|
|
|
- )
|
|
|
+ #{boutique,jdbcType=INTEGER}, #{firstPayment,jdbcType=DECIMAL}, #{type,jdbcType=INTEGER},
|
|
|
+ #{patentTransfer,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.BusinessProject">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Dec 05 10:07:00 CST 2019.
|
|
|
- -->
|
|
|
insert into business_project
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -224,7 +97,7 @@
|
|
|
price,
|
|
|
</if>
|
|
|
<if test="offset != null">
|
|
|
- offset,
|
|
|
+ `offset`,
|
|
|
</if>
|
|
|
<if test="activityPrice != null">
|
|
|
activity_price,
|
|
|
@@ -239,7 +112,7 @@
|
|
|
introduce,
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
- status,
|
|
|
+ `status`,
|
|
|
</if>
|
|
|
<if test="country != null">
|
|
|
country,
|
|
|
@@ -278,7 +151,10 @@
|
|
|
first_payment,
|
|
|
</if>
|
|
|
<if test="type != null">
|
|
|
- type,
|
|
|
+ `type`,
|
|
|
+ </if>
|
|
|
+ <if test="patentTransfer != null">
|
|
|
+ patent_transfer,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
@@ -363,157 +239,12 @@
|
|
|
<if test="type != null">
|
|
|
#{type,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="patentTransfer != null">
|
|
|
+ #{patentTransfer,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
- <select id="countByExample" parameterType="com.goafanti.common.model.BusinessProjectExample" resultType="java.lang.Long">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Dec 05 10:07:00 CST 2019.
|
|
|
- -->
|
|
|
- select count(*) from business_project
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </select>
|
|
|
- <update id="updateByExampleSelective" parameterType="map">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Dec 05 10:07:00 CST 2019.
|
|
|
- -->
|
|
|
- update business_project
|
|
|
- <set>
|
|
|
- <if test="record.id != null">
|
|
|
- id = #{record.id,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.createId != null">
|
|
|
- create_id = #{record.createId,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.createTime != null">
|
|
|
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="record.updateTime != null">
|
|
|
- update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="record.deleteSign != null">
|
|
|
- delete_sign = #{record.deleteSign,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="record.bname != null">
|
|
|
- bname = #{record.bname,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.cid != null">
|
|
|
- cid = #{record.cid,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.price != null">
|
|
|
- price = #{record.price,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="record.offset != null">
|
|
|
- offset = #{record.offset,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="record.activityPrice != null">
|
|
|
- activity_price = #{record.activityPrice,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="record.activityFlag != null">
|
|
|
- activity_flag = #{record.activityFlag,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.memberPrice != null">
|
|
|
- member_price = #{record.memberPrice,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="record.introduce != null">
|
|
|
- introduce = #{record.introduce,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.status != null">
|
|
|
- status = #{record.status,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.country != null">
|
|
|
- country = #{record.country,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.province != null">
|
|
|
- province = #{record.province,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.city != null">
|
|
|
- city = #{record.city,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.district != null">
|
|
|
- district = #{record.district,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.principalId != null">
|
|
|
- principal_id = #{record.principalId,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.valueEffect != null">
|
|
|
- Value_effect = #{record.valueEffect,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.clientSize != null">
|
|
|
- client_size = #{record.clientSize,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.minLogo != null">
|
|
|
- min_logo = #{record.minLogo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.maxLogo != null">
|
|
|
- max_logo = #{record.maxLogo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.projectUrl != null">
|
|
|
- project_url = #{record.projectUrl,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.boutique != null">
|
|
|
- boutique = #{record.boutique,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="record.firstPayment != null">
|
|
|
- first_payment = #{record.firstPayment,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="record.type != null">
|
|
|
- type = #{record.type,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </update>
|
|
|
- <update id="updateByExample" parameterType="map">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Dec 05 10:07:00 CST 2019.
|
|
|
- -->
|
|
|
- update business_project
|
|
|
- set id = #{record.id,jdbcType=VARCHAR},
|
|
|
- create_id = #{record.createId,jdbcType=VARCHAR},
|
|
|
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
- update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
- delete_sign = #{record.deleteSign,jdbcType=INTEGER},
|
|
|
- bname = #{record.bname,jdbcType=VARCHAR},
|
|
|
- cid = #{record.cid,jdbcType=VARCHAR},
|
|
|
- price = #{record.price,jdbcType=DECIMAL},
|
|
|
- offset = #{record.offset,jdbcType=DECIMAL},
|
|
|
- activity_price = #{record.activityPrice,jdbcType=DECIMAL},
|
|
|
- activity_flag = #{record.activityFlag,jdbcType=VARCHAR},
|
|
|
- member_price = #{record.memberPrice,jdbcType=DECIMAL},
|
|
|
- introduce = #{record.introduce,jdbcType=VARCHAR},
|
|
|
- status = #{record.status,jdbcType=VARCHAR},
|
|
|
- country = #{record.country,jdbcType=VARCHAR},
|
|
|
- province = #{record.province,jdbcType=VARCHAR},
|
|
|
- city = #{record.city,jdbcType=VARCHAR},
|
|
|
- district = #{record.district,jdbcType=VARCHAR},
|
|
|
- principal_id = #{record.principalId,jdbcType=VARCHAR},
|
|
|
- Value_effect = #{record.valueEffect,jdbcType=VARCHAR},
|
|
|
- client_size = #{record.clientSize,jdbcType=VARCHAR},
|
|
|
- min_logo = #{record.minLogo,jdbcType=VARCHAR},
|
|
|
- max_logo = #{record.maxLogo,jdbcType=VARCHAR},
|
|
|
- project_url = #{record.projectUrl,jdbcType=VARCHAR},
|
|
|
- boutique = #{record.boutique,jdbcType=INTEGER},
|
|
|
- first_payment = #{record.firstPayment,jdbcType=DECIMAL},
|
|
|
- type = #{record.type,jdbcType=INTEGER}
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.BusinessProject">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Dec 05 10:07:00 CST 2019.
|
|
|
- -->
|
|
|
update business_project
|
|
|
<set>
|
|
|
<if test="createId != null">
|
|
|
@@ -538,7 +269,7 @@
|
|
|
price = #{price,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="offset != null">
|
|
|
- offset = #{offset,jdbcType=DECIMAL},
|
|
|
+ `offset` = #{offset,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="activityPrice != null">
|
|
|
activity_price = #{activityPrice,jdbcType=DECIMAL},
|
|
|
@@ -553,7 +284,7 @@
|
|
|
introduce = #{introduce,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
- status = #{status,jdbcType=VARCHAR},
|
|
|
+ `status` = #{status,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="country != null">
|
|
|
country = #{country,jdbcType=VARCHAR},
|
|
|
@@ -592,17 +323,15 @@
|
|
|
first_payment = #{firstPayment,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="type != null">
|
|
|
- type = #{type,jdbcType=INTEGER},
|
|
|
+ `type` = #{type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="patentTransfer != null">
|
|
|
+ patent_transfer = #{patentTransfer,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.BusinessProject">
|
|
|
- <!--
|
|
|
- WARNING - @mbg.generated
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Thu Dec 05 10:07:00 CST 2019.
|
|
|
- -->
|
|
|
update business_project
|
|
|
set create_id = #{createId,jdbcType=VARCHAR},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
@@ -611,12 +340,12 @@
|
|
|
bname = #{bname,jdbcType=VARCHAR},
|
|
|
cid = #{cid,jdbcType=VARCHAR},
|
|
|
price = #{price,jdbcType=DECIMAL},
|
|
|
- offset = #{offset,jdbcType=DECIMAL},
|
|
|
+ `offset` = #{offset,jdbcType=DECIMAL},
|
|
|
activity_price = #{activityPrice,jdbcType=DECIMAL},
|
|
|
activity_flag = #{activityFlag,jdbcType=VARCHAR},
|
|
|
member_price = #{memberPrice,jdbcType=DECIMAL},
|
|
|
introduce = #{introduce,jdbcType=VARCHAR},
|
|
|
- status = #{status,jdbcType=VARCHAR},
|
|
|
+ `status` = #{status,jdbcType=VARCHAR},
|
|
|
country = #{country,jdbcType=VARCHAR},
|
|
|
province = #{province,jdbcType=VARCHAR},
|
|
|
city = #{city,jdbcType=VARCHAR},
|
|
|
@@ -629,18 +358,19 @@
|
|
|
project_url = #{projectUrl,jdbcType=VARCHAR},
|
|
|
boutique = #{boutique,jdbcType=INTEGER},
|
|
|
first_payment = #{firstPayment,jdbcType=DECIMAL},
|
|
|
- type = #{type,jdbcType=INTEGER}
|
|
|
+ `type` = #{type,jdbcType=INTEGER},
|
|
|
+ patent_transfer = #{patentTransfer,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
<select id="findProjectListByPage" resultType="com.goafanti.business.bo.BusinessProjectBo">
|
|
|
select b.id, b.create_id as createId, b.create_time as createTime, b.update_time as updateTime, b.delete_sign deleteSign, b.bname,
|
|
|
- b.cid, b.price, b.offset, b.activity_price as activityPrice, b.activity_flag as activityFlag, b.member_price as memberPrice,
|
|
|
+ b.cid, b.price, b.offset, b.activity_price as activityPrice, b.activity_flag as activityFlag, b.member_price as memberPrice,
|
|
|
b.introduce, b.status, b.country, b.province, b.city, b.district, b.type,
|
|
|
- b.principal_id as principalId, b.Value_effect as ValueEffect, b.client_size as clientSize,b2.cname
|
|
|
+ b.principal_id as principalId, b.Value_effect as ValueEffect, b.client_size as clientSize,b2.cname
|
|
|
from business_project b
|
|
|
left join business_category b2 on b.cid = b2.id
|
|
|
- where b.delete_sign=0
|
|
|
+ where b.delete_sign=0
|
|
|
<if test="bname != null">
|
|
|
and b.bname like concat('%',#{bname},'%')
|
|
|
</if>
|
|
|
@@ -673,11 +403,11 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
<select id="findProjectListCount" resultType="Integer">
|
|
|
- select
|
|
|
+ select
|
|
|
count(0)
|
|
|
from business_project b
|
|
|
left join business_category b2 on b.cid = b2.id
|
|
|
- where b.delete_sign=0
|
|
|
+ where b.delete_sign=0
|
|
|
<if test="bname != null">
|
|
|
and b.bname = #{bname,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
@@ -706,46 +436,46 @@
|
|
|
and b.type = #{type,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="getBnamecount" resultType="Integer">
|
|
|
- select
|
|
|
+ select
|
|
|
count(0)
|
|
|
from business_project
|
|
|
where delete_sign=0
|
|
|
and bname = #{bname,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="getCreateName" resultType="string">
|
|
|
- select
|
|
|
+ select
|
|
|
name
|
|
|
from admin
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
-
|
|
|
+
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="findProjectSizeListByPage" resultType="com.goafanti.business.bo.ProjectSizeBo">
|
|
|
- select
|
|
|
- p.id, p.create_id as createId, p.create_time as createTime, p.update_time as updateTime, p.pid, p.pname, p.price, p.offset, p.activity_price as activityPrice,
|
|
|
+ select
|
|
|
+ p.id, p.create_id as createId, p.create_time as createTime, p.update_time as updateTime, p.pid, p.pname, p.price, p.offset, p.activity_price as activityPrice,
|
|
|
p.activity_flag as activityFlag, p.member_price as memberPrice, p.status,b.bname
|
|
|
from business_project_model p
|
|
|
- left join business_project b on p.pid =b.id
|
|
|
+ left join business_project b on p.pid =b.id
|
|
|
where p.pid = #{pid,jdbcType=VARCHAR}
|
|
|
<if test="page_sql!=null">
|
|
|
${page_sql}
|
|
|
</if>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="findProjectSizeListCount" resultType="Integer">
|
|
|
- select
|
|
|
+ select
|
|
|
count(0)
|
|
|
from business_project_model p
|
|
|
- left join business_project b on p.pid =b.id
|
|
|
+ left join business_project b on p.pid =b.id
|
|
|
where p.pid = #{pid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectByPrimaryBname" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
-
|
|
|
- select
|
|
|
+
|
|
|
+ select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from business_project
|
|
|
where delete_sign=0 and status=0
|
|
|
@@ -754,9 +484,9 @@
|
|
|
<select id="getBusinessProject" resultType="com.goafanti.app.bo.ProjectBo">
|
|
|
select id,bname as name,min_logo as minLogoUrl,introduce,project_url as projectUrl
|
|
|
from business_project
|
|
|
- where delete_sign=0
|
|
|
+ where delete_sign=0
|
|
|
and status=0
|
|
|
- <if test="id != null">
|
|
|
+ <if test="id != null">
|
|
|
and cid=#{id,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
<if test="page_sql!=null">
|
|
|
@@ -764,24 +494,24 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
<select id="getBusinessProjectCount" resultType="Integer">
|
|
|
- select
|
|
|
+ select
|
|
|
count(0)
|
|
|
from business_project
|
|
|
- where delete_sign=0
|
|
|
+ where delete_sign=0
|
|
|
and status=0
|
|
|
- <if test="id != null">
|
|
|
+ <if test="id != null">
|
|
|
and cid=#{id,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
</select>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
<select id="findRecommendProjectListByPage" resultType="com.goafanti.app.bo.ProjectBo">
|
|
|
select b.id,b.bname as name,b.min_logo as minLogoUrl,b.introduce,b.boutique,
|
|
|
ifnull(t.interestCount,0) as interestCount,project_url as projectUrl
|
|
|
from business_project b
|
|
|
- left join (select count(0) as interestCount ,project_id from project_interest
|
|
|
+ left join (select count(0) as interestCount ,project_id from project_interest
|
|
|
group by project_id) t on b.id=t.project_id
|
|
|
- where b.delete_sign=0
|
|
|
+ where b.delete_sign=0
|
|
|
and b.status=0
|
|
|
and boutique=1
|
|
|
order by b.boutique desc
|
|
|
@@ -790,47 +520,48 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
<select id="findRecommendProjectListCount" resultType="Integer">
|
|
|
- select
|
|
|
+ select
|
|
|
count(0)
|
|
|
from business_project b
|
|
|
- left join (select count(0) as interestCount ,project_id from project_interest
|
|
|
+ left join (select count(0) as interestCount ,project_id from project_interest
|
|
|
group by project_id) t on b.id=t.project_id
|
|
|
- where b.delete_sign=0
|
|
|
+ where b.delete_sign=0
|
|
|
and b.status=0
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectAppProjectDetail" resultType="com.goafanti.app.bo.ProjectDetailBo">
|
|
|
select p.id,p.bname as name,p.introduce ,p.Value_effect as valueEffect ,p.client_size as clientSize,
|
|
|
p.max_logo as maxLogo,ifnull(count(p.id),0) as countInterest
|
|
|
from business_project p
|
|
|
- left join project_interest pt on pt.project_id=p.id
|
|
|
+ left join project_interest pt on pt.project_id=p.id
|
|
|
where p.id=#{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="checkProject" resultType="Integer">
|
|
|
select count(0) from business_project
|
|
|
where cid=#{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectBusinessProjectByName" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
- select id,bname,ifnull(price,0) as price,ifnull(first_payment,0) as firstPayment,type from business_project
|
|
|
+ select id,bname,ifnull(price,0) as price,ifnull(first_payment,0) as firstPayment,type ,patent_transfer patentTransfer
|
|
|
+ from business_project
|
|
|
where 1=1
|
|
|
<if test="cid != null">
|
|
|
and cid = #{cid,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
and bname like concat('%',#{businessName},'%') and delete_sign=0 and status=0
|
|
|
</select>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
<select id="getPortalBusinessProject" resultType="com.goafanti.app.bo.ProjectBo">
|
|
|
- select id ,min_logo as minLogoUrl,bname as name
|
|
|
+ select id ,min_logo as minLogoUrl,bname as name
|
|
|
from business_project
|
|
|
- where delete_sign=0
|
|
|
+ where delete_sign=0
|
|
|
and status=0
|
|
|
- and boutique=1
|
|
|
- LIMIT 0, 3
|
|
|
+ and boutique=1
|
|
|
+ LIMIT 0, 3
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectBusinessProjectCatalog" resultType="com.goafanti.common.model.BusinessCategory">
|
|
|
select id,cname from business_category where delete_sign=0
|
|
|
</select>
|