update
This commit is contained in:
parent
dd94f97604
commit
f8a801c5e7
|
@ -17,10 +17,7 @@ import com.ydool.boot.modules.rddb.entity.dto.ReviewOfficerDto;
|
||||||
import com.ydool.boot.modules.rddb.entity.request.review_officer.ReviewOfficerAuditRequest;
|
import com.ydool.boot.modules.rddb.entity.request.review_officer.ReviewOfficerAuditRequest;
|
||||||
import com.ydool.boot.modules.rddb.entity.request.review_officer.ReviewOfficerCheckRequest;
|
import com.ydool.boot.modules.rddb.entity.request.review_officer.ReviewOfficerCheckRequest;
|
||||||
import com.ydool.boot.modules.rddb.entity.request.review_officer.ReviewOfficerCommentRequest;
|
import com.ydool.boot.modules.rddb.entity.request.review_officer.ReviewOfficerCommentRequest;
|
||||||
import com.ydool.boot.modules.rddb.entity.request.review_officer.state.ReviewOfficerCheckStateRequest;
|
import com.ydool.boot.modules.rddb.entity.request.review_officer.state.*;
|
||||||
import com.ydool.boot.modules.rddb.entity.request.review_officer.state.ReviewOfficerInReportStateRequest;
|
|
||||||
import com.ydool.boot.modules.rddb.entity.request.review_officer.state.ReviewOfficerOpinionStateRequest;
|
|
||||||
import com.ydool.boot.modules.rddb.entity.request.review_officer.state.ReviewOfficerResultStateRequest;
|
|
||||||
import com.ydool.boot.modules.rddb.service.ReviewOfficerCommentService;
|
import com.ydool.boot.modules.rddb.service.ReviewOfficerCommentService;
|
||||||
import com.ydool.boot.modules.rddb.service.ReviewOfficerService;
|
import com.ydool.boot.modules.rddb.service.ReviewOfficerService;
|
||||||
import com.ydool.boot.modules.rddb.wrapper.ReviewOfficerWrapper;
|
import com.ydool.boot.modules.rddb.wrapper.ReviewOfficerWrapper;
|
||||||
|
@ -51,7 +48,7 @@ public class ApiReviewOfficerController extends ApiBaseController {
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "page", value = "当前页"),
|
@ApiImplicitParam(name = "page", value = "当前页"),
|
||||||
@ApiImplicitParam(name = "size", value = "显示条数"),
|
@ApiImplicitParam(name = "size", value = "显示条数"),
|
||||||
@ApiImplicitParam(name = "type", value = "类型 1法官评议 2检查官评议 "),
|
// @ApiImplicitParam(name = "type", value = "类型 1法官评议 2检查官评议 "),
|
||||||
@ApiImplicitParam(name = "reviewSubject", value = "评议主题"),
|
@ApiImplicitParam(name = "reviewSubject", value = "评议主题"),
|
||||||
@ApiImplicitParam(name = "platform", value = "当前登录的是哪个端 admin机关办公/ rddb代表/ voter选民 ", required = true)
|
@ApiImplicitParam(name = "platform", value = "当前登录的是哪个端 admin机关办公/ rddb代表/ voter选民 ", required = true)
|
||||||
})
|
})
|
||||||
|
@ -60,10 +57,12 @@ public class ApiReviewOfficerController extends ApiBaseController {
|
||||||
})
|
})
|
||||||
@ApiOperation("评议列表 (被指定的人与创建人可见)")
|
@ApiOperation("评议列表 (被指定的人与创建人可见)")
|
||||||
@GetMapping
|
@GetMapping
|
||||||
public void reviewPage(String type,String reviewSubject,String platform) {
|
public void reviewPage(
|
||||||
|
// String type,
|
||||||
|
String reviewSubject,String platform) {
|
||||||
Assert.notNull(platform, "请填入当前端参数");
|
Assert.notNull(platform, "请填入当前端参数");
|
||||||
QueryWrapper<ReviewOfficer> qw = new QueryWrapper<ReviewOfficer>()
|
QueryWrapper<ReviewOfficer> qw = new QueryWrapper<ReviewOfficer>()
|
||||||
.eq("type", type)
|
// .eq("type", type)
|
||||||
.lt("state", ReviewOfficer.STATE_PUBLIC)
|
.lt("state", ReviewOfficer.STATE_PUBLIC)
|
||||||
.like(StrUtil.isNotBlank(reviewSubject),"review_subject", reviewSubject)
|
.like(StrUtil.isNotBlank(reviewSubject),"review_subject", reviewSubject)
|
||||||
// .and(_qw -> _qw
|
// .and(_qw -> _qw
|
||||||
|
@ -85,7 +84,7 @@ public class ApiReviewOfficerController extends ApiBaseController {
|
||||||
@ApiImplicitParams({
|
@ApiImplicitParams({
|
||||||
@ApiImplicitParam(name = "page", value = "当前页"),
|
@ApiImplicitParam(name = "page", value = "当前页"),
|
||||||
@ApiImplicitParam(name = "size", value = "显示条数"),
|
@ApiImplicitParam(name = "size", value = "显示条数"),
|
||||||
@ApiImplicitParam(name = "type", value = "类型 1法官评议 2检查官评议 "),
|
// @ApiImplicitParam(name = "type", value = "类型 1法官评议 2检查官评议 "),
|
||||||
@ApiImplicitParam(name = "reviewSubject", value = "评议主题"),
|
@ApiImplicitParam(name = "reviewSubject", value = "评议主题"),
|
||||||
@ApiImplicitParam(name = "platform", value = "当前登录的是哪个端 admin机关办公/ rddb代表/ voter选民 ", required = true)
|
@ApiImplicitParam(name = "platform", value = "当前登录的是哪个端 admin机关办公/ rddb代表/ voter选民 ", required = true)
|
||||||
})
|
})
|
||||||
|
@ -94,10 +93,12 @@ public class ApiReviewOfficerController extends ApiBaseController {
|
||||||
})
|
})
|
||||||
@ApiOperation("公告栏 (所有人可见)")
|
@ApiOperation("公告栏 (所有人可见)")
|
||||||
@GetMapping("public")
|
@GetMapping("public")
|
||||||
public void publicPage(String type,String reviewSubject,String platform) {
|
public void publicPage(
|
||||||
|
// String type,
|
||||||
|
String reviewSubject,String platform) {
|
||||||
Assert.notNull(platform, "请填入当前端参数");
|
Assert.notNull(platform, "请填入当前端参数");
|
||||||
QueryWrapper<ReviewOfficer> qw = new QueryWrapper<ReviewOfficer>()
|
QueryWrapper<ReviewOfficer> qw = new QueryWrapper<ReviewOfficer>()
|
||||||
.eq("type", type)
|
// .eq("type", type)
|
||||||
.eq("state", ReviewOfficer.STATE_PUBLIC)
|
.eq("state", ReviewOfficer.STATE_PUBLIC)
|
||||||
.like(StrUtil.isNotBlank(reviewSubject),"review_subject", reviewSubject)
|
.like(StrUtil.isNotBlank(reviewSubject),"review_subject", reviewSubject)
|
||||||
.orderByDesc("created_at");
|
.orderByDesc("created_at");
|
||||||
|
@ -152,7 +153,7 @@ public class ApiReviewOfficerController extends ApiBaseController {
|
||||||
render(Ret.ok().paged(paged));
|
render(Ret.ok().paged(paged));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("内部上报环节")
|
@ApiOperation("评议启动")
|
||||||
@PostMapping("state/in_report")
|
@PostMapping("state/in_report")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@DynamicResponseParameters(properties = {
|
@DynamicResponseParameters(properties = {
|
||||||
|
@ -171,7 +172,7 @@ public class ApiReviewOfficerController extends ApiBaseController {
|
||||||
render(ret);
|
render(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("上传自查/调查报告环节")
|
@ApiOperation("评议动员")
|
||||||
@PostMapping("state/check")
|
@PostMapping("state/check")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@DynamicResponseParameters(properties = {
|
@DynamicResponseParameters(properties = {
|
||||||
|
@ -199,7 +200,7 @@ public class ApiReviewOfficerController extends ApiBaseController {
|
||||||
render(ret);
|
render(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("上传评议意见环节")
|
@ApiOperation("调查研究")
|
||||||
@PostMapping("state/opinion")
|
@PostMapping("state/opinion")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@DynamicResponseParameters(properties = {
|
@DynamicResponseParameters(properties = {
|
||||||
|
@ -210,7 +211,7 @@ public class ApiReviewOfficerController extends ApiBaseController {
|
||||||
render(Ret.ok().data(ReviewOfficerWrapper.build().entityVO(review)));
|
render(Ret.ok().data(ReviewOfficerWrapper.build().entityVO(review)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("上传整改结果环节")
|
@ApiOperation("集中评议")
|
||||||
@PostMapping("state/result")
|
@PostMapping("state/result")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@DynamicResponseParameters(properties = {
|
@DynamicResponseParameters(properties = {
|
||||||
|
@ -221,4 +222,16 @@ public class ApiReviewOfficerController extends ApiBaseController {
|
||||||
render(Ret.ok().data(ReviewOfficerWrapper.build().entityVO(review)));
|
render(Ret.ok().data(ReviewOfficerWrapper.build().entityVO(review)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("整改落实")
|
||||||
|
@PostMapping("state/review")
|
||||||
|
@ResponseBody
|
||||||
|
@DynamicResponseParameters(properties = {
|
||||||
|
@DynamicParameter(name = "data", value = "评议", dataTypeClass = ReviewOfficerDto.class)
|
||||||
|
})
|
||||||
|
public void stateReviewSave(@Validated ReviewOfficerReviewSaveStateRequest reviewOfficerReviewSaveStateRequest) {
|
||||||
|
ReviewOfficer review = reviewOfficerService.stateReviewSave(reviewOfficerReviewSaveStateRequest, getApiUser());
|
||||||
|
render(Ret.ok().data(ReviewOfficerWrapper.build().entityVO(review)));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,13 +28,19 @@ public class ReviewOfficer extends BaseEntity {
|
||||||
//当前环节 (内部上报拟评议部门inReport:1 上报评议部门report:2 向社会征求被评议部门意见ask:3
|
//当前环节 (内部上报拟评议部门inReport:1 上报评议部门report:2 向社会征求被评议部门意见ask:3
|
||||||
//调查报告check:4 评议意见opinion:5 整改结果result:6 公示public:7)
|
//调查报告check:4 评议意见opinion:5 整改结果result:6 公示public:7)
|
||||||
public static Integer STATE_IN_REPORT = 1;
|
public static Integer STATE_IN_REPORT = 1;
|
||||||
public static Integer STATE_REPORT = 2;
|
// public static Integer STATE_REPORT = 2;
|
||||||
public static Integer STATE_ASK = 3;
|
// public static Integer STATE_ASK = 3;
|
||||||
public static Integer STATE_CHECK = 4;
|
public static Integer STATE_CHECK = 2;
|
||||||
public static Integer STATE_OPINION = 5;
|
public static Integer STATE_OPINION = 3;
|
||||||
public static Integer STATE_RESULT = 6;
|
public static Integer STATE_RESULT = 4;
|
||||||
public static Integer STATE_PUBLIC = 7;
|
public static Integer STATE_REVIEW= 5;
|
||||||
|
public static Integer STATE_PUBLIC = 6;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "评议时间")
|
||||||
|
private String reviewTime;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "整改结果")
|
||||||
|
private String rectificationResults;
|
||||||
/**
|
/**
|
||||||
* 创建者
|
* 创建者
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -70,4 +70,7 @@ public class ReviewOfficerAttachment extends BaseEntity {
|
||||||
@ApiModelProperty(value = "会议名称")
|
@ApiModelProperty(value = "会议名称")
|
||||||
private String conferenceName;
|
private String conferenceName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "分类")
|
||||||
|
private String category;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,12 +12,26 @@ public class ReviewOfficerDto extends ReviewOfficer {
|
||||||
|
|
||||||
@ApiModelProperty(value = "评议附件")
|
@ApiModelProperty(value = "评议附件")
|
||||||
List<ReviewOfficerAttachment> inReportAttachmentList;
|
List<ReviewOfficerAttachment> inReportAttachmentList;
|
||||||
|
@ApiModelProperty(value = "实施意见")
|
||||||
|
List<ReviewOfficerAttachment> implementationOpinionsAttachmentList;
|
||||||
@ApiModelProperty(value = "自查/调查报告")
|
@ApiModelProperty(value = "自查/调查报告")
|
||||||
List<ReviewOfficerAttachment> checkAttachmentList;
|
List<ReviewOfficerAttachment> checkAttachmentList;
|
||||||
|
@ApiModelProperty(value = "会议动员")
|
||||||
|
List<ReviewOfficerAttachment> mobilizeAttachmentList;
|
||||||
@ApiModelProperty(value = "评议意见附件")
|
@ApiModelProperty(value = "评议意见附件")
|
||||||
List<ReviewOfficerAttachment> opinionAttachmentList;
|
List<ReviewOfficerAttachment> opinionAttachmentList;
|
||||||
|
@ApiModelProperty(value = "自查报告")
|
||||||
|
List<ReviewOfficerAttachment> inspectionReportAttachmentList;
|
||||||
|
@ApiModelProperty(value = "调查报告")
|
||||||
|
List<ReviewOfficerAttachment> surveyReportAttachmentList;
|
||||||
@ApiModelProperty(value = "整改结果附件")
|
@ApiModelProperty(value = "整改结果附件")
|
||||||
List<ReviewOfficerAttachment> resultAttachmentList;
|
List<ReviewOfficerAttachment> resultAttachmentList;
|
||||||
|
@ApiModelProperty(value = "会议方案")
|
||||||
|
List<ReviewOfficerAttachment> meetingPlanAttachmentList;
|
||||||
|
@ApiModelProperty(value = "整改报告")
|
||||||
|
List<ReviewOfficerAttachment> rectificationReportAttachmentList;
|
||||||
|
@ApiModelProperty(value = "跟踪评议")
|
||||||
|
List<ReviewOfficerAttachment> trackReviewAttachmentList;
|
||||||
|
|
||||||
@ApiModelProperty(value = "一级审批人员")
|
@ApiModelProperty(value = "一级审批人员")
|
||||||
List<ReviewOfficerAudit> inReportAudit1List;
|
List<ReviewOfficerAudit> inReportAudit1List;
|
||||||
|
|
|
@ -33,10 +33,7 @@ public class ReviewOfficerCheckStateRequest {
|
||||||
private LocalDateTime checkUploadAt;
|
private LocalDateTime checkUploadAt;
|
||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "附件名 英文逗号间隔")
|
|
||||||
String checkAttachmentName;
|
|
||||||
@ApiModelProperty(value = "附件路径 英文逗号间隔")
|
|
||||||
String checkAttachmentPath;
|
|
||||||
@ApiModelProperty(value = "打分人员 英文逗号间隔")
|
@ApiModelProperty(value = "打分人员 英文逗号间隔")
|
||||||
String checkUserIds;
|
String checkUserIds;
|
||||||
/**
|
/**
|
||||||
|
@ -44,8 +41,23 @@ public class ReviewOfficerCheckStateRequest {
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "admin机关办公/ rddb代表/ voter选民 多个用英文逗号间隔")
|
@ApiModelProperty(value = "admin机关办公/ rddb代表/ voter选民 多个用英文逗号间隔")
|
||||||
private String obj;
|
private String obj;
|
||||||
|
@ApiModelProperty(value = "附件名 英文逗号间隔")
|
||||||
|
String checkAttachmentName;
|
||||||
|
@ApiModelProperty(value = "附件路径 英文逗号间隔")
|
||||||
|
String checkAttachmentPath;
|
||||||
@ApiModelProperty(value = "附件关联会议id 英文逗号间隔")
|
@ApiModelProperty(value = "附件关联会议id 英文逗号间隔")
|
||||||
String checkAttachmentConferenceId;
|
String checkAttachmentConferenceId;
|
||||||
@ApiModelProperty(value = "附件关联会议名称 英文逗号间隔")
|
@ApiModelProperty(value = "附件关联会议名称 英文逗号间隔")
|
||||||
String checkAttachmentConferenceName;
|
String checkAttachmentConferenceName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "会议动员附件名 英文逗号间隔")
|
||||||
|
String mobilizeAttachmentName;
|
||||||
|
@ApiModelProperty(value = "会议动员附件路径 英文逗号间隔")
|
||||||
|
String mobilizeAttachmentPath;
|
||||||
|
@ApiModelProperty(value = "会议动员附件关联会议id 英文逗号间隔")
|
||||||
|
String mobilizeAttachmentConferenceId;
|
||||||
|
@ApiModelProperty(value = "会议动员附件关联会议名称 英文逗号间隔")
|
||||||
|
String mobilizeAttachmentConferenceName;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.ydool.boot.modules.rddb.entity.request.review_officer.state;
|
package com.ydool.boot.modules.rddb.entity.request.review_officer.state;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.ydool.boot.modules.rddb.entity.Review;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
@ -17,11 +18,11 @@ public class ReviewOfficerInReportStateRequest {
|
||||||
@ApiModelProperty(value = "评议主题(评议部门,评议专题,评议对象)", required = true)
|
@ApiModelProperty(value = "评议主题(评议部门,评议专题,评议对象)", required = true)
|
||||||
private String reviewSubject;
|
private String reviewSubject;
|
||||||
|
|
||||||
/**
|
// /**
|
||||||
* 分类
|
// * 分类
|
||||||
*/
|
// */
|
||||||
@ApiModelProperty(value = "分类",required = true)
|
// @ApiModelProperty(value = "分类",required = true)
|
||||||
private String type;
|
// private String type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 评议描述
|
* 评议描述
|
||||||
|
@ -29,6 +30,9 @@ public class ReviewOfficerInReportStateRequest {
|
||||||
@ApiModelProperty(value = "评议描述(评议部门描述,评议专题描述,评议对象职位)")
|
@ApiModelProperty(value = "评议描述(评议部门描述,评议专题描述,评议对象职位)")
|
||||||
private String reviewDesc;
|
private String reviewDesc;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "评议时间")
|
||||||
|
private String reviewTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 提名上传时间
|
* 提名上传时间
|
||||||
*/
|
*/
|
||||||
|
@ -41,19 +45,29 @@ public class ReviewOfficerInReportStateRequest {
|
||||||
@ApiModelProperty(value = "提名上传时间")
|
@ApiModelProperty(value = "提名上传时间")
|
||||||
private LocalDateTime reviewUploadAt;
|
private LocalDateTime reviewUploadAt;
|
||||||
|
|
||||||
|
|
||||||
|
// @ApiModelProperty(value = "一级审批人 英文逗号间隔")
|
||||||
|
// String inReportAudit1Ids;
|
||||||
|
// @ApiModelProperty(value = "二级审批人 英文逗号间隔")
|
||||||
|
// String inReportAudit2Ids;
|
||||||
@ApiModelProperty(value = "附件名 英文逗号间隔")
|
@ApiModelProperty(value = "附件名 英文逗号间隔")
|
||||||
String inReportAttachmentName;
|
String inReportAttachmentName;
|
||||||
@ApiModelProperty(value = "附件路径 英文逗号间隔")
|
@ApiModelProperty(value = "附件路径 英文逗号间隔")
|
||||||
String inReportAttachmentPath;
|
String inReportAttachmentPath;
|
||||||
@ApiModelProperty(value = "一级审批人 英文逗号间隔")
|
|
||||||
String inReportAudit1Ids;
|
|
||||||
@ApiModelProperty(value = "二级审批人 英文逗号间隔")
|
|
||||||
String inReportAudit2Ids;
|
|
||||||
@ApiModelProperty(value = "附件关联会议id 英文逗号间隔")
|
@ApiModelProperty(value = "附件关联会议id 英文逗号间隔")
|
||||||
String inReportAttachmentConferenceId;
|
String inReportAttachmentConferenceId;
|
||||||
@ApiModelProperty(value = "附件关联会议名称 英文逗号间隔")
|
@ApiModelProperty(value = "附件关联会议名称 英文逗号间隔")
|
||||||
String inReportAttachmentConferenceName;
|
String inReportAttachmentConferenceName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "实施意见附件名 英文逗号间隔")
|
||||||
|
String implementationOpinionsAttachmentName;
|
||||||
|
@ApiModelProperty(value = "实施意见附件路径 英文逗号间隔")
|
||||||
|
String implementationOpinionsAttachmentPath;
|
||||||
|
@ApiModelProperty(value = "实施意见附件关联会议id 英文逗号间隔")
|
||||||
|
String implementationOpinionsAttachmentConferenceId;
|
||||||
|
@ApiModelProperty(value = "实施意见附件关联会议名称 英文逗号间隔")
|
||||||
|
String implementationOpinionsAttachmentConferenceName;
|
||||||
|
|
||||||
@ApiModelProperty(value = "确认评议")
|
@ApiModelProperty(value = "确认评议")
|
||||||
private String reviewOfficer;
|
private String reviewOfficer;
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,4 +42,23 @@ public class ReviewOfficerOpinionStateRequest {
|
||||||
@ApiModelProperty(value = "附件关联会议名称 英文逗号间隔")
|
@ApiModelProperty(value = "附件关联会议名称 英文逗号间隔")
|
||||||
String opinionAttachmentConferenceName;
|
String opinionAttachmentConferenceName;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "自查报告附件名 英文逗号间隔")
|
||||||
|
String inspectionReportAttachmentName;
|
||||||
|
@ApiModelProperty(value = "自查报告附件路径 英文逗号间隔")
|
||||||
|
String inspectionReportAttachmentPath;
|
||||||
|
@ApiModelProperty(value = "自查报告附件关联会议id 英文逗号间隔")
|
||||||
|
String inspectionReportAttachmentConferenceId;
|
||||||
|
@ApiModelProperty(value = "自查报告附件关联会议名称 英文逗号间隔")
|
||||||
|
String inspectionReportAttachmentConferenceName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "调查报告附件名 英文逗号间隔")
|
||||||
|
String surveyReportAttachmentName;
|
||||||
|
@ApiModelProperty(value = "调查报告附件路径 英文逗号间隔")
|
||||||
|
String surveyReportAttachmentPath;
|
||||||
|
@ApiModelProperty(value = "调查报告附件关联会议id 英文逗号间隔")
|
||||||
|
String surveyReportAttachmentConferenceId;
|
||||||
|
@ApiModelProperty(value = "调查报告附件关联会议名称 英文逗号间隔")
|
||||||
|
String surveyReportAttachmentConferenceName;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,4 +42,14 @@ public class ReviewOfficerResultStateRequest {
|
||||||
@ApiModelProperty(value = "附件关联会议名称 英文逗号间隔")
|
@ApiModelProperty(value = "附件关联会议名称 英文逗号间隔")
|
||||||
String resultAttachmentConferenceName;
|
String resultAttachmentConferenceName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "会议方案附件名 英文逗号间隔")
|
||||||
|
String meetingPlanAttachmentName;
|
||||||
|
@ApiModelProperty(value = "会议方案附件路径 英文逗号间隔")
|
||||||
|
String meetingPlanAttachmentPath;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "会议方案附件关联会议id 英文逗号间隔")
|
||||||
|
String meetingPlanAttachmentConferenceId;
|
||||||
|
@ApiModelProperty(value = "会议方案附件关联会议名称 英文逗号间隔")
|
||||||
|
String meetingPlanAttachmentConferenceName;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
package com.ydool.boot.modules.rddb.entity.request.review_officer.state;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class ReviewOfficerReviewSaveStateRequest {
|
||||||
|
@ApiModelProperty(value = "评议id", required = true)
|
||||||
|
private String reviewId;
|
||||||
|
@ApiModelProperty(value = "整改结果")
|
||||||
|
private String rectificationResults;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "整改报告附件名 英文逗号间隔")
|
||||||
|
String rectificationReportAttachmentName;
|
||||||
|
@ApiModelProperty(value = "整改报告附件路径 英文逗号间隔")
|
||||||
|
String rectificationReportAttachmentPath;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "整改报告附件关联会议id 英文逗号间隔")
|
||||||
|
String rectificationReportAttachmentConferenceId;
|
||||||
|
@ApiModelProperty(value = "整改报告附件关联会议名称 英文逗号间隔")
|
||||||
|
String rectificationReportAttachmentConferenceName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "跟踪评议会议方案附件名 英文逗号间隔")
|
||||||
|
String trackReviewAttachmentName;
|
||||||
|
@ApiModelProperty(value = "跟踪评议会议方案附件路径 英文逗号间隔")
|
||||||
|
String trackReviewAttachmentPath;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "跟踪评议会议方案附件关联会议id 英文逗号间隔")
|
||||||
|
String trackReviewAttachmentConferenceId;
|
||||||
|
@ApiModelProperty(value = "跟踪评议会议方案附件关联会议名称 英文逗号间隔")
|
||||||
|
String trackReviewAttachmentConferenceName;
|
||||||
|
}
|
|
@ -18,10 +18,7 @@ import com.ydool.boot.modules.rddb.entity.bo.ReviewOfficerBo;
|
||||||
import com.ydool.boot.modules.rddb.entity.request.review_officer.ReviewOfficerAuditRequest;
|
import com.ydool.boot.modules.rddb.entity.request.review_officer.ReviewOfficerAuditRequest;
|
||||||
import com.ydool.boot.modules.rddb.entity.request.review_officer.ReviewOfficerCheckRequest;
|
import com.ydool.boot.modules.rddb.entity.request.review_officer.ReviewOfficerCheckRequest;
|
||||||
import com.ydool.boot.modules.rddb.entity.request.review_officer.ReviewOfficerCommentRequest;
|
import com.ydool.boot.modules.rddb.entity.request.review_officer.ReviewOfficerCommentRequest;
|
||||||
import com.ydool.boot.modules.rddb.entity.request.review_officer.state.ReviewOfficerCheckStateRequest;
|
import com.ydool.boot.modules.rddb.entity.request.review_officer.state.*;
|
||||||
import com.ydool.boot.modules.rddb.entity.request.review_officer.state.ReviewOfficerInReportStateRequest;
|
|
||||||
import com.ydool.boot.modules.rddb.entity.request.review_officer.state.ReviewOfficerOpinionStateRequest;
|
|
||||||
import com.ydool.boot.modules.rddb.entity.request.review_officer.state.ReviewOfficerResultStateRequest;
|
|
||||||
import com.ydool.boot.modules.rddb.mapper.ReviewOfficerMapper;
|
import com.ydool.boot.modules.rddb.mapper.ReviewOfficerMapper;
|
||||||
import com.ydool.boot.modules.rddb.wrapper.ReviewOfficerWrapper;
|
import com.ydool.boot.modules.rddb.wrapper.ReviewOfficerWrapper;
|
||||||
import com.ydool.boot.modules.sys.entity.User;
|
import com.ydool.boot.modules.sys.entity.User;
|
||||||
|
@ -97,10 +94,14 @@ public class ReviewOfficerService extends BaseService<ReviewOfficerMapper, Revie
|
||||||
saveReviewOfficerAudit(reviewOfficerBo.getId(), inReportAudit2Ids, loginUser, 2);
|
saveReviewOfficerAudit(reviewOfficerBo.getId(), inReportAudit2Ids, loginUser, 2);
|
||||||
|
|
||||||
//保存附件
|
//保存附件
|
||||||
saveReviewOfficerAttachment(reviewOfficerBo.getId(), reviewOfficerBo.getInReportAttachmentArrStr(), loginUser, ReviewOfficer.STATE_IN_REPORT);
|
saveReviewOfficerAttachment(reviewOfficerBo.getId(), reviewOfficerBo.getInReportAttachmentArrStr(), loginUser
|
||||||
saveReviewOfficerAttachment(reviewOfficerBo.getId(), reviewOfficerBo.getCheckAttachmentArrStr(), loginUser, ReviewOfficer.STATE_CHECK);
|
, ReviewOfficer.STATE_IN_REPORT);
|
||||||
saveReviewOfficerAttachment(reviewOfficerBo.getId(), reviewOfficerBo.getOpinionAttachmentArrStr(), loginUser, ReviewOfficer.STATE_OPINION);
|
saveReviewOfficerAttachment(reviewOfficerBo.getId(), reviewOfficerBo.getCheckAttachmentArrStr(), loginUser,
|
||||||
saveReviewOfficerAttachment(reviewOfficerBo.getId(), reviewOfficerBo.getResultAttachmentArrStr(), loginUser, ReviewOfficer.STATE_RESULT);
|
ReviewOfficer.STATE_CHECK);
|
||||||
|
saveReviewOfficerAttachment(reviewOfficerBo.getId(), reviewOfficerBo.getOpinionAttachmentArrStr(), loginUser,
|
||||||
|
ReviewOfficer.STATE_OPINION);
|
||||||
|
saveReviewOfficerAttachment(reviewOfficerBo.getId(), reviewOfficerBo.getResultAttachmentArrStr(), loginUser,
|
||||||
|
ReviewOfficer.STATE_RESULT);
|
||||||
|
|
||||||
// if (isNew) {
|
// if (isNew) {
|
||||||
// sendMsg(reviewOfficer, loginUser, reviewOfficerBo.getInReportAudit1Ids().split(",")[0]);
|
// sendMsg(reviewOfficer, loginUser, reviewOfficerBo.getInReportAudit1Ids().split(",")[0]);
|
||||||
|
@ -137,24 +138,35 @@ public class ReviewOfficerService extends BaseService<ReviewOfficerMapper, Revie
|
||||||
}
|
}
|
||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
public ReviewOfficer stateInReportSave(ReviewOfficerInReportStateRequest reviewOfficerInReportStateRequest, User loginUser) {
|
public ReviewOfficer stateInReportSave(ReviewOfficerInReportStateRequest reviewOfficerInReportStateRequest,
|
||||||
|
User loginUser) {
|
||||||
ReviewOfficer reviewOfficer = BeanUtil.copyProperties(reviewOfficerInReportStateRequest, ReviewOfficer.class);
|
ReviewOfficer reviewOfficer = BeanUtil.copyProperties(reviewOfficerInReportStateRequest, ReviewOfficer.class);
|
||||||
reviewOfficer.setState(ReviewOfficer.STATE_IN_REPORT);
|
reviewOfficer.setState(ReviewOfficer.STATE_CHECK);
|
||||||
reviewOfficer.setStatus(0);
|
reviewOfficer.setStatus(0);
|
||||||
reviewOfficer.setCreatedId(loginUser.getId());
|
reviewOfficer.setCreatedId(loginUser.getId());
|
||||||
saveOrUpdate(reviewOfficer);
|
saveOrUpdate(reviewOfficer);
|
||||||
saveReviewOfficerAttachment(reviewOfficer.getId(),
|
saveReviewOfficerAttachment(reviewOfficer.getId(),
|
||||||
reviewOfficerInReportStateRequest.getInReportAttachmentName(),
|
reviewOfficerInReportStateRequest.getInReportAttachmentName(),
|
||||||
reviewOfficerInReportStateRequest.getInReportAttachmentPath(), loginUser,
|
reviewOfficerInReportStateRequest.getInReportAttachmentPath(), loginUser,
|
||||||
ReviewOfficer.STATE_IN_REPORT,reviewOfficerInReportStateRequest.getInReportAttachmentConferenceId(),
|
ReviewOfficer.STATE_IN_REPORT, "1",
|
||||||
|
reviewOfficerInReportStateRequest.getInReportAttachmentConferenceId(),
|
||||||
reviewOfficerInReportStateRequest.getInReportAttachmentConferenceName());
|
reviewOfficerInReportStateRequest.getInReportAttachmentConferenceName());
|
||||||
saveReviewOfficerAudit(reviewOfficer.getId(), reviewOfficerInReportStateRequest.getInReportAudit1Ids(), loginUser, 1);
|
saveReviewOfficerAttachment(reviewOfficer.getId(),
|
||||||
saveReviewOfficerAudit(reviewOfficer.getId(), reviewOfficerInReportStateRequest.getInReportAudit2Ids(), loginUser, 2);
|
reviewOfficerInReportStateRequest.getImplementationOpinionsAttachmentName(),
|
||||||
|
reviewOfficerInReportStateRequest.getImplementationOpinionsAttachmentPath(), loginUser,
|
||||||
|
ReviewOfficer.STATE_IN_REPORT, "2",
|
||||||
|
reviewOfficerInReportStateRequest.getImplementationOpinionsAttachmentConferenceId(),
|
||||||
|
reviewOfficerInReportStateRequest.getImplementationOpinionsAttachmentConferenceName());
|
||||||
|
// saveReviewOfficerAudit(reviewOfficer.getId(), reviewOfficerInReportStateRequest.getInReportAudit1Ids(),
|
||||||
|
// loginUser, 1);
|
||||||
|
// saveReviewOfficerAudit(reviewOfficer.getId(), reviewOfficerInReportStateRequest.getInReportAudit2Ids(),
|
||||||
|
// loginUser, 2);
|
||||||
return reviewOfficer;
|
return reviewOfficer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Ret audit(ReviewOfficerAuditRequest reviewOfficerAuditRequest, User loginUser) {
|
public Ret audit(ReviewOfficerAuditRequest reviewOfficerAuditRequest, User loginUser) {
|
||||||
ReviewOfficerAudit reviewOfficerAudit = reviewOfficerAuditService.getOne(new LambdaQueryWrapper<ReviewOfficerAudit>()
|
ReviewOfficerAudit reviewOfficerAudit =
|
||||||
|
reviewOfficerAuditService.getOne(new LambdaQueryWrapper<ReviewOfficerAudit>()
|
||||||
.eq(ReviewOfficerAudit::getReviewId, reviewOfficerAuditRequest.getReviewId())
|
.eq(ReviewOfficerAudit::getReviewId, reviewOfficerAuditRequest.getReviewId())
|
||||||
.eq(ReviewOfficerAudit::getLevel, reviewOfficerAuditRequest.getLevel())
|
.eq(ReviewOfficerAudit::getLevel, reviewOfficerAuditRequest.getLevel())
|
||||||
.eq(ReviewOfficerAudit::getUserId, loginUser.getId()));
|
.eq(ReviewOfficerAudit::getUserId, loginUser.getId()));
|
||||||
|
@ -183,7 +195,8 @@ public class ReviewOfficerService extends BaseService<ReviewOfficerMapper, Revie
|
||||||
saveOrUpdate(reviewOfficer);
|
saveOrUpdate(reviewOfficer);
|
||||||
}
|
}
|
||||||
//如果没有待审批的,进入下一阶段
|
//如果没有待审批的,进入下一阶段
|
||||||
List<ReviewOfficerAudit> waitAuditList = reviewOfficerAuditService.list(new LambdaQueryWrapper<ReviewOfficerAudit>()
|
List<ReviewOfficerAudit> waitAuditList =
|
||||||
|
reviewOfficerAuditService.list(new LambdaQueryWrapper<ReviewOfficerAudit>()
|
||||||
.eq(ReviewOfficerAudit::getReviewId, reviewOfficerAuditRequest.getReviewId())
|
.eq(ReviewOfficerAudit::getReviewId, reviewOfficerAuditRequest.getReviewId())
|
||||||
.eq(ReviewOfficerAudit::getStatus, 0)
|
.eq(ReviewOfficerAudit::getStatus, 0)
|
||||||
.orderByAsc(ReviewOfficerAudit::getSortNo));
|
.orderByAsc(ReviewOfficerAudit::getSortNo));
|
||||||
|
@ -207,11 +220,13 @@ public class ReviewOfficerService extends BaseService<ReviewOfficerMapper, Revie
|
||||||
if (ReviewOfficer.STATE_CHECK != reviewOfficer.getState())
|
if (ReviewOfficer.STATE_CHECK != reviewOfficer.getState())
|
||||||
throw new ResultException(Ret.fail("当前环节不能提交该信息"));
|
throw new ResultException(Ret.fail("当前环节不能提交该信息"));
|
||||||
BeanUtil.copyProperties(reviewOfficerCheckStateRequest, reviewOfficer);
|
BeanUtil.copyProperties(reviewOfficerCheckStateRequest, reviewOfficer);
|
||||||
|
reviewOfficer.setState(ReviewOfficer.STATE_OPINION);
|
||||||
saveOrUpdate(reviewOfficer);
|
saveOrUpdate(reviewOfficer);
|
||||||
|
|
||||||
saveReviewOfficerAttachment(reviewOfficer.getId(), reviewOfficerCheckStateRequest.getCheckAttachmentName(),
|
saveReviewOfficerAttachment(reviewOfficer.getId(), reviewOfficerCheckStateRequest.getCheckAttachmentName(),
|
||||||
reviewOfficerCheckStateRequest.getCheckAttachmentPath(), loginUser, ReviewOfficer.STATE_CHECK,
|
reviewOfficerCheckStateRequest.getCheckAttachmentPath(), loginUser, ReviewOfficer.STATE_CHECK, "1",
|
||||||
reviewOfficerCheckStateRequest.getCheckAttachmentConferenceId(), reviewOfficerCheckStateRequest.getCheckAttachmentConferenceName());
|
reviewOfficerCheckStateRequest.getCheckAttachmentConferenceId(),
|
||||||
|
reviewOfficerCheckStateRequest.getCheckAttachmentConferenceName());
|
||||||
saveReviewOfficerUser(reviewOfficer.getId(), reviewOfficerCheckStateRequest.getCheckUserIds(), loginUser);
|
saveReviewOfficerUser(reviewOfficer.getId(), reviewOfficerCheckStateRequest.getCheckUserIds(), loginUser);
|
||||||
return reviewOfficer;
|
return reviewOfficer;
|
||||||
}
|
}
|
||||||
|
@ -251,7 +266,8 @@ public class ReviewOfficerService extends BaseService<ReviewOfficerMapper, Revie
|
||||||
return !flag ? Ret.fail("操作失败") : Ret.ok().data(ReviewOfficerWrapper.build().entityVO(reviewOfficer));
|
return !flag ? Ret.fail("操作失败") : Ret.ok().data(ReviewOfficerWrapper.build().entityVO(reviewOfficer));
|
||||||
}
|
}
|
||||||
|
|
||||||
public ReviewOfficer stateOpinionSave(ReviewOfficerOpinionStateRequest reviewOfficerOpinionStateRequest, User loginUser) {
|
public ReviewOfficer stateOpinionSave(ReviewOfficerOpinionStateRequest reviewOfficerOpinionStateRequest,
|
||||||
|
User loginUser) {
|
||||||
ReviewOfficer reviewOfficer = getById(reviewOfficerOpinionStateRequest.getReviewId());
|
ReviewOfficer reviewOfficer = getById(reviewOfficerOpinionStateRequest.getReviewId());
|
||||||
Assert.notNull(reviewOfficer, "未找到该记录");
|
Assert.notNull(reviewOfficer, "未找到该记录");
|
||||||
if (ReviewOfficer.STATE_OPINION != reviewOfficer.getState())
|
if (ReviewOfficer.STATE_OPINION != reviewOfficer.getState())
|
||||||
|
@ -263,25 +279,74 @@ public class ReviewOfficerService extends BaseService<ReviewOfficerMapper, Revie
|
||||||
saveReviewOfficerAttachment(reviewOfficer.getId(),
|
saveReviewOfficerAttachment(reviewOfficer.getId(),
|
||||||
reviewOfficerOpinionStateRequest.getOpinionAttachmentName(),
|
reviewOfficerOpinionStateRequest.getOpinionAttachmentName(),
|
||||||
reviewOfficerOpinionStateRequest.getOpinionAttachmentPath(), loginUser, ReviewOfficer.STATE_OPINION,
|
reviewOfficerOpinionStateRequest.getOpinionAttachmentPath(), loginUser, ReviewOfficer.STATE_OPINION,
|
||||||
reviewOfficerOpinionStateRequest.getOpinionAttachmentConferenceId(), reviewOfficerOpinionStateRequest.getOpinionAttachmentConferenceName());
|
"1",
|
||||||
|
reviewOfficerOpinionStateRequest.getOpinionAttachmentConferenceId(),
|
||||||
|
reviewOfficerOpinionStateRequest.getOpinionAttachmentConferenceName());
|
||||||
|
saveReviewOfficerAttachment(reviewOfficer.getId(),
|
||||||
|
reviewOfficerOpinionStateRequest.getInspectionReportAttachmentName(),
|
||||||
|
reviewOfficerOpinionStateRequest.getInspectionReportAttachmentPath(), loginUser,
|
||||||
|
ReviewOfficer.STATE_OPINION, "2",
|
||||||
|
reviewOfficerOpinionStateRequest.getInspectionReportAttachmentConferenceId(),
|
||||||
|
reviewOfficerOpinionStateRequest.getInspectionReportAttachmentConferenceName());
|
||||||
|
saveReviewOfficerAttachment(reviewOfficer.getId(),
|
||||||
|
reviewOfficerOpinionStateRequest.getSurveyReportAttachmentName(),
|
||||||
|
reviewOfficerOpinionStateRequest.getSurveyReportAttachmentPath(), loginUser,
|
||||||
|
ReviewOfficer.STATE_OPINION, "3",
|
||||||
|
reviewOfficerOpinionStateRequest.getSurveyReportAttachmentConferenceId(),
|
||||||
|
reviewOfficerOpinionStateRequest.getSurveyReportAttachmentConferenceName());
|
||||||
return reviewOfficer;
|
return reviewOfficer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ReviewOfficer stateResultSave(ReviewOfficerResultStateRequest reviewOfficerResultStateRequest, User loginUser) {
|
public ReviewOfficer stateResultSave(ReviewOfficerResultStateRequest reviewOfficerResultStateRequest,
|
||||||
|
User loginUser) {
|
||||||
ReviewOfficer reviewOfficer = getById(reviewOfficerResultStateRequest.getReviewId());
|
ReviewOfficer reviewOfficer = getById(reviewOfficerResultStateRequest.getReviewId());
|
||||||
Assert.notNull(reviewOfficer, "未找到该记录");
|
Assert.notNull(reviewOfficer, "未找到该记录");
|
||||||
if (ReviewOfficer.STATE_RESULT != reviewOfficer.getState())
|
if (ReviewOfficer.STATE_RESULT != reviewOfficer.getState())
|
||||||
throw new ResultException(Ret.fail("当前环节不能提交该信息"));
|
throw new ResultException(Ret.fail("当前环节不能提交该信息"));
|
||||||
BeanUtil.copyProperties(reviewOfficerResultStateRequest, reviewOfficer);
|
BeanUtil.copyProperties(reviewOfficerResultStateRequest, reviewOfficer);
|
||||||
reviewOfficer.setState(ReviewOfficer.STATE_PUBLIC);
|
reviewOfficer.setState(ReviewOfficer.STATE_REVIEW);
|
||||||
saveOrUpdate(reviewOfficer);
|
saveOrUpdate(reviewOfficer);
|
||||||
|
|
||||||
saveReviewOfficerAttachment(reviewOfficer.getId(), reviewOfficerResultStateRequest.getResultAttachmentName(),
|
saveReviewOfficerAttachment(reviewOfficer.getId(), reviewOfficerResultStateRequest.getResultAttachmentName(),
|
||||||
reviewOfficerResultStateRequest.getResultAttachmentPath(), loginUser, ReviewOfficer.STATE_RESULT,
|
reviewOfficerResultStateRequest.getResultAttachmentPath(), loginUser, ReviewOfficer.STATE_RESULT, "1",
|
||||||
reviewOfficerResultStateRequest.getResultAttachmentConferenceId(), reviewOfficerResultStateRequest.getResultAttachmentConferenceName());
|
reviewOfficerResultStateRequest.getResultAttachmentConferenceId(),
|
||||||
|
reviewOfficerResultStateRequest.getResultAttachmentConferenceName());
|
||||||
|
saveReviewOfficerAttachment(reviewOfficer.getId(),
|
||||||
|
reviewOfficerResultStateRequest.getMeetingPlanAttachmentName(),
|
||||||
|
reviewOfficerResultStateRequest.getMeetingPlanAttachmentPath(), loginUser, ReviewOfficer.STATE_RESULT
|
||||||
|
, "2",
|
||||||
|
reviewOfficerResultStateRequest.getMeetingPlanAttachmentConferenceId(),
|
||||||
|
reviewOfficerResultStateRequest.getMeetingPlanAttachmentConferenceName());
|
||||||
return reviewOfficer;
|
return reviewOfficer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ReviewOfficer stateReviewSave(ReviewOfficerReviewSaveStateRequest reviewOfficerReviewSaveStateRequest,
|
||||||
|
User loginUser) {
|
||||||
|
ReviewOfficer reviewOfficer = getById(reviewOfficerReviewSaveStateRequest.getReviewId());
|
||||||
|
Assert.notNull(reviewOfficer, "未找到该记录");
|
||||||
|
if (ReviewOfficer.STATE_REVIEW != reviewOfficer.getState())
|
||||||
|
throw new ResultException(Ret.fail("当前环节不能提交该信息"));
|
||||||
|
BeanUtil.copyProperties(reviewOfficerReviewSaveStateRequest, reviewOfficer);
|
||||||
|
reviewOfficer.setState(ReviewOfficer.STATE_PUBLIC);
|
||||||
|
saveOrUpdate(reviewOfficer);
|
||||||
|
|
||||||
|
saveReviewOfficerAttachment(reviewOfficer.getId(),
|
||||||
|
reviewOfficerReviewSaveStateRequest.getRectificationReportAttachmentConferenceName(),
|
||||||
|
reviewOfficerReviewSaveStateRequest.getRectificationReportAttachmentPath(), loginUser,
|
||||||
|
ReviewOfficer.STATE_REVIEW, "1",
|
||||||
|
reviewOfficerReviewSaveStateRequest.getRectificationReportAttachmentConferenceId(),
|
||||||
|
reviewOfficerReviewSaveStateRequest.getRectificationReportAttachmentConferenceName());
|
||||||
|
saveReviewOfficerAttachment(reviewOfficer.getId(),
|
||||||
|
reviewOfficerReviewSaveStateRequest.getTrackReviewAttachmentName(),
|
||||||
|
reviewOfficerReviewSaveStateRequest.getTrackReviewAttachmentPath(), loginUser,
|
||||||
|
ReviewOfficer.STATE_REVIEW, "2",
|
||||||
|
reviewOfficerReviewSaveStateRequest.getTrackReviewAttachmentConferenceId(),
|
||||||
|
reviewOfficerReviewSaveStateRequest.getTrackReviewAttachmentConferenceName());
|
||||||
|
return reviewOfficer;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*公用*/
|
/*公用*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -399,20 +464,23 @@ public class ReviewOfficerService extends BaseService<ReviewOfficerMapper, Revie
|
||||||
* @param loginUser
|
* @param loginUser
|
||||||
* @param state
|
* @param state
|
||||||
*/
|
*/
|
||||||
private void saveReviewOfficerAttachment(String reviewId, String reviewAttachmentArrStr, User loginUser, Integer state) {
|
private void saveReviewOfficerAttachment(String reviewId, String reviewAttachmentArrStr, User loginUser,
|
||||||
|
Integer state) {
|
||||||
reviewOfficerAttachmentService.remove(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
reviewOfficerAttachmentService.remove(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
||||||
.eq(ReviewOfficerAttachment::getReviewId, reviewId)
|
.eq(ReviewOfficerAttachment::getReviewId, reviewId)
|
||||||
.eq(ReviewOfficerAttachment::getType, state));
|
.eq(ReviewOfficerAttachment::getType, state));
|
||||||
if (StrUtil.isNotBlank(reviewAttachmentArrStr)) {
|
if (StrUtil.isNotBlank(reviewAttachmentArrStr)) {
|
||||||
JSONArray objects = JSONUtil.parseArray(reviewAttachmentArrStr);
|
JSONArray objects = JSONUtil.parseArray(reviewAttachmentArrStr);
|
||||||
List<ReviewOfficerAttachment> reviewAttachmentList = JSONUtil.toList(objects, ReviewOfficerAttachment.class);
|
List<ReviewOfficerAttachment> reviewAttachmentList = JSONUtil.toList(objects,
|
||||||
|
ReviewOfficerAttachment.class);
|
||||||
reviewAttachmentList.forEach(item -> {
|
reviewAttachmentList.forEach(item -> {
|
||||||
item.setReviewId(reviewId);
|
item.setReviewId(reviewId);
|
||||||
item.setType(state);
|
item.setType(state);
|
||||||
item.setCreatedId(loginUser.getId());
|
item.setCreatedId(loginUser.getId());
|
||||||
item.setCreatedAt(LocalDateTime.now());
|
item.setCreatedAt(LocalDateTime.now());
|
||||||
if (StrUtil.isNotBlank(item.getConferenceId())) {
|
if (StrUtil.isNotBlank(item.getConferenceId())) {
|
||||||
conferenceAttachmentService.associationMeeting(item.getConferenceId(), item.getAttachment(), item.getTitle(), "两官评议附件", loginUser.getId());
|
conferenceAttachmentService.associationMeeting(item.getConferenceId(), item.getAttachment(),
|
||||||
|
item.getTitle(), "两官评议附件", loginUser.getId());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
reviewOfficerAttachmentService.saveBatch(reviewAttachmentList);
|
reviewOfficerAttachmentService.saveBatch(reviewAttachmentList);
|
||||||
|
@ -426,7 +494,9 @@ public class ReviewOfficerService extends BaseService<ReviewOfficerMapper, Revie
|
||||||
* @param loginUser
|
* @param loginUser
|
||||||
* @param state
|
* @param state
|
||||||
*/
|
*/
|
||||||
private void saveReviewOfficerAttachment(String reviewId, String attachmentName, String attachmentPath, User loginUser, Integer state, String conferenceId, String conferenceName) {
|
private void saveReviewOfficerAttachment(String reviewId, String attachmentName, String attachmentPath,
|
||||||
|
User loginUser, Integer state, String conferenceId,
|
||||||
|
String conferenceName) {
|
||||||
reviewOfficerAttachmentService.remove(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
reviewOfficerAttachmentService.remove(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
||||||
.eq(ReviewOfficerAttachment::getReviewId, reviewId)
|
.eq(ReviewOfficerAttachment::getReviewId, reviewId)
|
||||||
.eq(ReviewOfficerAttachment::getType, state));
|
.eq(ReviewOfficerAttachment::getType, state));
|
||||||
|
@ -446,7 +516,8 @@ public class ReviewOfficerService extends BaseService<ReviewOfficerMapper, Revie
|
||||||
.setCreatedId(loginUser.getId())
|
.setCreatedId(loginUser.getId())
|
||||||
.setCreatedAt(LocalDateTime.now());
|
.setCreatedAt(LocalDateTime.now());
|
||||||
if (StrUtil.isNotBlank(conferenceIdArr[i])) {
|
if (StrUtil.isNotBlank(conferenceIdArr[i])) {
|
||||||
conferenceAttachmentService.associationMeeting(conferenceIdArr[i], pathArr[i], nameArr[i], "两官评议附件", loginUser.getId());
|
conferenceAttachmentService.associationMeeting(conferenceIdArr[i], pathArr[i], nameArr[i],
|
||||||
|
"两官评议附件", loginUser.getId());
|
||||||
}
|
}
|
||||||
reviewOfficerAttachmentService.save(reviewAttachment);
|
reviewOfficerAttachmentService.save(reviewAttachment);
|
||||||
}
|
}
|
||||||
|
@ -466,4 +537,47 @@ public class ReviewOfficerService extends BaseService<ReviewOfficerMapper, Revie
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void saveReviewOfficerAttachment(String reviewId, String attachmentName, String attachmentPath,
|
||||||
|
User loginUser, Integer state, String category, String conferenceId,
|
||||||
|
String conferenceName) {
|
||||||
|
reviewOfficerAttachmentService.remove(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
||||||
|
.eq(ReviewOfficerAttachment::getReviewId, reviewId)
|
||||||
|
.eq(ReviewOfficerAttachment::getType, state));
|
||||||
|
if (StrUtil.isNotBlank(attachmentName)) {
|
||||||
|
String[] nameArr = attachmentName.split(",");
|
||||||
|
String[] pathArr = attachmentPath.split(",");
|
||||||
|
if (StrUtil.isNotBlank(conferenceId)) {
|
||||||
|
String[] conferenceIdArr = conferenceId.split(",");
|
||||||
|
String[] conferenceNameArr = conferenceName.split(",");
|
||||||
|
for (int i = 0; i < nameArr.length; i++) {
|
||||||
|
ReviewOfficerAttachment reviewAttachment = new ReviewOfficerAttachment();
|
||||||
|
reviewAttachment.setType(state).setCategory(category)
|
||||||
|
.setReviewId(reviewId).setConferenceId(conferenceIdArr[i])
|
||||||
|
.setConferenceName(conferenceNameArr[i])
|
||||||
|
.setTitle(nameArr[i])
|
||||||
|
.setAttachment(pathArr[i])
|
||||||
|
.setCreatedId(loginUser.getId())
|
||||||
|
.setCreatedAt(LocalDateTime.now());
|
||||||
|
if (StrUtil.isNotBlank(conferenceIdArr[i])) {
|
||||||
|
conferenceAttachmentService.associationMeeting(conferenceIdArr[i], pathArr[i], nameArr[i],
|
||||||
|
"两官评议附件", loginUser.getId());
|
||||||
|
}
|
||||||
|
reviewOfficerAttachmentService.save(reviewAttachment);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
for (int i = 0; i < nameArr.length; i++) {
|
||||||
|
ReviewOfficerAttachment reviewAttachment = new ReviewOfficerAttachment();
|
||||||
|
reviewAttachment.setType(state).setCategory(category)
|
||||||
|
.setReviewId(reviewId)
|
||||||
|
.setTitle(nameArr[i])
|
||||||
|
.setAttachment(pathArr[i])
|
||||||
|
.setCreatedId(loginUser.getId())
|
||||||
|
.setCreatedAt(LocalDateTime.now());
|
||||||
|
reviewOfficerAttachmentService.save(reviewAttachment);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,14 +37,17 @@ public class ReviewOfficerWrapper extends BaseWrapper<ReviewOfficer, ReviewOffic
|
||||||
public ReviewOfficerDto entityVO(ReviewOfficer reviewOfficer) {
|
public ReviewOfficerDto entityVO(ReviewOfficer reviewOfficer) {
|
||||||
ReviewOfficerDto ReviewOfficerDto = BeanUtil.copyProperties(reviewOfficer, ReviewOfficerDto.class);
|
ReviewOfficerDto ReviewOfficerDto = BeanUtil.copyProperties(reviewOfficer, ReviewOfficerDto.class);
|
||||||
|
|
||||||
ReviewOfficerAttachmentService reviewOfficerAttachmentService = SpringUtils.getBean(ReviewOfficerAttachmentService.class);
|
ReviewOfficerAttachmentService reviewOfficerAttachmentService =
|
||||||
|
SpringUtils.getBean(ReviewOfficerAttachmentService.class);
|
||||||
ReviewOfficerUserService reviewOfficerUserService = SpringUtils.getBean(ReviewOfficerUserService.class);
|
ReviewOfficerUserService reviewOfficerUserService = SpringUtils.getBean(ReviewOfficerUserService.class);
|
||||||
ReviewOfficerAuditService reviewOfficerAuditService = SpringUtils.getBean(ReviewOfficerAuditService.class);
|
ReviewOfficerAuditService reviewOfficerAuditService = SpringUtils.getBean(ReviewOfficerAuditService.class);
|
||||||
JdbcTemplate jdbcTemplate = SpringUtils.getBean(JdbcTemplate.class);
|
JdbcTemplate jdbcTemplate = SpringUtils.getBean(JdbcTemplate.class);
|
||||||
|
|
||||||
List<ReviewOfficerAttachment> inReportAttachmentList = reviewOfficerAttachmentService.list(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
List<ReviewOfficerAttachment> inReportAttachmentList =
|
||||||
|
reviewOfficerAttachmentService.list(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
||||||
.eq(ReviewOfficerAttachment::getReviewId, reviewOfficer.getId())
|
.eq(ReviewOfficerAttachment::getReviewId, reviewOfficer.getId())
|
||||||
.eq(ReviewOfficerAttachment::getType, ReviewOfficer.STATE_IN_REPORT)
|
.eq(ReviewOfficerAttachment::getType, ReviewOfficer.STATE_IN_REPORT)
|
||||||
|
.eq(ReviewOfficerAttachment::getCategory, "1")
|
||||||
.orderByDesc(ReviewOfficerAttachment::getCreatedAt));
|
.orderByDesc(ReviewOfficerAttachment::getCreatedAt));
|
||||||
//获取关联会议名称
|
//获取关联会议名称
|
||||||
if (CollectionUtil.isNotEmpty(inReportAttachmentList)) {
|
if (CollectionUtil.isNotEmpty(inReportAttachmentList)) {
|
||||||
|
@ -59,9 +62,32 @@ public class ReviewOfficerWrapper extends BaseWrapper<ReviewOfficer, ReviewOffic
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
List<ReviewOfficerAttachment> checkAttachmentList = reviewOfficerAttachmentService.list(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
|
||||||
|
List<ReviewOfficerAttachment> implementationOpinionsAttachmentList =
|
||||||
|
reviewOfficerAttachmentService.list(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
||||||
|
.eq(ReviewOfficerAttachment::getReviewId, reviewOfficer.getId())
|
||||||
|
.eq(ReviewOfficerAttachment::getType, ReviewOfficer.STATE_IN_REPORT)
|
||||||
|
.eq(ReviewOfficerAttachment::getCategory, "2")
|
||||||
|
.orderByDesc(ReviewOfficerAttachment::getCreatedAt));
|
||||||
|
//获取关联会议名称
|
||||||
|
if (CollectionUtil.isNotEmpty(implementationOpinionsAttachmentList)) {
|
||||||
|
implementationOpinionsAttachmentList.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<ReviewOfficerAttachment> checkAttachmentList =
|
||||||
|
reviewOfficerAttachmentService.list(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
||||||
.eq(ReviewOfficerAttachment::getReviewId, reviewOfficer.getId())
|
.eq(ReviewOfficerAttachment::getReviewId, reviewOfficer.getId())
|
||||||
.eq(ReviewOfficerAttachment::getType, ReviewOfficer.STATE_CHECK)
|
.eq(ReviewOfficerAttachment::getType, ReviewOfficer.STATE_CHECK)
|
||||||
|
.eq(ReviewOfficerAttachment::getCategory, "1")
|
||||||
.orderByDesc(ReviewOfficerAttachment::getCreatedAt));
|
.orderByDesc(ReviewOfficerAttachment::getCreatedAt));
|
||||||
//获取关联会议名称
|
//获取关联会议名称
|
||||||
if (CollectionUtil.isNotEmpty(checkAttachmentList)) {
|
if (CollectionUtil.isNotEmpty(checkAttachmentList)) {
|
||||||
|
@ -76,9 +102,30 @@ public class ReviewOfficerWrapper extends BaseWrapper<ReviewOfficer, ReviewOffic
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
List<ReviewOfficerAttachment> opinionAttachmentList = reviewOfficerAttachmentService.list(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
List<ReviewOfficerAttachment> mobilizeAttachmentList =
|
||||||
|
reviewOfficerAttachmentService.list(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
||||||
|
.eq(ReviewOfficerAttachment::getReviewId, reviewOfficer.getId())
|
||||||
|
.eq(ReviewOfficerAttachment::getType, ReviewOfficer.STATE_CHECK)
|
||||||
|
.eq(ReviewOfficerAttachment::getCategory, "2")
|
||||||
|
.orderByDesc(ReviewOfficerAttachment::getCreatedAt));
|
||||||
|
//获取关联会议名称
|
||||||
|
if (CollectionUtil.isNotEmpty(mobilizeAttachmentList)) {
|
||||||
|
mobilizeAttachmentList.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<ReviewOfficerAttachment> opinionAttachmentList =
|
||||||
|
reviewOfficerAttachmentService.list(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
||||||
.eq(ReviewOfficerAttachment::getReviewId, reviewOfficer.getId())
|
.eq(ReviewOfficerAttachment::getReviewId, reviewOfficer.getId())
|
||||||
.eq(ReviewOfficerAttachment::getType, ReviewOfficer.STATE_OPINION)
|
.eq(ReviewOfficerAttachment::getType, ReviewOfficer.STATE_OPINION)
|
||||||
|
.eq(ReviewOfficerAttachment::getCategory, "1")
|
||||||
.orderByDesc(ReviewOfficerAttachment::getCreatedAt));
|
.orderByDesc(ReviewOfficerAttachment::getCreatedAt));
|
||||||
//获取关联会议名称
|
//获取关联会议名称
|
||||||
if (CollectionUtil.isNotEmpty(opinionAttachmentList)) {
|
if (CollectionUtil.isNotEmpty(opinionAttachmentList)) {
|
||||||
|
@ -93,9 +140,49 @@ public class ReviewOfficerWrapper extends BaseWrapper<ReviewOfficer, ReviewOffic
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
List<ReviewOfficerAttachment> resultAttachmentList = reviewOfficerAttachmentService.list(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
List<ReviewOfficerAttachment> inspectionReportAttachmentList =
|
||||||
|
reviewOfficerAttachmentService.list(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
||||||
|
.eq(ReviewOfficerAttachment::getReviewId, reviewOfficer.getId())
|
||||||
|
.eq(ReviewOfficerAttachment::getType, ReviewOfficer.STATE_OPINION)
|
||||||
|
.eq(ReviewOfficerAttachment::getCategory, "2")
|
||||||
|
.orderByDesc(ReviewOfficerAttachment::getCreatedAt));
|
||||||
|
//获取关联会议名称
|
||||||
|
if (CollectionUtil.isNotEmpty(inspectionReportAttachmentList)) {
|
||||||
|
inspectionReportAttachmentList.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<ReviewOfficerAttachment> surveyReportAttachmentList =
|
||||||
|
reviewOfficerAttachmentService.list(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
||||||
|
.eq(ReviewOfficerAttachment::getReviewId, reviewOfficer.getId())
|
||||||
|
.eq(ReviewOfficerAttachment::getType, ReviewOfficer.STATE_OPINION)
|
||||||
|
.eq(ReviewOfficerAttachment::getCategory, "3")
|
||||||
|
.orderByDesc(ReviewOfficerAttachment::getCreatedAt));
|
||||||
|
//获取关联会议名称
|
||||||
|
if (CollectionUtil.isNotEmpty(surveyReportAttachmentList)) {
|
||||||
|
surveyReportAttachmentList.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<ReviewOfficerAttachment> resultAttachmentList =
|
||||||
|
reviewOfficerAttachmentService.list(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
||||||
.eq(ReviewOfficerAttachment::getReviewId, reviewOfficer.getId())
|
.eq(ReviewOfficerAttachment::getReviewId, reviewOfficer.getId())
|
||||||
.eq(ReviewOfficerAttachment::getType, ReviewOfficer.STATE_RESULT)
|
.eq(ReviewOfficerAttachment::getType, ReviewOfficer.STATE_RESULT)
|
||||||
|
.eq(ReviewOfficerAttachment::getCategory, "1")
|
||||||
.orderByDesc(ReviewOfficerAttachment::getCreatedAt));
|
.orderByDesc(ReviewOfficerAttachment::getCreatedAt));
|
||||||
//获取关联会议名称
|
//获取关联会议名称
|
||||||
if (CollectionUtil.isNotEmpty(resultAttachmentList)) {
|
if (CollectionUtil.isNotEmpty(resultAttachmentList)) {
|
||||||
|
@ -110,24 +197,91 @@ public class ReviewOfficerWrapper extends BaseWrapper<ReviewOfficer, ReviewOffic
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
List<ReviewOfficerAttachment> meetingPlanAttachmentList =
|
||||||
|
reviewOfficerAttachmentService.list(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
||||||
|
.eq(ReviewOfficerAttachment::getReviewId, reviewOfficer.getId())
|
||||||
|
.eq(ReviewOfficerAttachment::getType, ReviewOfficer.STATE_RESULT)
|
||||||
|
.eq(ReviewOfficerAttachment::getCategory, "2")
|
||||||
|
.orderByDesc(ReviewOfficerAttachment::getCreatedAt));
|
||||||
|
//获取关联会议名称
|
||||||
|
if (CollectionUtil.isNotEmpty(meetingPlanAttachmentList)) {
|
||||||
|
meetingPlanAttachmentList.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<ReviewOfficerAttachment> rectificationReportAttachmentList =
|
||||||
|
reviewOfficerAttachmentService.list(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
||||||
|
.eq(ReviewOfficerAttachment::getReviewId, reviewOfficer.getId())
|
||||||
|
.eq(ReviewOfficerAttachment::getType, ReviewOfficer.STATE_REVIEW)
|
||||||
|
.eq(ReviewOfficerAttachment::getCategory, "1")
|
||||||
|
.orderByDesc(ReviewOfficerAttachment::getCreatedAt));
|
||||||
|
//获取关联会议名称
|
||||||
|
if (CollectionUtil.isNotEmpty(rectificationReportAttachmentList)) {
|
||||||
|
rectificationReportAttachmentList.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<ReviewOfficerAttachment> trackReviewAttachmentList =
|
||||||
|
reviewOfficerAttachmentService.list(new LambdaQueryWrapper<ReviewOfficerAttachment>()
|
||||||
|
.eq(ReviewOfficerAttachment::getReviewId, reviewOfficer.getId())
|
||||||
|
.eq(ReviewOfficerAttachment::getType, ReviewOfficer.STATE_REVIEW)
|
||||||
|
.eq(ReviewOfficerAttachment::getCategory, "2")
|
||||||
|
.orderByDesc(ReviewOfficerAttachment::getCreatedAt));
|
||||||
|
//获取关联会议名称
|
||||||
|
if (CollectionUtil.isNotEmpty(trackReviewAttachmentList)) {
|
||||||
|
trackReviewAttachmentList.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<ReviewOfficerAudit> inReportAudit1List = reviewOfficerAuditService.list(new LambdaQueryWrapper<ReviewOfficerAudit>()
|
List<ReviewOfficerAudit> inReportAudit1List =
|
||||||
|
reviewOfficerAuditService.list(new LambdaQueryWrapper<ReviewOfficerAudit>()
|
||||||
.eq(ReviewOfficerAudit::getReviewId, reviewOfficer.getId())
|
.eq(ReviewOfficerAudit::getReviewId, reviewOfficer.getId())
|
||||||
.eq(ReviewOfficerAudit::getLevel, 1)
|
.eq(ReviewOfficerAudit::getLevel, 1)
|
||||||
.orderByAsc(ReviewOfficerAudit::getSortNo));
|
.orderByAsc(ReviewOfficerAudit::getSortNo));
|
||||||
List<ReviewOfficerAudit> inReportAudit2List = reviewOfficerAuditService.list(new LambdaQueryWrapper<ReviewOfficerAudit>()
|
List<ReviewOfficerAudit> inReportAudit2List =
|
||||||
|
reviewOfficerAuditService.list(new LambdaQueryWrapper<ReviewOfficerAudit>()
|
||||||
.eq(ReviewOfficerAudit::getReviewId, reviewOfficer.getId())
|
.eq(ReviewOfficerAudit::getReviewId, reviewOfficer.getId())
|
||||||
.eq(ReviewOfficerAudit::getLevel, 2)
|
.eq(ReviewOfficerAudit::getLevel, 2)
|
||||||
.orderByAsc(ReviewOfficerAudit::getSortNo));
|
.orderByAsc(ReviewOfficerAudit::getSortNo));
|
||||||
|
|
||||||
List<ReviewOfficerUser> checkUserList = reviewOfficerUserService.list(new LambdaQueryWrapper<ReviewOfficerUser>()
|
List<ReviewOfficerUser> checkUserList =
|
||||||
|
reviewOfficerUserService.list(new LambdaQueryWrapper<ReviewOfficerUser>()
|
||||||
.eq(ReviewOfficerUser::getReviewId, reviewOfficer.getId())
|
.eq(ReviewOfficerUser::getReviewId, reviewOfficer.getId())
|
||||||
.orderByAsc(ReviewOfficerUser::getSortNo));
|
.orderByAsc(ReviewOfficerUser::getSortNo));
|
||||||
|
|
||||||
ReviewOfficerDto.setInReportAttachmentList(inReportAttachmentList);
|
ReviewOfficerDto.setInReportAttachmentList(inReportAttachmentList);
|
||||||
|
ReviewOfficerDto.setImplementationOpinionsAttachmentList(implementationOpinionsAttachmentList);
|
||||||
ReviewOfficerDto.setCheckAttachmentList(checkAttachmentList);
|
ReviewOfficerDto.setCheckAttachmentList(checkAttachmentList);
|
||||||
|
ReviewOfficerDto.setMobilizeAttachmentList(mobilizeAttachmentList);
|
||||||
ReviewOfficerDto.setOpinionAttachmentList(opinionAttachmentList);
|
ReviewOfficerDto.setOpinionAttachmentList(opinionAttachmentList);
|
||||||
|
ReviewOfficerDto.setInspectionReportAttachmentList(inspectionReportAttachmentList);
|
||||||
|
ReviewOfficerDto.setSurveyReportAttachmentList(surveyReportAttachmentList);
|
||||||
ReviewOfficerDto.setResultAttachmentList(resultAttachmentList);
|
ReviewOfficerDto.setResultAttachmentList(resultAttachmentList);
|
||||||
|
ReviewOfficerDto.setMeetingPlanAttachmentList(meetingPlanAttachmentList);
|
||||||
|
ReviewOfficerDto.setRectificationReportAttachmentList(rectificationReportAttachmentList);
|
||||||
|
ReviewOfficerDto.setTrackReviewAttachmentList(trackReviewAttachmentList);
|
||||||
|
|
||||||
ReviewOfficerDto.setInReportAudit1List(inReportAudit1List);
|
ReviewOfficerDto.setInReportAudit1List(inReportAudit1List);
|
||||||
ReviewOfficerDto.setInReportAudit2List(inReportAudit2List);
|
ReviewOfficerDto.setInReportAudit2List(inReportAudit2List);
|
||||||
|
@ -136,7 +290,8 @@ public class ReviewOfficerWrapper extends BaseWrapper<ReviewOfficer, ReviewOffic
|
||||||
//打分结束算平均分
|
//打分结束算平均分
|
||||||
if (ReviewOfficer.STATE_CHECK < reviewOfficer.getState()) {
|
if (ReviewOfficer.STATE_CHECK < reviewOfficer.getState()) {
|
||||||
//没打分的不算
|
//没打分的不算
|
||||||
List<ReviewOfficerUser> scoredReviewUserList = checkUserList.stream().filter(item -> item.getScore() != null).collect(Collectors.toList());
|
List<ReviewOfficerUser> scoredReviewUserList =
|
||||||
|
checkUserList.stream().filter(item -> item.getScore() != null).collect(Collectors.toList());
|
||||||
if (CollectionUtil.isNotEmpty(scoredReviewUserList)) {
|
if (CollectionUtil.isNotEmpty(scoredReviewUserList)) {
|
||||||
BigDecimal averageScore = scoredReviewUserList.stream().map(item -> item.getScore())
|
BigDecimal averageScore = scoredReviewUserList.stream().map(item -> item.getScore())
|
||||||
.reduce(BigDecimal.ZERO, BigDecimal::add)
|
.reduce(BigDecimal.ZERO, BigDecimal::add)
|
||||||
|
@ -160,11 +315,13 @@ public class ReviewOfficerWrapper extends BaseWrapper<ReviewOfficer, ReviewOffic
|
||||||
if (userInfo != null) {
|
if (userInfo != null) {
|
||||||
if (userInfo.getId().equals(reviewOfficer.getCreatedId())) ReviewOfficerDto.setIsCreator(true);
|
if (userInfo.getId().equals(reviewOfficer.getCreatedId())) ReviewOfficerDto.setIsCreator(true);
|
||||||
|
|
||||||
ReviewOfficerAudit myReviewAudit1 = reviewOfficerAuditService.getOne(new LambdaQueryWrapper<ReviewOfficerAudit>()
|
ReviewOfficerAudit myReviewAudit1 =
|
||||||
|
reviewOfficerAuditService.getOne(new LambdaQueryWrapper<ReviewOfficerAudit>()
|
||||||
.eq(ReviewOfficerAudit::getReviewId, reviewOfficer.getId())
|
.eq(ReviewOfficerAudit::getReviewId, reviewOfficer.getId())
|
||||||
.eq(ReviewOfficerAudit::getLevel, 1)
|
.eq(ReviewOfficerAudit::getLevel, 1)
|
||||||
.eq(ReviewOfficerAudit::getUserId, userInfo.getId()));
|
.eq(ReviewOfficerAudit::getUserId, userInfo.getId()));
|
||||||
ReviewOfficerAudit myReviewAudit2 = reviewOfficerAuditService.getOne(new LambdaQueryWrapper<ReviewOfficerAudit>()
|
ReviewOfficerAudit myReviewAudit2 =
|
||||||
|
reviewOfficerAuditService.getOne(new LambdaQueryWrapper<ReviewOfficerAudit>()
|
||||||
.eq(ReviewOfficerAudit::getReviewId, reviewOfficer.getId())
|
.eq(ReviewOfficerAudit::getReviewId, reviewOfficer.getId())
|
||||||
.eq(ReviewOfficerAudit::getLevel, 2)
|
.eq(ReviewOfficerAudit::getLevel, 2)
|
||||||
.eq(ReviewOfficerAudit::getUserId, userInfo.getId()));
|
.eq(ReviewOfficerAudit::getUserId, userInfo.getId()));
|
||||||
|
|
Loading…
Reference in New Issue