|
@@ -15,6 +15,7 @@ import com.zswl.cloud.shop.client.service.CouponInfoLogService;
|
|
import com.zswl.cloud.shop.client.service.ShopService;
|
|
import com.zswl.cloud.shop.client.service.ShopService;
|
|
import com.zswl.cloud.shop.client.vo.life.AccountDetailVo;
|
|
import com.zswl.cloud.shop.client.vo.life.AccountDetailVo;
|
|
import com.zswl.cloud.shop.client.vo.life.SharePlatformVo;
|
|
import com.zswl.cloud.shop.client.vo.life.SharePlatformVo;
|
|
|
|
+import com.zswl.cloud.shop.client.vo.life.ShopInfoSimpleVo;
|
|
import com.zswl.cloud.springBatch.client.model.video2.RechargeRequest;
|
|
import com.zswl.cloud.springBatch.client.model.video2.RechargeRequest;
|
|
import com.zswl.cloud.springBatch.client.service.Video2Service;
|
|
import com.zswl.cloud.springBatch.client.service.Video2Service;
|
|
import com.zswl.cloud.springBtach.server.core.api.video2.Video2Api;
|
|
import com.zswl.cloud.springBtach.server.core.api.video2.Video2Api;
|
|
@@ -81,6 +82,10 @@ public class Video2ServiceImpl implements Video2Service {
|
|
if (!shopSetting.getState().equals(com.zswl.cloud.shop.client.ret.ResultState.Success)) {
|
|
if (!shopSetting.getState().equals(com.zswl.cloud.shop.client.ret.ResultState.Success)) {
|
|
return ResultContent.build(ResultState.Fail, "视频会员信息未配置");
|
|
return ResultContent.build(ResultState.Fail, "视频会员信息未配置");
|
|
}
|
|
}
|
|
|
|
+ List<ShopInfoSimpleVo> shops = shopSetting.getContent().getShops();
|
|
|
|
+ if (shops.isEmpty()){
|
|
|
|
+ return ResultContent.build(ResultState.Fail, "酒店店铺未创建");
|
|
|
|
+ }
|
|
AccountDetailVo accountDetailVo = shopSetting.getContent();
|
|
AccountDetailVo accountDetailVo = shopSetting.getContent();
|
|
|
|
|
|
|
|
|
|
@@ -88,7 +93,8 @@ public class Video2ServiceImpl implements Video2Service {
|
|
|
|
|
|
// 平台订单
|
|
// 平台订单
|
|
|
|
|
|
- String shopId = accountDetailVo.getAccountId();
|
|
|
|
|
|
+ ShopInfoSimpleVo shopInfoSimpleVo = shops.get(0);
|
|
|
|
+ String shopId = shopInfoSimpleVo.getShopId();
|
|
String authAccount = accountDetailVo.getAuthAccount();
|
|
String authAccount = accountDetailVo.getAuthAccount();
|
|
SharePlatformVo sharePlatformVo = accountDetailVo.getSharePlatformVo();
|
|
SharePlatformVo sharePlatformVo = accountDetailVo.getSharePlatformVo();
|
|
|
|
|
|
@@ -98,7 +104,7 @@ public class Video2ServiceImpl implements Video2Service {
|
|
createOrder2Model.setUserId(authHelper.getCurrentUser().getUserId());
|
|
createOrder2Model.setUserId(authHelper.getCurrentUser().getUserId());
|
|
createOrder2Model.setShopId(shopId);
|
|
createOrder2Model.setShopId(shopId);
|
|
JSONObject shopInfo = JSONUtil.parseObj(shopSetting);
|
|
JSONObject shopInfo = JSONUtil.parseObj(shopSetting);
|
|
- shopInfo.set("shopName", "会员充值");
|
|
|
|
|
|
+ shopInfo.set("shopName", shopInfoSimpleVo.getShopName());
|
|
createOrder2Model.setShopInfo(shopInfo);
|
|
createOrder2Model.setShopInfo(shopInfo);
|
|
createOrder2Model.setTotalAmount(totalPrice);
|
|
createOrder2Model.setTotalAmount(totalPrice);
|
|
createOrder2Model.setDiscountAmount(BigDecimal.ZERO);
|
|
createOrder2Model.setDiscountAmount(BigDecimal.ZERO);
|