|
|
@@ -31,6 +31,7 @@
|
|
|
<result column="release_date" jdbcType="TIMESTAMP" property="releaseDate" />
|
|
|
<result column="advertisement" jdbcType="VARCHAR" property="advertisement" />
|
|
|
<result column="keyword" jdbcType="VARCHAR" property="keyword" />
|
|
|
+ <result column="summary" jdbcType="VARCHAR" property="summary" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
|
@@ -108,7 +109,7 @@
|
|
|
-->
|
|
|
id, name, category_id, number, price, activity_price, member_price, offset, activity_flag,
|
|
|
introduce, province, city, create_time, min_img_url, max_img_url, value, apply_conditions,
|
|
|
- owner_id, is_hot, audit_status, audit_info, release_date, advertisement,keyword
|
|
|
+ owner_id, is_hot, audit_status, audit_info, release_date, advertisement,keyword,summary
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.JtBusinessProjectExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
@@ -173,7 +174,7 @@
|
|
|
create_time, min_img_url, max_img_url,
|
|
|
value, apply_conditions, owner_id,
|
|
|
is_hot, audit_status, audit_info,
|
|
|
- release_date, advertisement,keyword)
|
|
|
+ release_date, advertisement,keyword,summary)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{categoryId,jdbcType=VARCHAR},
|
|
|
#{number,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{activityPrice,jdbcType=DECIMAL},
|
|
|
#{memberPrice,jdbcType=DECIMAL}, #{offset,jdbcType=REAL}, #{activityFlag,jdbcType=INTEGER},
|
|
|
@@ -181,7 +182,7 @@
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{minImgUrl,jdbcType=VARCHAR}, #{maxImgUrl,jdbcType=VARCHAR},
|
|
|
#{value,jdbcType=VARCHAR}, #{applyConditions,jdbcType=VARCHAR}, #{ownerId,jdbcType=VARCHAR},
|
|
|
#{isHot,jdbcType=INTEGER}, #{auditStatus,jdbcType=INTEGER}, #{auditInfo,jdbcType=VARCHAR},
|
|
|
- #{releaseDate,jdbcType=TIMESTAMP}, #{advertisement,jdbcType=VARCHAR},#{keyword,jdbcType=VARCHAR})
|
|
|
+ #{releaseDate,jdbcType=TIMESTAMP}, #{advertisement,jdbcType=VARCHAR},#{keyword,jdbcType=VARCHAR},#{summary,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.JtBusinessProject">
|
|
|
<!--
|
|
|
@@ -263,6 +264,9 @@
|
|
|
<if test="keyword != null">
|
|
|
keyword,
|
|
|
</if>
|
|
|
+ <if test="summary != null">
|
|
|
+ summary,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -337,6 +341,9 @@
|
|
|
<if test="keyword != null">
|
|
|
#{keyword,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="summary != null">
|
|
|
+ #{summary,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.goafanti.common.model.JtBusinessProjectExample" resultType="java.lang.Long">
|
|
|
@@ -430,6 +437,9 @@
|
|
|
<if test="keyword !=null">
|
|
|
keyword =#{keyword,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="summary != null">
|
|
|
+ summary =#{summary,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -465,7 +475,7 @@
|
|
|
audit_info = #{record.auditInfo,jdbcType=VARCHAR},
|
|
|
release_date = #{record.releaseDate,jdbcType=TIMESTAMP},
|
|
|
advertisement = #{record.advertisement,jdbcType=VARCHAR},
|
|
|
- keyword = #{keyword,jdbcType=VARCHAR}
|
|
|
+ keyword = #{keyword,jdbcType=VARCHAR},#{summary,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
@@ -547,6 +557,9 @@
|
|
|
<if test="keyword != null">
|
|
|
keyword = #{keyword,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="summary != null">
|
|
|
+ summary = #{summary,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -579,13 +592,14 @@
|
|
|
audit_info = #{auditInfo,jdbcType=VARCHAR},
|
|
|
release_date = #{releaseDate,jdbcType=TIMESTAMP},
|
|
|
advertisement = #{advertisement,jdbcType=VARCHAR},
|
|
|
- keyword = #{keyword,jdbcType=VARCHAR}
|
|
|
+ keyword = #{keyword,jdbcType=VARCHAR},
|
|
|
+ summary =#{summary,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<select id="selectByPrimaryKeyWithModule" resultType="com.goafanti.business.bo.JtBusinessProjectResult">
|
|
|
select
|
|
|
jtbp.id, jtbp.name, jtbp.category_id as categoryId, jtbp.number, jtbp.price, jtbp.activity_price as activityPrice, jtbp.member_price as memberPrice, jtbp.offset,
|
|
|
- jtbp.activity_flag as activityFlag, u.nickname as ownerName,ifnull(p.count,0) as interestCount,if(isnull(x.project_id),0,1) as interested,jtbp.keyword,
|
|
|
+ jtbp.activity_flag as activityFlag, u.nickname as ownerName,ifnull(p.count,0) as interestCount,if(isnull(x.project_id),0,1) as interested,jtbp.keyword,jtbp.summary,
|
|
|
jtbp.introduce, jtbp.province, jtbp.city, jtbp.create_time as createTime, jtbp.min_img_url as minImgUrl, jtbp.max_img_url as maxImgUrl, jtbp.value, jtbp.apply_conditions as applyConditions,
|
|
|
jtbp.owner_id as ownerId, jtbp.is_hot as isHot, jtbp.audit_status as auditStatus, jtbp.audit_info as auditInfo, jtbp.release_date as releaseDate,jtbc.module as module,jtbp.advertisement
|
|
|
from jt_business_project jtbp left join `user` u on jtbp.owner_id=u.id
|
|
|
@@ -636,6 +650,7 @@
|
|
|
jtbp.audit_status as auditStatus,
|
|
|
jtbp.release_Date as releaseDate,
|
|
|
jtbp.advertisement,
|
|
|
+ jtbp.summary,
|
|
|
ifnull(dct.dealCount,0) as dealCount,
|
|
|
ifnull(x.count,0) as interestCount,
|
|
|
u.nickname as companyName,u.id as companyId
|