Merge remote-tracking branch 'origin/master'

master
shijie 4 years ago
commit bd85f5c909
  1. 2
      src/main/java/com/yipin/liuwanr/controller/ProjectManagementController.java
  2. 30
      src/main/java/com/yipin/liuwanr/entity/ProjectManagement.java
  3. 12
      src/main/java/com/yipin/liuwanr/mapper/ProjectManagementMapper.java

@ -171,7 +171,7 @@ public class ProjectManagementController {
vo.setUserId(userId); vo.setUserId(userId);
} }
if (null != projectName) { if (null != projectName) {
vo.setProjectName(projectName); vo.setQueryName(projectName);
} }
HashMap<String, Object> ret = service.queryManagements(vo,pageNo,pageSize); HashMap<String, Object> ret = service.queryManagements(vo,pageNo,pageSize);
int status = (int) ret.get("retcode"); int status = (int) ret.get("retcode");

@ -11,6 +11,12 @@ import io.swagger.annotations.ApiModelProperty;
@ApiModel(value = "Project_Management对象", description = "项目管理对象Project_Management") @ApiModel(value = "Project_Management对象", description = "项目管理对象Project_Management")
public class ProjectManagement { public class ProjectManagement {
private Integer pageNo;// 第几页,页码
private Integer pageSize;// 每页展示的数据条数
private String queryName;// 模糊查询名称,与数据库字段区分
@ApiModelProperty(value = "项目主键ID,编辑项目需要传,新增项目不需要传", name = "projectId", example = "223") @ApiModelProperty(value = "项目主键ID,编辑项目需要传,新增项目不需要传", name = "projectId", example = "223")
private Integer projectId;// 项目主键ID private Integer projectId;// 项目主键ID
@ -59,6 +65,30 @@ public class ProjectManagement {
@ApiModelProperty(hidden = true) @ApiModelProperty(hidden = true)
private Integer isShow; private Integer isShow;
public Integer getPageNo() {
return pageNo;
}
public String getQueryName() {
return queryName;
}
public void setQueryName(String queryName) {
this.queryName = queryName;
}
public void setPageNo(Integer pageNo) {
this.pageNo = pageNo;
}
public Integer getPageSize() {
return pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
@ApiModelProperty(value = "是否启用实验数据(0启用 1不启用)", name = "isstartexperimental", example = "0", required = true) @ApiModelProperty(value = "是否启用实验数据(0启用 1不启用)", name = "isstartexperimental", example = "0", required = true)
private Integer isstartexperimental;//是否启用实验数据(0启用 1不启用) private Integer isstartexperimental;//是否启用实验数据(0启用 1不启用)

@ -1,14 +1,9 @@
package com.yipin.liuwanr.mapper; package com.yipin.liuwanr.mapper;
import java.util.List;
import com.yipin.liuwanr.entity.*; import com.yipin.liuwanr.entity.*;
import org.apache.ibatis.annotations.Delete; import org.apache.ibatis.annotations.*;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options; import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
/** /**
* 项目管理系统 项目管理表 * 项目管理系统 项目管理表
@ -77,6 +72,7 @@ public interface ProjectManagementMapper {
"<if test='userId==null'>AND roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0</if>", "<if test='userId==null'>AND roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0</if>",
" <if test='userId!=null'>AND ((roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0) OR ( isdel = 0 AND projectPermissions != 0 AND userId = #{userId} ))</if>",//教师端,一开始进入项目管理,看见自己创建的和其他人看见的 " <if test='userId!=null'>AND ((roleId NOT LIKE '%3%' AND isdel = 0 AND projectPermissions != 0) 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>",
" ORDER BY creationTime desc", " ORDER BY creationTime desc",
"</script>"}) "</script>"})
List<ProjectManagement> queryManagementsExportTest(ProjectManagement management); List<ProjectManagement> queryManagementsExportTest(ProjectManagement management);

Loading…
Cancel
Save