加盟模式
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
<result column="user_portrait" jdbcType="VARCHAR" property="userPortrait" />
|
||||
<result column="join_status" jdbcType="BIT" property="joinStatus" />
|
||||
<result column="line_status" jdbcType="TINYINT" property="lineStatus" />
|
||||
<result column="join_mode" jdbcType="TINYINT" property="joinMode" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="create_user_id" jdbcType="VARCHAR" property="createUserId" />
|
||||
@@ -101,6 +102,9 @@
|
||||
<if test="param.joinStatus != null">
|
||||
join_status,
|
||||
</if>
|
||||
<if test="param.joinMode != null">
|
||||
join_mode,
|
||||
</if>
|
||||
<if test="param.lineStatus != null">
|
||||
line_status,
|
||||
</if>
|
||||
@@ -190,6 +194,9 @@
|
||||
<if test="param.joinStatus != null">
|
||||
#{param.joinStatus},
|
||||
</if>
|
||||
<if test="param.joinMode != null">
|
||||
#{param.joinMode},
|
||||
</if>
|
||||
<if test="param.lineStatus != null">
|
||||
#{param.lineStatus},
|
||||
</if>
|
||||
@@ -277,6 +284,9 @@
|
||||
<if test="param.joinStatus != null">
|
||||
join_status = #{param.joinStatus},
|
||||
</if>
|
||||
<if test="param.joinMode != null">
|
||||
join_mode = #{param.joinMode},
|
||||
</if>
|
||||
<if test="param.lineStatus != null">
|
||||
line_status = #{param.lineStatus},
|
||||
</if>
|
||||
|
||||
@@ -173,4 +173,7 @@ public class LineInfoDO {
|
||||
@Column(name = "partner_num")
|
||||
private String partnerNum;
|
||||
|
||||
@Column(name = "join_mode")
|
||||
private Integer joinMode;
|
||||
|
||||
}
|
||||
@@ -2,6 +2,10 @@ package com.cool.store.request;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2024/4/7 10:39
|
||||
@@ -16,5 +20,10 @@ public class AddLineRequest {
|
||||
|
||||
private Long wantShopAreaId;
|
||||
|
||||
@NotNull
|
||||
@Min(1)
|
||||
@Max(2)
|
||||
private Integer joinMode;
|
||||
|
||||
private String investmentManagerUserId;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,8 @@ public class JoinIntentionRequest {
|
||||
private String partnerId;
|
||||
@ApiModelProperty("加盟身份 1个人加盟 2企业加盟")
|
||||
private Integer joinType;
|
||||
@ApiModelProperty("加盟模式 0-社会加盟模式 1-强加盟模式")
|
||||
private Integer joinMode;
|
||||
@ApiModelProperty("姓名")
|
||||
private String userName;
|
||||
@ApiModelProperty("手机号")
|
||||
|
||||
@@ -33,17 +33,12 @@ public class OperationAuditRequest {
|
||||
@ApiModelProperty("1通过,2拒绝")
|
||||
private Integer auditStatus;
|
||||
|
||||
@NotNull
|
||||
@ApiModelProperty("签到时间")
|
||||
private Date signTime;
|
||||
|
||||
@NotNull
|
||||
@NotBlank
|
||||
@ApiModelProperty("签到位置")
|
||||
private String signAddress;
|
||||
|
||||
@NotNull
|
||||
@NotBlank
|
||||
@ApiModelProperty("图片")
|
||||
private String pictureUrl;
|
||||
|
||||
|
||||
@@ -85,6 +85,9 @@ public class LineInfoVO {
|
||||
@ApiModelProperty("加盟身份 1个人加盟 2企业加盟")
|
||||
private Integer joinType;
|
||||
|
||||
@ApiModelProperty("0-社会加盟模式 1-强加盟模式")
|
||||
private Integer joinMode;
|
||||
|
||||
/**
|
||||
* 流程子阶段
|
||||
*/
|
||||
|
||||
@@ -11,6 +11,9 @@ import lombok.Data;
|
||||
@Data
|
||||
public class LineListVO extends BaseInfoVO{
|
||||
|
||||
@ApiModelProperty("0-社会加盟模式 1-强加盟模式")
|
||||
private Integer joinMode;
|
||||
|
||||
@ApiModelProperty("招商经理名称")
|
||||
private String investmentManagerUserName;
|
||||
|
||||
|
||||
@@ -20,6 +20,9 @@ public class PartnerListVO extends BaseInfoVO{
|
||||
@ApiModelProperty("1-蓄水池 2-加盟商")
|
||||
private Integer joinStatus;
|
||||
|
||||
@ApiModelProperty("0-社会加盟模式 1-强加盟模式")
|
||||
private Integer joinMode;
|
||||
|
||||
@ApiModelProperty("扩展经理名称")
|
||||
private String developmentManagerUserName;
|
||||
|
||||
|
||||
@@ -85,6 +85,7 @@ public class JoinIntentionServiceImpl extends LineFlowService implements JoinInt
|
||||
Long regionId = regionAreaConfigDao.getByWantShopAreaId(lineInfoParam.getWantShopAreaId());
|
||||
lineInfoParam.setRegionId(regionId);
|
||||
}
|
||||
lineInfoDO.setJoinMode(request.getJoinMode());
|
||||
lineInfoDAO.insertOrUpdate(lineInfoParam);
|
||||
QualificationsInfoDO qualificationsInfoDO = request.toQualificationsInfoDO();
|
||||
qualificationsInfoDAO.insertOrUpdate(qualificationsInfoDO);
|
||||
|
||||
@@ -165,6 +165,7 @@ public class LineServiceImpl implements LineService {
|
||||
lineListVO.setCreateTime(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, x.getCreateTime()));
|
||||
lineListVO.setUpdateTime(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, x.getUpdateTime()));
|
||||
lineListVO.setLineSourceName(channelMapByIds.get(x.getLineSource()));
|
||||
lineListVO.setJoinMode(x.getJoinMode());
|
||||
lineListVO.setInvestmentManagerUserName(userNameMap.get(x.getInvestmentManager()));
|
||||
lineListVO.setUpdateUserName(userNameMap.get(x.getUpdateUserId()));
|
||||
result.add(lineListVO);
|
||||
@@ -255,6 +256,7 @@ public class LineServiceImpl implements LineService {
|
||||
partnerListVO.setUpdateTime(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, x.getUpdateTime()));
|
||||
partnerListVO.setLineSourceName(channelMapByIds.get(x.getLineSource()));
|
||||
partnerListVO.setJoinStatus(x.getJoinStatus());
|
||||
partnerListVO.setJoinMode(x.getJoinMode());
|
||||
partnerListVO.setPartnerNum(x.getPartnerNum());
|
||||
partnerListVO.setInvestmentManagerUserName(userNameMap.get(x.getInvestmentManager()));
|
||||
partnerListVO.setUpdateUserName(userNameMap.get(x.getUpdateUserId()));
|
||||
@@ -403,6 +405,7 @@ public class LineServiceImpl implements LineService {
|
||||
lineInfoDO.setLineStatus(LineStatusEnum.PRIVATE_SEAS.getCode());
|
||||
lineInfoDO.setWorkflowSubStage(WorkflowSubStageEnum.INTEND.getCode());
|
||||
lineInfoDO.setMobile(addLineRequest.getMobile());
|
||||
lineInfoDO.setJoinMode(addLineRequest.getJoinMode());
|
||||
lineInfoDO.setWorkflowStage(WorkflowStageEnum.INTENT.getCode());
|
||||
lineInfoDO.setWorkflowSubStageStatus(WorkflowSubStageStatusEnum.INTENT_0.getCode());
|
||||
lineInfoDO.setWantShopAreaId(addLineRequest.getWantShopAreaId());
|
||||
|
||||
Reference in New Issue
Block a user