ccj 2 роки тому
батько
коміт
6bea3fda8e

+ 9 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/ExpenseInfoServiceImpl.java

@@ -463,6 +463,9 @@ public class ExpenseInfoServiceImpl extends ServiceImpl<ExpenseInfoMapper, Expen
             }
             this.insert(expenseInfo);
             String staffName = this.billOperateHisService.getStaffAndName();
+            if(staffName == null || staffName.equals("系统")){
+                throw new YException(YExceptionEnum.LOGIN_OUT_TIME);
+            }
             // 插入操作历史
             this.billOperateHisService.saveBillOperateHis(expenseInfo.getId(), NumberConstant.EXPENSE_MANAGEMENT, staffName, null,
                     "收款", null, expenseInfo.getRemark());
@@ -696,6 +699,9 @@ public class ExpenseInfoServiceImpl extends ServiceImpl<ExpenseInfoMapper, Expen
             contractExpensesInfoService.insert(contractExpensesInfo);
             // 插入操作历史
             String staffName = this.billOperateHisService.getStaffAndName();
+            if(staffName == null || staffName.equals("系统")){
+                throw new YException(YExceptionEnum.LOGIN_OUT_TIME);
+            }
             // 插入操作历史
             this.billOperateHisService.saveBillOperateHis(expenseInfo.getId(), NumberConstant.EXPENSE_MANAGEMENT, staffName, null,
                     "确认", null, expenseInfo1.getRemark());
@@ -1297,6 +1303,9 @@ public class ExpenseInfoServiceImpl extends ServiceImpl<ExpenseInfoMapper, Expen
         }
         // 插入操作历史
         String staffName = this.billOperateHisService.getStaffAndName();
+        if(staffName == null || staffName.equals("系统")){
+            throw new YException(YExceptionEnum.LOGIN_OUT_TIME);
+        }
         // 插入操作历史
         this.billOperateHisService.saveBillOperateHis(expenseInfo.getId(), NumberConstant.EXPENSE_MANAGEMENT, staffName, null,
                 "付款", null, "");