|
@@ -193,7 +193,20 @@ public class InsDrivingIntentionInsuranceServiceImpl extends ServiceImpl<InsDriv
|
|
|
public InsDrivingIntentionInsurance getByProjectCode(String companyId, String projectCode) {
|
|
public InsDrivingIntentionInsurance getByProjectCode(String companyId, String projectCode) {
|
|
|
return baseMapper.selectOne(new LambdaQueryWrapper<InsDrivingIntentionInsurance>()
|
|
return baseMapper.selectOne(new LambdaQueryWrapper<InsDrivingIntentionInsurance>()
|
|
|
.eq(InsDrivingIntentionInsurance::getCompanyId, companyId)
|
|
.eq(InsDrivingIntentionInsurance::getCompanyId, companyId)
|
|
|
- .eq(InsDrivingIntentionInsurance::getProjectCode, projectCode));
|
|
|
|
|
|
|
+ .eq(InsDrivingIntentionInsurance::getProjectCode, projectCode)
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public InsDrivingIntentionInsurance getByProjectCode(String companyId, String projectCode,String seatNum) {
|
|
|
|
|
+ return baseMapper.selectOne(new LambdaQueryWrapper<InsDrivingIntentionInsurance>()
|
|
|
|
|
+ .eq(InsDrivingIntentionInsurance::getCompanyId, companyId)
|
|
|
|
|
+ .eq(InsDrivingIntentionInsurance::getProjectCode, projectCode)
|
|
|
|
|
+ .and(wrapper ->
|
|
|
|
|
+ wrapper.isNull(InsDrivingIntentionInsurance::getSeatNum)
|
|
|
|
|
+ .or()
|
|
|
|
|
+ .eq(InsDrivingIntentionInsurance::getSeatNum, seatNum)
|
|
|
|
|
+ ));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|