|
|
@ -532,7 +532,7 @@ public class StudyServiceImpl extends ServiceImpl implements |
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.sy,StudyTypeEnum.getEnumByValue(info.getType()),info.getId(),info.getName(),info.getSn(),info.getLeaderName(),study.getStatus().equals(StudyStatusEnum.ysd.getValue())?"拒绝归档":"同意归档"); |
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.sy,StudyTypeEnum.getEnumByValue(info.getType()),info.getId(),info.getName(),info.getSn(),info.getLeaderName(),study.getStatus().equals(StudyStatusEnum.ysd.getValue())?"拒绝归档":"同意归档"); |
|
|
|
|
|
|
|
|
String title = StudyTypeEnum.getEnumByValue(info.getType()).getText()+"【"+info.getName()+"("+info.getSn()+")】提交的申请归档已"+sign.getQmyy()+(study.getStatus().equals(StudyStatusEnum.ysd.getValue())?(",原因:"+sign.getRemark()):""); |
|
|
String title = StudyTypeEnum.getEnumByValue(info.getType()).getText()+"【"+info.getName()+"("+info.getSn()+")】提交的申请归档已"+sign.getQmyy()+(study.getStatus().equals(StudyStatusEnum.ysd.getValue())?(",原因:"+sign.getRemark()):""); |
|
|
noticeService.save(title,study.getLeader(),getNoticeUrl(info)); |
|
|
|
|
|
|
|
|
noticeService.save(title,info.getLeader(),getNoticeUrl(info)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private String getNoticeUrl(Study study){ |
|
|
private String getNoticeUrl(Study study){ |
|
|
@ -562,7 +562,7 @@ public class StudyServiceImpl extends ServiceImpl implements |
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.sy,StudyTypeEnum.getEnumByValue(info.getType()),info.getId(),info.getName(),info.getSn(),info.getLeaderName(),study.getStatus().equals(StudyStatusEnum.gd.getValue())?"拒绝解档":"同意解档"); |
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.sy,StudyTypeEnum.getEnumByValue(info.getType()),info.getId(),info.getName(),info.getSn(),info.getLeaderName(),study.getStatus().equals(StudyStatusEnum.gd.getValue())?"拒绝解档":"同意解档"); |
|
|
|
|
|
|
|
|
String title = StudyTypeEnum.getEnumByValue(info.getType()).getText()+"【"+info.getName()+"("+info.getSn()+")】提交的申请解档已"+sign.getQmyy()+(study.getStatus().equals(StudyStatusEnum.gd.getValue())?(",原因:"+sign.getRemark()):""); |
|
|
String title = StudyTypeEnum.getEnumByValue(info.getType()).getText()+"【"+info.getName()+"("+info.getSn()+")】提交的申请解档已"+sign.getQmyy()+(study.getStatus().equals(StudyStatusEnum.gd.getValue())?(",原因:"+sign.getRemark()):""); |
|
|
noticeService.save(title,study.getLeader(),getNoticeUrl(info)); |
|
|
|
|
|
|
|
|
noticeService.save(title,info.getLeader(),getNoticeUrl(info)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
@ -589,7 +589,7 @@ public class StudyServiceImpl extends ServiceImpl implements |
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.sy,StudyTypeEnum.getEnumByValue(info.getType()),info.getId(),info.getName(),info.getSn(),info.getLeaderName(),study.getBorrowStatus().equals(StudyBorrowStatusEnum.wjy.getValue())?"拒绝借阅":"同意借阅"); |
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.sy,StudyTypeEnum.getEnumByValue(info.getType()),info.getId(),info.getName(),info.getSn(),info.getLeaderName(),study.getBorrowStatus().equals(StudyBorrowStatusEnum.wjy.getValue())?"拒绝借阅":"同意借阅"); |
|
|
|
|
|
|
|
|
String title = StudyTypeEnum.getEnumByValue(info.getType()).getText()+"【"+info.getName()+"("+info.getSn()+")】提交的申请借阅已"+sign.getQmyy()+(study.getBorrowStatus().equals(StudyBorrowStatusEnum.wjy.getValue())?(",原因:"+sign.getRemark()):""); |
|
|
String title = StudyTypeEnum.getEnumByValue(info.getType()).getText()+"【"+info.getName()+"("+info.getSn()+")】提交的申请借阅已"+sign.getQmyy()+(study.getBorrowStatus().equals(StudyBorrowStatusEnum.wjy.getValue())?(",原因:"+sign.getRemark()):""); |
|
|
noticeService.save(title,study.getLeader(),getNoticeUrl(info)); |
|
|
|
|
|
|
|
|
noticeService.save(title,info.getLeader(),getNoticeUrl(info)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
@ -615,7 +615,33 @@ public class StudyServiceImpl extends ServiceImpl implements |
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.sy,StudyTypeEnum.getEnumByValue(info.getType()),info.getId(),info.getName(),info.getSn(),info.getLeaderName(),"确认归还"); |
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.sy,StudyTypeEnum.getEnumByValue(info.getType()),info.getId(),info.getName(),info.getSn(),info.getLeaderName(),"确认归还"); |
|
|
|
|
|
|
|
|
String title = StudyTypeEnum.getEnumByValue(info.getType()).getText()+"【"+info.getName()+"("+info.getSn()+")】提交的申请借阅已确认归还"; |
|
|
String title = StudyTypeEnum.getEnumByValue(info.getType()).getText()+"【"+info.getName()+"("+info.getSn()+")】提交的申请借阅已确认归还"; |
|
|
noticeService.save(title,study.getLeader(),getNoticeUrl(info)); |
|
|
|
|
|
|
|
|
noticeService.save(title,info.getLeader(),getNoticeUrl(info)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
@Transactional |
|
|
|
|
|
public void autoGh() { |
|
|
|
|
|
QueryWrapper<Study> queryWrapper = new QueryWrapper<>(); |
|
|
|
|
|
queryWrapper.eq("status",StudyStatusEnum.gd.getValue()); |
|
|
|
|
|
queryWrapper.eq("borrow_status",StudyBorrowStatusEnum.jyz.getValue()); |
|
|
|
|
|
queryWrapper.lt("borrow_end_date",DateUtils.getDate()); |
|
|
|
|
|
List<Study> studyList = list(queryWrapper); |
|
|
|
|
|
for(Study info : studyList){ |
|
|
|
|
|
try{ |
|
|
|
|
|
info.setBorrowStatus(StudyBorrowStatusEnum.wjy.getValue()); |
|
|
|
|
|
updateById(info); |
|
|
|
|
|
|
|
|
|
|
|
SignForm sign = new SignForm(); |
|
|
|
|
|
sign.setQmyy("到期自动归还"); |
|
|
|
|
|
sign.setQmyyEn("Check-out End on Time"); |
|
|
|
|
|
studyJcgjService.saveInfo(info.getId(), JcgjlxEnum.lc, JcmcysEnum.blue,null,null,sign); |
|
|
|
|
|
|
|
|
|
|
|
String title = StudyTypeEnum.getEnumByValue(info.getType()).getText()+"【"+info.getName()+"("+info.getSn()+")】提交的申请借阅已到期自动归还"; |
|
|
|
|
|
noticeService.save(title,info.getLeader(),getNoticeUrl(info)); |
|
|
|
|
|
}catch (Exception e){ |
|
|
|
|
|
log.error("自动归还试验出错",e); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//endregion |
|
|
//endregion |
|
|
|