Explorar o código

导入打卡日志判定BUG修复

anderx hai 1 ano
pai
achega
4d24546c62

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

@@ -507,7 +507,7 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
                 ProjectStaffRecord projectStaffRecord = projectStaffRecordMapper.selectByPrimaryKey(p.getId());
                 if (StringUtils.isNull(projectStaffRecord)){
 //                    BeanValidators.validateWithException(validator, projectStaffRecord);
-                    if (StringUtils.isNotBlank(p.getAdminName())){
+                    if (StringUtils.isNotBlank(p.getJobNumber())){
                         SysUser sysUser = sysUserMapper.checkJobNumber(p.getJobNumber(),companyId);
                         if (StringUtils.isNull(sysUser)){
                             throw new ServiceException(String.format("用户[%s]不存在",p.getAdminName()));