|
|
|
@ -57,6 +57,8 @@ public class GspServiceImpl extends ServiceImpl implements IGspS |
|
|
|
@Autowired |
|
|
|
private IArchiveLogService archiveLogService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private INoticeService noticeService; |
|
|
|
/** |
|
|
|
* 查询供试品管理列表 |
|
|
|
* |
|
|
|
@ -214,8 +216,10 @@ public class GspServiceImpl extends ServiceImpl implements IGspS |
|
|
|
gspJcgj.setJcmc(ShbjEnum.getEnumByValue(form.getQmyy()).getText()); |
|
|
|
if (form.getQmyy().equals(ShbjEnum.ty.getValue())) { |
|
|
|
gspJcgj.setJcmcys(JcmcysEnum.green.getValue()); |
|
|
|
noticeService.save("供试品【"+gspOld.getMc()+"】同意编辑",gspOld.getBjrId(),getUrlQz("gspList")); |
|
|
|
} else { |
|
|
|
gspJcgj.setJcmcys(JcmcysEnum.red.getValue()); |
|
|
|
noticeService.save("供试品【"+gspOld.getMc()+"】拒绝编辑",gspOld.getBjrId(),getUrlQz("gspList")); |
|
|
|
} |
|
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
formData.put("申请备注", gspOld.getBjbz()); |
|
|
|
@ -331,7 +335,6 @@ public class GspServiceImpl extends ServiceImpl implements IGspS |
|
|
|
zcgService.updateById(zcg); |
|
|
|
this.saveOrUpdateBatch(gspList); |
|
|
|
gspJcgjService.saveBatch(gspJcgjList); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ -589,10 +592,13 @@ public class GspServiceImpl extends ServiceImpl implements IGspS |
|
|
|
gspJcgj.setJcmc( ShXgkcEnum.ty.getText()); |
|
|
|
gspJcgj.setJcmcEn("Approve Inventory Change"); |
|
|
|
gspJcgj.setJcmcys(JcmcysEnum.green.getValue()); |
|
|
|
noticeService.save("供试品【"+gspOld.getMc()+"】同意修改库存",gspOld.getKcbjrId(),getUrlQz("gspList")); |
|
|
|
|
|
|
|
} else { |
|
|
|
gspJcgj.setJcmc( ShXgkcEnum.jj.getText()); |
|
|
|
gspJcgj.setJcmcEn("Reject Inventory Change"); |
|
|
|
gspJcgj.setJcmcys(JcmcysEnum.red.getValue()); |
|
|
|
noticeService.save("供试品【"+gspOld.getMc()+"】拒绝修改库存",gspOld.getKcbjrId(),getUrlQz("gspList")); |
|
|
|
} |
|
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
formData.put("申请备注", gspOld.getKcbjbz()); |
|
|
|
@ -876,6 +882,9 @@ 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())){ |
|
|
|
throw new ServiceException("只有归档申请人才能操作"); |
|
|
|
} |
|
|
|
//申请借阅后,借阅状态更新为待借阅,等待档案员审核期间无法进行其他操作; |
|
|
|
gsp.setJyzt(JyztEnum.djy.getValue()); |
|
|
|
gsp.setJyksrq(form.getStartDate()); |
|
|
|
@ -915,6 +924,9 @@ 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())){ |
|
|
|
throw new ServiceException("只有归档申请人才能操作"); |
|
|
|
} |
|
|
|
//申请解档后,制剂状态更新为待解档,等待档案员审核期间无法进行其他操作; |
|
|
|
gsp.setZjzt(ZjztEnum.djd.getValue()); |
|
|
|
gsp.setDasqrIdOld(gsp.getDasqrId()); |
|
|
|
@ -1073,6 +1085,11 @@ public class GspServiceImpl extends ServiceImpl implements IGspS |
|
|
|
JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), JctUtil.formatStr(formDataEn), jsr1); |
|
|
|
//endregion |
|
|
|
|
|
|
|
noticeService.save("供试品【"+gspOld.getMc()+"】确认归还",ghr1.getUserId(),getUrlQz("gspList")); |
|
|
|
if(ghr2 != null) { |
|
|
|
noticeService.save("供试品【"+gspOld.getMc()+"】确认归还",ghr2.getUserId(),getUrlQz("gspList")); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ -1129,6 +1146,8 @@ 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")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ -1158,6 +1177,8 @@ 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")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ -1187,6 +1208,8 @@ 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")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ -1218,6 +1241,8 @@ 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")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ -1249,6 +1274,8 @@ 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")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ -1278,6 +1305,8 @@ 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")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ -1307,6 +1336,17 @@ 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")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取通知的跳转url |
|
|
|
* @param tab |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
private String getUrlQz(String tab){ |
|
|
|
return "/resource/specimen/"+tab; |
|
|
|
} |
|
|
|
|
|
|
|
} |