上传代码

hehai
jiakun.lin 4 years ago
parent ad53b77262
commit 0a844f816f
  1. 10
      src/main/java/com/msdw/tms/dao/ProjectHiddenDao.java
  2. 42
      src/main/java/com/msdw/tms/entity/ProjectHiddenEntity.java
  3. 7
      src/main/java/com/msdw/tms/service/ProjectHiddenService.java
  4. 18
      src/main/java/com/msdw/tms/service/impl/ProjectHiddenServiceImpl.java
  5. 6
      src/main/resources/mapper/tms/ProjectHiddenDao.xml

@ -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<ProjectHiddenEntity> {
}

@ -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;
}

@ -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<ProjectHiddenEntity> {
}

@ -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<ProjectHiddenDao, ProjectHiddenEntity> implements ProjectHiddenService {
}

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.msdw.tms.dao.ProjectDao">
</mapper>
Loading…
Cancel
Save