|
|
@@ -166,6 +166,18 @@ public class AuditProecessServiceImpl extends ServiceImpl<AuditProecessMapper, A
|
|
|
@GlobalTransactional
|
|
|
public void operationFinanceProcess(AuditProecess auditProecess)
|
|
|
{
|
|
|
+
|
|
|
+ //查看最新操作记录,防止重复提交
|
|
|
+ AuditProecess auditProecess1= baseMapper.selectById(auditProecess.getId());
|
|
|
+ if(auditProecess1==null)
|
|
|
+ {
|
|
|
+ throw new SecurityException("未查到此审批记录,禁止操作");
|
|
|
+ }
|
|
|
+ if(auditProecess1.getAuditStatus().equals("A")||auditProecess1.getAuditStatus().equals("B"))
|
|
|
+ {
|
|
|
+ throw new SecurityException("当前记录已经完成审批,禁止重复操作");
|
|
|
+ }
|
|
|
+
|
|
|
if(auditProecess.getAuditStatus()==null || !auditProecess.getAuditStatus().equals("S"))
|
|
|
{
|
|
|
throw new SecurityException("审批状态非待审,禁止操作");
|
|
|
@@ -184,6 +196,7 @@ public class AuditProecessServiceImpl extends ServiceImpl<AuditProecessMapper, A
|
|
|
sendMessage.setPageLabel(auditProecess.getPageLabel());
|
|
|
sendMessage.setPageStatus(auditProecess.getPageStatus());
|
|
|
|
|
|
+
|
|
|
//用户操作 1.通过 2.驳回
|
|
|
Integer operate = auditProecess.getOperate();
|
|
|
//查看当前审批是否为最后一级
|
|
|
@@ -195,6 +208,8 @@ public class AuditProecessServiceImpl extends ServiceImpl<AuditProecessMapper, A
|
|
|
//不是最后一级
|
|
|
if(iffinalItem.equals("F"))
|
|
|
{
|
|
|
+
|
|
|
+
|
|
|
//通过
|
|
|
if(operate==1)
|
|
|
{
|