|
|
@@ -127,7 +127,7 @@ public class PtlSchemeServiceImpl extends ServiceImpl<PtlSchemeMapper, PtlScheme
|
|
|
//商业险信息
|
|
|
List<PtlSchemeInsurance> ptlSchemeInsuranceList = ptlSchemeSaveVo.getPtlSchemeInsuranceList();
|
|
|
//清空商业险信息
|
|
|
- cleanInsurance(ptlSchemeInfoList);
|
|
|
+ this.cleanInsurance(ptlSchemeInfoList);
|
|
|
ptlSchemeInsuranceMapper.insertOrUpdate(ptlSchemeInsuranceList);
|
|
|
|
|
|
//驾意险信息
|
|
|
@@ -165,7 +165,7 @@ public class PtlSchemeServiceImpl extends ServiceImpl<PtlSchemeMapper, PtlScheme
|
|
|
* @param ptlSchemeInfoList
|
|
|
*/
|
|
|
private void cleanInsurance(List<PtlSchemeInfo> ptlSchemeInfoList) {
|
|
|
- List<String> ids = ptlSchemeInfoList.stream().map(info -> info.getId()).collect(Collectors.toList());
|
|
|
+ List<String> ids = ptlSchemeInfoList.stream().map(PtlSchemeInfo::getId).collect(Collectors.toList());
|
|
|
ptlSchemeInsuranceMapper.delete(new LambdaQueryWrapper<PtlSchemeInsurance>()
|
|
|
.in(PtlSchemeInsurance::getSchemeInfoId, ids));
|
|
|
}
|