|
|
|
@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.hxhq.business.domain.MjyJcgj; |
|
|
|
import com.hxhq.business.domain.StudyJcgj; |
|
|
|
import com.hxhq.business.dto.study.StudyListDto; |
|
|
|
import com.hxhq.business.enums.study.StudyBorrowStatusEnum; |
|
|
|
import com.hxhq.business.enums.study.StudyStatusEnum; |
|
|
|
import com.hxhq.business.enums.zykgl.JcgjlxEnum; |
|
|
|
import com.hxhq.business.enums.zykgl.JcmcysEnum; |
|
|
|
@ -199,12 +200,6 @@ public class StudyServiceImpl extends ServiceImpl implements |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void gd(StudySaveForm form) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void checkSd(Study study) { |
|
|
|
if(study==null){ |
|
|
|
throw new ServiceException("信息不存在"); |
|
|
|
@ -247,19 +242,68 @@ public class StudyServiceImpl extends ServiceImpl implements |
|
|
|
checkPermit(info); |
|
|
|
checkPassword(sign); |
|
|
|
info.setStatus(StudyStatusEnum.syz.getValue()); |
|
|
|
updateById(info); |
|
|
|
studyJcgjService.saveInfo(study.getId(), JcgjlxEnum.lc, JcmcysEnum.blue,"解锁实验", null,SecurityUtils.getUserId(),SecurityUtils.getNickName(),sign.getRemark()); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void gd(StudySaveForm form) { |
|
|
|
Study study = form.getStudy(); |
|
|
|
SignForm sign = form.getSign(); |
|
|
|
|
|
|
|
Study info = getById(study.getId()); |
|
|
|
if(info==null){ |
|
|
|
throw new ServiceException("信息不存在"); |
|
|
|
} |
|
|
|
if(!info.getStatus().equals(StudyStatusEnum.ysd.getValue())){ |
|
|
|
throw new ServiceException("当前状态不能申请归档"); |
|
|
|
} |
|
|
|
checkPermit(info); |
|
|
|
checkPassword(sign); |
|
|
|
info.setStatus(StudyStatusEnum.dgd.getValue()); |
|
|
|
updateById(info); |
|
|
|
studyJcgjService.saveInfo(study.getId(), JcgjlxEnum.lc, JcmcysEnum.blue,"申请归档", null,SecurityUtils.getUserId(),SecurityUtils.getNickName(),sign.getRemark()); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void jd(StudySaveForm form) { |
|
|
|
Study study = form.getStudy(); |
|
|
|
SignForm sign = form.getSign(); |
|
|
|
|
|
|
|
Study info = getById(study.getId()); |
|
|
|
if(info==null){ |
|
|
|
throw new ServiceException("信息不存在"); |
|
|
|
} |
|
|
|
if(!(info.getStatus().equals(StudyStatusEnum.gd.getValue()) && info.getBorrowStatus().equals(StudyBorrowStatusEnum.wjy.getValue()))){ |
|
|
|
throw new ServiceException("当前状态不能申请解档"); |
|
|
|
} |
|
|
|
checkPermit(info); |
|
|
|
checkPassword(sign); |
|
|
|
info.setStatus(StudyStatusEnum.djd.getValue()); |
|
|
|
updateById(info); |
|
|
|
studyJcgjService.saveInfo(study.getId(), JcgjlxEnum.lc, JcmcysEnum.blue,"申请解档", null,SecurityUtils.getUserId(),SecurityUtils.getNickName(),sign.getRemark()); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void jy(StudySaveForm form) { |
|
|
|
Study study = form.getStudy(); |
|
|
|
SignForm sign = form.getSign(); |
|
|
|
|
|
|
|
Study info = getById(study.getId()); |
|
|
|
if(info==null){ |
|
|
|
throw new ServiceException("信息不存在"); |
|
|
|
} |
|
|
|
if(!(info.getStatus().equals(StudyStatusEnum.gd.getValue()) && info.getBorrowStatus().equals(StudyBorrowStatusEnum.wjy.getValue()))){ |
|
|
|
throw new ServiceException("当前状态不能申请借阅"); |
|
|
|
} |
|
|
|
checkPermit(info); |
|
|
|
checkPassword(sign); |
|
|
|
info.setBorrowStatus(StudyBorrowStatusEnum.djy.getValue()); |
|
|
|
updateById(info); |
|
|
|
studyJcgjService.saveInfo(study.getId(), JcgjlxEnum.lc, JcmcysEnum.blue,"申请借阅", null,SecurityUtils.getUserId(),SecurityUtils.getNickName(),sign.getRemark()); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|