派单金额问题
This commit is contained in:
parent
bf02f4f7e2
commit
103b864df2
|
|
@ -308,7 +308,10 @@ public class OrderController extends BaseController {
|
|||
// 自己接单 子单金额=0
|
||||
request.setTotalPay(BigDecimal.ZERO);
|
||||
} else {
|
||||
Assert.isTrue(fm.getServerMoney().compareTo(request.getTotalPay()) < 0, "派单金额不能大于订单总金额");
|
||||
if (fm.getServerMoney().compareTo(request.getTotalPay()) < 0) {
|
||||
logger.warn("派单金额[{}]大于订单总金额[{}]", request.getTotalPay(), fm.getServerMoney());
|
||||
return AjaxResult.error("派单金额不能大于订单总金额");
|
||||
}
|
||||
boolean checkInTeam = workerService.checkInTeam(assignWorker.getWorkerId(), acceptWorker.getWorkerId());
|
||||
Assert.isTrue(checkInTeam, "接单师傅不在本团队");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue