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