最终OrderModel orderModel = new OrderModel(); 最终的OrderProcessModel流程= new OrderProcessModel(); 最终的BaseStoreModel baseStoreModel = getBaseStoreService()。getCurrentBaseStore();
Date date = new Date(System.currentTimeMillis());
orderModel.setOrderNumber(orderData.getCode());
orderModel.setSite(baseSiteService.getCurrentBaseSite());
orderModel.setUser(userService.getCurrentUser());
orderModel.setStore(baseStoreModel);
orderModel.setCurrency(commonI18NService.getBaseCurrency());
orderModel.setDate(date);
orderModel.setLanguage(commonI18NService.getCurrentLanguage());
orderModel.setGuid(orderData.getCode());
您需要为模型设置userModel
检查下面的代码。
最终OrderModel orderModel = new OrderModel(); 最终的OrderProcessModel流程= new OrderProcessModel(); 最终的BaseStoreModel baseStoreModel = getBaseStoreService()。getCurrentBaseStore();
一周热门 更多>