修改实体类

hehai
rong.liu 4 years ago
parent df19430f91
commit 4b590cfd64
  1. 26
      src/main/java/com/msdw/tms/entity/ProjectHiddenEntity.java
  2. 8
      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.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
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
@ApiModel(value = "此表是在教师端成绩管理,虚仿以及教学列表展示中使用到")
@TableName("tms_project_hidden")
public class ProjectHiddenEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "主键")
private Integer id;
/**
* 项目id
*/
@ApiModelProperty(value = "项目id(对应hr_project_management主键)")
private Integer projectId;
/**
* 教学实验id
*/
@ApiModelProperty(value = "实验教学id(对应tms_experimental_teaching主键)")
private Integer teachId;
/**
* 是否隐藏
*/
@ApiModelProperty(value = "是否隐藏(0不隐藏,1隐藏)")
private Integer isHidden;
}

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

Loading…
Cancel
Save