线索加大区
This commit is contained in:
@@ -159,7 +159,7 @@ public enum ErrorCodeEnum {
|
||||
OPEN_AREA_IS_NOT_EXISTS(107006, "意向区域城市不存在", null),
|
||||
|
||||
REGION_NOT_EXIST(108001, "区域不存在",null),
|
||||
ONLY_WAR_REGION_CONFIG(108002, "意向省市只能配置到战区",null),
|
||||
ONLY_WAR_REGION_CONFIG(108002, "意向省市只能配置到大区",null),
|
||||
|
||||
NOT_APPROVE_NODE(109001, "不是审批节点",null),
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
<result column="update_user_id" jdbcType="VARCHAR" property="updateUserId" />
|
||||
<result column="deleted" jdbcType="BIT" property="deleted" />
|
||||
<result column="partner_num" jdbcType="VARCHAR" property="partnerNum" />
|
||||
<result column="big_region_id" jdbcType="BIGINT" property="bigRegionId" />
|
||||
</resultMap>
|
||||
<insert id="insertOrUpdate" parameterType="com.cool.store.entity.LineInfoDO" useGeneratedKeys="true" keyProperty="id">
|
||||
INSERT INTO xfsg_line_info
|
||||
@@ -43,6 +44,9 @@
|
||||
<if test="param.regionId != null">
|
||||
region_id,
|
||||
</if>
|
||||
<if test="param.bigRegionId != null">
|
||||
big_region_id,
|
||||
</if>
|
||||
<if test="param.mobile != null and param.mobile != ''">
|
||||
mobile,
|
||||
</if>
|
||||
@@ -129,6 +133,9 @@
|
||||
<if test="param.regionId != null">
|
||||
#{param.regionId},
|
||||
</if>
|
||||
<if test="param.bigRegionId != null">
|
||||
#{param.bigRegionId},
|
||||
</if>
|
||||
<if test="param.mobile != null and param.mobile != ''">
|
||||
#{param.mobile},
|
||||
</if>
|
||||
@@ -213,6 +220,9 @@
|
||||
<if test="param.regionId != null">
|
||||
region_id = #{param.regionId},
|
||||
</if>
|
||||
<if test="param.bigRegionId != null">
|
||||
big_region_id = #{param.bigRegionId},
|
||||
</if>
|
||||
<if test="param.mobile != null and param.mobile != ''">
|
||||
mobile = #{param.mobile},
|
||||
</if>
|
||||
|
||||
@@ -21,6 +21,9 @@ public class LineInfoDO {
|
||||
@Column(name = "region_id")
|
||||
private Long regionId;
|
||||
|
||||
@Column(name = "big_region_id")
|
||||
private Long bigRegionId;
|
||||
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
|
||||
@@ -18,4 +18,6 @@ public class AddLineRequest {
|
||||
|
||||
private String investmentManagerUserId;
|
||||
|
||||
private Long warRegionId;
|
||||
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ public class JoinIntentionServiceImpl extends LineFlowService implements JoinInt
|
||||
lineInfoParam.setLineStatus(1);
|
||||
if (lineInfoParam.getWantShopAreaId() != null) {
|
||||
Long regionId = regionAreaConfigDao.getByWantShopAreaId(lineInfoParam.getWantShopAreaId());
|
||||
lineInfoParam.setRegionId(regionId);
|
||||
lineInfoParam.setBigRegionId(regionId);
|
||||
}
|
||||
lineInfoDAO.insertOrUpdate(lineInfoParam);
|
||||
MemberQuestionDO memberQuestionDO = request.toMemberQuestionDO();
|
||||
|
||||
@@ -417,7 +417,8 @@ public class LineServiceImpl implements LineService {
|
||||
userId = user.getUserId();
|
||||
}
|
||||
Long regionId = regionAreaConfigDao.getByWantShopAreaId(addLineRequest.getWantShopAreaId());
|
||||
lineInfoDO.setRegionId(regionId);
|
||||
lineInfoDO.setBigRegionId(regionId);
|
||||
lineInfoDO.setRegionId(addLineRequest.getWarRegionId());
|
||||
lineInfoDO.setInvestmentManager(userId);
|
||||
lineInfoDO.setCreateUserId(userId);
|
||||
lineInfoDO.setUpdateUserId(userId);
|
||||
|
||||
Reference in New Issue
Block a user