hubin преди 1 година
родител
ревизия
865edd6836

+ 7 - 4
src/main/java/com/aizuda/boot/modules/system/entity/SysDepartment.java

@@ -50,10 +50,6 @@ public class SysDepartment extends BaseEntity {
 	@OrderBy
 	private Integer sort;
 
-	@Schema(description = "主管ID")
-	@PositiveOrZero
-	private Long directorId;
-
 	@Schema(description = "备注")
 	@Size(max = 255)
 	private String remark;
@@ -62,4 +58,11 @@ public class SysDepartment extends BaseEntity {
 	@PositiveOrZero
 	private Integer status;
 
+	@Schema(description = "主管ID")
+	@PositiveOrZero
+	private Long headId;
+
+	@Schema(description = "主管名称")
+	private String headName;
+
 }

+ 0 - 37
src/main/java/com/aizuda/boot/modules/system/entity/SysDepartmentHead.java

@@ -1,37 +0,0 @@
-/*
- * 爱组搭,低代码组件化开发平台
- * ------------------------------------------
- * 受知识产权保护,请勿删除版权申明,开发平台不允许做非法网站,后果自负
- */
-package com.aizuda.boot.modules.system.entity;
-
-import com.aizuda.core.bean.SuperEntity;
-import com.aizuda.core.validation.Create;
-import io.swagger.v3.oas.annotations.media.Schema;
-import jakarta.validation.constraints.NotNull;
-import jakarta.validation.constraints.PositiveOrZero;
-import lombok.Getter;
-import lombok.Setter;
-
-/**
- * 系统部门主管
- *
- * @author 青苗
- * @since 2024-03-22
- */
-@Getter
-@Setter
-@Schema(name = "SysDepartmentHead", description = "系统部门主管")
-public class SysDepartmentHead extends SuperEntity {
-
-    @Schema(description = "部门ID")
-    @NotNull(groups = Create.class)
-    @PositiveOrZero
-    private Long departmentId;
-
-    @Schema(description = "主管ID")
-    @NotNull(groups = Create.class)
-    @PositiveOrZero
-    private Long headId;
-
-}

+ 0 - 21
src/main/java/com/aizuda/boot/modules/system/mapper/SysDepartmentHeadMapper.java

@@ -1,21 +0,0 @@
-/*
- * 爱组搭,低代码组件化开发平台
- * ------------------------------------------
- * 受知识产权保护,请勿删除版权申明,开发平台不允许做非法网站,后果自负
- */
-package com.aizuda.boot.modules.system.mapper;
-
-import com.aizuda.boot.modules.system.entity.SysDepartmentHead;
-import com.aizuda.service.mapper.CrudMapper;
-
-/**
- * <p>
- * 系统部门主管 Mapper 接口
- * </p>
- *
- * @author 青苗
- * @since 2024-03-22
- */
-public interface SysDepartmentHeadMapper extends CrudMapper<SysDepartmentHead> {
-
-}

+ 0 - 19
src/main/java/com/aizuda/boot/modules/system/service/ISysDepartmentHeadService.java

@@ -1,19 +0,0 @@
-/*
- * 爱组搭,低代码组件化开发平台
- * ------------------------------------------
- * 受知识产权保护,请勿删除版权申明,开发平台不允许做非法网站,后果自负
- */
-package com.aizuda.boot.modules.system.service;
-
-import com.aizuda.boot.modules.system.entity.SysDepartmentHead;
-import com.aizuda.service.service.IBaseService;
-
-/**
- * 系统部门主管 服务类
- *
- * @author 青苗
- * @since 2024-03-22
- */
-public interface ISysDepartmentHeadService extends IBaseService<SysDepartmentHead> {
-
-}

+ 0 - 23
src/main/java/com/aizuda/boot/modules/system/service/impl/SysDepartmentHeadServiceImpl.java

@@ -1,23 +0,0 @@
-/*
- * 爱组搭,低代码组件化开发平台
- * ------------------------------------------
- * 受知识产权保护,请勿删除版权申明,开发平台不允许做非法网站,后果自负
- */
-package com.aizuda.boot.modules.system.service.impl;
-
-import com.aizuda.boot.modules.system.entity.SysDepartmentHead;
-import com.aizuda.boot.modules.system.mapper.SysDepartmentHeadMapper;
-import com.aizuda.boot.modules.system.service.ISysDepartmentHeadService;
-import com.aizuda.service.service.BaseServiceImpl;
-import org.springframework.stereotype.Service;
-
-/**
- * 系统部门主管 服务实现类
- *
- * @author 青苗
- * @since 2024-03-22
- */
-@Service
-public class SysDepartmentHeadServiceImpl extends BaseServiceImpl<SysDepartmentHeadMapper, SysDepartmentHead> implements ISysDepartmentHeadService {
-
-}