|
|
|
@ -2,10 +2,8 @@ package com.hxhq.business.service.impl; |
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.util.*; |
|
|
|
import java.util.function.Consumer; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.hxhq.business.domain.*; |
|
|
|
@ -882,15 +880,15 @@ public class GspServiceImpl extends ServiceImpl implements IGspS |
|
|
|
if (!gsp.getJyzt().equals(JyztEnum.wjy.getValue())) { |
|
|
|
throw new SecurityException("供试品【" + gsp.getMc() + "】不是未借阅状态,不能借阅"); |
|
|
|
} |
|
|
|
if(!gsp.getDasqrId().equals(qmr.getUserId())){ |
|
|
|
if(!gsp.getGdsqrId().equals(qmr.getUserId())){ |
|
|
|
throw new ServiceException("只有归档申请人才能操作"); |
|
|
|
} |
|
|
|
//申请借阅后,借阅状态更新为待借阅,等待档案员审核期间无法进行其他操作; |
|
|
|
gsp.setJyzt(JyztEnum.djy.getValue()); |
|
|
|
gsp.setJyksrq(form.getStartDate()); |
|
|
|
gsp.setJyjsrq(form.getEndDate()); |
|
|
|
gsp.setDasqrId(qmr.getUserId()); |
|
|
|
gsp.setDasqrMc(qmr.getNickName()); |
|
|
|
gsp.setGdsqrId(qmr.getUserId()); |
|
|
|
gsp.setGdsqrMc(qmr.getNickName()); |
|
|
|
this.updateById(gsp); |
|
|
|
//稽查轨迹 |
|
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
@ -924,15 +922,13 @@ public class GspServiceImpl extends ServiceImpl implements IGspS |
|
|
|
if (!gsp.getZjzt().equals(ZjztEnum.gd.getValue())) { |
|
|
|
throw new SecurityException("供试品【" + gsp.getMc() + "】未归档,不能解档"); |
|
|
|
} |
|
|
|
if(!gsp.getDasqrId().equals(qmr.getUserId())){ |
|
|
|
if(!gsp.getGdsqrId().equals(qmr.getUserId())){ |
|
|
|
throw new ServiceException("只有归档申请人才能操作"); |
|
|
|
} |
|
|
|
//申请解档后,制剂状态更新为待解档,等待档案员审核期间无法进行其他操作; |
|
|
|
gsp.setZjzt(ZjztEnum.djd.getValue()); |
|
|
|
gsp.setDasqrIdOld(gsp.getDasqrId()); |
|
|
|
gsp.setDasqrMcOld(gsp.getDasqrMc()); |
|
|
|
gsp.setDasqrId(qmr.getUserId()); |
|
|
|
gsp.setDasqrMc(qmr.getNickName()); |
|
|
|
gsp.setGdsqrId(qmr.getUserId()); |
|
|
|
gsp.setGdsqrMc(qmr.getNickName()); |
|
|
|
this.updateById(gsp); |
|
|
|
//稽查轨迹 |
|
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
@ -963,8 +959,8 @@ public class GspServiceImpl extends ServiceImpl implements IGspS |
|
|
|
} |
|
|
|
//申请归档,档案员可在档案管理中进行确认归档审核;申请后状态更新成待归档; |
|
|
|
gsp.setZjzt(ZjztEnum.dgd.getValue()); |
|
|
|
gsp.setDasqrId(qmr.getUserId()); |
|
|
|
gsp.setDasqrMc(qmr.getNickName()); |
|
|
|
gsp.setGdsqrId(qmr.getUserId()); |
|
|
|
gsp.setGdsqrMc(qmr.getNickName()); |
|
|
|
gsp.setGdsqsj(new Date()); |
|
|
|
this.updateById(gsp); |
|
|
|
//稽查轨迹 |
|
|
|
@ -997,8 +993,8 @@ public class GspServiceImpl extends ServiceImpl implements IGspS |
|
|
|
} |
|
|
|
//申请归档,档案员可在档案管理中进行确认归档审核;申请后状态更新成待归档; |
|
|
|
gsp.setZjzt(ZjztEnum.dgd.getValue()); |
|
|
|
gsp.setDasqrId(qmr.getUserId()); |
|
|
|
gsp.setDasqrMc(qmr.getNickName()); |
|
|
|
gsp.setGdsqrId(qmr.getUserId()); |
|
|
|
gsp.setGdsqrMc(qmr.getNickName()); |
|
|
|
gsp.setGdsqsj(new Date()); |
|
|
|
gspList.add(gsp); |
|
|
|
} |
|
|
|
@ -1146,7 +1142,7 @@ public class GspServiceImpl extends ServiceImpl implements IGspS |
|
|
|
|
|
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.gsp, gsp.getId(), gsp.getMc(), gsp.getPh(), gsp.getGg() + gsp.getGgdw(), "同意归档"); |
|
|
|
|
|
|
|
noticeService.save("供试品【"+gsp.getMc()+"】同意归档",gsp.getDasqrId(),getUrlQz("gspList")); |
|
|
|
noticeService.save("供试品【"+gsp.getMc()+"】同意归档",gsp.getGdsqrId(),getUrlQz("gspList")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@ -1177,7 +1173,7 @@ public class GspServiceImpl extends ServiceImpl implements IGspS |
|
|
|
|
|
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.gsp, gsp.getId(), gsp.getMc(), gsp.getPh(), gsp.getGg() + gsp.getGgdw(), "拒绝归档"); |
|
|
|
|
|
|
|
noticeService.save("供试品【"+gsp.getMc()+"】拒绝归档",gsp.getDasqrId(),getUrlQz("gspList")); |
|
|
|
noticeService.save("供试品【"+gsp.getMc()+"】拒绝归档",gsp.getGdsqrId(),getUrlQz("gspList")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@ -1208,7 +1204,7 @@ public class GspServiceImpl extends ServiceImpl implements IGspS |
|
|
|
|
|
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.gsp, gsp.getId(), gsp.getMc(), gsp.getPh(), gsp.getGg() + gsp.getGgdw(), "同意解档"); |
|
|
|
|
|
|
|
noticeService.save("供试品【"+gsp.getMc()+"】同意解档",gsp.getDasqrId(),getUrlQz("gspList")); |
|
|
|
noticeService.save("供试品【"+gsp.getMc()+"】同意解档",gsp.getGdsqrId(),getUrlQz("gspList")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@ -1226,8 +1222,6 @@ public class GspServiceImpl extends ServiceImpl implements IGspS |
|
|
|
if (!gsp.getZjzt().equals(ZjztEnum.djd.getValue())) { |
|
|
|
throw new SecurityException("供试品【" + gsp.getMc() + "】不是待解档状态,不能操作"); |
|
|
|
} |
|
|
|
gsp.setDasqrMc(gsp.getDasqrMcOld()); |
|
|
|
gsp.setDasqrId(gsp.getDasqrIdOld()); |
|
|
|
gsp.setZjzt(ZjztEnum.gd.getValue()); |
|
|
|
this.updateById(gsp); |
|
|
|
//稽查轨迹 |
|
|
|
@ -1241,7 +1235,7 @@ public class GspServiceImpl extends ServiceImpl implements IGspS |
|
|
|
|
|
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.gsp, gsp.getId(), gsp.getMc(), gsp.getPh(), gsp.getGg() + gsp.getGgdw(), "拒绝解档"); |
|
|
|
|
|
|
|
noticeService.save("供试品【"+gsp.getMc()+"】拒绝解档",gsp.getDasqrId(),getUrlQz("gspList")); |
|
|
|
noticeService.save("供试品【"+gsp.getMc()+"】拒绝解档",gsp.getGdsqrId(),getUrlQz("gspList")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@ -1274,7 +1268,7 @@ public class GspServiceImpl extends ServiceImpl implements IGspS |
|
|
|
|
|
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.gsp, gsp.getId(), gsp.getMc(), gsp.getPh(), gsp.getGg() + gsp.getGgdw(), "同意借阅"); |
|
|
|
|
|
|
|
noticeService.save("供试品【"+gsp.getMc()+"】同意借阅",gsp.getDasqrId(),getUrlQz("gspList")); |
|
|
|
noticeService.save("供试品【"+gsp.getMc()+"】同意借阅",gsp.getGdsqrId(),getUrlQz("gspList")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@ -1305,7 +1299,7 @@ public class GspServiceImpl extends ServiceImpl implements IGspS |
|
|
|
|
|
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.gsp, gsp.getId(), gsp.getMc(), gsp.getPh(), gsp.getGg() + gsp.getGgdw(), "拒绝借阅"); |
|
|
|
|
|
|
|
noticeService.save("供试品【"+gsp.getMc()+"】拒绝借阅",gsp.getDasqrId(),getUrlQz("gspList")); |
|
|
|
noticeService.save("供试品【"+gsp.getMc()+"】拒绝借阅",gsp.getGdsqrId(),getUrlQz("gspList")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@ -1336,7 +1330,7 @@ public class GspServiceImpl extends ServiceImpl implements IGspS |
|
|
|
|
|
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.gsp, gsp.getId(), gsp.getMc(), gsp.getPh(), gsp.getGg() + gsp.getGgdw(), "确认归还"); |
|
|
|
|
|
|
|
noticeService.save("供试品【"+gsp.getMc()+"】确认归还",gsp.getDasqrId(),getUrlQz("gspList")); |
|
|
|
noticeService.save("供试品【"+gsp.getMc()+"】确认归还",gsp.getGdsqrId(),getUrlQz("gspList")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|