会销开始面试修改为使用ExhibitionId
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<mapper namespace="com.cool.store.mapper.HyPartnerExhibitionMapper">
|
||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.HyPartnerExhibitionDO">
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="exhibition_code" jdbcType="VARCHAR" property="exhibitionCode" />
|
||||
<result column="exhibition_id" jdbcType="INTEGER" property="exhibitionId" />
|
||||
<result column="partner_line_id" jdbcType="BIGINT" property="partnerLineId" />
|
||||
<result column="partner_id" jdbcType="VARCHAR" property="partnerId" />
|
||||
<result column="want_shop_area" jdbcType="VARCHAR" property="wantShopArea" />
|
||||
@@ -19,7 +19,7 @@
|
||||
<result column="deleted" jdbcType="BIT" property="deleted" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, exhibition_code, partner_line_id, partner_id, want_shop_area, investment_manager_name,
|
||||
id, exhibition_id, partner_line_id, partner_id, want_shop_area, investment_manager_name,
|
||||
expected_visitors_count, expected_information, participation_status, interview_plan_id,
|
||||
create_time, update_time, creator, updater, deleted
|
||||
</sql>
|
||||
@@ -35,8 +35,8 @@
|
||||
<include refid="Base_Column_List" />
|
||||
from hy_partner_exhibition
|
||||
<where>
|
||||
<if test="exhibitionCode != null">
|
||||
and exhibition_code = #{exhibitionCode,jdbcType=VARCHAR}
|
||||
<if test="exhibitionId != null">
|
||||
and exhibition_id = #{exhibitionId,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="partnerLineId != null">
|
||||
and partner_line_id = #{partnerLineId,jdbcType=BIGINT}
|
||||
@@ -88,13 +88,13 @@
|
||||
<select id="getExhibitionLine" resultType="com.cool.store.dto.exhibition.ExhibitionLineDTO">
|
||||
select
|
||||
hpe.partner_id as partnerId,
|
||||
hpe.exhibition_code as exhibitionCode,
|
||||
hpe.exhibition_id as exhibitionId,
|
||||
pu.username as partnerName,
|
||||
pu.mobile as mobile
|
||||
from hy_partner_exhibition hpe left join hy_partner_user_info pu on hpe.partner_id = pu.partner_id
|
||||
where hpe.participation_status != 7
|
||||
<if test="exhibitionCode != null and exhibitionCode!=''">
|
||||
and hpe.exhibition_code = #{exhibitionCode}
|
||||
<if test="exhibitionId != null and exhibitionId!=''">
|
||||
and hpe.exhibition_id = #{exhibitionId}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
@@ -104,8 +104,8 @@
|
||||
</selectKey>
|
||||
insert into hy_partner_exhibition
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="exhibitionCode != null">
|
||||
exhibition_code,
|
||||
<if test="exhibitionId != null">
|
||||
exhibition_id,
|
||||
</if>
|
||||
<if test="partnerLineId != null">
|
||||
partner_line_id,
|
||||
@@ -148,8 +148,8 @@
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="exhibitionCode != null">
|
||||
#{exhibitionCode,jdbcType=VARCHAR},
|
||||
<if test="exhibitionId != null">
|
||||
#{exhibitionId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="partnerLineId != null">
|
||||
#{partnerLineId,jdbcType=BIGINT},
|
||||
@@ -195,8 +195,8 @@
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.cool.store.entity.HyPartnerExhibitionDO">
|
||||
update hy_partner_exhibition
|
||||
<set>
|
||||
<if test="exhibitionCode != null">
|
||||
exhibition_code = #{exhibitionCode,jdbcType=VARCHAR},
|
||||
<if test="exhibitionId != null">
|
||||
exhibition_id = #{exhibitionId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="partnerLineId != null">
|
||||
partner_line_id = #{partnerLineId,jdbcType=BIGINT},
|
||||
@@ -245,8 +245,8 @@
|
||||
<if test="null != id">
|
||||
and t.id = #{id,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="null != exhibitionCode">
|
||||
and t.exhibition_code = #{exhibitionCode,jdbcType=VARCHAR}
|
||||
<if test="null != exhibitionId">
|
||||
and t.exhibition_id = #{exhibitionId,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="null != partnerLineId">
|
||||
and t.partner_line_id = #{partnerLineId,jdbcType=BIGINT}
|
||||
|
||||
Reference in New Issue
Block a user