he2802 2 年之前
父节点
当前提交
5c78095be1

+ 17 - 1
zhongzheng-api/src/main/java/com/zhongzheng/controller/cmmon/CommonController.java

@@ -19,6 +19,8 @@ import com.zhongzheng.modules.course.vo.CourseTopicVo;
 import com.zhongzheng.modules.course.vo.CourseUserVo;
 import com.zhongzheng.modules.data.domain.DataWxTpClick;
 import com.zhongzheng.modules.data.service.IDataWxTpClickService;
+import com.zhongzheng.modules.distribution.service.IDistributionSellerService;
+import com.zhongzheng.modules.distribution.vo.DistributionSellerVo;
 import com.zhongzheng.modules.goods.service.IGoodsSpecTemplateService;
 import com.zhongzheng.modules.goods.vo.GoodsSpecTemplateVo;
 import com.zhongzheng.modules.goods.vo.GoodsUserVo;
@@ -60,7 +62,7 @@ public class CommonController extends BaseController {
 
     private final ISysConfigService configService;
 
-
+    private final IDistributionSellerService iDistributionSellerService;
 
     @Autowired
     private RedisCache redisCache;
@@ -307,4 +309,18 @@ public class CommonController extends BaseController {
         return toAjax(iDataWxTpClickService.save(dataWxTpClick)? 1 : 0);
     }
 
+    /**
+     * 获取用户信息
+     *
+     * @return 用户信息
+     */
+    @ApiOperation("通过分享code查询业务员用户信息")
+    @GetMapping("/distribution/getInfoByShareCode")
+    public AjaxResult<DistributionSellerVo> getInfoByShareCode(String shareCode)
+    {
+        DistributionSellerVo vo = iDistributionSellerService.queryByShareCode(shareCode);
+        vo.setNull();
+        return AjaxResult.success(vo);
+    }
+
 }

+ 1 - 13
zhongzheng-api/src/main/java/com/zhongzheng/controller/distribution/DistributionSellerController.java

@@ -114,17 +114,5 @@ public class DistributionSellerController extends BaseController {
         return AjaxResult.success(vo);
     }
 
-    /**
-     * 获取用户信息
-     *
-     * @return 用户信息
-     */
-    @ApiOperation("通过分享code查询业务员用户信息")
-    @GetMapping("getInfoByShareCode")
-    public AjaxResult<DistributionSellerVo> getInfoByShareCode(String shareCode)
-    {
-        DistributionSellerVo vo = iDistributionSellerService.queryByShareCode(shareCode);
-        vo.setNull();
-        return AjaxResult.success(vo);
-    }
+
 }

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/distribution/service/impl/DistributionActivityPosterServiceImpl.java

@@ -136,7 +136,7 @@ public class DistributionActivityPosterServiceImpl extends ServiceImpl<Distribut
                 Integer left = Integer.valueOf(String.valueOf(disObj.get("left")));
                 Integer width = Integer.valueOf(String.valueOf(disObj.get("width")));
                 Integer height = Integer.valueOf(String.valueOf(disObj.get("height")));
-                String qrTxt = sysTenant.getHostH5Seller()+"/pages5/scan/retailact?sellerCode="+sellerVo.getShareCode()+"&distributionId="+activityVo.getDistributionId()+"&linkCode="+linkCode;
+                String qrTxt = sysTenant.getHostH5Seller()+"/pages5/scan/retailact?shareCode="+sellerVo.getShareCode()+"&distributionId="+activityVo.getDistributionId()+"&linkCode="+linkCode;
                 QRCodeWriter qrCodeWriter = new QRCodeWriter();
                 BitMatrix bitMatrix = qrCodeWriter.encode(qrTxt, BarcodeFormat.QR_CODE, width, height);
                 BufferedImage qrImage = ToolsUtils.toBufferedImage(bitMatrix);