Merge remote-tracking branch 'origin/cc_20230520_partner' into cc_20230520_partner

This commit is contained in:
zhangchenbiao
2023-06-05 11:34:52 +08:00
10 changed files with 267 additions and 65 deletions

View File

@@ -34,5 +34,7 @@ public class BaseUserInfoRequest {
@ApiModelProperty("0不接受调剂、1全国调剂、2省内调剂、3市内调剂") @ApiModelProperty("0不接受调剂、1全国调剂、2省内调剂、3市内调剂")
private Integer acceptAdjustType; private Integer acceptAdjustType;
@ApiModelProperty("邀请码")
private String inviteCode;
} }

View File

@@ -52,6 +52,11 @@ public class PartnerBaseInfoRequest {
private String liveAddress; private String liveAddress;
@ApiModelProperty("提交标识 提交-true 暂存-false")
private Boolean submitFlag;
} }

View File

@@ -13,14 +13,18 @@ import java.util.List;
*/ */
@ApiModel @ApiModel
@Data @Data
public class PartnerSummaryInfoRequest { public class PartnerClerkInfoRequest {
@ApiModelProperty("线索表ID")
private Long partnerLineId;
@ApiModelProperty("加盟商C端用户表ID partnerId ")
private String partnerId;
@ApiModelProperty("加盟商基本信息对象")
private PartnerBaseInfoRequest partnerBaseInfoRequest;
@ApiModelProperty("加盟商店员信息列表") @ApiModelProperty("加盟商店员信息列表")
private List<PartnerClerkRequest> partnerClerkRequestList; private List<PartnerClerkRequest> partnerClerkRequestList;
@ApiModelProperty("加盟商意向信息/行业认知")
private PartnerIntentInfoRequest partnerIntentInfoRequest;
@ApiModelProperty("提交标识 提交-true 暂存-false") @ApiModelProperty("提交标识 提交-true 暂存-false")
private Boolean submitFlag; private Boolean submitFlag;
} }

View File

@@ -17,12 +17,6 @@ public class PartnerClerkRequest {
@ApiModelProperty("") @ApiModelProperty("")
private Long id; private Long id;
@ApiModelProperty("hy_partner_line_info.id")
private Long partnerLineId;
@ApiModelProperty("hy_partner_user_info.partner_id")
private String partnerId;
@ApiModelProperty("伙伴姓名") @ApiModelProperty("伙伴姓名")
private String username; private String username;

View File

@@ -16,12 +16,6 @@ public class PartnerIntentInfoRequest {
@ApiModelProperty("") @ApiModelProperty("")
private Long id; private Long id;
@ApiModelProperty("hy_partner_user_info.partner_id")
private String partnerId;
@ApiModelProperty("hy_partner_line_info.id")
private Long partnerLineId;
@ApiModelProperty("常驻区域") @ApiModelProperty("常驻区域")
private String liveArea; private String liveArea;
@@ -76,4 +70,7 @@ public class PartnerIntentInfoRequest {
@ApiModelProperty("劣势") @ApiModelProperty("劣势")
private String weakness; private String weakness;
@ApiModelProperty("提交标识 提交-true 暂存-false")
private Boolean submitFlag;
} }

View File

@@ -0,0 +1,36 @@
package com.cool.store.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
* @Author suzhuhong
* @Date 2023/6/2 10:55
* @Version 1.0
*/
@Data
@ApiModel
public class OpenAreaTreeVO {
@ApiModelProperty("ID")
private Long id;
@ApiModelProperty("parent.id")
private Long parentId;
@ApiModelProperty("区域名称")
private String areaName;
@ApiModelProperty("区域路径")
private String areaPath;
@ApiModelProperty("状态 open-开放 keyOpen-重点开放 notOpen-未开放 saturated-已饱和")
private String areaStatus;
@ApiModelProperty("子区域")
List<OpenAreaTreeVO> childNode;
}

View File

@@ -0,0 +1,44 @@
package com.cool.store.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
/**
* @Author suzhuhong
* @Date 2023/6/2 14:29
* @Version 1.0
*/
@Data
@ApiModel
public class PartnerLineBaseInfoVO {
@ApiModelProperty("线索ID")
private Long id;
@ApiModelProperty("hy_partner_user_info.partner_id")
private String partnerId;
@ApiModelProperty("流程阶段:1意向申请审核;2预约面试时间;3加盟资格面试;4分配选址开发经理;5商圈点位评估;6上传店铺租赁信息;7完善加盟签约信息;8支付加盟费用;9签订加盟合同")
private String workflowStage;
@ApiModelProperty("流程子状态")
private String workflowStatus;
@ApiModelProperty("当前阶段截止时间")
private Date deadline;
@ApiModelProperty("结束跟进时间 冷静期使用 计算15天还剩多少天")
private Date closeTime;
@ApiModelProperty("冷静期首次登录标识 true-是首次")
private Boolean coolDownFirstLoginFlag;
@ApiModelProperty("拒绝原因 冷静期提示文案中用到 全部流程中用到(拒绝的时候暂时拒绝原因)")
private String cause;
}

View File

@@ -0,0 +1,40 @@
package com.cool.store.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @Author suzhuhong
* @Date 2023/6/2 10:29
* @Version 1.0
*/
@Data
@ApiModel
public class PartnerUserInfoVO {
@ApiModelProperty("ID")
private Long id;
@ApiModelProperty("手机号")
private String mobile;
@ApiModelProperty("申请人姓名")
private String username;
@ApiModelProperty("常驻区域")
private String liveArea;
@ApiModelProperty("意向开店区域")
private String wantShopArea;
@ApiModelProperty("意向开店区域ID")
private Long wantShopAreaId;
@ApiModelProperty("0不接受调剂、1全国调剂、2省内调剂、3市内调剂")
private Integer acceptAdjustType;
@ApiModelProperty("邀请码")
private String inviteCode;
}

View File

@@ -1,6 +1,7 @@
package com.cool.store.controller; package com.cool.store.controller;
import com.cool.store.response.ResponseResult; import com.cool.store.response.ResponseResult;
import com.cool.store.vo.OpenAreaTreeVO;
import com.cool.store.vo.OpenAreaVO; import com.cool.store.vo.OpenAreaVO;
import com.cool.store.vo.OpenProvinceVO; import com.cool.store.vo.OpenProvinceVO;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
@@ -11,6 +12,8 @@ import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.List;
/** /**
* @Author suzhuhong * @Author suzhuhong
* @Date 2023/5/29 14:19 * @Date 2023/5/29 14:19
@@ -19,31 +22,48 @@ import org.springframework.web.bind.annotation.*;
@RestController @RestController
@RequestMapping({"/v1/partnerManage/{enterpriseId}/openArea" }) @RequestMapping({"/v1/partnerManage/{enterpriseId}/openArea" })
@Slf4j @Slf4j
@Api(tags = "开发区域城市") @Api(tags = "小程序开发区域城市")
public class OpenAreaController { public class OpenAreaController {
@GetMapping(path = "/getOpenAreaList") @GetMapping(path = "/getOpenAreaList")
@ApiOperation("开放城市(重点城市接口 区域申请搜索 )") @ApiOperation("点击重点城市/可申请加盟省份/可预约加盟省份 子列表")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "keyOpenFlag", value = "重点城市标识 重点城市查询入参", required = false),
@ApiImplicitParam(name = "parentId", value = "父区域名称", required = false), @ApiImplicitParam(name = "parentId", value = "父区域名称", required = false),
@ApiImplicitParam(name = "type", value = "可预约-reservation 可申请-apply ", required = false), @ApiImplicitParam(name = "type", value = "可预约-reservation 可申请-apply ", required = false)
@ApiImplicitParam(name = "keyWord", value = "搜索关键字", required = false),
@ApiImplicitParam(name = "pageNumber", value = "页码", required = false),
@ApiImplicitParam(name = "pageSize", value = "分页大小", required = false)
}) })
public ResponseResult<PageInfo<OpenAreaVO>> getOpenAreaList(@PathVariable(value = "enterpriseId", required = false) String enterpriseId, public ResponseResult<List<OpenAreaVO>> getOpenAreaList(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestParam(value = "keyOpenFlag",required = false)Boolean keyOpenFlag,
@RequestParam(value = "parentId",required = false)Long parentId, @RequestParam(value = "parentId",required = false)Long parentId,
@RequestParam(value = "type",required = false)String type, @RequestParam(value = "type",required = false)String type){
@RequestParam(value = "keyWord",required = false)String keyWord,
@RequestParam(value = "pageNumber",required = false,defaultValue = "1")Integer pageNumber,
@RequestParam(value = "pageSize",required = false,defaultValue = "10")Integer pageSize){
return ResponseResult.success(); return ResponseResult.success();
} }
@GetMapping(path = "/areaApplyQuery")
@ApiOperation("区域申请搜索 树形结构")
@ApiImplicitParams({
@ApiImplicitParam(name = "keyWord", value = "搜索关键字", required = false),
})
public ResponseResult<List<OpenAreaTreeVO>> getOpenAreaList(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestParam(value = "keyWord",required = false)String keyWord){
return ResponseResult.success();
}
@GetMapping(path = "/getKeyOpenAreaList")
@ApiOperation("重点开放城市列表)")
public ResponseResult<PageInfo<OpenAreaVO>> getOpenAreaList(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestParam(value = "pageNumber",required = false,defaultValue = "1")Integer pageNumber,
@RequestParam(value = "pageSize",required = false,defaultValue = "10")Integer pageSize){
return ResponseResult.success();
}
@GetMapping(path = "/getOpenProvince") @GetMapping(path = "/getOpenProvince")
@ApiOperation("可申请加盟省份/可预约加盟省份") @ApiOperation("可申请加盟省份/可预约加盟省份")
public ResponseResult<OpenProvinceVO> getOpenProvince(@PathVariable(value = "enterpriseId", required = false) String enterpriseId){ public ResponseResult<OpenProvinceVO> getOpenProvince(@PathVariable(value = "enterpriseId", required = false) String enterpriseId){

View File

@@ -1,13 +1,11 @@
package com.cool.store.controller; package com.cool.store.controller;
import com.cool.store.request.BaseUserInfoRequest; import com.cool.store.request.BaseUserInfoRequest;
import com.cool.store.request.PartnerSummaryInfoRequest; import com.cool.store.request.PartnerBaseInfoRequest;
import com.cool.store.request.PartnerSummaryInfoRequest; import com.cool.store.request.PartnerClerkInfoRequest;
import com.cool.store.request.PartnerIntentInfoRequest;
import com.cool.store.response.ResponseResult; import com.cool.store.response.ResponseResult;
import com.cool.store.vo.OpenAreaVO; import com.cool.store.vo.*;
import com.cool.store.vo.PartnerLineDetailVO;
import com.cool.store.vo.PartnerLineInfoVO;
import com.cool.store.vo.PartnerSummaryInfoVO;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
@@ -16,6 +14,8 @@ import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.List;
/** /**
* @Author suzhuhong * @Author suzhuhong
* @Date 2023/5/29 20:04 * @Date 2023/5/29 20:04
@@ -38,17 +38,6 @@ public class PartnerController {
} }
@PostMapping(path = "/changeBaseInfo")
@ApiOperation("变更基本信息")
public ResponseResult<Boolean> changeBaseInfo(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody BaseUserInfoRequest baseUserInfoRequest){
//前提 未提交加盟申请
//成功 意向区域变更成功 失败 您已进入意向申请流程,当前不可变更意向区域
return ResponseResult.success();
}
@GetMapping(path = "/getSubmitIntentionApplyFlag") @GetMapping(path = "/getSubmitIntentionApplyFlag")
@ApiOperation("获取提交意向申请标识 true 已提交 false 未提交") @ApiOperation("获取提交意向申请标识 true 已提交 false 未提交")
public ResponseResult<Boolean> getSubmitIntentionApplyFlag(@PathVariable(value = "enterpriseId", required = false) String enterpriseId){ public ResponseResult<Boolean> getSubmitIntentionApplyFlag(@PathVariable(value = "enterpriseId", required = false) String enterpriseId){
@@ -81,41 +70,92 @@ public class PartnerController {
@RequestParam(value = "idCard",required = false)String idCard, @RequestParam(value = "idCard",required = false)String idCard,
@RequestParam(value = "lineId",required = false)Long lineId){ @RequestParam(value = "lineId",required = false)Long lineId){
return ResponseResult.success(); return ResponseResult.success();
} }
@PostMapping(path = "/submitPartnerSummaryInfo") @PostMapping(path = "/submitPartnerBaseInfo")
@ApiOperation("提交加盟商汇总信息") @ApiOperation("提交加盟商基本信息")
public ResponseResult<Boolean> submitPartnerSummaryInfo(@PathVariable(value = "enterpriseId", required = false) String enterpriseId, public ResponseResult<Boolean> submitPartnerBaseInfo(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody PartnerSummaryInfoRequest partnerSummaryInfo){ @RequestBody PartnerBaseInfoRequest PartnerBaseInfoRequest){
//前提 未提交加盟申请 //前提 未提交加盟申请
//成功 意向区域变更成功 失败 您已进入意向申请流程,当前不可变更意向区域 //成功 意向区域变更成功 失败 您已进入意向申请流程,当前不可变更意向区域
return ResponseResult.success(); return ResponseResult.success();
} }
@PostMapping(path = "/submitPartnerClerkInfo")
@ApiOperation("提交加盟商店员信息")
public ResponseResult<Boolean> submitPartnerClerkInfo(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody PartnerClerkInfoRequest partnerClerkInfoRequest){
return ResponseResult.success();
}
@PostMapping(path = "/changePartnerSummaryInfo") @PostMapping(path = "/submitPartnerIntentInfo")
@ApiOperation("修改加盟商汇总信息 修改意向信息 修改店员信息 修改行业认知") @ApiOperation("提交加盟商意向信息/行业认知")
public ResponseResult<Boolean> changePartnerSummaryInfo(@PathVariable(value = "enterpriseId", required = false) String enterpriseId, public ResponseResult<Boolean> submitPartnerIntentInfo(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody PartnerSummaryInfoRequest partnerSummaryInfo){ @RequestBody PartnerIntentInfoRequest partnerIntentInfoRequest){
//前提 未提交加盟申请
//成功 意向区域变更成功 失败 您已进入意向申请流程,当前不可变更意向区域
return ResponseResult.success(); return ResponseResult.success();
} }
@GetMapping(path = "/getPartnerLineDetail") @PostMapping(path = "/changePartnerClerkInfo")
@ApiOperation("查询加盟商线索详情 包括冷静期是否首次登录") @ApiOperation("修改加盟商店员信息")
public ResponseResult<Boolean> changePartnerClerkInfo(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody PartnerClerkInfoRequest partnerClerkInfoRequest){
return ResponseResult.success();
}
@PostMapping(path = "/changePartnerIntentInfo")
@ApiOperation("修改加盟商意向信息/行业认知")
public ResponseResult<Boolean> changePartnerIntentInfo(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody PartnerIntentInfoRequest partnerIntentInfoRequest){
return ResponseResult.success();
}
@GetMapping(path = "/getPartnerLinBaseInfo")
@ApiOperation("查询加盟商线索详情(适用全部流程) 包括冷静期是否首次登录")
@ApiImplicitParams({
@ApiImplicitParam(name = "partnerId", value = "C端用户基本信息ID", required = false),
})
public ResponseResult<PartnerLineBaseInfoVO> getPartnerLinBaseInfo(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestParam(value = "partnerId",required = false)Long partnerId){
return ResponseResult.success();
}
@GetMapping(path = "/queryPartnerBaseInfo")
@ApiOperation("查看意向申请书——基本信息")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "lineId", value = "线索ID", required = false), @ApiImplicitParam(name = "lineId", value = "线索ID", required = false),
}) })
public ResponseResult<PartnerLineDetailVO> getPartnerLineDetail(@PathVariable(value = "enterpriseId", required = false) String enterpriseId, public ResponseResult<PartnerBaseInfoVO> queryPartnerBaseInfo(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
@RequestParam(value = "lineId",required = false)Long lineId){
return ResponseResult.success();
}
@GetMapping(path = "/queryPartnerClerkInfo")
@ApiOperation("查看意向申请书-店员信息")
@ApiImplicitParams({
@ApiImplicitParam(name = "lineId", value = "线索ID", required = false),
})
public ResponseResult<List<PartnerClerkVO>> queryPartnerClerkInfo(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
@RequestParam(value = "lineId",required = false)Long lineId){ @RequestParam(value = "lineId",required = false)Long lineId){
@@ -124,11 +164,11 @@ public class PartnerController {
@GetMapping(path = "/queryPartnerIntentInfo") @GetMapping(path = "/queryPartnerIntentInfo")
@ApiOperation("查看意向申请书") @ApiOperation("查看意向申请书-意向信息/行业信息")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "lineId", value = "线索ID", required = false), @ApiImplicitParam(name = "lineId", value = "线索ID", required = false),
}) })
public ResponseResult<PartnerSummaryInfoVO> queryPartnerIntentInfo(@PathVariable(value = "enterprise-id", required = false) String enterpriseId, public ResponseResult<PartnerIntentInfoVO> queryPartnerIntentInfo(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
@RequestParam(value = "lineId",required = false)Long lineId){ @RequestParam(value = "lineId",required = false)Long lineId){
@@ -138,9 +178,29 @@ public class PartnerController {
@GetMapping(path = "/completeJoinNotice")
@ApiOperation("提交加盟须知")
@ApiImplicitParams({
@ApiImplicitParam(name = "partnerId", value = "加盟商ID", required = false),
})
public ResponseResult<Boolean> completeJoinNotice(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
@RequestParam(value = "partnerId",required = false)Long partnerId){
return ResponseResult.success();
}
@GetMapping(path = "/queryJoinNotice")
@ApiOperation("查询是否填写加盟须知")
@ApiImplicitParams({
@ApiImplicitParam(name = "partnerId", value = "加盟商ID", required = false),
})
public ResponseResult<Boolean> queryJoinNotice(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
@RequestParam(value = "partnerId",required = false)Long partnerId){
return ResponseResult.success();
}
} }