重构单点-2

This commit is contained in:
zjf committed 2024-12-09 14:36:59 +08:00
1 parent 4251d4960b
commit 887512c5fe
15 files changed
+204 -75

No files matched your search

@@ -21,6 +21,7 @@ package com.bsd.pjcloud.thirdparty.api.feign;
import com.bsd.pjcloud.common.core.constant.ServiceNameConstants;
import com.bsd.pjcloud.common.core.util.R;
import com.bsd.pjcloud.common.feign.annotation.NoToken;
import com.bsd.pjcloud.thirdparty.entity.ThirdPartyUserEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
@@ -43,5 +44,15 @@ public interface RemoterThirdPartyAuthService {
R zzdsso(@RequestParam("token") String token);
/**
* 根据钉钉号查询第三方表里面是否有这个人,也就是浙政钉总体系人员表
* @param employeeCode
* @return
*/
@NoToken
@GetMapping("/thirdPartyUser/getUserByEmployeeCode")
R<List<ThirdPartyUserEntity>> getUserByEmployeeCode(@RequestParam("employeeCode") String employeeCode);
}
@@ -0,0 +1,102 @@
package com.bsd.pjcloud.thirdparty.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.bsd.pjcloud.common.core.util.TenantTable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;
/**
* 联通底座部门表
*
* @author pigx
* @date 2024-12-03 12:43:57
*/
@Data
@TenantTable
@TableName("third_party_dept")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "联通底座部门表")
public class ThirdPartyDeptEntity extends Model<ThirdPartyDeptEntity> {
/**
* id主键
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description="id主键")
private Long id;
/**
* 部门名称
*/
@Schema(description="部门名称")
private String deptName;
/**
* 是否删除
*/
@Schema(description="是否删除")
private Boolean deleted;
/**
* 浙政钉组织编号
*/
@Schema(description="浙政钉组织编号")
private String dingtalkOrgCode;
/**
* 组织区域编码
*/
@Schema(description="组织区域编码")
private String regionCode;
/**
* 父id
*/
@Schema(description="父id")
private Long parentId;
/**
* 部门id
*/
@Schema(description="部门id")
private Long deptId;
/**
* 创建者
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description="创建者")
private String createBy;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description="创建时间")
private LocalDateTime createTime;
/**
* 更新者
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description="更新者")
private String updateBy;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description="更新时间")
private LocalDateTime updateTime;
/**
* 租户编号
*/
@Schema(description="租户编号")
private Long tenantId;
}
@@ -0,0 +1,109 @@
package com.bsd.pjcloud.thirdparty.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.bsd.pjcloud.common.core.util.TenantTable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;
/**
* 浙政钉用户表
*
* @author zjf
* @date 2024-12-03 13:38:08
*/
@Data
@TenantTable
@TableName("third_party_user")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "浙政钉用户表")
public class ThirdPartyUserEntity extends Model<ThirdPartyUserEntity> {
/**
* id
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description="id")
private Long id;
/**
* 组织名称
*/
@Schema(description="组织名称")
private String orgnizationId;
/**
* 是否删除
*/
@Schema(description="是否删除")
private Boolean deleted;
/**
* 部门id
*/
@Schema(description="部门id")
private Long deptId;
/**
* 用户id
*/
@Schema(description="用户id")
private Long userId;
/**
* 用户名
*/
@Schema(description="用户名")
private String username;
/**
* 昵称
*/
@Schema(description="昵称")
@TableField("nickName")
private String nickName;
/**
* 员工浙政钉编码
*/
@Schema(description="员工浙政钉编码")
private String dingtalkEmployeeCode;
/**
* 创建者
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description="创建者")
private String createBy;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
@Schema(description="创建时间")
private LocalDateTime createTime;
/**
* 更新者
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description="更新者")
private String updateBy;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
@Schema(description="更新时间")
private LocalDateTime updateTime;
/**
* 租户编号
*/
@Schema(description="租户编号")
private Long tenantId;
}