liujie
2025-07-31 90445ea4da409bc93454088d530ebd1c54bdb905
UserQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/taxi/service/impl/OrderTaxiServiceImpl.java
@@ -2302,7 +2302,7 @@
      }
      orderTaxi.setAbnormalIntro(abnormalIntro);
      orderTaxi.setAbnormalImg(abnormalImg);
      orderTaxi.setAbnormal(1);
      orderTaxi.setAbnormal(2);
      this.baseMapper.updateById(orderTaxi);
   }
@@ -2310,7 +2310,7 @@
   public void promotion(Integer orderId) {
      OrderTaxi orderTaxi = this.baseMapper.selectById(orderId);
      UserInfo userInfo = userInfoService.selectById(orderTaxi.getUserId());
      if(userInfo.getBindDriverId()!=null && userInfo.getBindExpireDate().getTime()<=System.currentTimeMillis()){
      if(orderTaxi.getPromotionDriverId()!=null){
         String registAreaCode = userInfo.getRegistAreaCode();
         TDriverPromotionActivity tDriverPromotionActivity = driverPromotionActivityService.selectOne(new EntityWrapper<TDriverPromotionActivity>().eq("districtCode", registAreaCode).ge("startTime", new Date()).lt("endTime", new Date()).last("AND FIND_IN_SET(" + 2 + ", bizType) limit 1"));
         if(tDriverPromotionActivity!=null){
@@ -2318,6 +2318,7 @@
            BigDecimal bigDecimal = tDriverPromotionActivity.getCommissionRatio().divide(new BigDecimal(100), 2, RoundingMode.HALF_UP).multiply(new BigDecimal(payMoney)).setScale(2, RoundingMode.HALF_UP);
            orderTaxi.setPromotionDriverId(userInfo.getBindDriverId());
            orderTaxi.setPromotionMoney(bigDecimal);
            orderTaxi.setPromotionActivityId(tDriverPromotionActivity.getId());
            this.baseMapper.updateById(orderTaxi);
         }
      }