|
|
@@ -412,7 +412,7 @@ public class InvReceivableServiceImpl implements InvReceivableService {
|
|
|
|
|
|
@Override
|
|
|
public Boolean updateRecivable(InvSource invSource) {
|
|
|
- BigDecimal tax = new BigDecimal(1.06);
|
|
|
+ BigDecimal tax = BigDecimal.valueOf(1.06);
|
|
|
//处理交强不含税
|
|
|
invSource.setJqPremium(invSource.getJqPremiumTax().divide(tax,2, RoundingMode.HALF_UP));
|
|
|
//处理商业不含税
|
|
|
@@ -457,7 +457,7 @@ public class InvReceivableServiceImpl implements InvReceivableService {
|
|
|
"已结算".equals(invSource.getClearingState()) ? "1" : invSource.getClearingState());
|
|
|
invSource.setInsuranceClearingState("未结算".equals(invSource.getInsuranceClearingState()) ? "0" :
|
|
|
"已结算".equals(invSource.getInsuranceClearingState()) ? "1" : invSource.getInsuranceClearingState());
|
|
|
- return invSourceMapper.updateById(invSource) > 0 ? true : false;
|
|
|
+ return invSourceMapper.updateById(invSource) > 0;
|
|
|
}
|
|
|
|
|
|
@Override
|