he2802 2 years ago
parent
commit
286a6ab72e

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

@@ -65,15 +65,6 @@ public class DistributionSellerController extends BaseController {
     }
 
 
-    /**
-     * 获取分销业务员详细信息
-     */
-    @ApiOperation("获取分销业务员详细信息")
-    @PreAuthorize("@ss.hasPermi('system:seller:query')")
-    @GetMapping("/{salerId}")
-    public AjaxResult<DistributionSellerVo> getInfo(@PathVariable("salerId" ) Long salerId) {
-        return AjaxResult.success(iDistributionSellerService.queryById(salerId));
-    }
 
     /**
      * 新增分销业务员
@@ -110,7 +101,7 @@ public class DistributionSellerController extends BaseController {
     {
         ClientLoginSeller loginUser = sellerTokenService.getLoginUser(ServletUtils.getRequest());
         DistributionSellerVo vo = iDistributionSellerService.queryById(loginUser.getSeller().getSellerId());
-        vo.setNull();
+        vo.setSelfNull();
         return AjaxResult.success(vo);
     }
 

+ 5 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/distribution/vo/DistributionSellerVo.java

@@ -72,6 +72,11 @@ public class DistributionSellerVo {
 	@ApiModelProperty("分享码")
 	private String shareCode;
 
+	public void setSelfNull(){
+		this.setGzhOpenId(null);
+		this.setPassword(null);
+	}
+
 	public void setNull(){
 		this.setGzhOpenId(null);
 		this.setPassword(null);