无关风月
2026-02-12 21139cec92c837fe26f22ccd0855120ac866ceea
xp-robotaxi-operation-boot/src/main/java/com/xiaopeng/operation/service/impl/XpAgreementServiceImpl.java
@@ -9,6 +9,11 @@
import com.xiaopeng.operation.vo.XpAgreementVo;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
 * <p>
 * 协议设置 服务实现类
@@ -33,4 +38,19 @@
        }
        return null;
    }
    @Override
    public List<XpAgreementVo> getContentByTypeAll() {
        List<XpAgreement> list = this.list(new LambdaQueryWrapper<XpAgreement>().in(XpAgreement::getContentType, Arrays.asList(1,2,3,4)));
        List<XpAgreementVo> xpAgreementVos = new ArrayList<>();
        for (XpAgreement xpAgreement : list) {
            XpAgreementVo xpAgreementVo = new XpAgreementVo();
            xpAgreementVo.setId(xpAgreement.getId());
            xpAgreementVo.setContent(xpAgreement.getContent());
            xpAgreementVo.setType(xpAgreement.getContentType());
            xpAgreementVo.setVersion(xpAgreement.getVersion());
            xpAgreementVos.add(xpAgreementVo);
        }
        return xpAgreementVos;
    }
}