|
|
@@ -20,6 +20,7 @@ import com.ydtech.modules.inv.model.vo.*;
|
|
|
import com.ydtech.modules.inv.service.InvChannelAccountService;
|
|
|
import com.ydtech.modules.inv.service.InvReceivableService;
|
|
|
import com.ydtech.modules.inv.service.InvSourceService;
|
|
|
+import com.ydtech.utils.idgen.IdGenerate;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -669,6 +670,7 @@ public class InvReceivableServiceImpl implements InvReceivableService {
|
|
|
|
|
|
@Override
|
|
|
public Boolean addReceivable(InvSource invSource) {
|
|
|
+ invSource.setId(IdGenerate.nextId());
|
|
|
BigDecimal tax = new BigDecimal(1.06);
|
|
|
//处理交强不含税
|
|
|
invSource.setJqPremium(invSource.getJqPremiumTax().divide(tax,2, RoundingMode.HALF_UP));
|
|
|
@@ -704,10 +706,16 @@ public class InvReceivableServiceImpl implements InvReceivableService {
|
|
|
invSource.getJqPremiumTax().multiply(invSource.getMaxJqReceivableRatio())
|
|
|
.add(invSource.getSyPremiumTax().multiply(invSource.getMaxSyReceivableRatio()))
|
|
|
.add(invSource.getNonCarPremiumTax().multiply(invSource.getMaxNonCarReceivableRatio())));
|
|
|
- boolean save = invSourceService.save(invSource);
|
|
|
+ boolean save = invSourceMapper.insert (invSource) > 0 ? true : false;
|
|
|
return save;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public int dataMatching() {
|
|
|
+ Integer data = invSourceMapper.dataMatching();
|
|
|
+ return data;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|