|
@@ -321,6 +321,27 @@ public class OrderHandleServiceImpl extends ServiceImpl<OrderHandleMapper, Order
|
|
return this.updateById(update);
|
|
return this.updateById(update);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public Boolean updateRefuseBo(OrderHandleEditBo bo) {
|
|
|
|
+ OrderHandle orderHandle = queryBySn(bo.getHandleOrderSn());
|
|
|
|
+ if (Validator.isEmpty(orderHandle)) {
|
|
|
|
+ throw new CustomException("录单单号不存在");
|
|
|
|
+ }
|
|
|
|
+ if (orderHandle.getPayStatus()!=-2) {
|
|
|
|
+ throw new CustomException("非拒绝状态");
|
|
|
|
+ }
|
|
|
|
+ OrderHandle update = new OrderHandle();
|
|
|
|
+ update.setId(orderHandle.getId());
|
|
|
|
+ update.setPayStatus(0);
|
|
|
|
+ update.setCompanyPayImg(bo.getCompanyPayImg());
|
|
|
|
+ update.setCompanyName(bo.getCompanyName());
|
|
|
|
+ update.setCompanyTel(bo.getCompanyTel());
|
|
|
|
+ update.setCompanyRemark(bo.getCompanyRemark());
|
|
|
|
+ validEntityBeforeSave(update);
|
|
|
|
+ update.setUpdateTime(DateUtils.getNowTime());
|
|
|
|
+ return this.updateById(update);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 保存前的数据校验
|
|
* 保存前的数据校验
|
|
*
|
|
*
|