|
|
|
@ -233,6 +233,8 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
//申请归档,档案员可在档案管理中进行确认归档审核;申请后状态更新成待归档; |
|
|
|
mjy.setZjzt(ZjztEnum.dgd.getValue()); |
|
|
|
mjy.setDazt(DaztEnum.ygd.getValue()); |
|
|
|
mjy.setGdsqrId(qmr.getUserId()); |
|
|
|
mjy.setGdsqrMc(qmr.getNickName()); |
|
|
|
//稽查轨迹 |
|
|
|
mjyJcgjList.add(mjyJcgjService.getJcgj(mjy.getId(), JcgjlxEnum.lc.getValue(), "申请归档", JcmcysEnum.orange.getValue(),null, qmr, form.getRemark())); |
|
|
|
//保存日志 |
|
|
|
@ -267,6 +269,8 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
//申请归档,档案员可在档案管理中进行确认归档审核;申请后状态更新成待归档; |
|
|
|
mjyOld.setZjzt(ZjztEnum.dgd.getValue()); |
|
|
|
mjyOld.setDazt(DaztEnum.ygd.getValue()); |
|
|
|
mjyOld.setGdsqrId(qmr.getUserId()); |
|
|
|
mjyOld.setGdsqrMc(qmr.getNickName()); |
|
|
|
this.updateById(mjyOld); |
|
|
|
//稽查轨迹 |
|
|
|
mjyJcgjService.saveJcgj(mjyOld.getId(), JcgjlxEnum.lc.getValue(), "申请归档", JcmcysEnum.orange.getValue(),null, qmr, form.getRemark()); |
|
|
|
@ -1189,10 +1193,10 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
//region 档案管理 |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询给药制剂列表 |
|
|
|
* 查询麻精药列表 |
|
|
|
* |
|
|
|
* @param form 给药制剂 |
|
|
|
* @return 给药制剂集合 |
|
|
|
* @param form 麻精药 |
|
|
|
* @return 麻精药集合 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public List<ListDto> queryArchiveList(SearchForm form){ |
|
|
|
@ -1234,10 +1238,10 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
} |
|
|
|
Mjy mjyOld = this.getById(form.getId()); |
|
|
|
if (mjyOld == null) { |
|
|
|
throw new ServiceException("给药制剂不存在或已删除"); |
|
|
|
throw new ServiceException("麻精药不存在或已删除"); |
|
|
|
} |
|
|
|
if (!mjyOld.getZjzt().equals(ZjztEnum.dgd.getValue())) { |
|
|
|
throw new ServiceException("给药制剂【" + mjyOld.getMc() + "】不是待归档状态,不能操作"); |
|
|
|
throw new ServiceException("麻精药【" + mjyOld.getMc() + "】不是待归档状态,不能操作"); |
|
|
|
} |
|
|
|
mjyOld.setZjzt(ZjztEnum.gd.getValue()); |
|
|
|
this.updateById(mjyOld); |
|
|
|
@ -1245,6 +1249,8 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
mjyJcgjService.saveJcgj(mjyOld.getId(), JcgjlxEnum.lc.getValue(), "同意归档", JcmcysEnum.green.getValue(), null, qmr, form.getRemark()); |
|
|
|
//保存日志 |
|
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.mjy, mjyOld.getId(), mjyOld.getMc(), mjyOld.getBh(), mjyOld.getNd()+mjyOld.getNddw(), "同意归档"); |
|
|
|
//通知 |
|
|
|
noticeService.save("麻精药【"+mjyOld.getMc()+"】同意归档",mjyOld.getGdsqrId(),getUrlQz("mjyList")); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -1260,10 +1266,10 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
} |
|
|
|
Mjy mjyOld = this.getById(form.getId()); |
|
|
|
if (mjyOld == null) { |
|
|
|
throw new ServiceException("给药制剂不存在或已删除"); |
|
|
|
throw new ServiceException("麻精药不存在或已删除"); |
|
|
|
} |
|
|
|
if (!mjyOld.getZjzt().equals(ZjztEnum.dgd.getValue())) { |
|
|
|
throw new ServiceException("给药制剂【" + mjyOld.getMc() + "】不是待归档状态,不能操作"); |
|
|
|
throw new ServiceException("麻精药【" + mjyOld.getMc() + "】不是待归档状态,不能操作"); |
|
|
|
} |
|
|
|
mjyOld.setZjzt(ZjztEnum.ysd.getValue()); |
|
|
|
mjyOld.setDazt(DaztEnum.wgd.getValue()); |
|
|
|
@ -1274,7 +1280,8 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
mjyJcgjService.saveJcgj(mjyOld.getId(), JcgjlxEnum.lc.getValue(), "拒绝归档", JcmcysEnum.green.getValue(), formData, qmr, null); |
|
|
|
//保存日志 |
|
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.mjy, mjyOld.getId(), mjyOld.getMc(), mjyOld.getBh(), mjyOld.getNd()+mjyOld.getNddw(), "拒绝归档"); |
|
|
|
|
|
|
|
//通知 |
|
|
|
noticeService.save("麻精药【"+mjyOld.getMc()+"】拒绝归档",mjyOld.getGdsqrId(),getUrlQz("mjyList")); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -1290,10 +1297,10 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
} |
|
|
|
Mjy mjyOld = this.getById(form.getId()); |
|
|
|
if (mjyOld == null) { |
|
|
|
throw new ServiceException("给药制剂不存在或已删除"); |
|
|
|
throw new ServiceException("麻精药不存在或已删除"); |
|
|
|
} |
|
|
|
if (!mjyOld.getZjzt().equals(ZjztEnum.djd.getValue())) { |
|
|
|
throw new ServiceException("给药制剂【" + mjyOld.getMc() + "】不是待解档状态,不能操作"); |
|
|
|
throw new ServiceException("麻精药【" + mjyOld.getMc() + "】不是待解档状态,不能操作"); |
|
|
|
} |
|
|
|
mjyOld.setZjzt(ZjztEnum.ysd.getValue()); |
|
|
|
mjyOld.setDazt(DaztEnum.wgd.getValue()); |
|
|
|
@ -1302,7 +1309,8 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
mjyJcgjService.saveJcgj(mjyOld.getId(), JcgjlxEnum.lc.getValue(), "同意解档", JcmcysEnum.green.getValue(), null, qmr, form.getRemark()); |
|
|
|
//保存日志 |
|
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.mjy, mjyOld.getId(), mjyOld.getMc(), mjyOld.getBh(), mjyOld.getNd()+mjyOld.getNddw(), "同意解档"); |
|
|
|
|
|
|
|
//通知 |
|
|
|
noticeService.save("麻精药【"+mjyOld.getMc()+"】同意解档",mjyOld.getGdsqrId(),getUrlQz("mjyList")); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -1318,10 +1326,10 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
} |
|
|
|
Mjy mjyOld = this.getById(form.getId()); |
|
|
|
if (mjyOld == null) { |
|
|
|
throw new ServiceException("给药制剂不存在或已删除"); |
|
|
|
throw new ServiceException("麻精药不存在或已删除"); |
|
|
|
} |
|
|
|
if (!mjyOld.getZjzt().equals(ZjztEnum.djd.getValue())) { |
|
|
|
throw new ServiceException("给药制剂【" + mjyOld.getMc() + "】不是待解档状态,不能操作"); |
|
|
|
throw new ServiceException("麻精药【" + mjyOld.getMc() + "】不是待解档状态,不能操作"); |
|
|
|
} |
|
|
|
mjyOld.setZjzt(ZjztEnum.gd.getValue()); |
|
|
|
this.updateById(mjyOld); |
|
|
|
@ -1331,6 +1339,8 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
mjyJcgjService.saveJcgj(mjyOld.getId(), JcgjlxEnum.lc.getValue(), "拒绝解档", JcmcysEnum.green.getValue(), formData, qmr, null); |
|
|
|
//保存日志 |
|
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.mjy, mjyOld.getId(), mjyOld.getMc(), mjyOld.getBh(), mjyOld.getNd()+mjyOld.getNddw(), "拒绝解档"); |
|
|
|
//通知 |
|
|
|
noticeService.save("麻精药【"+mjyOld.getMc()+"】拒绝解档",mjyOld.getGdsqrId(),getUrlQz("mjyList")); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -1346,10 +1356,10 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
} |
|
|
|
Mjy mjyOld = this.getById(form.getId()); |
|
|
|
if (mjyOld == null) { |
|
|
|
throw new ServiceException("给药制剂不存在或已删除"); |
|
|
|
throw new ServiceException("麻精药不存在或已删除"); |
|
|
|
} |
|
|
|
if (!mjyOld.getJyzt().equals(JyztEnum.djy.getValue())) { |
|
|
|
throw new ServiceException("给药制剂【" + mjyOld.getMc() + "】不是待借阅状态,不能操作"); |
|
|
|
throw new ServiceException("麻精药【" + mjyOld.getMc() + "】不是待借阅状态,不能操作"); |
|
|
|
} |
|
|
|
mjyOld.setJyzt(JyztEnum.jyz.getValue()); |
|
|
|
mjyOld.setJyksrq(form.getJyksrq()); |
|
|
|
@ -1362,7 +1372,8 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
mjyJcgjService.saveJcgj(mjyOld.getId(), JcgjlxEnum.lc.getValue(), "同意借阅", JcmcysEnum.green.getValue(), formData, qmr, form.getRemark()); |
|
|
|
//保存日志 |
|
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.mjy, mjyOld.getId(), mjyOld.getMc(), mjyOld.getBh(), mjyOld.getNd()+mjyOld.getNddw(), "同意借阅"); |
|
|
|
|
|
|
|
//通知 |
|
|
|
noticeService.save("麻精药【"+mjyOld.getMc()+"】同意借阅",mjyOld.getGdsqrId(),getUrlQz("mjyList")); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -1378,10 +1389,10 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
} |
|
|
|
Mjy mjyOld = this.getById(form.getId()); |
|
|
|
if (mjyOld == null) { |
|
|
|
throw new ServiceException("给药制剂不存在或已删除"); |
|
|
|
throw new ServiceException("麻精药不存在或已删除"); |
|
|
|
} |
|
|
|
if (!mjyOld.getJyzt().equals(JyztEnum.djy.getValue())) { |
|
|
|
throw new ServiceException("给药制剂【" + mjyOld.getMc() + "】不是待借阅状态,不能操作"); |
|
|
|
throw new ServiceException("麻精药【" + mjyOld.getMc() + "】不是待借阅状态,不能操作"); |
|
|
|
} |
|
|
|
mjyOld.setJyzt(JyztEnum.wjy.getValue()); |
|
|
|
mjyOld.setJyksrq(form.getJyksrq()); |
|
|
|
@ -1395,6 +1406,8 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
mjyJcgjService.saveJcgj(mjyOld.getId(), JcgjlxEnum.lc.getValue(), "拒绝借阅", JcmcysEnum.green.getValue(), formData, qmr, null); |
|
|
|
//保存日志 |
|
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.mjy, mjyOld.getId(), mjyOld.getMc(), mjyOld.getBh(), mjyOld.getNd()+mjyOld.getNddw(), "拒绝借阅"); |
|
|
|
//通知 |
|
|
|
noticeService.save("麻精药【"+mjyOld.getMc()+"】拒绝借阅",mjyOld.getGdsqrId(),getUrlQz("mjyList")); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -1410,10 +1423,10 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
} |
|
|
|
Mjy mjyOld = this.getById(form.getId()); |
|
|
|
if (mjyOld == null) { |
|
|
|
throw new ServiceException("给药制剂不存在或已删除"); |
|
|
|
throw new ServiceException("麻精药不存在或已删除"); |
|
|
|
} |
|
|
|
if (!mjyOld.getJyzt().equals(JyztEnum.jyz.getValue())) { |
|
|
|
throw new ServiceException("给药制剂【" + mjyOld.getMc() + "】不是借阅中状态,不能操作"); |
|
|
|
throw new ServiceException("麻精药【" + mjyOld.getMc() + "】不是借阅中状态,不能操作"); |
|
|
|
} |
|
|
|
mjyOld.setJyzt(JyztEnum.wjy.getValue()); |
|
|
|
this.updateById(mjyOld); |
|
|
|
@ -1421,6 +1434,8 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
mjyJcgjService.saveJcgj(mjyOld.getId(), JcgjlxEnum.lc.getValue(), "确认归还", JcmcysEnum.green.getValue(), null, qmr, form.getRemark()); |
|
|
|
//保存日志 |
|
|
|
archiveLogService.saveInfo(ArchiveLogTypeEnum.mjy, mjyOld.getId(), mjyOld.getMc(), mjyOld.getBh(), mjyOld.getNd()+mjyOld.getNddw(), "确认归还"); |
|
|
|
//通知 |
|
|
|
noticeService.save("麻精药【"+mjyOld.getMc()+"】确认归还",mjyOld.getGdsqrId(),getUrlQz("mjyList")); |
|
|
|
} |
|
|
|
|
|
|
|
//endregion |
|
|
|
@ -1440,12 +1455,14 @@ public class MjyServiceImpl extends ServiceImpl implements IMjyS |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 获取通知的跳转url |
|
|
|
* @param tab |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
private String getUrlQz(){ |
|
|
|
return "/resource/mjy"; |
|
|
|
private String getUrlQz(String tab){ |
|
|
|
return "/resource/gyzj/"+tab; |
|
|
|
} |
|
|
|
|
|
|
|
} |