Browse Source

fix:[资源库管理]消息通知

master
15881625488@163.com 2 months ago
parent
commit
7cdf67f26f
4 changed files with 90 additions and 69 deletions
  1. +42
    -35
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjFfjlServiceImpl.java
  2. +2
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjServiceImpl.java
  3. +44
    -34
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyFfjlServiceImpl.java
  4. +2
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyServiceImpl.java

+ 42
- 35
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjFfjlServiceImpl.java View File

@ -16,9 +16,7 @@ import com.hxhq.business.enums.archive.ArchiveLogTypeEnum;
import com.hxhq.business.enums.zykgl.*;
import com.hxhq.business.enums.zykgl.JlztEnum;
import com.hxhq.business.form.gyzj.*;
import com.hxhq.business.service.IArchiveLogService;
import com.hxhq.business.service.IGyzjFfjlJcgjService;
import com.hxhq.business.service.IStudyGyzjService;
import com.hxhq.business.service.*;
import com.hxhq.business.utils.JctUtil;
import com.hxhq.common.core.exception.ServiceException;
import com.hxhq.common.core.utils.DateUtils;
@ -30,10 +28,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hxhq.business.mapper.GyzjFfjlMapper;
import com.hxhq.business.domain.GyzjFfjl;
import com.hxhq.business.service.IGyzjFfjlService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestBody;
/**
* 发放记录-发放记录Service业务层处理
@ -51,6 +47,8 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
private IStudyGyzjService studyGyzjService;
@Autowired
private IArchiveLogService archiveLogService;
@Autowired
private INoticeService noticeService;
//region 发放记录
@ -127,10 +125,10 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
}
GyzjFfjl gyzjFfjlOld = this.getById(form.getId());
if (gyzjFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!gyzjFfjlOld.getJlzt().equals(JlztEnum.wsd.getValue())) {
throw new ServiceException("发放记录【" + gyzjFfjlOld.getMc() + "】不是未锁定状态,不能加签");
throw new ServiceException("发放回收记录【" + gyzjFfjlOld.getMc() + "】不是未锁定状态,不能加签");
}
//稽查轨迹
gyzjFfjlJcgjService.saveJcgj(gyzjFfjlOld.getId(), JcgjlxEnum.bcsm.getValue(), "补充说明", JcmcysEnum.orange.getValue(), null,qmr, form.getRemark());
@ -152,13 +150,13 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
}
GyzjFfjl gyzjFfjlOld = this.getById(form.getId());
if (gyzjFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!gyzjFfjlOld.getJlzt().equals(JlztEnum.gd.getValue())) {
throw new ServiceException("发放记录【" + gyzjFfjlOld.getMc() + "】不是归档状态,不能借阅");
throw new ServiceException("发放回收记录【" + gyzjFfjlOld.getMc() + "】不是归档状态,不能借阅");
}
if (!gyzjFfjlOld.getJyzt().equals(JyztEnum.wjy.getValue())) {
throw new ServiceException("发放记录【" + gyzjFfjlOld.getMc() + "】不是未借阅状态,不能借阅");
throw new ServiceException("发放回收记录【" + gyzjFfjlOld.getMc() + "】不是未借阅状态,不能借阅");
}
//申请借阅后借阅状态更新为待借阅等待档案员审核期间无法进行其他操作
gyzjFfjlOld.setJyzt(JyztEnum.djy.getValue());
@ -205,10 +203,10 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
}
GyzjFfjl gyzjFfjlOld = this.getById(form.getId());
if (gyzjFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!gyzjFfjlOld.getJlzt().equals(JlztEnum.gd.getValue())) {
throw new ServiceException("发放记录【" + gyzjFfjlOld.getMc() + "】未归档,不能解档");
throw new ServiceException("发放回收记录【" + gyzjFfjlOld.getMc() + "】未归档,不能解档");
}
//申请解档后状态更新为待解档等待档案员审核期间无法进行其他操作
gyzjFfjlOld.setJlzt(JlztEnum.djd.getValue());
@ -240,7 +238,7 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
if (gyzjFfjlList.size() > 0) {
for (GyzjFfjl gyzj : gyzjFfjlList) {
if (!gyzj.getJlzt().equals(JlztEnum.ysd.getValue())) {
throw new ServiceException("发放记录【" + gyzj.getMc() + "】不是锁定状态,不能归档");
throw new ServiceException("发放回收记录【" + gyzj.getMc() + "】不是锁定状态,不能归档");
}
}
for (GyzjFfjl gyzjFfjl : gyzjFfjlList) {
@ -273,10 +271,10 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
}
GyzjFfjl gyzjFfjlOld = this.getById(form.getId());
if (gyzjFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!gyzjFfjlOld.getJlzt().equals(JlztEnum.ysd.getValue())) {
throw new ServiceException("发放记录【" + gyzjFfjlOld.getMc() + "】不是锁定状态,不能归档");
throw new ServiceException("发放回收记录【" + gyzjFfjlOld.getMc() + "】不是锁定状态,不能归档");
}
//申请归档档案员可在档案管理中进行确认归档审核申请后状态更新成待归档
gyzjFfjlOld.setJlzt(JlztEnum.dgd.getValue());
@ -309,7 +307,7 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
List<GyzjFfjl> gyzjFfjlList = this.list(queryWrapper);
List<GyzjFfjlJcgj> gyzjFfjlJcgjList = new ArrayList<>();
if (gyzjFfjlList.size() <= 0) {
throw new ServiceException("发放记录不是未锁定状态,不能锁定");
throw new ServiceException("发放回收记录不是未锁定状态,不能锁定");
}
for (GyzjFfjl gyzjFfjl : gyzjFfjlList) {
//锁定
@ -338,10 +336,10 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
}
GyzjFfjl gyzjFfjlOld = this.getById(form.getId());
if (gyzjFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!gyzjFfjlOld.getJlzt().equals(JlztEnum.wsd.getValue())) {
throw new ServiceException("发放记录【" + gyzjFfjlOld.getMc() + "】不是未锁定状态,不能锁定");
throw new ServiceException("发放回收记录【" + gyzjFfjlOld.getMc() + "】不是未锁定状态,不能锁定");
}
gyzjFfjlOld.setJlzt(JlztEnum.ysd.getValue());
this.updateById(gyzjFfjlOld);
@ -367,10 +365,10 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
}
GyzjFfjl gyzjFfjlOld = this.getById(form.getId());
if (gyzjFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!gyzjFfjlOld.getJlzt().equals(JlztEnum.ysd.getValue())) {
throw new ServiceException("发放记录【" + gyzjFfjlOld.getMc() + "】不是已锁定状态,不能解锁");
throw new ServiceException("发放回收记录【" + gyzjFfjlOld.getMc() + "】不是已锁定状态,不能解锁");
}
//点击解锁状态更新为入库
gyzjFfjlOld.setJlzt(JlztEnum.wsd.getValue());
@ -388,7 +386,7 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
public void gh(GhForm form, Gyzj gyzj, SysUser ghr1, SysUser ghr2, SysUser jsr1, SysUser jsr2) {
GyzjFfjl gyzjFfjl = this.queryLastInfoByGyzjId(form.getId());
if (gyzjFfjl == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
// 更新发放记录
gyzjFfjl.setFfzytj(form.getGhzytj());
@ -573,10 +571,10 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
}
GyzjFfjl gyzjFfjlOld = this.getById(form.getId());
if (gyzjFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!gyzjFfjlOld.getJlzt().equals(JlztEnum.dgd.getValue())) {
throw new ServiceException("发放记录【" + gyzjFfjlOld.getMc() + "】不是待归档状态,不能操作");
throw new ServiceException("发放回收记录【" + gyzjFfjlOld.getMc() + "】不是待归档状态,不能操作");
}
gyzjFfjlOld.setJlzt(JlztEnum.gd.getValue());
this.updateById(gyzjFfjlOld);
@ -600,10 +598,10 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
}
GyzjFfjl gyzjFfjlOld = this.getById(form.getId());
if (gyzjFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!gyzjFfjlOld.getJlzt().equals(JlztEnum.dgd.getValue())) {
throw new ServiceException("发放记录【" + gyzjFfjlOld.getMc() + "】不是待归档状态,不能操作");
throw new ServiceException("发放回收记录【" + gyzjFfjlOld.getMc() + "】不是待归档状态,不能操作");
}
gyzjFfjlOld.setJlzt(JlztEnum.ysd.getValue());
gyzjFfjlOld.setDazt(DaztEnum.wgd.getValue());
@ -629,10 +627,10 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
}
GyzjFfjl gyzjFfjlOld = this.getById(form.getId());
if (gyzjFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!gyzjFfjlOld.getJlzt().equals(JlztEnum.djd.getValue())) {
throw new ServiceException("发放记录【" + gyzjFfjlOld.getMc() + "】不是待解档状态,不能操作");
throw new ServiceException("发放回收记录【" + gyzjFfjlOld.getMc() + "】不是待解档状态,不能操作");
}
gyzjFfjlOld.setJlzt(JlztEnum.ysd.getValue());
gyzjFfjlOld.setDazt(DaztEnum.wgd.getValue());
@ -657,10 +655,10 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
}
GyzjFfjl gyzjFfjlOld = this.getById(form.getId());
if (gyzjFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!gyzjFfjlOld.getJlzt().equals(JlztEnum.djd.getValue())) {
throw new ServiceException("发放记录【" + gyzjFfjlOld.getMc() + "】不是待解档状态,不能操作");
throw new ServiceException("发放回收记录【" + gyzjFfjlOld.getMc() + "】不是待解档状态,不能操作");
}
gyzjFfjlOld.setJlzt(JlztEnum.gd.getValue());
this.updateById(gyzjFfjlOld);
@ -686,10 +684,10 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
}
GyzjFfjl gyzjFfjlOld = this.getById(form.getId());
if (gyzjFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!gyzjFfjlOld.getJyzt().equals(JyztEnum.djy.getValue())) {
throw new ServiceException("发放记录【" + gyzjFfjlOld.getMc() + "】不是待借阅状态,不能操作");
throw new ServiceException("发放回收记录【" + gyzjFfjlOld.getMc() + "】不是待借阅状态,不能操作");
}
gyzjFfjlOld.setJyzt(JyztEnum.jyz.getValue());
gyzjFfjlOld.setJyksrq(form.getJyksrq());
@ -718,10 +716,10 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
}
GyzjFfjl gyzjFfjlOld = this.getById(form.getId());
if (gyzjFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!gyzjFfjlOld.getJyzt().equals(JyztEnum.djy.getValue())) {
throw new ServiceException("发放记录【" + gyzjFfjlOld.getMc() + "】不是待借阅状态,不能操作");
throw new ServiceException("发放回收记录【" + gyzjFfjlOld.getMc() + "】不是待借阅状态,不能操作");
}
gyzjFfjlOld.setJyzt(JyztEnum.wjy.getValue());
gyzjFfjlOld.setJyksrq(form.getJyksrq());
@ -751,10 +749,10 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
}
GyzjFfjl gyzjFfjlOld = this.getById(form.getId());
if (gyzjFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!gyzjFfjlOld.getJyzt().equals(JyztEnum.jyz.getValue())) {
throw new ServiceException("发放记录【" + gyzjFfjlOld.getMc() + "】不是借阅中状态,不能操作");
throw new ServiceException("发放回收记录【" + gyzjFfjlOld.getMc() + "】不是借阅中状态,不能操作");
}
gyzjFfjlOld.setJyzt(JyztEnum.wjy.getValue());
this.updateById(gyzjFfjlOld);
@ -781,4 +779,13 @@ public class GyzjFfjlServiceImpl extends ServiceImpl i
}
sysUserService.checkPassword(user, qmrmm, false);
}
/**
* 获取通知的跳转url
* @param tab
* @return
*/
private String getUrlQz(String tab){
return "/resource/gyzj/"+tab;
}
}

+ 2
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/GyzjServiceImpl.java View File

@ -50,6 +50,8 @@ public class GyzjServiceImpl extends ServiceImpl implements IG
private IGyzjTzService gyzjTzService;
@Autowired
private IArchiveLogService archiveLogService;
@Autowired
private INoticeService noticeService;
//region 资源库管理

+ 44
- 34
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyFfjlServiceImpl.java View File

@ -9,6 +9,7 @@ import com.hxhq.business.domain.*;
import com.hxhq.business.dto.mjy.FfjlDetailDto;
import com.hxhq.business.dto.mjy.FfjlListDto;
import com.hxhq.business.enums.archive.ArchiveLogTypeEnum;
import com.hxhq.business.enums.study.StudyTypeEnum;
import com.hxhq.business.enums.zykgl.*;
import com.hxhq.business.enums.zykgl.JlztEnum;
import com.hxhq.business.form.mjy.*;
@ -26,7 +27,6 @@ import org.springframework.stereotype.Service;
import com.hxhq.business.mapper.MjyFfjlMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestBody;
/**
* 发放记录-发放记录Service业务层处理
@ -44,6 +44,8 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
private IStudyMjyService studyMjyService;
@Autowired
private IArchiveLogService archiveLogService;
@Autowired
private INoticeService noticeService;
//region 发放记录
@ -64,8 +66,8 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
/**
* 列表
*
* @param form 发放记录发放记录
* @return 发放记录发放记录
* @param form 发放记录
* @return 发放记录
*/
@Override
public List<FfjlListDto> queryList(FfjlSearchForm form) {
@ -120,10 +122,10 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
}
MjyFfjl mjyFfjlOld = this.getById(form.getId());
if (mjyFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!mjyFfjlOld.getJlzt().equals(JlztEnum.wsd.getValue())) {
throw new ServiceException("发放记录【" + mjyFfjlOld.getMc() + "】不是未锁定状态,不能加签");
throw new ServiceException("发放回收记录【" + mjyFfjlOld.getMc() + "】不是未锁定状态,不能加签");
}
//稽查轨迹
mjyFfjlJcgjService.saveJcgj(mjyFfjlOld.getId(), JcgjlxEnum.bcsm.getValue(), "补充说明", JcmcysEnum.orange.getValue(), null, qmr,form.getRemark());
@ -145,13 +147,13 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
}
MjyFfjl mjyFfjlOld = this.getById(form.getId());
if (mjyFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!mjyFfjlOld.getJlzt().equals(JlztEnum.gd.getValue())) {
throw new ServiceException("发放记录【" + mjyFfjlOld.getMc() + "】不是归档状态,不能借阅");
throw new ServiceException("发放回收记录【" + mjyFfjlOld.getMc() + "】不是归档状态,不能借阅");
}
if (!mjyFfjlOld.getJyzt().equals(JyztEnum.wjy.getValue())) {
throw new ServiceException("发放记录【" + mjyFfjlOld.getMc() + "】不是未借阅状态,不能借阅");
throw new ServiceException("发放回收记录【" + mjyFfjlOld.getMc() + "】不是未借阅状态,不能借阅");
}
//申请借阅后借阅状态更新为待借阅等待档案员审核期间无法进行其他操作
mjyFfjlOld.setJyzt(JyztEnum.djy.getValue());
@ -197,10 +199,10 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
}
MjyFfjl mjyFfjlOld = this.getById(form.getId());
if (mjyFfjlOld == null) {
throw new ServiceException("发放记录发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!mjyFfjlOld.getJlzt().equals(JlztEnum.gd.getValue())) {
throw new ServiceException("发放记录发放记录【" + mjyFfjlOld.getMc() + "】未归档,不能解档");
throw new ServiceException("发放回收记录【" + mjyFfjlOld.getMc() + "】未归档,不能解档");
}
//申请解档后状态更新为待解档等待档案员审核期间无法进行其他操作
mjyFfjlOld.setJlzt(JlztEnum.djd.getValue());
@ -232,7 +234,7 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
if (mjyFfjlList.size() > 0) {
for (MjyFfjl mjy : mjyFfjlList) {
if (!mjy.getJlzt().equals(JlztEnum.ysd.getValue())) {
throw new ServiceException("发放记录发放记录【" + mjy.getMc() + "】不是锁定状态,不能归档");
throw new ServiceException("发放回收记录【" + mjy.getMc() + "】不是锁定状态,不能归档");
}
}
for (MjyFfjl mjyFfjl : mjyFfjlList) {
@ -265,10 +267,10 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
}
MjyFfjl mjyFfjlOld = this.getById(form.getId());
if (mjyFfjlOld == null) {
throw new ServiceException("发放记录发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!mjyFfjlOld.getJlzt().equals(JlztEnum.ysd.getValue())) {
throw new ServiceException("发放记录发放记录【" + mjyFfjlOld.getMc() + "】不是锁定状态,不能归档");
throw new ServiceException("发放回收记录【" + mjyFfjlOld.getMc() + "】不是锁定状态,不能归档");
}
//申请归档档案员可在档案管理中进行确认归档审核申请后状态更新成待归档
mjyFfjlOld.setJlzt(JlztEnum.dgd.getValue());
@ -276,7 +278,6 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
this.updateById(mjyFfjlOld);
//稽查轨迹
mjyFfjlJcgjService.saveJcgj(mjyFfjlOld.getId(), JcgjlxEnum.lc.getValue(), "申请归档", JcmcysEnum.green.getValue(), null, qmr,form.getRemark());
}
@ -300,7 +301,7 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
List<MjyFfjl> mjyFfjlList = this.list(queryWrapper);
List<MjyFfjlJcgj> mjyFfjlJcgjList = new ArrayList<>();
if (mjyFfjlList.size() <= 0) {
throw new ServiceException("发放记录发放记录不是未锁定状态,不能锁定");
throw new ServiceException("发放回收记录不是未锁定状态,不能锁定");
}
for (MjyFfjl mjyFfjl : mjyFfjlList) {
//锁定
@ -329,10 +330,10 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
}
MjyFfjl mjyFfjlOld = this.getById(form.getId());
if (mjyFfjlOld == null) {
throw new ServiceException("发放记录发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!mjyFfjlOld.getJlzt().equals(JlztEnum.wsd.getValue())) {
throw new ServiceException("发放记录发放记录【" + mjyFfjlOld.getMc() + "】不是未锁定状态,不能锁定");
throw new ServiceException("发放回收记录【" + mjyFfjlOld.getMc() + "】不是未锁定状态,不能锁定");
}
mjyFfjlOld.setJlzt(JlztEnum.ysd.getValue());
this.updateById(mjyFfjlOld);
@ -358,10 +359,10 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
}
MjyFfjl mjyFfjlOld = this.getById(form.getId());
if (mjyFfjlOld == null) {
throw new ServiceException("发放记录发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!mjyFfjlOld.getJlzt().equals(JlztEnum.ysd.getValue())) {
throw new ServiceException("发放记录发放记录【" + mjyFfjlOld.getMc() + "】不是已锁定状态,不能解锁");
throw new ServiceException("发放回收记录【" + mjyFfjlOld.getMc() + "】不是已锁定状态,不能解锁");
}
//点击解锁状态更新为入库
mjyFfjlOld.setJlzt(JlztEnum.wsd.getValue());
@ -379,7 +380,7 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
public void gh(GhForm form, Mjy mjy, SysUser ghr1, SysUser ghr2, SysUser jsr1, SysUser jsr2) {
MjyFfjl mjyFfjl = this.queryLastInfoByMjyId(mjy.getId());
if (mjyFfjl == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
//region 新增发放记录
@ -565,10 +566,10 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
}
MjyFfjl mjyFfjlOld = this.getById(form.getId());
if (mjyFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!mjyFfjlOld.getJlzt().equals(JlztEnum.dgd.getValue())) {
throw new ServiceException("发放记录【" + mjyFfjlOld.getMc() + "】不是待归档状态,不能操作");
throw new ServiceException("发放回收记录【" + mjyFfjlOld.getMc() + "】不是待归档状态,不能操作");
}
mjyFfjlOld.setJlzt(JlztEnum.gd.getValue());
this.updateById(mjyFfjlOld);
@ -592,10 +593,10 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
}
MjyFfjl mjyFfjlOld = this.getById(form.getId());
if (mjyFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!mjyFfjlOld.getJlzt().equals(JlztEnum.dgd.getValue())) {
throw new ServiceException("发放记录【" + mjyFfjlOld.getMc() + "】不是待归档状态,不能操作");
throw new ServiceException("发放回收记录【" + mjyFfjlOld.getMc() + "】不是待归档状态,不能操作");
}
mjyFfjlOld.setJlzt(JlztEnum.ysd.getValue());
mjyFfjlOld.setDazt(DaztEnum.wgd.getValue());
@ -622,10 +623,10 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
}
MjyFfjl mjyFfjlOld = this.getById(form.getId());
if (mjyFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!mjyFfjlOld.getJlzt().equals(JlztEnum.djd.getValue())) {
throw new ServiceException("发放记录【" + mjyFfjlOld.getMc() + "】不是待解档状态,不能操作");
throw new ServiceException("发放回收记录【" + mjyFfjlOld.getMc() + "】不是待解档状态,不能操作");
}
mjyFfjlOld.setJlzt(JlztEnum.ysd.getValue());
mjyFfjlOld.setDazt(DaztEnum.wgd.getValue());
@ -650,10 +651,10 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
}
MjyFfjl mjyFfjlOld = this.getById(form.getId());
if (mjyFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!mjyFfjlOld.getJlzt().equals(JlztEnum.djd.getValue())) {
throw new ServiceException("发放记录【" + mjyFfjlOld.getMc() + "】不是待解档状态,不能操作");
throw new ServiceException("发放回收记录【" + mjyFfjlOld.getMc() + "】不是待解档状态,不能操作");
}
mjyFfjlOld.setJlzt(JlztEnum.gd.getValue());
this.updateById(mjyFfjlOld);
@ -679,10 +680,10 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
}
MjyFfjl mjyFfjlOld = this.getById(form.getId());
if (mjyFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!mjyFfjlOld.getJyzt().equals(JyztEnum.djy.getValue())) {
throw new ServiceException("发放记录【" + mjyFfjlOld.getMc() + "】不是待借阅状态,不能操作");
throw new ServiceException("发放回收记录【" + mjyFfjlOld.getMc() + "】不是待借阅状态,不能操作");
}
mjyFfjlOld.setJyzt(JyztEnum.jyz.getValue());
mjyFfjlOld.setJyksrq(form.getJyksrq());
@ -711,10 +712,10 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
}
MjyFfjl mjyFfjlOld = this.getById(form.getId());
if (mjyFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!mjyFfjlOld.getJyzt().equals(JyztEnum.djy.getValue())) {
throw new ServiceException("发放记录【" + mjyFfjlOld.getMc() + "】不是待借阅状态,不能操作");
throw new ServiceException("发放回收记录【" + mjyFfjlOld.getMc() + "】不是待借阅状态,不能操作");
}
mjyFfjlOld.setJyzt(JyztEnum.wjy.getValue());
mjyFfjlOld.setJyksrq(form.getJyksrq());
@ -744,10 +745,10 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
}
MjyFfjl mjyFfjlOld = this.getById(form.getId());
if (mjyFfjlOld == null) {
throw new ServiceException("发放记录不存在或已删除");
throw new ServiceException("发放回收记录不存在或已删除");
}
if (!mjyFfjlOld.getJyzt().equals(JyztEnum.jyz.getValue())) {
throw new ServiceException("发放记录【" + mjyFfjlOld.getMc() + "】不是借阅中状态,不能操作");
throw new ServiceException("发放回收记录【" + mjyFfjlOld.getMc() + "】不是借阅中状态,不能操作");
}
mjyFfjlOld.setJyzt(JyztEnum.wjy.getValue());
this.updateById(mjyFfjlOld);
@ -772,4 +773,13 @@ public class MjyFfjlServiceImpl extends ServiceImpl impl
}
sysUserService.checkPassword(user,qmrmm,needName);
}
/**
* 获取通知的跳转url
* @param tab
* @return
*/
private String getUrlQz(String tab){
return "/resource/mjy/"+tab;
}
}

+ 2
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/MjyServiceImpl.java View File

@ -52,6 +52,8 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS
private IMjyTzService mjyTzService;
@Autowired
private IArchiveLogService archiveLogService;
@Autowired
private INoticeService noticeService;
//region 资源库管理

Loading…
Cancel
Save