fix:
This commit is contained in:
@@ -63,8 +63,8 @@ public class ReportTemplateDto {
|
||||
@Schema(description = "创建时间范围")
|
||||
private String[] createTimeArr;
|
||||
|
||||
@Schema(description = "是否为个人模板")
|
||||
private boolean personal;
|
||||
@Schema(description = "是否为个人模板 1:查询公共模版 2:查询个人")
|
||||
public int type;
|
||||
|
||||
@Schema(description = "报告审批模板名称")
|
||||
public String approveTemplateName;
|
||||
|
||||
@@ -175,7 +175,7 @@ public class SimulationReportTemplateServiceImpl extends ServiceImpl<SimulationR
|
||||
if (ObjectUtils.isNotEmpty(req.getTemplateStatus())) {
|
||||
queryWrapper.eq(SimulationReportTemplate::getTemplateStatus, req.getTemplateStatus());
|
||||
}
|
||||
if (req.isPersonal()) {
|
||||
if (req.getType() == 2) {
|
||||
queryWrapper.eq(SimulationReportTemplate::getCreator, ThreadLocalContext.getUserId());
|
||||
if (ObjectUtils.isNotEmpty(req.getApproveType())) {
|
||||
queryWrapper.eq(SimulationReportTemplate::getApproveType, req.getApproveType());
|
||||
|
||||
Reference in New Issue
Block a user