ccj 2 år sedan
förälder
incheckning
c66899a3a3

+ 2 - 2
winsea-haixin-platform-backend/src/main/resources/application.yml

@@ -12,7 +12,7 @@ spring:
     date-format: yyyy-MM-dd HH:mm:ss
     time-zone: GMT+8
   profiles:
-    active: prod
+    active: test
   resources:
     static-locations: file:///winsea/static/
   thymeleaf:
@@ -25,7 +25,7 @@ spring:
 #运行环境 1.开发环境 2.测试环境 3.生产环境
 com:
   yiliangyiyun:
-    env: 3
+    env: 2
 
 auth:
   anon-methods:

+ 1 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/exception/YExceptionEnum.java

@@ -60,6 +60,7 @@ public enum YExceptionEnum {
 	CARNO_ERROR("ERROR", "当前车牌号有未通过审核的申请,请通过审核后继续添加!"),
 	EXE_ERROR("ERROR", "错误"),
 	PHONE_NO_ERROR("ERROR", "手机号已存在,不可重复!"),
+	LOGIN_OUT_TIME("ERROR", "登录状态已失效,请重新登录!"),
 	;
 	@Getter
 	private String value;

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

@@ -552,6 +552,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, expenseInfo.getRemark());