| | |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * 按协议类型读取单条协议内容,供 APP 协议详情页使用。 |
| | | */ |
| | | public AgreementContentItemVO detail(String agreementType) { |
| | | String normalizedType = normalizeAgreementType(agreementType); |
| | | AgreementContent record = agreementContentMapper.selectOne(new LambdaQueryWrapper<AgreementContent>() |
| | | .eq(AgreementContent::getAgreementType, normalizedType) |
| | | .eq(AgreementContent::getDeleted, 0) |
| | | .last("limit 1")); |
| | | return toItemVO(normalizedType, record); |
| | | } |
| | | |
| | | @Transactional |
| | | public AgreementContentItemVO save(String agreementType, AgreementContentSaveRequest request) { |
| | | String normalizedType = normalizeAgreementType(agreementType); |