| | |
| | | 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> |
| | | * 协议设置 服务实现类 |
| | |
| | | } |
| | | 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; |
| | | } |
| | | } |