工作评议

This commit is contained in:
lijiaqi 2022-09-23 09:00:00 +08:00
parent 622e8aa95c
commit dd5ed1e161
5 changed files with 58 additions and 3 deletions

View File

@ -161,6 +161,30 @@ public class ReviewWork extends BaseEntity {
@ApiModelProperty(value = "分数")
private String score;
/**
* 评议时间
*/
@DateTimeFormat(
pattern = "yyyy-MM-dd HH:mm:ss"
)
@JsonFormat(
pattern = "yyyy-MM-dd HH:mm:ss"
)
@ApiModelProperty(value = "评议时间")
private LocalDateTime reviewStartAt;
/**
* 截止时间
*/
@DateTimeFormat(
pattern = "yyyy-MM-dd HH:mm:ss"
)
@JsonFormat(
pattern = "yyyy-MM-dd HH:mm:ss"
)
@ApiModelProperty(value = "截止时间")
private LocalDateTime reviewEndAt;
public ReviewWork() {
//默认公开分数
this.checkScoreState=1;

View File

@ -43,6 +43,9 @@ public class ReviewWorkCheck extends BaseEntity{
private String reviewId;
@ApiModelProperty(value = "名称")
private String name;
}

View File

@ -47,4 +47,29 @@ public class ReviewWorkInReportStateRequest {
String inReportAttachmentConferenceId;
@ApiModelProperty(value = "附件关联会议名称 英文逗号间隔")
String inReportAttachmentConferenceName;
/**
* 评议时间
*/
@DateTimeFormat(
pattern = "yyyy-MM-dd HH:mm:ss"
)
@JsonFormat(
pattern = "yyyy-MM-dd HH:mm:ss"
)
@ApiModelProperty(value = "评议时间")
private LocalDateTime reviewStartAt;
/**
* 截止时间
*/
@DateTimeFormat(
pattern = "yyyy-MM-dd HH:mm:ss"
)
@JsonFormat(
pattern = "yyyy-MM-dd HH:mm:ss"
)
@ApiModelProperty(value = "截止时间")
private LocalDateTime reviewEndAt;
}

View File

@ -7,6 +7,9 @@ import java.util.List;
@Data
public class WorkCheck {
@ApiModelProperty(value = "名称")
private String name;
@ApiModelProperty(value = "附件")
private List<CheckAttachment> checkAttachments;

View File

@ -232,7 +232,7 @@ public class ReviewWorkService extends BaseService<ReviewWorkMapper, ReviewWork>
throw new ResultException(Ret.fail("当前环节不能提交该信息"));
BeanUtil.copyProperties(workCheckRequest, reviewWork);
saveOrUpdate(reviewWork);
saveReviewWorkCheck(reviewWork,workCheckRequest,loginUser);
saveReviewWorkCheck(reviewWork, workCheckRequest, loginUser);
saveReviewWorkUser(reviewWork.getId(), workCheckRequest.getCheckUserIds().toString(), loginUser);
return reviewWork;
}
@ -253,9 +253,9 @@ public class ReviewWorkService extends BaseService<ReviewWorkMapper, ReviewWork>
if (CollectionUtil.isNotEmpty(reviewWorkChecks)) {
reviewWorkChecks.stream().forEach(workCheck -> {
//新增附件组
ReviewWorkCheck reviewWorkCheck = new ReviewWorkCheck().setReviewId(workCheckRequest.getReviewId());
ReviewWorkCheck reviewWorkCheck =
new ReviewWorkCheck().setReviewId(workCheckRequest.getReviewId()).setName(workCheck.getName());
reviewWorkCheckService.saveOrUpdate(reviewWorkCheck);
workCheck.getCheckAttachments();
//新增附件
List<CheckAttachment> checkAttachments = workCheck.getCheckAttachments();