修改实体类

hehai
rong.liu 4 years ago
parent df19430f91
commit 4b590cfd64
  1. 26
      src/main/java/com/msdw/tms/entity/ProjectHiddenEntity.java
  2. 10
      src/main/java/com/msdw/tms/service/impl/AchievementManagementServiceImpl.java

@ -3,40 +3,32 @@ package com.msdw.tms.entity;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import java.io.Serializable; import java.io.Serializable;
/**
* @author Mr.JK
* @date 2021年3月17日15:08:53
*/
@Accessors(chain = true)
@Data @Data
@ApiModel(value = "此表是在教师端成绩管理,虚仿以及教学列表展示中使用到")
@TableName("tms_project_hidden") @TableName("tms_project_hidden")
public class ProjectHiddenEntity implements Serializable { public class ProjectHiddenEntity implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(type = IdType.AUTO) @TableId(type = IdType.AUTO)
@ApiModelProperty(value = "主键")
private Integer id; private Integer id;
/** @ApiModelProperty(value = "项目id(对应hr_project_management主键)")
* 项目id
*/
private Integer projectId; private Integer projectId;
/** @ApiModelProperty(value = "实验教学id(对应tms_experimental_teaching主键)")
* 教学实验id
*/
private Integer teachId; private Integer teachId;
/** @ApiModelProperty(value = "是否隐藏(0不隐藏,1隐藏)")
* 是否隐藏
*/
private Integer isHidden; private Integer isHidden;
} }

@ -345,8 +345,8 @@ public class AchievementManagementServiceImpl extends ServiceImpl<AchievementMan
projectHiddenEntity.setTeachId(id); projectHiddenEntity.setTeachId(id);
projectHiddenEntity.setIsHidden(1); projectHiddenEntity.setIsHidden(1);
num = projectHiddenDao.insert(projectHiddenEntity); num = projectHiddenDao.insert(projectHiddenEntity);
if ( num <= 0){ if (num <= 0) {
R.error(400,"删除失败!"); R.error(400, "删除失败!");
} }
} }
@ -363,9 +363,9 @@ public class AchievementManagementServiceImpl extends ServiceImpl<AchievementMan
projectHiddenEntity.setProjectId(projectId); projectHiddenEntity.setProjectId(projectId);
projectHiddenEntity.setIsHidden(1); projectHiddenEntity.setIsHidden(1);
num = projectHiddenDao.insert(projectHiddenEntity); num = projectHiddenDao.insert(projectHiddenEntity);
if ( num <= 0){ if (num <= 0) {
R.error(400,"删除失败!"); R.error(400, "删除失败!");
} }
} }

Loading…
Cancel
Save