feat:[REQ-3282] 创建基础的对象
This commit is contained in:
parent
f4d1687219
commit
1529797712
@ -0,0 +1,139 @@
|
||||
package cn.axzo.orgmanax.infra.dao.cooperateship.DO;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
|
||||
import lombok.*;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* (SaasCooperateShip)表实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-12-09 15:11:14
|
||||
*/
|
||||
@TableName(value = "saas_cooperate_ship")
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ToString(callSuper = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class SaasCooperateShip implements Serializable {
|
||||
|
||||
/**
|
||||
* 主健
|
||||
*/
|
||||
@TableId(
|
||||
type = IdType.AUTO
|
||||
)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 上级协同关系id
|
||||
*/
|
||||
private Long parentId;
|
||||
|
||||
/**
|
||||
* 工作台id
|
||||
*/
|
||||
private Long workspaceId;
|
||||
|
||||
/**
|
||||
* 工作台类型
|
||||
*/
|
||||
private Integer workspaceType;
|
||||
|
||||
/**
|
||||
* 工作台名称
|
||||
*/
|
||||
private String workspaceName;
|
||||
|
||||
/**
|
||||
* 1-在场,0-退场
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 入场时间
|
||||
*/
|
||||
private Date joinAt;
|
||||
|
||||
/**
|
||||
* 退场时间
|
||||
*/
|
||||
private Date resignAt;
|
||||
|
||||
/**
|
||||
* 单位id(如果是班组则插入队伍id)
|
||||
*/
|
||||
private Long organizationalUnitId;
|
||||
|
||||
/**
|
||||
* 单位名称
|
||||
*/
|
||||
private String organizationalUnitName;
|
||||
|
||||
/**
|
||||
* 协同关系类型 1.总包 2.建设单位 3监理单位 4劳务分包5专业分包6 OMS 7企业通用8企业内班组9项目内班组10企业内小组11项目内小组 30其它
|
||||
*/
|
||||
private Integer cooperateType;
|
||||
|
||||
/**
|
||||
* 组织架构的节点id
|
||||
*/
|
||||
private Long organizationalNodeId;
|
||||
|
||||
/**
|
||||
* 节点路径
|
||||
*/
|
||||
private String path;
|
||||
|
||||
/**
|
||||
* 合作关系 1.合作 2.直属
|
||||
*/
|
||||
private Integer partnerShip;
|
||||
|
||||
/**
|
||||
* 扩展字段
|
||||
*/
|
||||
@TableField(value = "ext", typeHandler = FastjsonTypeHandler.class)
|
||||
private JSONObject ext;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createAt;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
private Date updateAt;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private Long createBy;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
private Long updateBy;
|
||||
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
private Long isDelete = 0L;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,18 @@
|
||||
package cn.axzo.orgmanax.infra.dao.cooperateship.dao;
|
||||
|
||||
import cn.axzo.orgmanax.infra.dao.cooperateship.DO.SaasCooperateShip;
|
||||
import cn.axzo.orgmanax.infra.dao.cooperateship.mapper.SaasCooperateShipMapper;
|
||||
import cn.axzo.orgmanax.infra.dao.node.DO.OrganizationalNode;
|
||||
import cn.axzo.orgmanax.infra.dao.node.mapper.OrganizationalNodeMapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @author tanjie@axzo.cn
|
||||
* @date 2024/12/2 18:10
|
||||
*/
|
||||
@Repository
|
||||
public class SaasCooperateShipDao extends ServiceImpl<SaasCooperateShipMapper, SaasCooperateShip> {
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
package cn.axzo.orgmanax.infra.dao.cooperateship.mapper;
|
||||
|
||||
import cn.axzo.orgmanax.infra.dao.cooperateship.DO.SaasCooperateShip;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface SaasCooperateShipMapper extends BaseMapper<SaasCooperateShip> {
|
||||
}
|
||||
@ -1,10 +1,14 @@
|
||||
package cn.axzo.orgmanax.infra.dao.node.DO;
|
||||
package cn.axzo.orgmanax.infra.dao.nodeuser.DO;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
|
||||
import lombok.*;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
@ -24,11 +28,14 @@ import java.io.Serializable;
|
||||
@Builder
|
||||
@ToString(callSuper = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class OrganizationalNodeUserDo implements Serializable {
|
||||
public class OrganizationalNodeUser implements Serializable {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(
|
||||
type = IdType.AUTO
|
||||
)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
@ -129,11 +136,12 @@ public class OrganizationalNodeUserDo implements Serializable {
|
||||
/**
|
||||
* 状态 0正常 其它删除
|
||||
*/
|
||||
private Long isDelete;
|
||||
private Long isDelete = 0L;
|
||||
|
||||
/**
|
||||
* 扩展字段
|
||||
*/
|
||||
@TableField(value = "extra", typeHandler = FastjsonTypeHandler.class)
|
||||
private JSONObject extra;
|
||||
|
||||
/**
|
||||
@ -0,0 +1,17 @@
|
||||
package cn.axzo.orgmanax.infra.dao.nodeuser.dao;
|
||||
|
||||
import cn.axzo.orgmanax.infra.dao.node.DO.OrganizationalNode;
|
||||
import cn.axzo.orgmanax.infra.dao.node.mapper.OrganizationalNodeMapper;
|
||||
import cn.axzo.orgmanax.infra.dao.nodeuser.DO.OrganizationalNodeUser;
|
||||
import cn.axzo.orgmanax.infra.dao.nodeuser.mapper.OrganizationalNodeUserMapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @author tanjie@axzo.cn
|
||||
* @date 2024/12/2 18:10
|
||||
*/
|
||||
@Repository
|
||||
public class OrganizationalNodeUserDao extends ServiceImpl<OrganizationalNodeUserMapper, OrganizationalNodeUser> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
package cn.axzo.orgmanax.infra.dao.nodeuser.mapper;
|
||||
|
||||
import cn.axzo.orgmanax.infra.dao.nodeuser.DO.OrganizationalNodeUser;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author liuyang
|
||||
*/
|
||||
@Mapper
|
||||
public interface OrganizationalNodeUserMapper extends BaseMapper<OrganizationalNodeUser> {
|
||||
}
|
||||
@ -0,0 +1,114 @@
|
||||
package cn.axzo.orgmanax.infra.dao.orguser.DO;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.*;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 人员组织(OrgUser)表实体类
|
||||
*
|
||||
* @author makejava
|
||||
* @since 2024-12-09 15:11:01
|
||||
*/
|
||||
@TableName(value = "org_user")
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@ToString(callSuper = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class OrgUser implements Serializable {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(
|
||||
type = IdType.AUTO
|
||||
)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 自然人id
|
||||
*/
|
||||
private Long personId;
|
||||
|
||||
/**
|
||||
* 手机号,加密
|
||||
*/
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
* 用户真实姓名
|
||||
*/
|
||||
private String realName;
|
||||
|
||||
/**
|
||||
* 身份证号
|
||||
*/
|
||||
private String idNumber;
|
||||
|
||||
/**
|
||||
* 单位id
|
||||
*/
|
||||
private Long ouId;
|
||||
|
||||
/**
|
||||
* 租户id
|
||||
*/
|
||||
private Long workspaceId;
|
||||
|
||||
/**
|
||||
* 单位与租户id的键值对. eg:1_2
|
||||
*/
|
||||
private String ouWorkspacePair;
|
||||
|
||||
/**
|
||||
* 租户类型: 1-单位租户,2-项目租户,3-政务租户,6-OMS租户
|
||||
*/
|
||||
private Integer workspaceType;
|
||||
|
||||
/**
|
||||
* 状态:1-在场,3-离场,4-已删除,5-在职,6-离职
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 异动时间
|
||||
*/
|
||||
private Date transferTime;
|
||||
|
||||
/**
|
||||
* 操作人的id
|
||||
*/
|
||||
private Long operatorId;
|
||||
|
||||
/**
|
||||
* 操作人姓名
|
||||
*/
|
||||
private String operatorName;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createAt;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateAt;
|
||||
|
||||
/**
|
||||
* 状态 0-正常 其它删除
|
||||
*/
|
||||
private Long isDelete = 0L;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,11 @@
|
||||
package cn.axzo.orgmanax.infra.dao.orguser.dao;
|
||||
|
||||
import cn.axzo.orgmanax.infra.dao.orguser.DO.OrgUser;
|
||||
import cn.axzo.orgmanax.infra.dao.orguser.mapper.OrgUserMapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public class OrgUserDao extends ServiceImpl<OrgUserMapper, OrgUser> {
|
||||
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
package cn.axzo.orgmanax.infra.dao.orguser.mapper;
|
||||
|
||||
import cn.axzo.orgmanax.infra.dao.orguser.DO.OrgUser;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface OrgUserMapper extends BaseMapper<OrgUser> {
|
||||
}
|
||||
@ -1,10 +1,14 @@
|
||||
package cn.axzo.orgmanax.infra.dao.node.DO;
|
||||
package cn.axzo.orgmanax.infra.dao.unit.DO;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
|
||||
import lombok.*;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
@ -24,11 +28,14 @@ import java.io.Serializable;
|
||||
@Builder
|
||||
@ToString(callSuper = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class OrganizationalUnitDo implements Serializable {
|
||||
public class OrganizationalUnit implements Serializable {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(
|
||||
type = IdType.AUTO
|
||||
)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
@ -164,11 +171,12 @@ public class OrganizationalUnitDo implements Serializable {
|
||||
/**
|
||||
* 是否删除 0否,其他是
|
||||
*/
|
||||
private Long isDelete;
|
||||
private Long isDelete = 0L;
|
||||
|
||||
/**
|
||||
* 扩展字段
|
||||
*/
|
||||
@TableField(value = "extra", typeHandler = FastjsonTypeHandler.class)
|
||||
private JSONObject extra;
|
||||
|
||||
/**
|
||||
Loading…
Reference in New Issue
Block a user