Browse Source

更新火苗儿 面试时间限制为必填

DESKTOP-VAEGFGM\zqc 8 months ago
parent
commit
190af2d580

+ 2 - 0
menduner/menduner-flames-api/src/main/java/com/citupro/module/menduner/flames/enums/ErrorCodeConstants.java

@@ -3,6 +3,7 @@ package com.citupro.module.menduner.flames.enums;
 import com.citu.framework.common.exception.ErrorCode;
 import com.citu.framework.common.exception.enums.GlobalErrorCodeConstants;
 import com.citu.framework.common.exception.enums.ServiceErrorCodeRange;
+import com.citu.framework.common.pojo.CommonResult;
 
 /**
  * 门墩儿 im 错误码枚举类
@@ -32,6 +33,7 @@ public interface ErrorCodeConstants {
 
     ErrorCode  PRACICE_SUBMIT_RECORD_STUDENT_INTERNSHIP =new ErrorCode(1_130_002_003, "此学生已经在该企业实习了!");
 
+    ErrorCode PRACICE_SUBMIT_RECORD_INTERVIEW_DATE_NOT_NULL =new ErrorCode(1_130_002_004, "面试时间不能为空!");;
 
     //学校
     ErrorCode  SCHOOL_UPDATE_ERROR =new ErrorCode(1_130_003_001, "审核通过的学校不允许修改资料");

+ 3 - 0
menduner/menduner-flames-biz/src/main/java/com/citupro/module/menduner/flames/serviceimpl/PraciceSubmitRecordServiceImpl.java

@@ -141,6 +141,9 @@ public class PraciceSubmitRecordServiceImpl extends ServiceImpl<PraciceSubmitRec
 
     @Override
     public CommonResult praciceSubmitRecordStudentInterview(Long practiceSubmitRecordId, Long studentId, LocalDateTime interviewDate, String appType) {
+        if(null  == interviewDate){
+            return CommonResult.error(ErrorCodeConstants.PRACICE_SUBMIT_RECORD_INTERVIEW_DATE_NOT_NULL);
+        }
         praciceSubmitRecordMapper.update(null, new LambdaUpdateWrapper<PraciceSubmitRecord>()
                 .eq(PraciceSubmitRecord::getPracticeSubmitRecordId, practiceSubmitRecordId)
                 .eq(PraciceSubmitRecord::getStudentId, studentId)