multi-admin/src/main/resources/application.yml
@@ -7,9 +7,9 @@ multipart: enabled: true # 单个文件大小 max-file-size: 100MB max-file-size: 500MB # 设置总上传的文件大小 max-request-size: 200MB max-request-size: 1GB mvc: pathmatch: matching-strategy: ant_path_matcher multi-system/src/main/java/com/gkhy/exam/system/domain/Catalogue.java
@@ -37,7 +37,7 @@ @TableField(value = "mess") private String mess; @ApiModelProperty("目录名称 (1范围目录 2技术类 3项目类 4组织环境目录 5领导作业目录 6策划目录 7支持目录 8运行目录 9绩效评价目录 10改进目录 11项目策划目录12生产过程目录13不合格品目录)") @ApiModelProperty("目录名称 (1范围目录 2技术类 3项目类 4组织环境目录 5领导作业目录 6策划目录 7支持目录 8运行目录 9绩效评价目录 10改进目录 11项目策划目录12生产过程目录13不合格品目录14项目交付)") @TableField(value = "type") private Integer type; multi-system/src/main/java/com/gkhy/exam/system/service/impl/InternalAuditEvaluateServiceImpl.java
@@ -48,12 +48,12 @@ if (!user.getUserType().equals(UserTypeEnum.SYSTEM_USER.getCode())&&!user.getUserType().equals(UserTypeEnum.COMPANY_USER.getCode())&&!user.getUserType().equals(UserTypeEnum.COMPANY_ADMIN.getCode())){ throw new ApiException("普通用户无法添加相关数据"); } ExStudent exStudent = exStudentMapper.selectStudentById(Long.valueOf(evaluate.getPersonId())); if ( user.getDeptId()!=null){ if ( user.getDeptId().equals(exStudent.getDeptId())) { throw new ApiException("请勿选择本部门成员"); } } // ExStudent exStudent = exStudentMapper.selectStudentById(Long.valueOf(evaluate.getPersonId())); // if ( user.getDeptId()!=null){ // if ( user.getDeptId().equals(exStudent.getDeptId())) { // throw new ApiException("请勿选择本部门成员"); // } // } evaluate.setCreateBy(SecurityUtils.getUsername()); evaluate.setCreateTime(LocalDateTime.now()); evaluateMapper.insert(evaluate); multi-system/src/main/java/com/gkhy/exam/system/service/impl/InternalAuditPersonServiceImpl.java
@@ -42,13 +42,13 @@ @Override public CommonResult insertPerson(InternalAuditPerson person) { SysUser user = SecurityUtils.getLoginUser().getUser(); ExStudent exStudent = exStudentMapper.selectStudentById(Long.valueOf(person.getPersonId())); if (user.getDeptId()!=null){ if (user.getDeptId().equals(exStudent.getDeptId())){ throw new ApiException("请勿选择本部门成员"); } } // SysUser user = SecurityUtils.getLoginUser().getUser(); // ExStudent exStudent = exStudentMapper.selectStudentById(Long.valueOf(person.getPersonId())); // if (user.getDeptId()!=null){ // if (user.getDeptId().equals(exStudent.getDeptId())){ // throw new ApiException("请勿选择本部门成员"); // } // } person.setCreateBy(SecurityUtils.getUsername()); person.setCreateTime(LocalDateTime.now()); personMapper.insert(person);