Browse Source

修改用户类型

anderx 2 years ago
parent
commit
ae22ae5dc0

+ 1 - 1
ruoyi-admin/src/main/resources/application-druid-dev.yml

@@ -3,7 +3,7 @@ ruoyi:
 # 开发环境配置
 server:
     # 服务器的HTTP端口,默认为8080
-    port: 9888
+    port: 8888
 # 数据源配置
 spring:
     datasource:

+ 2 - 2
ruoyi-admin/src/main/resources/application.yml

@@ -5,8 +5,8 @@ spring:
     # 国际化资源文件路径
     basename: i18n/messages
   profiles:
-#    active: druid-dev
-    active: druid-prod
+    active: druid-dev
+#    active: druid-prod
   #   文件上传
   servlet:
     multipart:

+ 4 - 0
ruoyi-system/src/main/java/com/ruoyi/project/service/impl/ProjectStaffRecordServiceImpl.java

@@ -68,6 +68,10 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
     public AjaxResult add(ProjectStaffRecord in) {
         SysUser user = SecurityUtils.getLoginUser().getUser();
         String username = user.getNickName();
+        SysUser sysUser = sysUserMapper.selectUserById(user.getUserId());
+        if (sysUser.getStatus().equals("2")){
+            return AjaxResult.error("用户已暂停打卡,请联系公司管理员.");
+        }
         in.setName(username);
         if(in.getProcessStatus()>1)in.setProcessStatus(1);