yujian
2019-11-05 a980ade25b3dc1a7da482e37113f2935a2719c0b
fanli/src/main/java/com/yeshi/fanli/service/impl/shop/BanLiShopOrderServiceImpl.java
@@ -35,7 +35,7 @@
import com.yeshi.fanli.util.Constant;
import com.yeshi.fanli.util.factory.RedPackDetailFactory;
import com.yeshi.fanli.util.rocketmq.MQTopicName;
import com.yeshi.fanli.util.shop.BanLiShopUtil;
import com.yeshi.fanli.util.shop.BanLiShopOrderUtil;
@Service
public class BanLiShopOrderServiceImpl implements BanLiShopOrderService {
@@ -106,7 +106,7 @@
      banLiShopOrderMapper.insertSelective(order);
      // 添加订单号
      String orderNo = BanLiShopUtil.createOrderNo(order.getId());
      String orderNo = BanLiShopOrderUtil.createOrderNo(order.getId());
      // 更新订单号
      BanLiShopOrder update = new BanLiShopOrder();
      update.setId(order.getId());
@@ -284,6 +284,7 @@
      }
   }
   @Transactional
   @Override
   public void rejectOrder(Long id, String msg) throws BanLiShopOrderException {
      // 判断订单是否处于付款状态
@@ -295,7 +296,11 @@
         throw new BanLiShopOrderException(1, "订单未处于待审核状态");
      // TODO 订单退款
      BanLiShopOrder update = new BanLiShopOrder();
      update.setState(BanLiShopOrder.STATE_REJECT);
      update.setStateDesc(msg);
      update.setUpdateTime(new Date());
      banLiShopOrderMapper.updateByPrimaryKeySelective(update);
   }
}