线索信息

This commit is contained in:
苏竹红
2024-03-25 14:14:34 +08:00
parent 9a93866efe
commit dadb91cf59
4 changed files with 277 additions and 0 deletions

View File

@@ -0,0 +1,168 @@
package com.cool.store.vo;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;
/**
* @Author suzhuhong
* @Date 2024/3/25 13:46
* @Version 1.0
*/
@Data
public class LineInfoVO {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* partner_user_info.partner_id
*/
@Column(name = "partner_id")
private String partnerId;
@Column(name = "region_id")
private Long regionId;
/**
* 手机号
*/
private String mobile;
/**
* 申请人姓名
*/
private String username;
/**
* 性别0未选,1男,2女
*/
private String sex;
/**
* 意向开店区域
*/
@Column(name = "want_shop_area_id")
private Long wantShopAreaId;
/**
* 居住地址
*/
@Column(name = "live_address")
private String liveAddress;
/**
* 流程阶段:1意向加盟;2新店进展;
*/
@Column(name = "workflow_stage")
private Integer workflowStage;
/**
* 流程子阶段
*/
@Column(name = "workflow_sub_stage")
private Integer workflowSubStage;
/**
* 流程子阶段状态
*/
@Column(name = "workflow_sub_stage_status")
private Integer workflowSubStageStatus;
/**
* 待选址铺位
*/
@Column(name = "select_site_num")
private Integer selectSiteNum;
/**
* 筹备中铺位
*/
@Column(name = "prepare_shop_num")
private Integer prepareShopNum;
/**
* 营业中铺位
*/
@Column(name = "open_shop_num")
private Integer openShopNum;
/**
* 线索来源
*/
@Column(name = "line_source")
private Integer lineSource;
/**
* 招商经理
*/
@Column(name = "investment_manager")
private String investmentManager;
/**
* 拓展经理
*/
@Column(name = "development_manager")
private String developmentManager;
/**
* 一审面试官
*/
@Column(name = "first_interviewer")
private String firstInterviewer;
/**
* 二审面试官
*/
@Column(name = "second_interviewer")
private String secondInterviewer;
/**
* 用户画像
*/
@Column(name = "user_portrait")
private String userPortrait;
/**
* 是否是加盟商0.否 1.是
*/
@Column(name = "is_join")
private Boolean isJoin;
/**
* 0.公海 1.私海 2黑名单
*/
@Column(name = "line_status")
private Integer lineStatus;
/**
* 创建时间
*/
@Column(name = "create_time")
private Date createTime;
/**
* 更新时间
*/
@Column(name = "update_time")
private Date updateTime;
/**
* 创建人
*/
@Column(name = "create_user_id")
private String createUserId;
/**
* 更新人
*/
@Column(name = "update_user_id")
private String updateUserId;
}

View File

@@ -0,0 +1,23 @@
package com.cool.store.service;
import com.cool.store.vo.LineInfoVO;
/**
* @Author suzhuhong
* @Date 2024/3/25 13:45
* @Version 1.0
*/
public interface LineService {
/**
* 获取线索信息
* @param lineId
* @return
*/
LineInfoVO getLineInfo(Long lineId);
}

View File

@@ -0,0 +1,36 @@
package com.cool.store.service.impl;
import cn.hutool.core.bean.BeanUtil;
import com.cool.store.dao.LineInfoDAO;
import com.cool.store.entity.LineInfoDO;
import com.cool.store.enums.ErrorCodeEnum;
import com.cool.store.exception.ServiceException;
import com.cool.store.service.LineService;
import com.cool.store.vo.LineInfoVO;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
/**
* @Author suzhuhong
* @Date 2024/3/25 13:48
* @Version 1.0
*/
@Service
public class LineServiceImpl implements LineService {
@Resource
LineInfoDAO lineInfoDAO;
@Override
public LineInfoVO getLineInfo(Long lineId) {
LineInfoVO result = new LineInfoVO();
// 查询线索信息
LineInfoDO lineInfo = lineInfoDAO.getLineInfo(lineId);
if (lineInfo==null){
throw new ServiceException(ErrorCodeEnum.LINE_ID_IS_NOT_EXIST);
}
BeanUtil.copyProperties(lineInfo,result);
return result;
}
}

View File

@@ -0,0 +1,50 @@
package com.cool.store.controller.webc;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.LineService;
import com.cool.store.vo.LineInfoVO;
import com.cool.store.vo.interview.AppointmentTimeVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.time.LocalDate;
import java.util.List;
/**
* @Author suzhuhong
* @Date 2024/3/25 13:43
* @Version 1.0
*/
@RestController
@RequestMapping("/mini/line")
@Api(tags = "线索信息")
@Slf4j
public class LineController {
@Resource
LineService lineService;
@ApiOperation("查询线索详情")
@GetMapping("/getLineDetail")
@ApiImplicitParams({
@ApiImplicitParam(name = "lineId", value = "线索id", required = true)
})
public ResponseResult<LineInfoVO> getLineInfo(@RequestParam("lineId")Long lineId) {
return ResponseResult.success(lineService.getLineInfo(lineId));
}
}