修改bug
This commit is contained in:
@ -44,7 +44,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.xiaoymin</groupId>
|
<groupId>com.github.xiaoymin</groupId>
|
||||||
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
|
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
|
||||||
<version>4.5.0</version>
|
<version>4.4.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@ -110,15 +110,6 @@ public class SpringDocConfig {
|
|||||||
}
|
}
|
||||||
PlusPaths newPaths = new PlusPaths();
|
PlusPaths newPaths = new PlusPaths();
|
||||||
oldPaths.forEach((k, v) -> newPaths.addPathItem(finalContextPath + k, v));
|
oldPaths.forEach((k, v) -> newPaths.addPathItem(finalContextPath + k, v));
|
||||||
newPaths.forEach((s, pathItem) -> {
|
|
||||||
// 为所有接口添加鉴权
|
|
||||||
pathItem.readOperations().forEach(operation -> {
|
|
||||||
operation.addSecurityItem(new SecurityRequirement()
|
|
||||||
.addList(HttpHeaders.AUTHORIZATION)
|
|
||||||
.addList("Clientid")
|
|
||||||
);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
openApi.setPaths(newPaths);
|
openApi.setPaths(newPaths);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,19 +49,16 @@ public class PgsProgressCategoryCreateReq implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 计量单位
|
* 计量单位
|
||||||
*/
|
*/
|
||||||
@NotBlank(message = "计量单位不能为空")
|
|
||||||
private String unit;
|
private String unit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 综合单价(业主)
|
* 综合单价(业主)
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "综合单价(业主)不能为空")
|
|
||||||
private BigDecimal ownerPrice;
|
private BigDecimal ownerPrice;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 综合单价(分包)
|
* 综合单价(分包)
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "综合单价(分包)不能为空")
|
|
||||||
private BigDecimal constructionPrice;
|
private BigDecimal constructionPrice;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -1,27 +1,18 @@
|
|||||||
package org.dromara.safety.controller;
|
package org.dromara.safety.controller;
|
||||||
|
|
||||||
import java.util.Arrays;
|
|
||||||
|
|
||||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||||
import jakarta.validation.constraints.NotEmpty;
|
|
||||||
import jakarta.validation.constraints.NotNull;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.dromara.common.core.domain.R;
|
|
||||||
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
||||||
import org.dromara.common.log.annotation.Log;
|
|
||||||
import org.dromara.common.log.enums.BusinessType;
|
|
||||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
import org.dromara.common.web.core.BaseController;
|
import org.dromara.common.web.core.BaseController;
|
||||||
import org.dromara.safety.domain.WgzQuestionSave;
|
|
||||||
import org.dromara.safety.domain.bo.WgzQuestionSaveBo;
|
|
||||||
import org.dromara.safety.domain.bo.WgzQuestionSavePdfBo;
|
import org.dromara.safety.domain.bo.WgzQuestionSavePdfBo;
|
||||||
import org.dromara.safety.domain.vo.WgzQuestionSavePdfVo;
|
import org.dromara.safety.domain.vo.WgzQuestionSavePdfVo;
|
||||||
import org.dromara.safety.domain.vo.WgzQuestionSaveVo;
|
|
||||||
import org.dromara.safety.service.IWgzQuestionSavePdfService;
|
import org.dromara.safety.service.IWgzQuestionSavePdfService;
|
||||||
import org.dromara.safety.service.IWgzQuestionSaveService;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户试卷存储Controller
|
* 用户试卷存储Controller
|
||||||
*
|
*
|
||||||
@ -34,8 +25,6 @@ import org.springframework.validation.annotation.Validated;
|
|||||||
@RequestMapping("/safety/wgzQuestionSave")
|
@RequestMapping("/safety/wgzQuestionSave")
|
||||||
public class WgzQuestionSaveController extends BaseController {
|
public class WgzQuestionSaveController extends BaseController {
|
||||||
|
|
||||||
private final IWgzQuestionSaveService iWgzQuestionSaveService;
|
|
||||||
|
|
||||||
private final IWgzQuestionSavePdfService iwgzQuestionSavePdfService;
|
private final IWgzQuestionSavePdfService iwgzQuestionSavePdfService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -44,7 +33,7 @@ public class WgzQuestionSaveController extends BaseController {
|
|||||||
@SaCheckPermission("safety:wgzQuestionSave:listPdf")
|
@SaCheckPermission("safety:wgzQuestionSave:listPdf")
|
||||||
@GetMapping("/listPdf")
|
@GetMapping("/listPdf")
|
||||||
public TableDataInfo<WgzQuestionSavePdfVo> list(@Validated WgzQuestionSavePdfBo bo, PageQuery pageQuery) {
|
public TableDataInfo<WgzQuestionSavePdfVo> list(@Validated WgzQuestionSavePdfBo bo, PageQuery pageQuery) {
|
||||||
return iwgzQuestionSavePdfService.queryPageList(bo,pageQuery);
|
return iwgzQuestionSavePdfService.queryPageList(bo, pageQuery);
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**
|
// /**
|
||||||
|
|||||||
@ -388,13 +388,14 @@ public class HseViolationLevelServiceImpl extends ServiceImpl<HseViolationLevelM
|
|||||||
lqw.like(StringUtils.isNotBlank(violationLevel), HseViolationLevel::getViolationLevel, violationLevel);
|
lqw.like(StringUtils.isNotBlank(violationLevel), HseViolationLevel::getViolationLevel, violationLevel);
|
||||||
lqw.eq(StringUtils.isNotBlank(riskType), HseViolationLevel::getRiskType, riskType);
|
lqw.eq(StringUtils.isNotBlank(riskType), HseViolationLevel::getRiskType, riskType);
|
||||||
if (StringUtils.isNotBlank(violationType)) {
|
if (StringUtils.isNotBlank(violationType)) {
|
||||||
lqw.likeRight(HseViolationLevel::getViolationType, violationType + ",")
|
lqw.and(wrapper ->
|
||||||
|
wrapper.likeRight(HseViolationLevel::getViolationType, violationType + ",")
|
||||||
.or()
|
.or()
|
||||||
.likeLeft(HseViolationLevel::getViolationType, "," + violationType)
|
.likeLeft(HseViolationLevel::getViolationType, "," + violationType)
|
||||||
.or()
|
.or()
|
||||||
.like(HseViolationLevel::getViolationType, "," + violationType + ",")
|
.like(HseViolationLevel::getViolationType, "," + violationType + ",")
|
||||||
.or()
|
.or()
|
||||||
.eq(HseViolationLevel::getViolationType, violationType);
|
.eq(HseViolationLevel::getViolationType, violationType));
|
||||||
}
|
}
|
||||||
return lqw;
|
return lqw;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user