Procházet zdrojové kódy

修改打卡BUG修复

anderx před 2 roky
rodič
revize
e47b342989

+ 5 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java

@@ -147,6 +147,11 @@ public class SysUserController extends BaseController
         return toAjax(userService.insertUser(user));
     }
 
+    public static void main(String[] args) {
+        String s = SecurityUtils.encryptPassword("admin123");
+        System.out.println(s);
+    }
+
 
     /**
      * 查询用户编号

+ 1 - 1
ruoyi-system/src/main/java/com/ruoyi/project/service/impl/ProjectTaskServiceImpl.java

@@ -217,7 +217,7 @@ public class ProjectTaskServiceImpl   implements ProjectTaskService {
     @Override
     public AjaxResult updateProjectTask(ProjectTask in) {
         ProjectTask use = projectTaskMapper.selectByPrimaryKey(in.getId());
-        if (in.getAid().equals(use.getAid())){
+        if (!in.getAid().equals(use.getAid())){
             List<ProjectStaffRecord> projectStaffRecords = projectStaffRecordMapper.selectByPidAndAid(in.getId(), use.getAid());
             if (projectStaffRecords.size()>0){
                 throw new ServiceException(String.format("负责人[%s]存在打卡,不允许切换.", use.getAdminName()));