校验逻辑优化
This commit is contained in:
parent
73d7dfc36b
commit
78384ccaf5
|
@ -179,10 +179,10 @@ public class WebServiceImpl implements IWebService {
|
||||||
|
|
||||||
SysEvaluationRecord sysEvaluationRecord = recordMapper.selectById(recordId);
|
SysEvaluationRecord sysEvaluationRecord = recordMapper.selectById(recordId);
|
||||||
if (ObjectUtil.isEmpty(sysEvaluationRecord)) {
|
if (ObjectUtil.isEmpty(sysEvaluationRecord)) {
|
||||||
throw new ServiceException("未能查到测量记录,请确认后提交");
|
throw new ServiceException("未能查到测量记录,请确认后再提交");
|
||||||
}
|
}
|
||||||
if (sysEvaluationRecord.getStatus() == 1) {
|
if (sysEvaluationRecord.getStatus() == 0) {
|
||||||
throw new ServiceException("此量表已经答题完毕,请勿重复提交");
|
throw new ServiceException("此量表暂未开始作答,请确认后再提交");
|
||||||
}
|
}
|
||||||
SysScalePublishVo scalePublishVo = recordMapper.selectPublishByUseRecord(recordId);
|
SysScalePublishVo scalePublishVo = recordMapper.selectPublishByUseRecord(recordId);
|
||||||
//查询考核结果
|
//查询考核结果
|
||||||
|
|
Loading…
Reference in New Issue