hjl
2024-07-02 242725f795b4cca830421c07f714a3ec36af0add
ruoyi-service/ruoyi-admin/src/main/java/com/ruoyi/admin/service/impl/AgreementServiceImpl.java
@@ -32,7 +32,7 @@
    @Transactional(rollbackFor = Exception.class)
    public R<String> saveData(Agreement agreement) {
        Integer type = agreement.getContentType();
        if (Constants.ZERO.equals(type) || Constants.ONE.equals(type) || Constants.TWO.equals(type)) {
        if (!Constants.ZERO.equals(type) && !Constants.ONE.equals(type) && !Constants.TWO.equals(type)) {
            return R.fail("保存类型异常!(0注册协议;1:隐私政策;2:司机操作指导)");
        }
        Agreement dbDate = lambdaQuery().eq(Agreement::getContentType, type).one();