master
jiakun.lin 4 years ago
parent a8212f1a66
commit 4d298b4a08
  1. 36
      src/main/java/com/yipin/liuwanr/entity/ProjectManagement.java
  2. 2
      src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java

@ -65,6 +65,24 @@ public class ProjectManagement {
@ApiModelProperty(hidden = true) @ApiModelProperty(hidden = true)
private Integer isShow; private Integer isShow;
@ApiModelProperty(value = "是否启用实验数据(0启用 1不启用)", name = "isstartexperimental", example = "0", required = true)
private Integer isstartexperimental;//是否启用实验数据(0启用 1不启用)
@ApiModelProperty(value = "是否启用实验提示(0启用 1不启用)", name = "isstartexperimentSuggests", example = "0", required = true)
private Integer isstartexperimentSuggests;
@ApiModelProperty(value = "用户ID", name = "userId", example = "4", required = true)
private Integer userId;
@ApiModelProperty(value = "知识点是否启用(0、启用 1、不展示)", name = "knowledgePointsIsEnable", example = "0", required = true)
private Integer knowledgePointsIsEnable;
@ApiModelProperty(value = "实验介绍是否启用(0、启用 1、不展示)", name = "userId", example = "0", required = true)
private Integer experimentIntroductionIsEnable;
@ApiModelProperty(value = "是否启用(0:启用,1:禁用)")
private Integer enable;
public Integer getPageNo() { public Integer getPageNo() {
return pageNo; return pageNo;
} }
@ -89,24 +107,6 @@ public class ProjectManagement {
this.pageSize = pageSize; this.pageSize = pageSize;
} }
@ApiModelProperty(value = "是否启用实验数据(0启用 1不启用)", name = "isstartexperimental", example = "0", required = true)
private Integer isstartexperimental;//是否启用实验数据(0启用 1不启用)
@ApiModelProperty(value = "是否启用实验提示(0启用 1不启用)", name = "isstartexperimentSuggests", example = "0", required = true)
private Integer isstartexperimentSuggests;
@ApiModelProperty(value = "用户ID", name = "userId", example = "4", required = true)
private Integer userId;
@ApiModelProperty(value = "知识点是否启用(0、启用 1、不展示)", name = "knowledgePointsIsEnable", example = "0", required = true)
private Integer knowledgePointsIsEnable;
@ApiModelProperty(value = "实验介绍是否启用(0、启用 1、不展示)", name = "userId", example = "0", required = true)
private Integer experimentIntroductionIsEnable;
@ApiModelProperty(value = "是否启用(0:启用,1:禁用)")
private Integer enable;
public Integer getEnable() { public Integer getEnable() {
return enable; return enable;
} }

@ -70,7 +70,7 @@ public interface ProjectManagementMapper {
@Select({"<script>", @Select({"<script>",
"select * from hr_project_management where enable = 0",//(roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0)", "select * from hr_project_management where enable = 0",//(roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0)",
"<if test='userId==null'>AND founder != 14 AND isdel = 0 AND projectPermissions != 0</if>", "<if test='userId==null'>AND founder != 14 AND isdel = 0 AND projectPermissions != 0</if>",
" <if test='userId!=null'>AND ((AND founder != 14 AND isdel = 0 AND projectPermissions != 0) " + " <if test='userId!=null'>AND ((founder != 14 AND isdel = 0 AND projectPermissions != 0) " +
" OR ( isdel = 0 AND projectPermissions != 0 AND userId = #{userId} ))</if>",//教师端,一开始进入项目管理,看见自己创建的和其他人看见的 " OR ( isdel = 0 AND projectPermissions != 0 AND userId = #{userId} ))</if>",//教师端,一开始进入项目管理,看见自己创建的和其他人看见的
" <if test='systemId!=null'> and systemId=#{systemId}</if>", " <if test='systemId!=null'> and systemId=#{systemId}</if>",
" <if test='queryName!=null'> and projectName LIKE '%' #{queryName} '%'</if>", " <if test='queryName!=null'> and projectName LIKE '%' #{queryName} '%'</if>",

Loading…
Cancel
Save