This commit is contained in:
@@ -0,0 +1,124 @@
|
||||
|
||||
|
||||
package jnpf.model.store;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @版本: V3.1.0
|
||||
* @版权: 引迈信息技术有限公司(https://www.jnpfsoft.com)
|
||||
* @作者: JNPF开发平台组
|
||||
* @日期: 2023-07-11
|
||||
*/
|
||||
@Data
|
||||
public class Store {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 门店名称
|
||||
**/
|
||||
private String storeName;
|
||||
|
||||
/**
|
||||
* 所属组织
|
||||
**/
|
||||
private String organizeId;
|
||||
|
||||
/**
|
||||
* 所属组织名称
|
||||
**/
|
||||
private String organizeName;
|
||||
|
||||
/**
|
||||
* 门店展示图
|
||||
**/
|
||||
private String storePic;
|
||||
|
||||
/**
|
||||
* 负责人
|
||||
**/
|
||||
private String storeHeadUserId;
|
||||
|
||||
/**
|
||||
* 负责人
|
||||
**/
|
||||
private String storeHeadUserName;
|
||||
|
||||
/**
|
||||
* 定位
|
||||
**/
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 是否禁用
|
||||
**/
|
||||
private String disabled;
|
||||
|
||||
/**
|
||||
* 启用禁用状态名字
|
||||
*/
|
||||
private String disableStatus;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
**/
|
||||
private String longitude;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
**/
|
||||
private String latitude;
|
||||
|
||||
/**
|
||||
* 距离
|
||||
**/
|
||||
private int distance;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
**/
|
||||
private List<StoreUser> users;
|
||||
|
||||
/**
|
||||
* 上级组织
|
||||
*/
|
||||
private String parentOrganizeId;
|
||||
|
||||
/**
|
||||
* 上级组织
|
||||
*/
|
||||
private String parentOrganizeName;
|
||||
/**
|
||||
* 面积(㎡)
|
||||
*/
|
||||
private BigDecimal areaNum;
|
||||
/**
|
||||
* 是否设置区域(1: 是, 0: 否)
|
||||
*/
|
||||
private Integer setRegion;
|
||||
/**
|
||||
* 区域列表
|
||||
*/
|
||||
private List<StoreRegionVo> regionList;
|
||||
|
||||
/**
|
||||
* 第三方平台id;(用于存储)
|
||||
*/
|
||||
private String thirdpartyPlatformId;
|
||||
|
||||
/**
|
||||
* 第三方平台名称;(只做展示渲染)
|
||||
*/
|
||||
private String thirdpartyPlatformName;
|
||||
|
||||
/**
|
||||
* 收银门店编码;
|
||||
*/
|
||||
private String cashierStoreEnCode;
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package jnpf.model.store;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
import jnpf.base.Pagination;
|
||||
import java.util.List;
|
||||
import jnpf.util.generater.DataSwapUtil;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @版本: V3.1.0
|
||||
* @版权: 引迈信息技术有限公司(https://www.jnpfsoft.com)
|
||||
* @作者: JNPF开发平台组
|
||||
* @日期: 2023-07-11
|
||||
*/
|
||||
@Data
|
||||
public class StorePagination extends Pagination {
|
||||
|
||||
private String selectKey;
|
||||
|
||||
private String json;
|
||||
|
||||
private String dataType;
|
||||
|
||||
private String superQueryJson;
|
||||
|
||||
private List<Store> data;
|
||||
|
||||
|
||||
/** 门店名称 */
|
||||
@JsonProperty("storename")
|
||||
private String storename;
|
||||
|
||||
/** 所属组织 */
|
||||
@JsonProperty("organizeid")
|
||||
private String organizeid;
|
||||
|
||||
/** 负责人 */
|
||||
@JsonProperty("storeheaduserid")
|
||||
private String storeheaduserid;
|
||||
|
||||
/** 定位 */
|
||||
@JsonProperty("address")
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 菜单id
|
||||
*/
|
||||
private String menuId;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
@JsonProperty("longitude")
|
||||
private String longitude;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
*/
|
||||
@JsonProperty("latitude")
|
||||
private String latitude;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package jnpf.model.store;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 门店岗位信息vo
|
||||
*
|
||||
* @author yanwenfu
|
||||
* @create 2023-11-06
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
public class StorePositionInfoVo {
|
||||
|
||||
/** 岗位id */
|
||||
private String positionId;
|
||||
|
||||
/** 门店成员数量 */
|
||||
private Integer storeUserNum = 0;
|
||||
|
||||
/** 用户ids */
|
||||
private List<String> userIdList = new ArrayList<>();
|
||||
|
||||
public StorePositionInfoVo(String positionId) {
|
||||
this.positionId = positionId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
|
||||
|
||||
package jnpf.model.store;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class StoreRegionVo {
|
||||
/**
|
||||
* 自增id
|
||||
*/
|
||||
private String id;
|
||||
/**
|
||||
* 是否默认数据(0-否 1-是)
|
||||
*/
|
||||
private Integer isDefault;
|
||||
/**
|
||||
* 区域名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 桌台数
|
||||
*/
|
||||
@NotNull(message = "桌台数不能为空")
|
||||
private Integer deskCount;
|
||||
/**
|
||||
* 座位数
|
||||
*/
|
||||
@NotNull(message = "座位数不能为空")
|
||||
private Integer seatCount;
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
|
||||
|
||||
package jnpf.model.store;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @版本: V3.1.0
|
||||
* @版权: 引迈信息技术有限公司(https://www.jnpfsoft.com)
|
||||
* @作者: JNPF开发平台组
|
||||
* @日期: 2023-07-11
|
||||
*/
|
||||
@Data
|
||||
public class StoreUser {
|
||||
|
||||
/** 用户id **/
|
||||
@JsonProperty("userid")
|
||||
private String userid;
|
||||
|
||||
/** 门店id **/
|
||||
@JsonProperty("storeid")
|
||||
private String storeid;
|
||||
|
||||
/** 用户姓名 **/
|
||||
@JsonProperty("username")
|
||||
private String username;
|
||||
|
||||
/** 手机号 **/
|
||||
@JsonProperty("mobilenum")
|
||||
private String mobilenum;
|
||||
|
||||
/** 岗位名称 **/
|
||||
@JsonProperty("position")
|
||||
private String position;
|
||||
|
||||
/** 岗位id */
|
||||
private String positionId;
|
||||
|
||||
/** 可排班标识 **/
|
||||
@JsonProperty("shiftsmarks")
|
||||
private String shiftsmarks;
|
||||
|
||||
/** 账号 */
|
||||
private String account;
|
||||
|
||||
/** 组织名称 */
|
||||
private String organizeName;
|
||||
|
||||
/** 组织id */
|
||||
private String organizeId;
|
||||
|
||||
/** 职等id */
|
||||
private String gradeId;
|
||||
|
||||
/** 职等名称 */
|
||||
private String gradeName;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package jnpf.model.store;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
/**
|
||||
* describe
|
||||
*
|
||||
* @author HuangLinPan
|
||||
* @date 2023/12/05
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
public class StoreUserNumVo {
|
||||
|
||||
/** 主键 */
|
||||
private String id;
|
||||
|
||||
/** 门店名称 **/
|
||||
private String storename;
|
||||
|
||||
private Integer userNum;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package jnpf.model.store.dto;
|
||||
|
||||
import jnpf.model.store.Store;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 批量新增门店
|
||||
*/
|
||||
@Data
|
||||
public class BatchSaveStoreDto {
|
||||
|
||||
private String organizeid;
|
||||
|
||||
private List<Store> storeList;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package jnpf.model.store.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 查询异常门店 id 列表,POST 请求体,避免 GET 下 storeIds 过多。
|
||||
*/
|
||||
@Data
|
||||
public class StoreAbnormalIdsQueryDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private List<String> storeIds;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package jnpf.model.store.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 按门店 id 分页查询(切租户、无数据源绑定),POST 请求体,避免 GET 下 storeIds 过长。
|
||||
*/
|
||||
@Data
|
||||
public class StorePageByIdsNoDsQueryDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String tenantId;
|
||||
private List<String> storeIds;
|
||||
private String storeName;
|
||||
private Integer currentPage;
|
||||
private Integer pageSize;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package jnpf.model.store.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 按门店 id 分页查询,POST 请求体,避免 GET 下 storeIds 过长。
|
||||
*/
|
||||
@Data
|
||||
public class StorePageByIdsQueryDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private List<String> storeIds;
|
||||
private String storeName;
|
||||
private Integer currentPage;
|
||||
private Integer pageSize;
|
||||
private Integer sortNum;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package jnpf.model.store.dto;
|
||||
|
||||
import jnpf.model.store.StoreUser;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class StoreUserDto {
|
||||
/**
|
||||
* 门店id
|
||||
*/
|
||||
private String storeId;
|
||||
/**
|
||||
* 设置值班人集合
|
||||
*/
|
||||
private List<StoreUser> users;
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package jnpf.model.store.vo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 门店基本信息VO
|
||||
*
|
||||
* @author Flynn Chan
|
||||
* @create 2024-07-30
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class StoreBaseListVO implements Serializable {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 门店名称
|
||||
**/
|
||||
private String storeName;
|
||||
|
||||
/**
|
||||
* 所属组织
|
||||
**/
|
||||
private String organizeId;
|
||||
|
||||
/**
|
||||
* 负责人
|
||||
**/
|
||||
private String storeHeadUserId;
|
||||
|
||||
/**
|
||||
* 定位
|
||||
**/
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 是否禁用(1: 是, 0: 否)
|
||||
**/
|
||||
private Integer disabled;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
**/
|
||||
private String longitude;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
**/
|
||||
private String latitude;
|
||||
|
||||
public String getDisabledName() {
|
||||
return disabled != null ? (disabled.equals(1) ? "已禁用" : "已启用") : "未获取到状态";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package jnpf.model.store.vo;
|
||||
|
||||
import jnpf.entity.StoreEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 门店位置信息
|
||||
*
|
||||
* @author shitou
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class StoreLocationVO {
|
||||
/**
|
||||
* 定位
|
||||
**/
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
**/
|
||||
private String longitude;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
**/
|
||||
private String latitude;
|
||||
|
||||
public static StoreLocationVO convert(StoreEntity store) {
|
||||
if (Objects.isNull(store)) {
|
||||
return null;
|
||||
}
|
||||
return StoreLocationVO.builder()
|
||||
.address(store.getAddress())
|
||||
.longitude(store.getLongitude())
|
||||
.latitude(store.getLatitude())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package jnpf.model.store.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 用户门店关联表
|
||||
*/
|
||||
@Data
|
||||
public class StoreUserRelationVo {
|
||||
|
||||
private String id;
|
||||
|
||||
|
||||
private String storeId;
|
||||
|
||||
|
||||
private String userId;
|
||||
|
||||
|
||||
private String organizeId;
|
||||
|
||||
|
||||
private String positionId;
|
||||
|
||||
|
||||
private String rankId;
|
||||
|
||||
|
||||
private Integer deleteMark;
|
||||
|
||||
|
||||
private String tenantId;
|
||||
|
||||
private String storeName;
|
||||
|
||||
private String storeManagerUserId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
|
||||
|
||||
package jnpf.model.store.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import jnpf.model.store.StoreUser;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @版本: V3.1.0
|
||||
* @版权: 引迈信息技术有限公司(https://www.jnpfsoft.com)
|
||||
* @作者: JNPF开发平台组
|
||||
* @日期: 2023-07-11
|
||||
*/
|
||||
@Data
|
||||
public class StoreUsersVo {
|
||||
/** 主键 */
|
||||
private String id;
|
||||
|
||||
/** 门店名称 **/
|
||||
private String storename;
|
||||
|
||||
/** 用户id **/
|
||||
private List<StoreUser> users;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package jnpf.model.store.vo;
|
||||
|
||||
import jnpf.model.store.Store;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* describe
|
||||
*
|
||||
* @author HuangLinPan
|
||||
* @date 2023/12/19
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
public class UserStoreListVo {
|
||||
|
||||
/** 用户id */
|
||||
private String userId;
|
||||
/** 用户门店集合 */
|
||||
private List<Store> stores = new ArrayList<>();
|
||||
}
|
||||
Reference in New Issue
Block a user