xiaoyong931011
2021-03-11 f3b34b0c7ba026e686d58af93ab8ae5ad6aa9f48
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package com.matrix.system.fenxiao.action;
 
import com.matrix.core.anotations.RemoveRequestToken;
import com.matrix.core.constance.MatrixConstance;
import com.matrix.core.pojo.AjaxResult;
import com.matrix.core.tools.WebUtil;
import com.matrix.system.common.bean.BusParameterSettings;
import com.matrix.system.common.bean.SysUsers;
import com.matrix.system.hive.bean.ShoppingGoods;
import com.matrix.system.hive.bean.SysShopInfo;
 
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import com.matrix.system.fenxiao.constant.FenxiaoSettingConstant;
import com.matrix.system.fenxiao.service.FenXiaoSettingService;
import com.matrix.system.fenxiao.service.ShopSalesmanApplyService;
import com.matrix.system.fenxiao.vo.FenXiaoSettingVo;
import com.matrix.system.fenxiao.vo.ShopSalesmanApplyVo;
 
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
 
@RestController
@RequestMapping(value = "/fenXiao/fenXiaoUser")
public class FenXiaoUserAction {
    
    @Autowired
    private ShopSalesmanApplyService shopSalesmanApplyService;
 
    /**
     * 修改公司维度的分销规则
     */
//    @PostMapping(value = "/fxImgUpload")
//    public @ResponseBody
//    AjaxResult updateFenXiaoSetting(@RequestBody BusParameterSettings busParameterSettings) {
//        return fenXiaoSettingService.updateFenXiaoSettingByCompanyId(busParameterSettings);
//    }
    /**
     *获取分销员审核记录
     */
    @RequestMapping(value = "/fenXiaoUserApply")
    public AjaxResult selectFenXiaoUserApply() {
 
       AjaxResult result= AjaxResult.buildSuccessInstance("查询成功");
       SysUsers user = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY);
       Long companyId = user.getCompanyId();
       
       //分销员审核记录
       List<ShopSalesmanApplyVo> shopSalesmanApplyVos = shopSalesmanApplyService.selectFenXiaoUserApplyByCompanyId(companyId);
       result.putInMap("fxshjl", shopSalesmanApplyVos);
 
       return result;
    }
 
}