This commit is contained in:
van
2026-04-01 18:01:18 +08:00
parent 72008d7de1
commit 9b45142cca

View File

@@ -1387,11 +1387,11 @@ public class InstructionServiceImpl implements IInstructionService {
return warn;
}
// 验证2如果京粉实际价格不为空检查与付款金额的差值是否大于等于100
// 验证2如果京粉实际价格不为空检查与付款金额的差值是否大于等于200
if (order.getJingfenActualPrice() != null && order.getPaymentAmount() != null) {
double diff = Math.abs(order.getPaymentAmount() - order.getJingfenActualPrice());
// 如果差额大于等于100则提示警告
if (diff >= 100.0) {
// 如果差额大于等于200则提示警告
if (diff >= 200.0) {
String warn = "[炸弹] [炸弹] [炸弹] 录单警告!!! \n付款金额和实际金额相差" + String.format("%.2f", diff) + ",请联系管理员录单\n" +
"付款金额:" + order.getPaymentAmount() + "\n" +
"京粉实际价格:" + order.getJingfenActualPrice() + "\n" +