This commit is contained in:
pengjie 2023-07-28 09:40:26 +08:00
parent b9b9c6a2a4
commit 91593fcfb7
4 changed files with 8 additions and 4 deletions

View File

@ -265,4 +265,10 @@ public class SystemUserAuthController {
return result;
}
}
public static void main(String[] args) {
String ssoToken = "rlyWNnjYs1_wezKRvyKvJtjb4CnWHuSY9J8nE92iGvYP5bTkK_k4meZJ0c6wqDVu";
ssoToken = ssoToken.replace("-", "+").replace("_", "/");
System.out.println(Aes.decrypt(ssoToken, "ssologin66!@#$%^"));
}
}

View File

@ -75,7 +75,7 @@ public class SystemUserServiceImpl extends ServiceImpl<SystemUserMapper, SystemU
QueryWrapper<SystemUser> wrapper = Wrappers.<SystemUser>query();
SecurityUser user = SecurityUtil.getUser();
wrapper.eq("u.account_type", user.getAccountType());
wrapper.eq("u.sn", systemUser.getSn());
wrapper.eq("u.sn", systemUser.getSn() == null ? user.getSn() : systemUser.getSn());
wrapper.ne("u.user_id", user.getUserId());
return baseMapper.getPageList(wrapper);
}

View File

@ -232,10 +232,10 @@ public class InspectRecordServiceImpl extends ServiceImpl<InspectRecordMapper, I
@Override
public boolean saveInfo(InspectRecordVo inspectRecordVo) {
SecurityUser user = SecurityUtil.getUser();
inspectRecordVo.setState(inspectRecordVo.getQuestionNum() == 0 ? 4 : 2);
inspectRecordVo.setCreateTime(new Date());
inspectRecordVo.setCreateBy(user.getUserId());
inspectRecordVo.setQuestionNum(inspectRecordVo.getInspectQuestionList().size());
inspectRecordVo.setState(inspectRecordVo.getQuestionNum() == 0 ? 4 : 2);
String inspectUser = inspectRecordVo.getInspectUser();
inspectRecordVo.setInspectUser(StringUtils.isNotBlank(inspectUser) ? inspectUser + "," + user.getUserId() : user.getUserId());
if (StringUtils.isNotBlank(inspectRecordVo.getEngineeringSn())) {

View File

@ -289,8 +289,6 @@ public class ProjectSubItemServiceImpl extends ServiceImpl<ProjectSubItemMapper,
if (DateUtil.between(projectSubItem.getPlanEndTime(), endTime, DateUnit.DAY, false) > 0){
if (task.getPercentageComplete().intValue() == 100 || (actualFinishDate != null && actualFinishDate.getTime() <= System.currentTimeMillis())) {
projectSubItem.setState(6);
} else if (task.getPercentageComplete().intValue() == 0 || actualStartDate == null || actualStartDate.getTime() > System.currentTimeMillis()) {
projectSubItem.setState(4);
} else {
projectSubItem.setState(5);
}