package com.zcloud.basic.info.domain.model;

import com.jjb.saas.framework.domain.model.BaseE;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * web-domain
 *
 * @Author zhaokai
 * @Date 2025-11-10 14:13:46
 */
@Data
public class DepartmentSuperviseE extends BaseE {
    //主键
    private Long id;
    //业务主键id
    private String superviseId;
    //监管部门id
    private Long superviseDepartmentId;
    //部门id
    private Long departmentId;
    //乐观锁
    private Integer version;
    //创建人
    private Long createId;
    //创建人姓名
    private String createName;
    //创建时间
    private LocalDateTime createTime;
    //更新人
    private Long updateId;
    //修改人名称
    private String updateName;
    //更新时间
    private LocalDateTime updateTime;
    //描述
    private String remarks;
    //是否删除
    private String deleteEnum;
    //租户id
    private Long tenantId;
    //机构id
    private Long orgId;
    //环境
    private String env;

    public void initAdd(DepartmentSuperviseE departmentSuperviseE, Long corpinfoId, Long id) {
        /**
         *  if(Objects.isNull(departmentIds) || departmentIds.length == 0){
         *             // 没有部门id集合, 可能是没有给部门权限
         *             return new ArrayList<>();
         *         }
         *         List<PostDepartmentE> postDepartmentEList = new ArrayList<>();
         *         for (Long departmentId : departmentIds) {
         *             PostDepartmentE e = new PostDepartmentE();
         *             e.setPostDepartmentId(UuidUtil.get32UUID());
         *             e.setPostId(postId);
         *             e.setDepartmentId(departmentId);
         *             postDepartmentEList.add(e);
         *         }
         *         return postDepartmentEList;
         */
    }
}

