Commit 0cfc77bb by wangli

修改

1 parent 7f7199a4
...@@ -220,8 +220,8 @@ public class OrderAssignImpl implements OrderAssign { ...@@ -220,8 +220,8 @@ public class OrderAssignImpl implements OrderAssign {
if (order == null){ if (order == null){
throw new BusinessException("订单不存在"); throw new BusinessException("订单不存在");
} }
if(order.getDt() == expectBegin.toLocalDate()) { if(order.getDt().isEqual(expectBegin.toLocalDate())) {
throw new BusinessException("改约日期不与之前日期相同"); throw new BusinessException("改约日期不与之前日期相同");
} }
if (LocalDate.now().isAfter(expectBegin.toLocalDate())){ if (LocalDate.now().isAfter(expectBegin.toLocalDate())){
throw new BusinessException("改约日期不能小于今日"); throw new BusinessException("改约日期不能小于今日");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!