| | |
| | | transactionDetails.setPlaceOrderWay(placeOrderWay); |
| | | this.insert(transactionDetails); |
| | | } |
| | | /** |
| | | * 添加数据 |
| | | * @param userId 对象id |
| | | * @param remark 备注 |
| | | * @param money 金额 |
| | | * @param state 状态(1=添加,2=减少) |
| | | * @param type 类型(1=金额,2=积分) |
| | | * @param userType 用户类型(1=用户,2=司机) |
| | | * @param orderType 订单类型(1=专车,2=出租车,3=城际,4=小件物流,5=余额充值,6=余额提现,7=积分兑换) |
| | | * @param placeOrderWay 下单方式 1=语音下单 2=一键下单 3=后台添加订单 4=普通订单 |
| | | * @param orderId |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public void saveDataTaxi(Integer userId, String remark, Double money, Integer state, Integer type, Integer userType, Integer orderType, Integer orderId, Integer placeOrderWay,Integer companyId) throws Exception { |
| | | TransactionDetails transactionDetails = new TransactionDetails(); |
| | | transactionDetails.setInsertTime(new Date()); |
| | | transactionDetails.setMoney(money); |
| | | transactionDetails.setOrderId(orderId); |
| | | transactionDetails.setOrderType(orderType); |
| | | transactionDetails.setRemark(remark); |
| | | transactionDetails.setState(state); |
| | | transactionDetails.setType(type); |
| | | transactionDetails.setUserId(userId); |
| | | transactionDetails.setUserType(userType); |
| | | transactionDetails.setPlaceOrderWay(placeOrderWay); |
| | | transactionDetails.setCompanyId(companyId); |
| | | this.insert(transactionDetails); |
| | | } |
| | | } |