禅道Bug修改

This commit is contained in:
liuzhaotian
2024-06-28 17:12:21 +08:00
parent 9d3682a3f9
commit a4342d0126
8 changed files with 53 additions and 13 deletions
@@ -31,7 +31,8 @@ public class ProcessApiImpl implements ProcessApi {
ProcessDO processDO = processMapper.selectByType(ProcessProcessingTypeEnum.COMPONENTPROCESSING.getNumber(),getUserOrganId());
return processDO.getPieceRate();
return processDO == null ? BigDecimal.ZERO : processDO.getPieceRate();
}
@@ -363,7 +363,9 @@ public class AdminUserServiceImpl implements AdminUserService {
// 关闭数据权限,避免因为没有数据权限,查询不到数据,进而导致唯一校验不正确
DataPermissionUtils.executeIgnore(() -> {
// 校验用户的密码是否符合规则
validatePassword(password);
if(password != null) {
validatePassword(password);
}
// 校验用户存在
validateUserExists(id);
// 校验用户名唯一