@@ -44,6 +44,7 @@ public class SysUserEditBo
/** 部门ID */
@Excel(name = "部门编号", type = Type.IMPORT)
+ @ApiModelProperty("部门编号")
private Long deptId;
/** 用户账号 */
@@ -111,7 +111,7 @@ public class ExamConfigServiceImpl extends ServiceImpl<ExamConfigMapper, ExamCon
*/
private void validEntityBeforeSave(ExamConfig entity){
//TODO 做一些数据校验,如唯一约束
- if(checkMajorCategoryIdUnique(entity)){
+ if(Validator.isNotNull(entity.getCategoryId())&&checkMajorCategoryIdUnique(entity)){
throw new CustomException("该分类ID配置已存在");
}