3. 第五流程添加表态发言(上传附件功能) 测评得分(输入框自己输入内容)
4. 第六流程整改报告 改成附件上传功能 添加跟踪复查(上传附件功能)
This commit is contained in:
parent
7ba152031b
commit
ade3098797
|
@ -273,7 +273,7 @@ public class ApiReviewWorkController extends ApiBaseController {
|
||||||
@DynamicResponseParameters(properties = {
|
@DynamicResponseParameters(properties = {
|
||||||
@DynamicParameter(name = "data", value = "评议", dataTypeClass = ReviewWorkDto.class)
|
@DynamicParameter(name = "data", value = "评议", dataTypeClass = ReviewWorkDto.class)
|
||||||
})
|
})
|
||||||
public void stateOpinionSave(@Validated ReviewWorkOpinionStateRequest reviewWorkOpinionStateRequest) {
|
public void stateOpinionSave(@Validated @RequestBody ReviewWorkOpinionStateRequest reviewWorkOpinionStateRequest) {
|
||||||
ReviewWork review = reviewWorkService.stateOpinionSave(reviewWorkOpinionStateRequest, getApiUser());
|
ReviewWork review = reviewWorkService.stateOpinionSave(reviewWorkOpinionStateRequest, getApiUser());
|
||||||
render(Ret.ok().data(ReviewWorkWrapper.build().entityVO(review)));
|
render(Ret.ok().data(ReviewWorkWrapper.build().entityVO(review)));
|
||||||
}
|
}
|
||||||
|
@ -284,7 +284,7 @@ public class ApiReviewWorkController extends ApiBaseController {
|
||||||
@DynamicResponseParameters(properties = {
|
@DynamicResponseParameters(properties = {
|
||||||
@DynamicParameter(name = "data", value = "评议", dataTypeClass = ReviewWorkDto.class)
|
@DynamicParameter(name = "data", value = "评议", dataTypeClass = ReviewWorkDto.class)
|
||||||
})
|
})
|
||||||
public void stateResultSave(@Validated ReviewWorkResultStateRequest reviewWorkResultStateRequest) {
|
public void stateResultSave(@Validated @RequestBody ReviewWorkResultStateRequest reviewWorkResultStateRequest) {
|
||||||
ReviewWork review = reviewWorkService.stateResultSave(reviewWorkResultStateRequest, getApiUser());
|
ReviewWork review = reviewWorkService.stateResultSave(reviewWorkResultStateRequest, getApiUser());
|
||||||
render(Ret.ok().data(ReviewWorkWrapper.build().entityVO(review)));
|
render(Ret.ok().data(ReviewWorkWrapper.build().entityVO(review)));
|
||||||
}
|
}
|
||||||
|
|
|
@ -203,6 +203,9 @@ public class ReviewWork extends BaseEntity {
|
||||||
@ApiModelProperty(value = "评议时间")
|
@ApiModelProperty(value = "评议时间")
|
||||||
private String reviewWorkInReportAt;
|
private String reviewWorkInReportAt;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "测评得分")
|
||||||
|
private String workOpinionScore;
|
||||||
|
|
||||||
public ReviewWork() {
|
public ReviewWork() {
|
||||||
//默认公开分数
|
//默认公开分数
|
||||||
this.checkScoreState=1;
|
this.checkScoreState=1;
|
||||||
|
|
|
@ -22,8 +22,13 @@ public class ReviewWorkDto extends ReviewWork {
|
||||||
List<ReviewWorkAttachment> askAttachmentList;
|
List<ReviewWorkAttachment> askAttachmentList;
|
||||||
@ApiModelProperty(value = "评议意见附件")
|
@ApiModelProperty(value = "评议意见附件")
|
||||||
List<ReviewWorkAttachment> opinionAttachmentList;
|
List<ReviewWorkAttachment> opinionAttachmentList;
|
||||||
@ApiModelProperty(value = "整改结果附件")
|
@ApiModelProperty(value = "表态发言")
|
||||||
|
List<ReviewWorkAttachment> opinionAttachment2List;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "整改报告")
|
||||||
List<ReviewWorkAttachment> resultAttachmentList;
|
List<ReviewWorkAttachment> resultAttachmentList;
|
||||||
|
@ApiModelProperty(value = "跟踪复查")
|
||||||
|
List<ReviewWorkAttachment> resultAttachment2List;
|
||||||
@ApiModelProperty(value = "评议方案附件")
|
@ApiModelProperty(value = "评议方案附件")
|
||||||
List<ReviewWorkAttachment> reportAttachmentList;
|
List<ReviewWorkAttachment> reportAttachmentList;
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ import lombok.Data;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@ -32,13 +33,22 @@ public class ReviewWorkOpinionStateRequest {
|
||||||
@ApiModelProperty(value = "评议意见上传时间")
|
@ApiModelProperty(value = "评议意见上传时间")
|
||||||
private LocalDateTime opinionUploadAt;
|
private LocalDateTime opinionUploadAt;
|
||||||
|
|
||||||
@ApiModelProperty(value = "附件名 英文逗号间隔")
|
// @ApiModelProperty(value = "附件名 英文逗号间隔")
|
||||||
String opinionAttachmentName;
|
// String opinionAttachmentName;
|
||||||
@ApiModelProperty(value = "附件路径 英文逗号间隔")
|
// @ApiModelProperty(value = "附件路径 英文逗号间隔")
|
||||||
String opinionAttachmentPath;
|
// String opinionAttachmentPath;
|
||||||
@ApiModelProperty(value = "附件关联会议id 英文逗号间隔")
|
// @ApiModelProperty(value = "附件关联会议id 英文逗号间隔")
|
||||||
String opinionAttachmentConferenceId;
|
// String opinionAttachmentConferenceId;
|
||||||
@ApiModelProperty(value = "附件关联会议名称 英文逗号间隔")
|
// @ApiModelProperty(value = "附件关联会议名称 英文逗号间隔")
|
||||||
String opinionAttachmentConferenceName;
|
// String opinionAttachmentConferenceName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "评议报告")
|
||||||
|
private List<CheckAttachment> attachment1;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "表态发言")
|
||||||
|
private List<CheckAttachment> attachment2;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "测评得分")
|
||||||
|
private String workOpinionScore;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@ import lombok.Data;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@ -40,15 +41,21 @@ public class ReviewWorkResultStateRequest {
|
||||||
)
|
)
|
||||||
@ApiModelProperty(value = "整改结束时间")
|
@ApiModelProperty(value = "整改结束时间")
|
||||||
private LocalDateTime alterEndAt;
|
private LocalDateTime alterEndAt;
|
||||||
|
//
|
||||||
|
// @ApiModelProperty(value = "附件名 英文逗号间隔")
|
||||||
|
// String resultAttachmentName;
|
||||||
|
// @ApiModelProperty(value = "附件路径 英文逗号间隔")
|
||||||
|
// String resultAttachmentPath;
|
||||||
|
// @ApiModelProperty(value = "附件关联会议id 英文逗号间隔")
|
||||||
|
// String resultAttachmentConferenceId;
|
||||||
|
// @ApiModelProperty(value = "附件关联会议名称 英文逗号间隔")
|
||||||
|
// String resultAttachmentConferenceName;
|
||||||
|
|
||||||
@ApiModelProperty(value = "附件名 英文逗号间隔")
|
@ApiModelProperty(value = "整改报告")
|
||||||
String resultAttachmentName;
|
private List<CheckAttachment> attachment1;
|
||||||
@ApiModelProperty(value = "附件路径 英文逗号间隔")
|
|
||||||
String resultAttachmentPath;
|
@ApiModelProperty(value = "跟踪复查")
|
||||||
@ApiModelProperty(value = "附件关联会议id 英文逗号间隔")
|
private List<CheckAttachment> attachment2;
|
||||||
String resultAttachmentConferenceId;
|
|
||||||
@ApiModelProperty(value = "附件关联会议名称 英文逗号间隔")
|
|
||||||
String resultAttachmentConferenceName;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -446,10 +446,28 @@ public class ReviewWorkService extends BaseService<ReviewWorkMapper, ReviewWork>
|
||||||
reviewWork.setState(ReviewWork.STATE_RESULT);
|
reviewWork.setState(ReviewWork.STATE_RESULT);
|
||||||
saveOrUpdate(reviewWork);
|
saveOrUpdate(reviewWork);
|
||||||
|
|
||||||
saveReviewWorkAttachment(reviewWork.getId(), reviewWorkOpinionStateRequest.getOpinionAttachmentName(),
|
List<CheckAttachment> attachment1 = reviewWorkOpinionStateRequest.getAttachment1();
|
||||||
reviewWorkOpinionStateRequest.getOpinionAttachmentPath(), loginUser, ReviewWork.STATE_OPINION,
|
List<CheckAttachment> attachment2 = reviewWorkOpinionStateRequest.getAttachment2();
|
||||||
reviewWorkOpinionStateRequest.getOpinionAttachmentConferenceId(),
|
if (CollectionUtil.isNotEmpty(attachment1)){
|
||||||
reviewWorkOpinionStateRequest.getOpinionAttachmentConferenceName());
|
saveReviewWorkAttachment(reviewWork.getId(),
|
||||||
|
attachment1.stream().map(CheckAttachment::getCheckAttachmentName).collect(Collectors.toList()).toString(),
|
||||||
|
attachment1.stream().map(CheckAttachment::getCheckAttachmentPath).collect(Collectors.toList()).toString(), loginUser, ReviewWork.STATE_OPINION,
|
||||||
|
attachment1.stream().map(CheckAttachment::getCheckAttachmentConferenceId).collect(Collectors.toList()).toString(),
|
||||||
|
attachment1.stream().map(CheckAttachment::getCheckAttachmentConferenceName).collect(Collectors.toList()).toString(),"1");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CollectionUtil.isNotEmpty(attachment2)){
|
||||||
|
saveReviewWorkAttachment(reviewWork.getId(),
|
||||||
|
attachment2.stream().map(CheckAttachment::getCheckAttachmentName).collect(Collectors.toList()).toString(),
|
||||||
|
attachment2.stream().map(CheckAttachment::getCheckAttachmentPath).collect(Collectors.toList()).toString(), loginUser, ReviewWork.STATE_OPINION,
|
||||||
|
attachment2.stream().map(CheckAttachment::getCheckAttachmentConferenceId).collect(Collectors.toList()).toString(),
|
||||||
|
attachment2.stream().map(CheckAttachment::getCheckAttachmentConferenceName).collect(Collectors.toList()).toString(),"2");
|
||||||
|
}
|
||||||
|
|
||||||
|
// saveReviewWorkAttachment(reviewWork.getId(), reviewWorkOpinionStateRequest.getOpinionAttachmentName(),
|
||||||
|
// reviewWorkOpinionStateRequest.getOpinionAttachmentPath(), loginUser, ReviewWork.STATE_OPINION,
|
||||||
|
// reviewWorkOpinionStateRequest.getOpinionAttachmentConferenceId(),
|
||||||
|
// reviewWorkOpinionStateRequest.getOpinionAttachmentConferenceName());
|
||||||
return reviewWork;
|
return reviewWork;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -462,10 +480,28 @@ public class ReviewWorkService extends BaseService<ReviewWorkMapper, ReviewWork>
|
||||||
reviewWork.setState(ReviewWork.STATE_PUBLIC);
|
reviewWork.setState(ReviewWork.STATE_PUBLIC);
|
||||||
saveOrUpdate(reviewWork);
|
saveOrUpdate(reviewWork);
|
||||||
|
|
||||||
saveReviewWorkAttachment(reviewWork.getId(), reviewWorkResultStateRequest.getResultAttachmentName(),
|
List<CheckAttachment> attachment1 = reviewWorkResultStateRequest.getAttachment1();
|
||||||
reviewWorkResultStateRequest.getResultAttachmentPath(), loginUser, ReviewWork.STATE_RESULT,
|
List<CheckAttachment> attachment2 = reviewWorkResultStateRequest.getAttachment2();
|
||||||
reviewWorkResultStateRequest.getResultAttachmentConferenceId(),
|
if (CollectionUtil.isNotEmpty(attachment1)){
|
||||||
reviewWorkResultStateRequest.getResultAttachmentConferenceName());
|
saveReviewWorkAttachment(reviewWork.getId(),
|
||||||
|
attachment1.stream().map(CheckAttachment::getCheckAttachmentName).collect(Collectors.toList()).toString(),
|
||||||
|
attachment1.stream().map(CheckAttachment::getCheckAttachmentPath).collect(Collectors.toList()).toString(), loginUser, ReviewWork.STATE_RESULT,
|
||||||
|
attachment1.stream().map(CheckAttachment::getCheckAttachmentConferenceId).collect(Collectors.toList()).toString(),
|
||||||
|
attachment1.stream().map(CheckAttachment::getCheckAttachmentConferenceName).collect(Collectors.toList()).toString(),"1");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CollectionUtil.isNotEmpty(attachment2)){
|
||||||
|
saveReviewWorkAttachment(reviewWork.getId(),
|
||||||
|
attachment2.stream().map(CheckAttachment::getCheckAttachmentName).collect(Collectors.toList()).toString(),
|
||||||
|
attachment2.stream().map(CheckAttachment::getCheckAttachmentPath).collect(Collectors.toList()).toString(), loginUser, ReviewWork.STATE_RESULT,
|
||||||
|
attachment2.stream().map(CheckAttachment::getCheckAttachmentConferenceId).collect(Collectors.toList()).toString(),
|
||||||
|
attachment2.stream().map(CheckAttachment::getCheckAttachmentConferenceName).collect(Collectors.toList()).toString(),"2");
|
||||||
|
}
|
||||||
|
|
||||||
|
// saveReviewWorkAttachment(reviewWork.getId(), reviewWorkResultStateRequest.getResultAttachmentName(),
|
||||||
|
// reviewWorkResultStateRequest.getResultAttachmentPath(), loginUser, ReviewWork.STATE_RESULT,
|
||||||
|
// reviewWorkResultStateRequest.getResultAttachmentConferenceId(),
|
||||||
|
// reviewWorkResultStateRequest.getResultAttachmentConferenceName());
|
||||||
return reviewWork;
|
return reviewWork;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -195,6 +195,7 @@ public class ReviewWorkWrapper extends BaseWrapper<ReviewWork, ReviewWorkDto> {
|
||||||
reviewWorkAttachmentService.list(new LambdaQueryWrapper<ReviewWorkAttachment>()
|
reviewWorkAttachmentService.list(new LambdaQueryWrapper<ReviewWorkAttachment>()
|
||||||
.eq(ReviewWorkAttachment::getReviewId, reviewWork.getId())
|
.eq(ReviewWorkAttachment::getReviewId, reviewWork.getId())
|
||||||
.eq(ReviewWorkAttachment::getType, ReviewWork.STATE_OPINION)
|
.eq(ReviewWorkAttachment::getType, ReviewWork.STATE_OPINION)
|
||||||
|
.eq(ReviewWorkAttachment::getClassify,"1")
|
||||||
.orderByDesc(ReviewWorkAttachment::getCreatedAt));
|
.orderByDesc(ReviewWorkAttachment::getCreatedAt));
|
||||||
//获取关联会议名称
|
//获取关联会议名称
|
||||||
if (CollectionUtil.isNotEmpty(opinionAttachmentList)) {
|
if (CollectionUtil.isNotEmpty(opinionAttachmentList)) {
|
||||||
|
@ -209,10 +210,32 @@ public class ReviewWorkWrapper extends BaseWrapper<ReviewWork, ReviewWorkDto> {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<ReviewWorkAttachment> opinionAttachment2List =
|
||||||
|
reviewWorkAttachmentService.list(new LambdaQueryWrapper<ReviewWorkAttachment>()
|
||||||
|
.eq(ReviewWorkAttachment::getReviewId, reviewWork.getId())
|
||||||
|
.eq(ReviewWorkAttachment::getType, ReviewWork.STATE_OPINION)
|
||||||
|
.eq(ReviewWorkAttachment::getClassify,"2")
|
||||||
|
.orderByDesc(ReviewWorkAttachment::getCreatedAt));
|
||||||
|
//获取关联会议名称
|
||||||
|
if (CollectionUtil.isNotEmpty(opinionAttachment2List)) {
|
||||||
|
opinionAttachment2List.stream().forEach(i -> {
|
||||||
|
if (StrUtil.isNotBlank(i.getConferenceId())) {
|
||||||
|
Conference conference = conferenceMapper.selectById(i.getConferenceId());
|
||||||
|
String conferenceName = "";
|
||||||
|
if (conference != null) {
|
||||||
|
conferenceName = conference.getTitle();
|
||||||
|
}
|
||||||
|
i.setConferenceName(conferenceName);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
List<ReviewWorkAttachment> resultAttachmentList =
|
List<ReviewWorkAttachment> resultAttachmentList =
|
||||||
reviewWorkAttachmentService.list(new LambdaQueryWrapper<ReviewWorkAttachment>()
|
reviewWorkAttachmentService.list(new LambdaQueryWrapper<ReviewWorkAttachment>()
|
||||||
.eq(ReviewWorkAttachment::getReviewId, reviewWork.getId())
|
.eq(ReviewWorkAttachment::getReviewId, reviewWork.getId())
|
||||||
.eq(ReviewWorkAttachment::getType, ReviewWork.STATE_RESULT)
|
.eq(ReviewWorkAttachment::getType, ReviewWork.STATE_RESULT)
|
||||||
|
.eq(ReviewWorkAttachment::getClassify,"1")
|
||||||
.orderByDesc(ReviewWorkAttachment::getCreatedAt));
|
.orderByDesc(ReviewWorkAttachment::getCreatedAt));
|
||||||
//获取关联会议名称
|
//获取关联会议名称
|
||||||
if (CollectionUtil.isNotEmpty(resultAttachmentList)) {
|
if (CollectionUtil.isNotEmpty(resultAttachmentList)) {
|
||||||
|
@ -228,6 +251,26 @@ public class ReviewWorkWrapper extends BaseWrapper<ReviewWork, ReviewWorkDto> {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<ReviewWorkAttachment> resultAttachment2List =
|
||||||
|
reviewWorkAttachmentService.list(new LambdaQueryWrapper<ReviewWorkAttachment>()
|
||||||
|
.eq(ReviewWorkAttachment::getReviewId, reviewWork.getId())
|
||||||
|
.eq(ReviewWorkAttachment::getType, ReviewWork.STATE_RESULT)
|
||||||
|
.eq(ReviewWorkAttachment::getClassify,"2")
|
||||||
|
.orderByDesc(ReviewWorkAttachment::getCreatedAt));
|
||||||
|
//获取关联会议名称
|
||||||
|
if (CollectionUtil.isNotEmpty(resultAttachment2List)) {
|
||||||
|
resultAttachment2List.stream().forEach(i -> {
|
||||||
|
if (StrUtil.isNotBlank(i.getConferenceId())) {
|
||||||
|
Conference conference = conferenceMapper.selectById(i.getConferenceId());
|
||||||
|
String conferenceName = "";
|
||||||
|
if (conference != null) {
|
||||||
|
conferenceName = conference.getTitle();
|
||||||
|
}
|
||||||
|
i.setConferenceName(conferenceName);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
List<ReviewWorkAudit> inReportAudit1List = reviewWorkAuditService.list(new LambdaQueryWrapper<ReviewWorkAudit>()
|
List<ReviewWorkAudit> inReportAudit1List = reviewWorkAuditService.list(new LambdaQueryWrapper<ReviewWorkAudit>()
|
||||||
.eq(ReviewWorkAudit::getReviewId, reviewWork.getId())
|
.eq(ReviewWorkAudit::getReviewId, reviewWork.getId())
|
||||||
.eq(ReviewWorkAudit::getLevel, 1)
|
.eq(ReviewWorkAudit::getLevel, 1)
|
||||||
|
@ -246,7 +289,9 @@ public class ReviewWorkWrapper extends BaseWrapper<ReviewWork, ReviewWorkDto> {
|
||||||
ReviewWorkDto.setAskAttachmentList(askAttachmentList);
|
ReviewWorkDto.setAskAttachmentList(askAttachmentList);
|
||||||
// ReviewWorkDto.setCheckAttachmentList(reviewWorkCheckDtos);
|
// ReviewWorkDto.setCheckAttachmentList(reviewWorkCheckDtos);
|
||||||
ReviewWorkDto.setOpinionAttachmentList(opinionAttachmentList);
|
ReviewWorkDto.setOpinionAttachmentList(opinionAttachmentList);
|
||||||
|
ReviewWorkDto.setOpinionAttachment2List(opinionAttachment2List);
|
||||||
ReviewWorkDto.setResultAttachmentList(resultAttachmentList);
|
ReviewWorkDto.setResultAttachmentList(resultAttachmentList);
|
||||||
|
ReviewWorkDto.setResultAttachment2List(resultAttachment2List);
|
||||||
ReviewWorkDto.setReportAttachmentList(reportAttachmentList);
|
ReviewWorkDto.setReportAttachmentList(reportAttachmentList);
|
||||||
|
|
||||||
ReviewWorkDto.setInReportAudit1List(inReportAudit1List);
|
ReviewWorkDto.setInReportAudit1List(inReportAudit1List);
|
||||||
|
|
Loading…
Reference in New Issue