fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ConfigControllerV2.java
@@ -714,27 +714,26 @@ @RequestMapping(value = "getShowAd") public void showAd(AcceptData acceptData, Long uid, PrintWriter out) { String value = configService.getValue(ConfigKeyEnum.showSplashAd.getKey(), acceptData.getSystem()); boolean huaweiShowAd = true; if ("huawei".equalsIgnoreCase(acceptData.getChannel())) { String version = configService.getValue(ConfigKeyEnum.huaweiOnLineVersionCode.getKey(), acceptData.getSystem()); if (!StringUtil.isNullOrEmpty(version)) { if (Integer.parseInt(version) == Integer.parseInt(acceptData.getVersion())) { huaweiShowAd = false; JSONObject configData = JSONObject.fromObject(value); String channel = acceptData.getChannel().toLowerCase(); if (configData.optString(channel) == null) { channel = "qq"; } } int version = configData.optInt(channel); JSONObject data = new JSONObject(); boolean show; if (Integer.parseInt(acceptData.getVersion()) >= version) { show = false; } else { show = true; } JSONObject data = new JSONObject(); if ("0".equalsIgnoreCase(value.trim())) { data.put("show", false); } else { if (huaweiShowAd) { if (show) { data.put("show", true); //加载广告数据 data.put("ad", configService.getValue(ConfigKeyEnum.gdtAdInfo, acceptData.getSystem())); } else data.put("show", false); } out.print(JsonUtil.loadTrueResult(data)); } fanli/src/main/java/com/yeshi/fanli/dao/mybatis/vipshop/VipShopOrderMapper.java
@@ -20,6 +20,8 @@ public class DaoQuery extends BaseDaoQuery { public String orderSubStatusName; } } fanli/src/main/java/com/yeshi/fanli/entity/system/ConfigKeyEnum.java
@@ -222,7 +222,7 @@ // 平台规则 platformRule("platform_rule_link", "平台规则"), showSplashAd("show_splash_ad", "是否显示开屏广告"), showSplashAd("show_splash_ad_new", "是否显示开屏广告"), huaweiOnLineVersionCode("huawei_online_version_code", "华为渠道正在上线的版本"), fanli/src/main/java/com/yeshi/fanli/job/order/vipshop/UpdateVipShopOrderJob.java
@@ -97,15 +97,17 @@ //根据订单号更新 @XxlJob("order-vip-updateByOrderSn") public ReturnT<String> updateByOrderSn(String param) throws Exception { List<VipShopOrder> orders = vipShopOrderService.listByOrderSn(param); String[] ps = param.split(","); for (String p : ps) { List<VipShopOrder> orders = vipShopOrderService.listByOrderSn(p); if (orders == null || orders.size() == 0) throw new Exception("订单不存在"); VipShopOrder vipShopOrder = DingDanXiaApiUtil.getOrderDetail(param); VipShopOrder vipShopOrder = DingDanXiaApiUtil.getOrderDetail(p); if (vipShopOrder != null) { List<VipShopOrder> vipShopOrderList = new ArrayList<>(); vipShopOrderList.add(vipShopOrder); saveVipShopOrders(vipShopOrderList); } } return ReturnT.SUCCESS; } @@ -120,7 +122,7 @@ */ @XxlJob("order-vip-updateByLongTimeNoUpdate") public ReturnT<String> updateByLongTimeNoUpdate(String param) throws Exception { Date maxCreateTime = new Date(System.currentTimeMillis() - 1000 * 60 * 60 * 24L * 30); Date maxCreateTime = new Date(System.currentTimeMillis() - 1000 * 60 * 60 * 24L * 15); Date minCreateTime = new Date(maxCreateTime.getTime() - 1000 * 60 * 60 * 24L * 60L); VipShopOrderMapper.DaoQuery daoQuery = new VipShopOrderMapper.DaoQuery(); daoQuery.orderSubStatusName = "已付款"; fanli/src/main/java/com/yeshi/fanli/service/impl/order/vipshop/VipShopOrderServiceImpl.java
@@ -61,11 +61,11 @@ /** * 添加详情信息 * * @param detail void 返回类型 * @throws * @Title: addOrderDetail * @Description: * @param detail * void 返回类型 * @throws */ private void addOrderDetail(VipShopOrderDetail detail) { VipShopOrderDetail old = vipShopOrderDetailMapper.selectByIdentifyCode(detail.getIdentifyCode()); @@ -91,11 +91,11 @@ /** * 添加售后信息 * * @param detailInfo void 返回类型 * @throws * @Title: addAfterSaleDetailInfo * @Description: * @param detailInfo * void 返回类型 * @throws */ private void addAfterSaleDetailInfo(VipShopAfterSaleDetailInfo detailInfo) { VipShopAfterSaleDetailInfo oldInfo = vipShopAfterSaleDetailInfoMapper.selectByOrderDetailId(detailInfo.getId()); fanli/src/main/java/com/yeshi/fanli/service/inter/order/vipshop/VipShopOrderService.java
@@ -27,11 +27,12 @@ /** * 根据订单号查询 * * @param orderId * @param orderSn * @return */ public List<VipShopOrder> listByOrderSn(String orderSn); /** * 根据订单号查询 * @Title: listDetailByOrderSn