|
|
@@ -57,6 +57,7 @@
|
|
|
<result column="country_name_zh" jdbcType="VARCHAR" property="countryNameZh" />
|
|
|
<result column="international_flag" jdbcType="INTEGER" property="internationalFlag" />
|
|
|
<result column="jmrh_flag" jdbcType="INTEGER" property="jmrhFlag" />
|
|
|
+ <result column="boutique" jdbcType="INTEGER" property="boutique" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, serial_number, data_category, name, keyword, category, summary, introduction,
|
|
|
@@ -67,7 +68,7 @@
|
|
|
team_des, parameter, tech_plan_url, business_plan_url, org_id, org_name, org_address,
|
|
|
org_email, org_contacts, org_contacts_mobile, contacts, manager_id, salesman_id,
|
|
|
status, create_time, release_status, release_date, deleted_sign, audit_status, tech_broker_id,
|
|
|
- country_name_zh,international_flag,jmrh_flag
|
|
|
+ country_name_zh,international_flag,jmrh_flag,boutique
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -97,7 +98,7 @@
|
|
|
manager_id, salesman_id, status,
|
|
|
create_time, release_status, release_date,
|
|
|
deleted_sign, audit_status, tech_broker_id,
|
|
|
- country_name_zh,international_flag,jmrh_flag)
|
|
|
+ country_name_zh,international_flag,jmrh_flag,boutique)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{dataCategory,jdbcType=INTEGER},
|
|
|
#{name,jdbcType=VARCHAR}, #{keyword,jdbcType=VARCHAR}, #{category,jdbcType=INTEGER},
|
|
|
#{summary,jdbcType=VARCHAR}, #{introduction,jdbcType=VARCHAR}, #{technicalPictureUrl,jdbcType=VARCHAR},
|
|
|
@@ -115,7 +116,7 @@
|
|
|
#{managerId,jdbcType=VARCHAR}, #{salesmanId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{releaseStatus,jdbcType=INTEGER}, #{releaseDate,jdbcType=TIMESTAMP},
|
|
|
#{deletedSign,jdbcType=INTEGER}, #{auditStatus,jdbcType=INTEGER}, #{techBrokerId,jdbcType=VARCHAR},
|
|
|
- #{countryNameZh,jdbcType=VARCHAR}, #{internationalFlag,jdbcType=INTEGER},#{jmrhFlag,jdbcType=INTEGER})
|
|
|
+ #{countryNameZh,jdbcType=VARCHAR}, #{internationalFlag,jdbcType=INTEGER},#{jmrhFlag,jdbcType=INTEGER},#{boutique,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Achievement">
|
|
|
insert into achievement
|
|
|
@@ -285,6 +286,9 @@
|
|
|
<if test="jmrhFlag != null">
|
|
|
jmrh_flag,
|
|
|
</if>
|
|
|
+ <if test="boutique !=null">
|
|
|
+ boutique,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -452,6 +456,9 @@
|
|
|
<if test="jmrhFlag != null">
|
|
|
#{jmrhFlag,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="boutique != null">
|
|
|
+ #{boutique,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Achievement">
|
|
|
@@ -619,6 +626,9 @@
|
|
|
<if test="jmrhFlag != null">
|
|
|
jmrh_flag = #{jmrhFlag,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="boutique != null">
|
|
|
+ boutique = #{boutique,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -677,7 +687,8 @@
|
|
|
tech_broker_id = #{techBrokerId,jdbcType=VARCHAR},
|
|
|
country_name_zh = #{countryNameZh,jdbcType=VARCHAR},
|
|
|
international_flag = #{internationalFlag,jdbcType=INTEGER},
|
|
|
- jmrh_flag = #{jmrhFlag,jdbcType=INTEGER}
|
|
|
+ jmrh_flag = #{jmrhFlag,jdbcType=INTEGER},
|
|
|
+ boutique = #{boutique,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
@@ -791,7 +802,7 @@
|
|
|
a.id, a.serial_number as serialNumber, a.data_category as dataCategory,
|
|
|
a.name, a.keyword, a.category, a.owner_name as ownerName, a.owner_type as ownerType,
|
|
|
oi.unit_name as username, a.owner_id as ownerId, a.org_id as orgId, a.contacts,
|
|
|
- a.release_date as releaseDate, a.audit_status as auditStatus, ad.name as techBrokerId
|
|
|
+ a.release_date as releaseDate, a.audit_status as auditStatus, ad.name as techBrokerId,a.boutique
|
|
|
from achievement a
|
|
|
LEFT JOIN admin ad on ad.id = a.tech_broker_id
|
|
|
LEFT JOIN organization_identity oi on a.owner_id = oi.uid
|
|
|
@@ -1030,7 +1041,7 @@
|
|
|
a.create_time as createTime, a.release_status as releaseStatus,
|
|
|
a.release_date as releaseDate, a.audit_status as auditStatus, a.tech_broker_id as techBrokerId,
|
|
|
oi.unit_name as iOwnerName, oi.postal_address as iOwnerPostalAddress, u.email as iOwnerEmail,
|
|
|
- oi.org_code as iOwnerIdNumber, u.mobile as iOwnerMobile,a.jmrh_flag as jmrhFlag
|
|
|
+ oi.org_code as iOwnerIdNumber, u.mobile as iOwnerMobile,a.jmrh_flag as jmrhFlag , a.boutique as boutique
|
|
|
from achievement a
|
|
|
left join organization_identity oi on a.owner_id = oi.uid
|
|
|
left join user u on u.id = a.owner_id
|
|
|
@@ -1061,7 +1072,7 @@
|
|
|
|
|
|
<select id="findSearchAchievementListByPage" parameterType="String" resultType="com.goafanti.portal.bo.AchievementSearchListBo">
|
|
|
select
|
|
|
- a.id, a.name, a.keyword,
|
|
|
+ a.id, a.name, a.keyword,a.technical_picture_url,
|
|
|
a.serial_number as serialNumber, a.data_category as dataCategory, a.category,
|
|
|
a.release_date as releaseDate, a.owner_type as ownerType,
|
|
|
a.owner_name as ownerName,
|
|
|
@@ -1071,12 +1082,18 @@
|
|
|
from achievement a
|
|
|
left join user u on u.id = a.owner_id
|
|
|
where a.deleted_sign = 0
|
|
|
+ and fieldA = #{fieldA,jdbcType=INTEGER}
|
|
|
+ and dataCategory = #{dataCategory,jdbcType=INTEGER}
|
|
|
+ and category = #{category,jdbcType=INTEGER}
|
|
|
<if test="keyword != null">
|
|
|
and a.keyword like "%"#{keyword,jdbcType=VARCHAR}"%"
|
|
|
</if>
|
|
|
<if test="category != null">
|
|
|
and a.category = #{category,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
+ <if test="dataCategory != null">
|
|
|
+ and a.dataCategory = #{dataCategory,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
<if test="bargainingMode != null">
|
|
|
and a.bargaining_mode = #{bargainingMode,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
@@ -1426,4 +1443,50 @@
|
|
|
a.create_time asc
|
|
|
limit 5;
|
|
|
</select>
|
|
|
+ <select id="findBoutiqueListByPage" parameterType="java.lang.String" resultType="com.goafanti.portal.bo.BoutiqueListBo">
|
|
|
+ select
|
|
|
+ a.id ,
|
|
|
+ a.name,
|
|
|
+ a.transfer_price as price,
|
|
|
+ a.summary as sketch,
|
|
|
+ a.technical_picture_url as pictureUrl,
|
|
|
+ b.name as industryCatalog,
|
|
|
+ a.owner_name as personName
|
|
|
+ from
|
|
|
+ achievement a
|
|
|
+ left join
|
|
|
+ field_glossory b
|
|
|
+ on
|
|
|
+ a.field_a = b.id
|
|
|
+ where
|
|
|
+ a.boutique = 1 and a.audit_status = 3 and a.field_a = #{industryCategory,jdbcType=INTEGER}
|
|
|
+ <if test="dataCategory != null and dataCategory != ''">
|
|
|
+ and data_category = #{dataCategory,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="category != null and category != ''">
|
|
|
+ and category = #{category,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ order by a.create_time desc
|
|
|
+ <if test="page_sql!=null">
|
|
|
+ ${page_sql}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="findBoutiqueCount" parameterType="java.lang.String" resultType="java.lang.Integer">
|
|
|
+ select
|
|
|
+ count(0)
|
|
|
+ from
|
|
|
+ achievement a
|
|
|
+ left join
|
|
|
+ field_glossory b
|
|
|
+ on
|
|
|
+ a.field_a = b.id
|
|
|
+ where
|
|
|
+ a.boutique = 1 and a.audit_status = 3 and a.field_a = #{industryCategory,jdbcType=INTEGER}
|
|
|
+ <if test="dataCategory != null and dataCategory != ''">
|
|
|
+ and data_category = #{dataCategory,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ <if test="category != null and category != ''">
|
|
|
+ and category = #{category,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
</mapper>
|