Compare commits

...

3 Commits

Author SHA1 Message Date
894e61769c
Merge branch 'refs/heads/develop'
All checks were successful
代码检查 / 代码检查 (push) Successful in 25s
2024-04-30 10:04:11 +08:00
84882fa59a Merge pull request 'bug:增加判空' (#47) from feature-zrx into develop
Reviewed-on: #47
Reviewed-by: 筱锋xiao_lfeng <gm@x-lf.cn>
2024-04-30 10:03:54 +08:00
xiangZr-hhh
7163427c4c bug:增加判空
All checks were successful
代码检查 / 代码检查 (pull_request) Successful in 29s
2024-04-29 09:17:43 +08:00
2 changed files with 11 additions and 6 deletions

View File

@ -28,13 +28,13 @@ public class ProjectDailyVO {
private String content;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date dailyTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createdAt;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updatedAt;
private Boolean isAllowDelete;

View File

@ -178,7 +178,7 @@ public class ReviewServiceImpl implements ReviewService {
//获取用户
Integer userId = Math.toIntExact(Processing.getAuthHeaderToUserId(request));
//检查对应项目子系统子模块是否存在
//检查对应项目子系统子模块是否存在 用变量接收
if (projectMapper.getNotDeleteProjectById(Long.valueOf(reviewAddVO.getProjectId())) == null) {
return ResultUtil.error(ErrorCode.PROJECT_NOT_EXIST);
}
@ -266,10 +266,15 @@ public class ReviewServiceImpl implements ReviewService {
reviewDO.setRecipientId(userId);
reviewDO.setReviewResult(reviewUpdateResultVO.getResult());
Integer moduleId = null;
if (reviewDO.getProjectModuleId() != null) {
moduleId = Math.toIntExact(reviewDO.getProjectModuleId());
}
//发送消息
messageService.messageAdd(Math.toIntExact(reviewDO.getProjectId()),
Math.toIntExact(reviewDO.getProjectChildId()),
Math.toIntExact(reviewDO.getProjectModuleId()),
moduleId,
Long.valueOf(reviewDO.getSenderId()),
Long.valueOf(reviewUpdateResultVO.getResult()),
request);
@ -398,7 +403,7 @@ public class ReviewServiceImpl implements ReviewService {
if (projectChildDO != null) {
reviewVO.setProjectChildName(projectChildDO.getName());
} else {
reviewVO.setProjectChildName(projectChildDO.getName());
reviewVO.setProjectChildName("未找到子系统");
}
// 设置结果发送者id接受者id
reviewVO.setResult(Processing.turnReviewResult(reviewDO.getReviewResult()))