fix
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.cool.store.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author: WangShuo
|
||||
* @Date: 2025/04/02/18:20
|
||||
* @Version 1.0
|
||||
* @注释:
|
||||
*/
|
||||
@Data
|
||||
public class MiniShopDTO {
|
||||
|
||||
@ApiModelProperty("门店名称")
|
||||
private String shopName;
|
||||
@ApiModelProperty("地址")
|
||||
private String address;
|
||||
}
|
||||
@@ -3,6 +3,8 @@ package com.cool.store.dto.point;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class MiniPointPageDTO {
|
||||
|
||||
@@ -38,4 +40,13 @@ public class MiniPointPageDTO {
|
||||
|
||||
@ApiModelProperty("1.待选择 2.已选择 3.已被他人选择 4.已签约 5.已拒绝 6.已失效")
|
||||
private Integer recommendStatus;
|
||||
|
||||
@ApiModelProperty("机会点编号")
|
||||
private String opportunityPointCode;
|
||||
|
||||
@ApiModelProperty("机会点名称")
|
||||
private String opportunityPointName;
|
||||
|
||||
@ApiModelProperty("成功开店店名称")
|
||||
private String openShopName;
|
||||
}
|
||||
@@ -227,6 +227,24 @@ public class AddPointDetailRequest {
|
||||
@ApiModelProperty("人流测算 1.>400人/时以上, 2.300~400人/时, 3.200~300人/时, 4.100~200人/时")
|
||||
private Integer flowRateCalculate;
|
||||
|
||||
@ApiModelProperty("机会点编号")
|
||||
private String opportunityPointCode;
|
||||
|
||||
@ApiModelProperty("机会点名称")
|
||||
private String opportunityPointName;
|
||||
|
||||
@ApiModelProperty("省编码")
|
||||
private String provinceCode;
|
||||
|
||||
@ApiModelProperty("市编码")
|
||||
private String cityCode;
|
||||
|
||||
@ApiModelProperty("区/县编码")
|
||||
private String districtCode;
|
||||
|
||||
@ApiModelProperty("铺位经纬度geohash")
|
||||
@NotBlank(message = "铺位经纬度geohash不能为空")
|
||||
private String location;
|
||||
|
||||
public static PointDetailInfoDO convertDO(AddPointDetailRequest request) {
|
||||
PointDetailInfoDO result = new PointDetailInfoDO();
|
||||
@@ -280,6 +298,11 @@ public class AddPointDetailRequest {
|
||||
|
||||
public static PointInfoDO convertPointDO(AddPointDetailRequest request) {
|
||||
PointInfoDO result = new PointInfoDO();
|
||||
result.setOpportunityPointName(request.getOpportunityPointName());
|
||||
result.setOpportunityPointCode(request.getOpportunityPointCode());
|
||||
result.setProvinceCode(request.getProvinceCode());
|
||||
result.setCityCode(request.getCityCode());
|
||||
result.setDistrictCode(request.getDistrictCode());
|
||||
result.setPointName(request.getPointName());
|
||||
result.setRegionId(request.getRegionId());
|
||||
result.setPointArea(request.getPointArea());
|
||||
|
||||
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
@@ -22,6 +23,10 @@ public class AddSignFranchiseRequest {
|
||||
private String shopName;
|
||||
|
||||
private String detailAddress;
|
||||
|
||||
@ApiModelProperty("店铺编码")
|
||||
@NotBlank(message = "shopCode不能为空")
|
||||
private String shopCode;
|
||||
/**
|
||||
* SignTypeEnum
|
||||
*/
|
||||
|
||||
@@ -5,6 +5,7 @@ import com.cool.store.entity.MemberQuestionDO;
|
||||
import com.cool.store.entity.QualificationsInfoDO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
@@ -90,6 +91,8 @@ public class JoinIntentionRequest {
|
||||
private String businessLicense;
|
||||
@ApiModelProperty("统一社会信用代码")
|
||||
private String unifiedSocialCreditCode;
|
||||
@ApiModelProperty("督导")
|
||||
private String supervisor;
|
||||
|
||||
public LineInfoDO toLineInfoDO() {
|
||||
LineInfoDO lineInfoDO = new LineInfoDO();
|
||||
@@ -100,6 +103,9 @@ public class JoinIntentionRequest {
|
||||
lineInfoDO.setSex(String.valueOf(this.sex));
|
||||
lineInfoDO.setWantShopAreaId(Long.valueOf(this.areaCode));
|
||||
lineInfoDO.setId(this.lineId);
|
||||
if (StringUtils.isNotBlank(this.supervisor)) {
|
||||
lineInfoDO.setInvestmentManager(this.supervisor);
|
||||
}
|
||||
return lineInfoDO;
|
||||
}
|
||||
|
||||
|
||||
@@ -101,6 +101,9 @@ public class MiniAddPointRequest {
|
||||
@ApiModelProperty("区/县编码")
|
||||
private String districtCode;
|
||||
|
||||
@ApiModelProperty("铺位经纬度geohash")
|
||||
private String location;
|
||||
|
||||
public static PointDetailInfoDO convertDO(MiniAddPointRequest request) {
|
||||
PointDetailInfoDO result = new PointDetailInfoDO();
|
||||
result.setBusinessStatus(request.getBusinessStatus());
|
||||
|
||||
@@ -72,6 +72,11 @@ public class UpdatePointDetailRequest extends AddPointDetailRequest {
|
||||
|
||||
public static PointInfoDO convertPointDO(UpdatePointDetailRequest request) {
|
||||
PointInfoDO result = new PointInfoDO();
|
||||
result.setOpportunityPointName(request.getOpportunityPointName());
|
||||
result.setOpportunityPointCode(request.getOpportunityPointCode());
|
||||
result.setProvinceCode(request.getProvinceCode());
|
||||
result.setCityCode(request.getCityCode());
|
||||
result.setDistrictCode(request.getDistrictCode());
|
||||
result.setId(request.getPointId());
|
||||
result.setPointName(request.getPointName());
|
||||
result.setRegionId(request.getRegionId());
|
||||
|
||||
@@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
@@ -13,8 +14,8 @@ import javax.validation.constraints.NotBlank;
|
||||
@Data
|
||||
public class BerthOperationRequest {
|
||||
@ApiModelProperty(" 操作类型: 1(新增), 2(更新), 3(删除)")
|
||||
@NotBlank(message = "操作类型不能为空")
|
||||
private String opType;
|
||||
@NotNull(message = "操作类型不能为空")
|
||||
private Integer opType;
|
||||
|
||||
@ApiModelProperty("机会点编号")
|
||||
@NotBlank(message = "机会点编号不能为空")
|
||||
@@ -33,7 +34,7 @@ public class BerthOperationRequest {
|
||||
private String userName;
|
||||
|
||||
@ApiModelProperty("铺位ID")
|
||||
@NotBlank(message = "铺位ID不能为空")
|
||||
@NotNull(message = "铺位ID不能为空")
|
||||
private Integer berthId;
|
||||
|
||||
@ApiModelProperty("铺位名称")
|
||||
|
||||
@@ -66,6 +66,9 @@ public class MiniPointPageVO {
|
||||
@ApiModelProperty("纬度")
|
||||
private String latitude;
|
||||
|
||||
@ApiModelProperty("成功开店店名称")
|
||||
private String openShopName;
|
||||
|
||||
public static List<MiniPointPageVO> convertVO(List<MiniPointPageDTO> pointList, Map<Long, String> regionNameMap) {
|
||||
if(CollectionUtils.isEmpty(pointList)){
|
||||
return Lists.newArrayList();
|
||||
|
||||
Reference in New Issue
Block a user