Commit 6b8a4648 authored by chenyuxi's avatar chenyuxi

feat: 去掉没有用到的代码

parent 3026b170
...@@ -8290,12 +8290,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap ...@@ -8290,12 +8290,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
if (Common.isNotNull(param.getAuthSql()) && param.getAuthSql().contains("1=2 CONCAT")) { if (Common.isNotNull(param.getAuthSql()) && param.getAuthSql().contains("1=2 CONCAT")) {
param.setAuthSql(param.getAuthSql().replace("1=2 CONCAT", "CONCAT")); param.setAuthSql(param.getAuthSql().replace("1=2 CONCAT", "CONCAT"));
} }
IPage<InsuredListVo> insuranceList = baseMapper.replacePageToAutoSelect(page,param); return baseMapper.replacePageToAutoSelect(page,param);
// 购买月数
// if (CollectionUtils.isNotEmpty(insuranceList.getRecords())){
// insuranceList.getRecords().forEach(e -> e.setBuyMonth(LocalDateUtil.betweenMonth(e.getPolicyStart().toString(),e.getPolicyEnd().toString())));
// }
return insuranceList;
} }
/** /**
...@@ -8323,11 +8318,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap ...@@ -8323,11 +8318,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
// 查保单未过期的数据 // 查保单未过期的数据
String today = LocalDateUtil.getDateSrt(LocalDate.now()); String today = LocalDateUtil.getDateSrt(LocalDate.now());
param.setPolicyEnd(today); param.setPolicyEnd(today);
IPage<InsuredListVo> insuranceList = baseMapper.policyPageToAutoSelect(page,param); return baseMapper.policyPageToAutoSelect(page,param);
// 购买月数
// if (CollectionUtils.isNotEmpty(insuranceList.getRecords())){
// insuranceList.getRecords().forEach(e -> e.setBuyMonth(LocalDateUtil.betweenMonth(e.getPolicyStart().toString(),e.getPolicyEnd().toString())));
// }
return insuranceList;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment