|
@@ -4,6 +4,7 @@ import cn.hutool.core.util.ArrayUtil;
|
|
|
import com.ydtech.constants.enums.InsurKind;
|
|
import com.ydtech.constants.enums.InsurKind;
|
|
|
import com.ydtech.modules.ins.model.vo.*;
|
|
import com.ydtech.modules.ins.model.vo.*;
|
|
|
import com.ydtech.modules.ins.model.ya.YaQuoteInfoVo;
|
|
import com.ydtech.modules.ins.model.ya.YaQuoteInfoVo;
|
|
|
|
|
+import com.ydtech.modules.ins.model.yc.ruote.Vhl;
|
|
|
import com.ydtech.modules.ins.model.yc.ruote.response.BaseResponse;
|
|
import com.ydtech.modules.ins.model.yc.ruote.response.BaseResponse;
|
|
|
import com.ydtech.modules.ins.model.yc.ruote.response.PrmCoefResponse;
|
|
import com.ydtech.modules.ins.model.yc.ruote.response.PrmCoefResponse;
|
|
|
import com.ydtech.modules.ins.model.yc.ruote.response.RuoteResponse;
|
|
import com.ydtech.modules.ins.model.yc.ruote.response.RuoteResponse;
|
|
@@ -342,4 +343,26 @@ public class YcBuildData {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取折旧价
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param depreciationValue 折旧价
|
|
|
|
|
+ * @param vhl 车辆信息
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ public static String getNegotiateThePrice(String depreciationValue, Vhl vhl, String startTime) {
|
|
|
|
|
+ if (!"32773001".equals(vhl.getFuelType())) {
|
|
|
|
|
+ return depreciationValue;
|
|
|
|
|
+ }
|
|
|
|
|
+ int monthDiff = getMonthDiffSub(vhl.getCFstRegYm(), startTime);
|
|
|
|
|
+ if (monthDiff > 9 && monthDiff < 96) {
|
|
|
|
|
+ return new BigDecimal(depreciationValue).multiply(new BigDecimal("0.3")).toString();
|
|
|
|
|
+ } else if ("1".equals(vhl.getCChgOwnerFlag()) || monthDiff >= 96) {
|
|
|
|
|
+ return new BigDecimal(depreciationValue).multiply(new BigDecimal("0.5")).toString();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return depreciationValue;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|