| | |
| | | Date endTime = DateUtils.addDays(new Date(), bindingDays); |
| | | userInfo.setBindDriverId(driverId); |
| | | userInfo.setBindExpireDate(endTime); |
| | | |
| | | userInfoService.updateById(userInfo); |
| | | } |
| | | |
| | |
| | | CONCAT(j.startTime, '-', j.endTime) as lineShiftTime, |
| | | a.holidayFee, |
| | | a.discountAmount as taxiCardMoney, |
| | | a.responsibilityType, |
| | | a.abnormalStatus, |
| | | a.abnormalRemark, |
| | | a.abnormalIntro, |
| | | a.abnormalImg, |
| | | a.companyId |
| | | a.responsibilityType as responsibilityType, |
| | | a.abnormalStatus as abnormalStatus, |
| | | a.abnormalRemark as abnormalRemark, |
| | | a.abnormalIntro as abnormalIntro, |
| | | a.abnormalImg as abnormalImg, |
| | | a.companyId as companyId |
| | | from t_order_cross_city a |
| | | left join t_driver b on (a.driverId = b.id) |
| | | left join t_car c on (a.carId = c.id) |
| | |
| | | |
| | | private Integer responsibilityType; |
| | | |
| | | private Long promotionActivityId; |
| | | |
| | | public Long getPromotionActivityId() { |
| | | return promotionActivityId; |
| | | } |
| | | |
| | | public void setPromotionActivityId(Long promotionActivityId) { |
| | | this.promotionActivityId = promotionActivityId; |
| | | } |
| | | |
| | | public Integer getResponsibilityType() { |
| | | return responsibilityType; |
| | | } |
| | |
| | | BigDecimal bigDecimal = tDriverPromotionActivity.getCommissionRatio().divide(new BigDecimal(100), 2, RoundingMode.HALF_UP).multiply(new BigDecimal(payMoney)).setScale(2, RoundingMode.HALF_UP); |
| | | orderCrossCity.setPromotionDriverId(userInfo.getBindDriverId()); |
| | | orderCrossCity.setPromotionMoney(bigDecimal); |
| | | orderCrossCity.setPromotionActivityId(tDriverPromotionActivity.getId()); |
| | | this.baseMapper.updateById(orderCrossCity); |
| | | } |
| | | } |
| | |
| | | |
| | | private Integer responsibilityType; |
| | | |
| | | private Long promotionActivityId; |
| | | |
| | | public Long getPromotionActivityId() { |
| | | return promotionActivityId; |
| | | } |
| | | |
| | | public void setPromotionActivityId(Long promotionActivityId) { |
| | | this.promotionActivityId = promotionActivityId; |
| | | } |
| | | |
| | | public String getPromotionUser() { |
| | | return promotionUser; |
| | | } |
| | |
| | | BigDecimal bigDecimal = tDriverPromotionActivity.getCommissionRatio().divide(new BigDecimal(100), 2, RoundingMode.HALF_UP).multiply(new BigDecimal(payMoney)).setScale(2, RoundingMode.HALF_UP); |
| | | orderPrivateCar.setPromotionDriverId(userInfo.getBindDriverId()); |
| | | orderPrivateCar.setPromotionMoney(bigDecimal); |
| | | orderPrivateCar.setPromotionActivityId(tDriverPromotionActivity.getId()); |
| | | this.baseMapper.updateById(orderPrivateCar); |
| | | } |
| | | } |
| | |
| | | |
| | | private Date bindExpireDate; |
| | | |
| | | |
| | | |
| | | |
| | | public Integer getBindDriverId() { |
| | | return bindDriverId; |
| | | } |
| | |
| | | |
| | | private Integer responsibilityType; |
| | | |
| | | private Long promotionActivityId; |
| | | |
| | | public Long getPromotionActivityId() { |
| | | return promotionActivityId; |
| | | } |
| | | |
| | | public void setPromotionActivityId(Long promotionActivityId) { |
| | | this.promotionActivityId = promotionActivityId; |
| | | } |
| | | |
| | | |
| | | public Integer getResponsibilityType() { |
| | | return responsibilityType; |
| | | } |
| | |
| | | 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); |
| | | } |
| | | } |