字段调整
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package com.cool.store.enums.point;
|
||||
|
||||
/**
|
||||
* @author zhangchenbiao
|
||||
* @FileName: PointSourceEnum
|
||||
* @Description:店铺来源
|
||||
* @date 2024-04-18 15:12
|
||||
*/
|
||||
public enum PointSourceEnum {
|
||||
//店铺来源:1、鲜丰选址人员寻铺 2、加盟商自采
|
||||
POINT_SOURCE_1(1, "鲜丰选址人员寻铺"),
|
||||
POINT_SOURCE_2(2, "加盟商自采");
|
||||
|
||||
private Integer code;
|
||||
private String name;
|
||||
|
||||
PointSourceEnum(Integer code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(Integer code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -19,14 +19,14 @@
|
||||
<result column="point_score" jdbcType="INTEGER" property="pointScore" />
|
||||
<result column="select_status" jdbcType="TINYINT" property="selectStatus" />
|
||||
<result column="submit_audit_count" jdbcType="TINYINT" property="submitAuditCount" />
|
||||
<result column="is_line_upload" jdbcType="BIT" property="isLineUpload" />
|
||||
<result column="point_source" jdbcType="TINYINT" property="pointSource" />
|
||||
<result column="deleted" jdbcType="BIT" property="deleted" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="allColumn">
|
||||
id, point_code, point_name, region_id, shop_id, line_id, point_area, longitude, latitude, address, development_manager, operate_user_id, development_time, point_status, point_score, select_status, submit_audit_count, is_line_upload, deleted, create_time, update_time
|
||||
id, point_code, point_name, region_id, shop_id, line_id, point_area, longitude, latitude, address, development_manager, operate_user_id, development_time, point_status, point_score, select_status, submit_audit_count, point_source, deleted, create_time, update_time
|
||||
</sql>
|
||||
|
||||
<select id="getMyPointData" resultType="com.cool.store.vo.point.PointHomePageDataVO">
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
b.shop_id,
|
||||
b.select_status,
|
||||
b.operate_user_id,
|
||||
b.is_line_upload,
|
||||
b.point_source,
|
||||
b.create_time,
|
||||
b.update_time
|
||||
from
|
||||
|
||||
@@ -106,10 +106,10 @@ public class PointInfoDO {
|
||||
private Integer submitAuditCount;
|
||||
|
||||
/**
|
||||
* 是否是加盟商上传
|
||||
* 店铺来源
|
||||
*/
|
||||
@Column(name = "is_line_upload")
|
||||
private Boolean isLineUpload;
|
||||
@Column(name = "point_source")
|
||||
private Integer pointSource;
|
||||
|
||||
/**
|
||||
* 删除标识
|
||||
|
||||
@@ -26,6 +26,12 @@ public class PointDetailVO {
|
||||
@ApiModelProperty("所属大区")
|
||||
private Long regionId;
|
||||
|
||||
@ApiModelProperty("所属大区")
|
||||
private String regionNodeName;
|
||||
|
||||
@ApiModelProperty("店铺来源:1、鲜丰选址人员寻铺 2、加盟商自采")
|
||||
private Integer pointSource;
|
||||
|
||||
@ApiModelProperty("经度")
|
||||
private String longitude;
|
||||
|
||||
@@ -250,6 +256,9 @@ public class PointDetailVO {
|
||||
if(PointStatusEnum.POINT_STATUS_4.getCode().equals(pointInfo.getPointStatus())){
|
||||
result.setPointStatus(PointStatusEnum.POINT_STATUS_3.getCode());
|
||||
}
|
||||
result.setPointArea(pointInfo.getPointArea());
|
||||
result.setRegionId(pointInfo.getRegionId());
|
||||
result.setPointSource(pointInfo.getPointSource());
|
||||
result.setSelectStatus(pointInfo.getSelectStatus());
|
||||
result.setPointScore(pointInfo.getPointScore());
|
||||
result.setBusinessStatus(pointDetailInfo.getBusinessStatus());
|
||||
|
||||
@@ -110,6 +110,7 @@ public class PointServiceImpl implements PointService {
|
||||
throw new ServiceException(ErrorCodeEnum.POINT_NOT_EXIST);
|
||||
}
|
||||
PointDetailVO result = PointDetailVO.convertVO(pointInfo, pointDetailInfo);
|
||||
result.setRegionNodeName(regionService.getBelongWarRegionName(pointInfo.getRegionId()));
|
||||
if(Objects.nonNull(isGetNodeNo) && isGetNodeNo){
|
||||
result.setCurNodeNo(pointTodoInfoDAO.getCurNodeNoByPoint(pointId));
|
||||
}
|
||||
@@ -703,7 +704,7 @@ public class PointServiceImpl implements PointService {
|
||||
pointInfo.setSelectStatus(SelectStatusEnum.SELECT_STATUS_1.getCode());
|
||||
pointInfo.setDevelopmentManager(lineInfo.getDevelopmentManager());
|
||||
pointInfo.setDevelopmentTime(new Date());
|
||||
pointInfo.setIsLineUpload(Boolean.TRUE);
|
||||
pointInfo.setPointSource(PointSourceEnum.POINT_SOURCE_2.getCode());
|
||||
pointInfo.setPointCode(generateCode());
|
||||
Long pointId = pointInfoDAO.addPointInfo(pointInfo);
|
||||
pointDetailInfo.setPointId(pointId);
|
||||
|
||||
Reference in New Issue
Block a user