From 9555c7ee6324bb8d347df98b811118be9ff8874d Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Thu, 22 Jan 2026 19:33:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[=E6=A1=A3=E6=A1=88=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=20=E8=AF=95=E9=AA=8C=E6=A1=A3=E6=A1=88=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hxhq/business/service/impl/StudyServiceImpl.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyServiceImpl.java index 140c8f6..97abb7a 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyServiceImpl.java @@ -1,9 +1,6 @@ package com.hxhq.business.service.impl; -import java.util.ArrayList; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; +import java.util.*; import java.util.stream.Collectors; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -379,6 +376,7 @@ public class StudyServiceImpl extends ServiceImpl implements checkPermit(info); checkPassword(sign); info.setStatus(StudyStatusEnum.dgd.getValue()); + info.setGdApplyTime(new Date()); updateById(info); sign.setQmyy(info.getType().equals(StudyTypeEnum.sy.getValue())?"申请归档":info.getType().equals(StudyTypeEnum.fsy.getValue())?"申请归档":info.getType().equals(StudyTypeEnum.mjy.getValue())?"申请归档":""); sign.setQmyyEn(info.getType().equals(StudyTypeEnum.sy.getValue())?"Apply for Archiving":info.getType().equals(StudyTypeEnum.fsy.getValue())?"Apply for Archiving":info.getType().equals(StudyTypeEnum.mjy.getValue())?"Apply for Archiving":""); @@ -482,6 +480,7 @@ public class StudyServiceImpl extends ServiceImpl implements public List queryArchiveList(StudySearchForm form) { QueryWrapper queryWrapper = new QueryWrapper(); queryWrapper.eq("s.del_flag","0"); + queryWrapper.in("s.status",new Integer[]{StudyStatusEnum.dgd.getValue(),StudyStatusEnum.gd.getValue(),StudyStatusEnum.djd.getValue()}); queryWrapper.eq("s.type",form.getType()); if(StringUtils.isNoneBlank(form.getName())){ queryWrapper.like("s.name",form.getName()); @@ -549,7 +548,7 @@ public class StudyServiceImpl extends ServiceImpl implements if(!(info.getStatus().equals(StudyStatusEnum.gd.getValue()) && info.getBorrowStatus().equals(StudyBorrowStatusEnum.djy.getValue()))){ throw new ServiceException("当前状态不能同意/拒绝借阅"); } - info.setBorrowStatus(study.getStatus()); + info.setBorrowStatus(study.getBorrowStatus()); info.setBorrowStartDate(sign.getStartDate()); info.setBorrowEndDate(sign.getEndDate()); updateById(info);