Browse Source

feat: [试验管理] status>=5的都不能锁定了

master
memorylkf 2 months ago
parent
commit
e23d707531
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyServiceImpl.java

+ 1
- 1
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyServiceImpl.java View File

@ -340,7 +340,7 @@ public class StudyServiceImpl extends ServiceImpl implements
if(study==null){ if(study==null){
throw new ServiceException("信息不存在"); throw new ServiceException("信息不存在");
} }
if(study.getStatus().equals(StudyStatusEnum.ysd.getValue())){
if(study.getStatus().compareTo(StudyStatusEnum.ysd.getValue())>=0){
throw new ServiceException("该试验已锁定"); throw new ServiceException("该试验已锁定");
} }
checkPermit(study); checkPermit(study);

Loading…
Cancel
Save