会销开始面试修改为使用ExhibitionId
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<mapper namespace="com.cool.store.mapper.HyPartnerExhibitionMapper">
|
<mapper namespace="com.cool.store.mapper.HyPartnerExhibitionMapper">
|
||||||
<resultMap id="BaseResultMap" type="com.cool.store.entity.HyPartnerExhibitionDO">
|
<resultMap id="BaseResultMap" type="com.cool.store.entity.HyPartnerExhibitionDO">
|
||||||
<id column="id" jdbcType="BIGINT" property="id" />
|
<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_line_id" jdbcType="BIGINT" property="partnerLineId" />
|
||||||
<result column="partner_id" jdbcType="VARCHAR" property="partnerId" />
|
<result column="partner_id" jdbcType="VARCHAR" property="partnerId" />
|
||||||
<result column="want_shop_area" jdbcType="VARCHAR" property="wantShopArea" />
|
<result column="want_shop_area" jdbcType="VARCHAR" property="wantShopArea" />
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
<result column="deleted" jdbcType="BIT" property="deleted" />
|
<result column="deleted" jdbcType="BIT" property="deleted" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<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,
|
expected_visitors_count, expected_information, participation_status, interview_plan_id,
|
||||||
create_time, update_time, creator, updater, deleted
|
create_time, update_time, creator, updater, deleted
|
||||||
</sql>
|
</sql>
|
||||||
@@ -35,8 +35,8 @@
|
|||||||
<include refid="Base_Column_List" />
|
<include refid="Base_Column_List" />
|
||||||
from hy_partner_exhibition
|
from hy_partner_exhibition
|
||||||
<where>
|
<where>
|
||||||
<if test="exhibitionCode != null">
|
<if test="exhibitionId != null">
|
||||||
and exhibition_code = #{exhibitionCode,jdbcType=VARCHAR}
|
and exhibition_id = #{exhibitionId,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
<if test="partnerLineId != null">
|
<if test="partnerLineId != null">
|
||||||
and partner_line_id = #{partnerLineId,jdbcType=BIGINT}
|
and partner_line_id = #{partnerLineId,jdbcType=BIGINT}
|
||||||
@@ -88,13 +88,13 @@
|
|||||||
<select id="getExhibitionLine" resultType="com.cool.store.dto.exhibition.ExhibitionLineDTO">
|
<select id="getExhibitionLine" resultType="com.cool.store.dto.exhibition.ExhibitionLineDTO">
|
||||||
select
|
select
|
||||||
hpe.partner_id as partnerId,
|
hpe.partner_id as partnerId,
|
||||||
hpe.exhibition_code as exhibitionCode,
|
hpe.exhibition_id as exhibitionId,
|
||||||
pu.username as partnerName,
|
pu.username as partnerName,
|
||||||
pu.mobile as mobile
|
pu.mobile as mobile
|
||||||
from hy_partner_exhibition hpe left join hy_partner_user_info pu on hpe.partner_id = pu.partner_id
|
from hy_partner_exhibition hpe left join hy_partner_user_info pu on hpe.partner_id = pu.partner_id
|
||||||
where hpe.participation_status != 7
|
where hpe.participation_status != 7
|
||||||
<if test="exhibitionCode != null and exhibitionCode!=''">
|
<if test="exhibitionId != null and exhibitionId!=''">
|
||||||
and hpe.exhibition_code = #{exhibitionCode}
|
and hpe.exhibition_id = #{exhibitionId}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@@ -104,8 +104,8 @@
|
|||||||
</selectKey>
|
</selectKey>
|
||||||
insert into hy_partner_exhibition
|
insert into hy_partner_exhibition
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="exhibitionCode != null">
|
<if test="exhibitionId != null">
|
||||||
exhibition_code,
|
exhibition_id,
|
||||||
</if>
|
</if>
|
||||||
<if test="partnerLineId != null">
|
<if test="partnerLineId != null">
|
||||||
partner_line_id,
|
partner_line_id,
|
||||||
@@ -148,8 +148,8 @@
|
|||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="exhibitionCode != null">
|
<if test="exhibitionId != null">
|
||||||
#{exhibitionCode,jdbcType=VARCHAR},
|
#{exhibitionId,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="partnerLineId != null">
|
<if test="partnerLineId != null">
|
||||||
#{partnerLineId,jdbcType=BIGINT},
|
#{partnerLineId,jdbcType=BIGINT},
|
||||||
@@ -195,8 +195,8 @@
|
|||||||
<update id="updateByPrimaryKeySelective" parameterType="com.cool.store.entity.HyPartnerExhibitionDO">
|
<update id="updateByPrimaryKeySelective" parameterType="com.cool.store.entity.HyPartnerExhibitionDO">
|
||||||
update hy_partner_exhibition
|
update hy_partner_exhibition
|
||||||
<set>
|
<set>
|
||||||
<if test="exhibitionCode != null">
|
<if test="exhibitionId != null">
|
||||||
exhibition_code = #{exhibitionCode,jdbcType=VARCHAR},
|
exhibition_id = #{exhibitionId,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="partnerLineId != null">
|
<if test="partnerLineId != null">
|
||||||
partner_line_id = #{partnerLineId,jdbcType=BIGINT},
|
partner_line_id = #{partnerLineId,jdbcType=BIGINT},
|
||||||
@@ -245,8 +245,8 @@
|
|||||||
<if test="null != id">
|
<if test="null != id">
|
||||||
and t.id = #{id,jdbcType=BIGINT}
|
and t.id = #{id,jdbcType=BIGINT}
|
||||||
</if>
|
</if>
|
||||||
<if test="null != exhibitionCode">
|
<if test="null != exhibitionId">
|
||||||
and t.exhibition_code = #{exhibitionCode,jdbcType=VARCHAR}
|
and t.exhibition_id = #{exhibitionId,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
<if test="null != partnerLineId">
|
<if test="null != partnerLineId">
|
||||||
and t.partner_line_id = #{partnerLineId,jdbcType=BIGINT}
|
and t.partner_line_id = #{partnerLineId,jdbcType=BIGINT}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ public class ExhibitionEnterInterviewDTO {
|
|||||||
@ApiModelProperty("线索id")
|
@ApiModelProperty("线索id")
|
||||||
private String partnerLineId;
|
private String partnerLineId;
|
||||||
|
|
||||||
@ApiModelProperty("会销编号")
|
@ApiModelProperty("会销id")
|
||||||
private String exhibitionCode;
|
private Integer exhibitionId;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ public class HyPartnerExhibitionDO implements Serializable {
|
|||||||
@ApiModelProperty("")
|
@ApiModelProperty("")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@ApiModelProperty("报名的展会编号,hy_exhibition.exhibition_code")
|
@ApiModelProperty("报名的展会id,hy_exhibition.id")
|
||||||
private String exhibitionCode;
|
private Integer exhibitionId;
|
||||||
|
|
||||||
@ApiModelProperty("线索id,hy_partner_line_info.id")
|
@ApiModelProperty("线索id,hy_partner_line_info.id")
|
||||||
private Long partnerLineId;
|
private Long partnerLineId;
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import lombok.Data;
|
|||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.lang3.ObjectUtils;
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.commons.lang3.time.DateUtils;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
@@ -173,8 +172,8 @@ public class PrivateSeaLineListVo {
|
|||||||
//在会销面试中的线索
|
//在会销面试中的线索
|
||||||
privateSeaLineListVo.setWhetherExhibitionInterview(Boolean.FALSE);
|
privateSeaLineListVo.setWhetherExhibitionInterview(Boolean.FALSE);
|
||||||
if (privateSeaLineListVo.getWhetherInExhibition()
|
if (privateSeaLineListVo.getWhetherInExhibition()
|
||||||
&& ObjectUtils.isNotEmpty(exhibitionInterviewLines)
|
&& ObjectUtils.isNotEmpty(exhibitionInterviewLines)
|
||||||
&& exhibitionInterviewLines.contains(x.getLineId())) {
|
&& exhibitionInterviewLines.contains(x.getLineId())) {
|
||||||
privateSeaLineListVo.setWhetherExhibitionInterview(Boolean.TRUE);
|
privateSeaLineListVo.setWhetherExhibitionInterview(Boolean.TRUE);
|
||||||
}
|
}
|
||||||
privateSeaLineListVo.setUserPortraitList(userPortraitList);
|
privateSeaLineListVo.setUserPortraitList(userPortraitList);
|
||||||
|
|||||||
@@ -86,8 +86,8 @@ public class ExhibitionServiceImpl implements ExhibitionService {
|
|||||||
//1.1 获取线索参加会销状态
|
//1.1 获取线索参加会销状态
|
||||||
HyPartnerExhibitionDO hyPartnerExhibitionDO = new HyPartnerExhibitionDO();
|
HyPartnerExhibitionDO hyPartnerExhibitionDO = new HyPartnerExhibitionDO();
|
||||||
hyPartnerExhibitionDO.setDeleted(Boolean.FALSE);
|
hyPartnerExhibitionDO.setDeleted(Boolean.FALSE);
|
||||||
hyPartnerExhibitionDO.setExhibitionCode(dto.getExhibitionCode());
|
hyPartnerExhibitionDO.setExhibitionId(dto.getExhibitionId());
|
||||||
hyPartnerExhibitionDO.setPartnerLineId(hyPartnerExhibitionDO.getPartnerLineId());
|
hyPartnerExhibitionDO.setPartnerLineId(Long.parseLong(dto.getPartnerLineId()));
|
||||||
hyPartnerExhibitionDO = hyPartnerExhibitionDAO.querySelective(hyPartnerExhibitionDO);
|
hyPartnerExhibitionDO = hyPartnerExhibitionDAO.querySelective(hyPartnerExhibitionDO);
|
||||||
//1.2 核验会销签到状态
|
//1.2 核验会销签到状态
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user