From 0a844f816f134614698add2125842f4a6b335320 Mon Sep 17 00:00:00 2001 From: "jiakun.lin" Date: Wed, 17 Mar 2021 15:29:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/msdw/tms/dao/ProjectHiddenDao.java | 10 +++++ .../msdw/tms/entity/ProjectHiddenEntity.java | 42 +++++++++++++++++++ .../tms/service/ProjectHiddenService.java | 7 ++++ .../impl/ProjectHiddenServiceImpl.java | 18 ++++++++ .../resources/mapper/tms/ProjectHiddenDao.xml | 6 +++ 5 files changed, 83 insertions(+) create mode 100644 src/main/java/com/msdw/tms/dao/ProjectHiddenDao.java create mode 100644 src/main/java/com/msdw/tms/entity/ProjectHiddenEntity.java create mode 100644 src/main/java/com/msdw/tms/service/ProjectHiddenService.java create mode 100644 src/main/java/com/msdw/tms/service/impl/ProjectHiddenServiceImpl.java create mode 100644 src/main/resources/mapper/tms/ProjectHiddenDao.xml diff --git a/src/main/java/com/msdw/tms/dao/ProjectHiddenDao.java b/src/main/java/com/msdw/tms/dao/ProjectHiddenDao.java new file mode 100644 index 0000000..75566f6 --- /dev/null +++ b/src/main/java/com/msdw/tms/dao/ProjectHiddenDao.java @@ -0,0 +1,10 @@ +package com.msdw.tms.dao; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.msdw.tms.entity.ProjectHiddenEntity; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface ProjectHiddenDao extends BaseMapper { + +} diff --git a/src/main/java/com/msdw/tms/entity/ProjectHiddenEntity.java b/src/main/java/com/msdw/tms/entity/ProjectHiddenEntity.java new file mode 100644 index 0000000..bcb9d25 --- /dev/null +++ b/src/main/java/com/msdw/tms/entity/ProjectHiddenEntity.java @@ -0,0 +1,42 @@ +package com.msdw.tms.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.io.Serializable; + +/** + * @author Mr.JK + * @date 2021年3月17日15:08:53 + */ +@Accessors(chain = true) +@Data +@TableName("tms_project_hidden") +public class ProjectHiddenEntity implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * 主键id + */ + @TableId(type = IdType.AUTO) + private Integer id; + + /** + * 项目id + */ + private Integer projectId; + + /** + * 教学实验id + */ + private Integer teachId; + + /** + * 是否隐藏 + */ + private Integer isHidden; +} diff --git a/src/main/java/com/msdw/tms/service/ProjectHiddenService.java b/src/main/java/com/msdw/tms/service/ProjectHiddenService.java new file mode 100644 index 0000000..4a8ed2b --- /dev/null +++ b/src/main/java/com/msdw/tms/service/ProjectHiddenService.java @@ -0,0 +1,7 @@ +package com.msdw.tms.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.msdw.tms.entity.ProjectHiddenEntity; + +public interface ProjectHiddenService extends IService { +} diff --git a/src/main/java/com/msdw/tms/service/impl/ProjectHiddenServiceImpl.java b/src/main/java/com/msdw/tms/service/impl/ProjectHiddenServiceImpl.java new file mode 100644 index 0000000..ac567ae --- /dev/null +++ b/src/main/java/com/msdw/tms/service/impl/ProjectHiddenServiceImpl.java @@ -0,0 +1,18 @@ +package com.msdw.tms.service.impl; + + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.msdw.tms.dao.ProjectHiddenDao; +import com.msdw.tms.entity.ProjectHiddenEntity; +import com.msdw.tms.service.ProjectHiddenService; +import org.springframework.stereotype.Service; + +import java.util.Collection; +import java.util.Map; +import java.util.function.Function; + +@Service("projectHiddenService") +public class ProjectHiddenServiceImpl extends ServiceImpl implements ProjectHiddenService { + + +} diff --git a/src/main/resources/mapper/tms/ProjectHiddenDao.xml b/src/main/resources/mapper/tms/ProjectHiddenDao.xml new file mode 100644 index 0000000..4b8bc59 --- /dev/null +++ b/src/main/resources/mapper/tms/ProjectHiddenDao.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file