From feeb447000954766bf8b738b91093ed9dc5c361a Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 16 Mar 2021 18:13:32 +0800
Subject: [PATCH] 分销订单0316

---
 zq-erp/src/main/java/com/matrix/system/shopXcx/api/action/WxSalesmanAction.java |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/zq-erp/src/main/java/com/matrix/system/shopXcx/api/action/WxSalesmanAction.java b/zq-erp/src/main/java/com/matrix/system/shopXcx/api/action/WxSalesmanAction.java
index f2c9a3a..3e67c28 100644
--- a/zq-erp/src/main/java/com/matrix/system/shopXcx/api/action/WxSalesmanAction.java
+++ b/zq-erp/src/main/java/com/matrix/system/shopXcx/api/action/WxSalesmanAction.java
@@ -76,6 +76,20 @@
         return ajaxResult;
     }
 
+    @ApiOperation(value = "查询分销商城开关", notes = "1开启分销,2关闭分销")
+    @GetMapping(value = "/getSalesMallSetting")
+    public AjaxResult getSalesMallSwith() {
+        BusParameterSettings fxSwith = busParameterSettingsDao.selectCompanyParamByCode(FenxiaoSettingConstant.FX_SWITCH, HostInterceptor.getCompanyId());
+        BusParameterSettings fxModel = busParameterSettingsDao.selectCompanyParamByCode(FenxiaoSettingConstant.FX_MODEL, HostInterceptor.getCompanyId());
+        AjaxResult ajaxResult = AjaxResult.buildSuccessInstance("查询成功");
+        ajaxResult.putInMap("fxSwith",fxSwith.getParamValue());
+        ajaxResult.putInMap("fxModel",fxModel.getParamValue());
+        return ajaxResult;
+    }
+
+
+
+
 
     @ApiOperation(value = "申请成为推广员", notes = "传入参数invitationId 邀请人openId ,非必填 例: {invitationId:openId}")
     @ApiResponses({
@@ -159,7 +173,7 @@
             BufferedImage qrcordImgBuf = ImageIO.read(new File(qrcodeSavePath));
 
             //获取海报
-            BusParameterSettings posterSetting = busParameterSettingsDao.selectCompanyParamByCode(FenxiaoSettingConstant.FX_TG_POSTER, HostInterceptor.getCompanyId());
+            BusParameterSettings posterSetting = busParameterSettingsDao.selectCompanyParamByCode(FenxiaoSettingConstant.FX_TG_POSTER, loginUser.getCompanyId());
             String posterPath=baseSavePath+"wxacode" + File.separatorChar+MD5Util.strToMD5(loginUser.getOpenId())+"poster.png";
             ImageUtil.downloadPicture(posterSetting.getParamValue(),posterPath);
             BufferedImage posterImgBuf = ImageIO.read(new File(posterPath));
@@ -173,7 +187,6 @@
             BufferedImage backgroundImgBuf = new BufferedImage(700, 900, BufferedImage.TYPE_4BYTE_ABGR);
             //绘制背景+产品
             Graphics2D g = backgroundImgBuf.createGraphics();
-            //g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_ATOP, 1));
             g.setColor(Color.WHITE);
             g.fillRect(0,0,700,900);
             g.drawImage(posterImgBuf,0,0,700, 700,null);

--
Gitblit v1.9.1