|
@@ -559,7 +559,7 @@ public class ReceOrderServiceImpl implements ReceOrderService {
|
|
|
// 更新数据库状态 正在预定中(采购中),人工手动接口下单或者其他渠道进行下单
|
|
|
orderEntity.setBuyStatus(OrderConstant.MtLocalOrdBuyStatus.Purchasing.getValue());
|
|
|
// 人工订单判断是否为负毛利,负毛利则添加提示
|
|
|
- if (grossProfit < 0D){
|
|
|
+ if (grossProfit < 0D) {
|
|
|
orderEntity.setNote("注意!人工订单,毛利小于0。");
|
|
|
}
|
|
|
orderService.updateById(orderEntity);
|
|
@@ -579,6 +579,17 @@ public class ReceOrderServiceImpl implements ReceOrderService {
|
|
|
return XmlUtils.toXml(paySuccessResult);
|
|
|
}
|
|
|
|
|
|
+ // 校验总价是否大于1000元
|
|
|
+ if (payment > 100000){
|
|
|
+ log.info("【飞猪付款通知】直连订单,金额大于1000元,取消直连,店铺:{},飞猪订单号:{},xml:{}", username, paySuccess.getTaoBaoOrderId(), xml);
|
|
|
+ orderEntity.setBuyStatus(OrderConstant.MtLocalOrdBuyStatus.Purchasing.getValue());
|
|
|
+ orderEntity.setNote("注意!直连订单,金额大于1000元,取消直连,请人工处理。");
|
|
|
+ orderService.updateById(orderEntity);
|
|
|
+ paySuccessResult.setResultCode("0");
|
|
|
+ paySuccessResult.setMessage("成功");
|
|
|
+ return XmlUtils.toXml(paySuccessResult);
|
|
|
+ }
|
|
|
+
|
|
|
BookRq bookRq = this.transForm(orderEntity, htDailyRooms, username);
|
|
|
R r = mtRemoteService.book(bookRq);
|
|
|
int code = r.getCode();
|