企业同步
This commit is contained in:
@@ -35,6 +35,11 @@ public class DatasourceInfoDTO {
|
||||
* 数据库密码
|
||||
*/
|
||||
private String dbPwd;
|
||||
|
||||
/**
|
||||
* dbName
|
||||
*/
|
||||
private String dbName;
|
||||
|
||||
|
||||
public static List<DatasourceInfoDTO> convertList(List<EnterpriseConfigDO> configList){
|
||||
@@ -48,6 +53,7 @@ public class DatasourceInfoDTO {
|
||||
datasource.setDbPort(enterpriseConfig.getDbPort());
|
||||
datasource.setDbUser(enterpriseConfig.getDbUser());
|
||||
datasource.setDbPwd(enterpriseConfig.getDbPwd());
|
||||
datasource.setDbName(enterpriseConfig.getDbName());
|
||||
resultList.add(datasource);
|
||||
}
|
||||
return resultList;
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.cool.store.dto.dept;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author 邵凌志
|
||||
* @date 2020/12/2 14:17
|
||||
*/
|
||||
@Data
|
||||
public class SyncTreeNode {
|
||||
|
||||
private String id;
|
||||
|
||||
private String pid;
|
||||
|
||||
private String name;
|
||||
|
||||
private List<SyncTreeNode> child;
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package com.cool.store.dto.region;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
|
||||
/**
|
||||
* @author byd
|
||||
*/
|
||||
@Builder
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class RegionDTO {
|
||||
/**
|
||||
* 自增ID
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 父ID
|
||||
*/
|
||||
private String parentId;
|
||||
|
||||
|
||||
/**
|
||||
* dinging部门id
|
||||
*/
|
||||
private String synDingDeptId;
|
||||
|
||||
/**
|
||||
* 是否删除标记
|
||||
*/
|
||||
private Boolean deleted;
|
||||
|
||||
/**
|
||||
* 区域门店数量
|
||||
*/
|
||||
private Integer storeNum;
|
||||
|
||||
/**
|
||||
* 区域门店范围是否
|
||||
*/
|
||||
private Boolean storeRange = false;
|
||||
|
||||
/**
|
||||
* 门店地址 非DO
|
||||
*/
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 门店经度 非DO
|
||||
*/
|
||||
private String longitude;
|
||||
|
||||
|
||||
/**
|
||||
* 纬度 非DO
|
||||
*/
|
||||
private String latitude;
|
||||
|
||||
/**
|
||||
* 门店编号 非DO
|
||||
*/
|
||||
private String storeCode;
|
||||
|
||||
|
||||
/**
|
||||
* 大区名称
|
||||
*/
|
||||
private String zoneName;
|
||||
|
||||
/**
|
||||
* brand 主品牌
|
||||
*/
|
||||
private String brand;
|
||||
|
||||
/**
|
||||
* 管理分区
|
||||
*/
|
||||
private String mangerCity;
|
||||
|
||||
/**
|
||||
* 经营城市
|
||||
*/
|
||||
private String bizCity;
|
||||
|
||||
/**
|
||||
* 省区
|
||||
*/
|
||||
private String provinceName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
package com.cool.store.dto.region;
|
||||
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName RegionNode
|
||||
* @Description 用一句话描述什么
|
||||
*/
|
||||
@Data
|
||||
public class RegionNode {
|
||||
/**
|
||||
* 自增ID
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 区域ID
|
||||
*/
|
||||
private String regionId;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 父ID
|
||||
*/
|
||||
private String parentId;
|
||||
|
||||
private String parentName;
|
||||
|
||||
/**
|
||||
* 分组ID
|
||||
*/
|
||||
private String groupId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Long createTime;
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createName;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Long updateTime;
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateName;
|
||||
|
||||
/**
|
||||
* 子节点
|
||||
*/
|
||||
private List<RegionNode> children;
|
||||
|
||||
/**
|
||||
* 是否有区域权限
|
||||
*/
|
||||
private Boolean isAuth;
|
||||
|
||||
/**
|
||||
* 门店数量
|
||||
*/
|
||||
private Long storeCount;
|
||||
|
||||
/**
|
||||
* dinging部门id
|
||||
*/
|
||||
private String synDingDeptId;
|
||||
|
||||
/**
|
||||
* root path store
|
||||
*/
|
||||
private String regionType;
|
||||
|
||||
/**
|
||||
* 路径
|
||||
*/
|
||||
private String regionPath;
|
||||
|
||||
private String fullRegionPath;
|
||||
|
||||
public String getFullRegionPath() {
|
||||
if(id != null && id == 1L){
|
||||
return "/1/";
|
||||
}
|
||||
if (StringUtils.isNotBlank(regionPath)) {
|
||||
return regionPath + id + "/";
|
||||
} else {
|
||||
return "/" + id + "/";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.cool.store.dto.region;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* describe:
|
||||
*
|
||||
* @author zhouyiping
|
||||
* @date 2021/05/31
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public class RegionStoreNumMsgDTO {
|
||||
private String eid;
|
||||
private List<Long> regionIdList;
|
||||
public RegionStoreNumMsgDTO(){}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.cool.store.dto.region;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @author 邵凌志
|
||||
* @date 2020/12/22 13:48
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class RegionSyncDTO {
|
||||
|
||||
/**
|
||||
* 区域id
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 区域钉钉id
|
||||
*/
|
||||
private String synDingDeptId;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.cool.store.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author zhangchenbiao
|
||||
* @date 2023-06-02 05:01
|
||||
*/
|
||||
@Data
|
||||
public class EnterpriseUserDepartmentDO implements Serializable {
|
||||
@ApiModelProperty("")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty("用户id")
|
||||
private String userId;
|
||||
|
||||
@ApiModelProperty("部门id")
|
||||
private String departmentId;
|
||||
|
||||
@ApiModelProperty("创建时间")
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty("更新时间")
|
||||
private Date updateTime;
|
||||
|
||||
@ApiModelProperty("是否是部门权限数据:0否,1是")
|
||||
private Boolean isHasAuth;
|
||||
|
||||
public EnterpriseUserDepartmentDO(String userId, String departmentId, Boolean isHasAuth) {
|
||||
this.userId = userId;
|
||||
this.departmentId = departmentId;
|
||||
this.isHasAuth = isHasAuth;
|
||||
}
|
||||
|
||||
public EnterpriseUserDepartmentDO() {}
|
||||
}
|
||||
@@ -76,6 +76,29 @@ public class RegionDO implements Serializable {
|
||||
@ApiModelProperty("第三方唯一id")
|
||||
private String thirdDeptId;
|
||||
|
||||
private Boolean storeRange = false;
|
||||
|
||||
/**
|
||||
* 门店地址 非DO
|
||||
*/
|
||||
private String address;
|
||||
|
||||
/**
|
||||
* 门店经度 非DO
|
||||
*/
|
||||
private String longitude;
|
||||
|
||||
|
||||
/**
|
||||
* 纬度 非DO
|
||||
*/
|
||||
private String latitude;
|
||||
|
||||
/**
|
||||
* 门店编号 非DO
|
||||
*/
|
||||
private String storeCode;
|
||||
|
||||
public String getFullRegionPath() {
|
||||
if(id != null && id == 1L){
|
||||
return "/1/";
|
||||
|
||||
@@ -129,5 +129,5 @@ public class StoreDO implements Serializable {
|
||||
private String extendField;
|
||||
|
||||
@ApiModelProperty("地址经纬度point")
|
||||
private byte[] addressPoint;
|
||||
private String addressPoint;
|
||||
}
|
||||
@@ -71,4 +71,9 @@ public class SysDepartmentDO implements Serializable {
|
||||
|
||||
@ApiModelProperty("部门所有子部门id,以英文逗号分隔")
|
||||
private String subIds;
|
||||
|
||||
/**
|
||||
* 是否是叶子节点
|
||||
*/
|
||||
private Boolean isLeaf;
|
||||
}
|
||||
@@ -2,10 +2,7 @@ package com.cool.store.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.Serializable;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -13,9 +10,6 @@ import lombok.NoArgsConstructor;
|
||||
* @date 2023-05-19 02:54
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class UserAuthMappingDO implements Serializable {
|
||||
|
||||
@ApiModelProperty("主键")
|
||||
@@ -44,4 +38,15 @@ public class UserAuthMappingDO implements Serializable {
|
||||
|
||||
@ApiModelProperty("更新时间")
|
||||
private Long updateTime;
|
||||
|
||||
public UserAuthMappingDO(String userId, String mappingId, String type, String source, String createId, Long createTime) {
|
||||
this.userId = userId;
|
||||
this.mappingId = mappingId;
|
||||
this.type = type;
|
||||
this.source = source;
|
||||
this.createId = createId;
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public UserAuthMappingDO(){}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.cool.store.vo.oss;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author zhangchenbiao
|
||||
* @FileName: OssUploadConfigVO
|
||||
* @Description: oss 上传config
|
||||
* @date 2023-06-01 13:46
|
||||
*/
|
||||
@Data
|
||||
public class OssUploadConfigVO {
|
||||
|
||||
@ApiModelProperty("域名")
|
||||
private String accessKeyId;
|
||||
|
||||
@ApiModelProperty("策略 Base64编过")
|
||||
private String policy;
|
||||
|
||||
@ApiModelProperty("对Policy签名后的字符串")
|
||||
private String signature;
|
||||
|
||||
@ApiModelProperty("上传目录")
|
||||
private String dir;
|
||||
|
||||
@ApiModelProperty("域名")
|
||||
private String host;
|
||||
|
||||
@ApiModelProperty("上传策略Policy失效时间")
|
||||
private String expire;
|
||||
|
||||
public OssUploadConfigVO(String accessKeyId, String policy, String signature, String dir, String host, String expire) {
|
||||
this.accessKeyId = accessKeyId;
|
||||
this.policy = policy;
|
||||
this.signature = signature;
|
||||
this.dir = dir;
|
||||
this.host = host;
|
||||
this.expire = expire;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user