Commit 306565c1 authored by jiaorz's avatar jiaorz

修改违约逻辑

parent 31598e13
......@@ -273,7 +273,7 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder> implements
/**
* 提前还车
*/
if (orderCalculateBiz.getIncludeDays(endTime, nowTime) < 1) {
if (actualDay - userUsedDay < 0) {
StringBuilder stringBuilder = new StringBuilder();
//提前的天数, 当天就算使用一天
int noUsedDay = actualDay - userUsedDay;
......@@ -298,7 +298,7 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder> implements
/**
* 延期还车
*/
} else if (orderCalculateBiz.getIncludeDays(endTime, nowTime) > 1) {
} else if (actualDay - userUsedDay > 0) {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append("违约金( ¥");
//延期的天数, 延期违约金是延期天数*200%
......
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